Sha256: 375ca2ca194058453b30d104eaab0b9712b6226f7b083a46859d38fe239fb334

Contents?: true

Size: 1.01 KB

Versions: 30

Compression:

Stored size: 1.01 KB

Contents

// Susy Box Sizing
// =================

// Global Box Sizing
// -----------------
// Set a box model globally on all elements.
// - [$box]: border-box | content-box
// - [$inherit]: true | false
@mixin global-box-sizing(
  $box: susy-get(global-box-sizing),
  $inherit: false
) {
  $inspect: $box;

  @if $inherit {
    @at-root {
       html { @include output((box-sizing: $box)); }
       *, *:before, *:after { box-sizing: inherit; }
     }
  } @else {
    *, *:before, *:after { @include output((box-sizing: $box)); }
  }

  @include susy-inspect(global-box-sizing, $inspect);
  @include update-box-model($box);
}

// Border Box Sizing
// -----------------
// A legacy shortcut...
// - [$inherit]: true | false
@mixin border-box-sizing(
  $inherit: false
) {
  @include global-box-sizing(border-box, $inherit);
}

// Update Box Model
// ----------------
// PRIVATE: Updates global box model setting
@mixin update-box-model(
  $box
) {
  @if $box != susy-get(global-box-sizing) {
  @include susy-set(global-box-sizing, $box);
  }
}

Version data entries

30 entries across 30 versions & 7 rubygems

Version Path
sparrow-jekyll-theme-0.1.2 _sass/vendor/susy/susy/language/susy/_box-sizing.scss
susy-2.2.14 sass/susy/language/susy/_box-sizing.scss
susy-2.2.13 sass/susy/language/susy/_box-sizing.scss
minimal-mistakes-jekyll-4.4.1 _sass/minimal-mistakes/vendor/susy/susy/language/susy/_box-sizing.scss
jekyll-theme-basically-basic-1.0.0 _sass/basically-basic/vendor/susy/language/susy/_box-sizing.scss
jekyll-theme-woforo-0.2.3 _sass/vendor/susy/susy/language/susy/_box-sizing.scss
jekyll-theme-woforo-0.2.2 _sass/vendor/susy/susy/language/susy/_box-sizing.scss
jekyll-theme-woforo-0.2.1 _sass/vendor/susy/susy/language/susy/_box-sizing.scss
jekyll-theme-woforo-0.2.0 _sass/vendor/susy/susy/language/susy/_box-sizing.scss
minimal-mistakes-jekyll-4.1.1 _sass/vendor/susy/susy/language/susy/_box-sizing.scss
minimal-mistakes-jekyll-4.0.1 _sass/vendor/susy/susy/language/susy/_box-sizing.scss
susy-2.2.12 sass/susy/language/susy/_box-sizing.scss
susy-2.2.11 sass/susy/language/susy/_box-sizing.scss
susy-2.2.10 sass/susy/language/susy/_box-sizing.scss
susy-2.2.9 sass/susy/language/susy/_box-sizing.scss
susy-2.2.8 sass/susy/language/susy/_box-sizing.scss
susy-2.2.7 sass/susy/language/susy/_box-sizing.scss
ghost-manager-1.0.0 magneto/source/assets/bower_components/susy/sass/susy/language/susy/_box-sizing.scss
susy-2.2.6 sass/susy/language/susy/_box-sizing.scss
mifflin-0.1.1 vendor/assets/bower_components/susy/sass/susy/language/susy/_box-sizing.scss