1
0
Fork 0
mirror of synced 2024-07-06 21:21:09 -04:00
yadm/_sass/vendor/breakpoint/parsers/double/_double-string.scss
2016-09-06 22:18:34 -05:00

22 lines
568 B
SCSS

@function breakpoint-parse-double-string($first, $second) {
$feature: '';
$value: '';
// Test to see which is the feature and which is the value
@if (breakpoint-string-value($first) == true) {
$feature: $first;
$value: $second;
}
@else if (breakpoint-string-value($second) == true) {
$feature: $second;
$value: $first;
}
@else {
@warn "Neither #{$first} nor #{$second} is a valid media query name.";
}
// Set Context
$context-setter: private-breakpoint-set-context($feature, $value);
@return '(#{$feature}: #{$value})';
}