Sha256: 4cdfa0b6d6acdf561067b4cb05a993990b5a480477397cc788bd90e77488eaa5

Contents?: true

Size: 1.09 KB

Versions: 38

Compression:

Stored size: 1.09 KB

Contents

//////////////////////////////
// Import Pieces
//////////////////////////////
@import "double/default-pair";
@import "double/double-string";
@import "double/default";

@function breakpoint-parse-double($feature, $empty-media, $first) {
  $parsed: '';
  $leader: '';
  // If we're forcing
  @if not ($empty-media) or not ($first) {
    $leader: 'and ';
  }

  $first: nth($feature, 1);
  $second: nth($feature, 2);

  // If we've got two numbers, we know we need to use the default pair because there are no media queries that has a media feature that is a number
  @if type-of($first) == 'number' and type-of($second) == 'number' {
    $parsed: breakpoint-parse-default-pair($first, $second);
  }
  // If they are both strings, we send it through the string parser
  @else if type-of($first) == 'string' and type-of($second) == 'string' {
    $parsed: breakpoint-parse-double-string($first, $second);
  }
  // If it's a string/number pair, we parse it as a normal double
  @else {
    $parsed: breakpoint-parse-double-default($first, $second);
  }

  @return $leader + $parsed;
}

Version data entries

38 entries across 38 versions & 4 rubygems

Version Path
jekyll-theme-so-simple-3.1.0 _sass/so-simple/vendor/breakpoint/parsers/_double.scss
jekyll-theme-basically-basic-1.3.1 _sass/basically-basic/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.10.0 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
jekyll-theme-basically-basic-1.3.0 _sass/basically-basic/vendor/breakpoint/parsers/_double.scss
jekyll-theme-so-simple-3.0.1 _sass/so-simple/vendor/breakpoint/parsers/_double.scss
jekyll-theme-so-simple-3.0.0 _sass/so-simple/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.9.1 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
jekyll-theme-basically-basic-1.2.0 _sass/basically-basic/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.8.0 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.7.1 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
jekyll-theme-basically-basic-1.1.3 _sass/basically-basic/vendor/breakpoint/parsers/_double.scss
jekyll-theme-basically-basic-1.1.2 _sass/basically-basic/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.6.0 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
jekyll-theme-basically-basic-1.1.1 _sass/basically-basic/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.5.2 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.5.1 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.5.0 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.4.2 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
minimal-mistakes-jekyll-4.4.0 _sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss
sparrow-jekyll-theme-0.1.1 _sass/vendor/breakpoint/parsers/_double.scss