1
0
Fork 0
mirror of synced 2024-12-23 14:53:21 -05:00
yadm/_sass/vendor/breakpoint/parsers/triple/_default.scss

19 lines
555 B
SCSS
Raw Normal View History

2016-09-06 23:18:34 -04:00
@function breakpoint-parse-triple-default($feature, $first, $second) {
// Sort into min and max
$min: min($first, $second);
$max: max($first, $second);
// Set Context
$context-setter: private-breakpoint-set-context(min-#{$feature}, $min);
$context-setter: private-breakpoint-set-context(max-#{$feature}, $max);
// Make them EMs if need be
@if (breakpoint-get('to ems') == true) {
$min: breakpoint-to-base-em($min);
$max: breakpoint-to-base-em($max);
}
@return '(min-#{$feature}: #{$min}) and (max-#{$feature}: #{$max})';
}