https://github.com/sha-red/compass-mixins/tree/master/lib
extended with more sass frameworks and as django app.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
555 B
18 lines
555 B
@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})'; |
|
}
|
|
|