aboutsummaryrefslogtreecommitdiff
path: root/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss
blob: c6fd0cb033a5f2e1bc34dc8589f229ba9cc4f149 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@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})';
}