Sha256: 9c1fc27a5025fd1e56fd009c2f55428886c4bd0d3394eb6f5bc3dd0e141cd988

Contents?: true

Size: 1.82 KB

Versions: 229

Compression:

Stored size: 1.82 KB

Contents

//////////////////////////////
// Has Setting
//////////////////////////////
@function breakpoint-has($setting) {
  @if map-has-key($breakpoint, $setting) {
    @return true;
  }
  @else {
    @return false;
  }
}

//////////////////////////////
// Get Settings
//////////////////////////////
@function breakpoint-get($setting) {
  @if breakpoint-has($setting) {
    @return map-get($breakpoint, $setting);
  }
  @else {
    @return map-get($Breakpoint-Settings, $setting);
  }
}

//////////////////////////////
// Set Settings
//////////////////////////////
@function breakpoint-set($setting, $value) {
  @if (str-index($setting, '-') or str-index($setting, '_')) and str-index($setting, ' ') == null {
    @warn "Words in Breakpoint settings should be separated by spaces, not dashes or underscores. Please replace dashes and underscores between words with spaces. Settings will not work as expected until changed.";
  }
  $breakpoint: map-merge($breakpoint, ($setting: $value)) !global;
  @return true;
}

@mixin breakpoint-change($setting, $value) {
  $breakpoint-change: breakpoint-set($setting, $value);
}

@mixin breakpoint-set($setting, $value) {
  @include breakpoint-change($setting, $value);
}

@mixin bkpt-change($setting, $value) {
  @include breakpoint-change($setting, $value);
}
@mixin bkpt-set($setting, $value) {
  @include breakpoint-change($setting, $value);
}

//////////////////////////////
// Remove Setting
//////////////////////////////
@function breakpoint-reset($settings...) {
  @if length($settings) == 1 {
    $settings: nth($settings, 1);
  }

  @each $setting in $settings {
    $breakpoint: map-remove($breakpoint, $setting) !global;
  }
  @return true;
}

@mixin breakpoint-reset($settings...) {
  $breakpoint-reset: breakpoint-reset($settings);
}

@mixin bkpt-reset($settings...) {
  $breakpoint-reset: breakpoint-reset($settings);
}

Version data entries

229 entries across 167 versions & 12 rubygems

Version Path
jekyll-theme-basically-basic-1.4.3 _sass/basically-basic/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.16.6 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
jekyll-theme-basically-basic-1.4.2 _sass/basically-basic/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.16.5 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.16.4 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.16.3 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.16.2 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.16.1 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.16.0 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
sparrow-jekyll-theme-0.1.2 _sass/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.15.2 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
jekyll-theme-so-simple-3.1.2 _sass/so-simple/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.15.1 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.15.0 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.14.2 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.14.1 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.14.0 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.13.0 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.12.2 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss
minimal-mistakes-jekyll-4.12.1 _sass/minimal-mistakes/vendor/breakpoint/_settings.scss