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.
36 lines
757 B
36 lines
757 B
////////////////////////////// |
|
// Import Pieces |
|
////////////////////////////// |
|
@import "triple/default"; |
|
|
|
@function breakpoint-parse-triple($feature, $empty-media, $first) { |
|
$parsed: ''; |
|
$leader: ''; |
|
|
|
// If we're forcing |
|
@if not ($empty-media) or not ($first) { |
|
$leader: 'and '; |
|
} |
|
|
|
// separate the string features from the value numbers |
|
$string: null; |
|
$numbers: null; |
|
@each $val in $feature { |
|
@if type-of($val) == string { |
|
$string: $val; |
|
} |
|
@else { |
|
@if type-of($numbers) == 'null' { |
|
$numbers: $val; |
|
} |
|
@else { |
|
$numbers: append($numbers, $val); |
|
} |
|
} |
|
} |
|
|
|
$parsed: breakpoint-parse-triple-default($string, nth($numbers, 1), nth($numbers, 2)); |
|
|
|
@return $leader + $parsed; |
|
|
|
}
|
|
|