Sha256: 9241465454a6f64ee2013903c794b90a8adc42bb40145cdd81991c23b0ca45c2

Contents?: true

Size: 517 Bytes

Versions: 15

Compression:

Stored size: 517 Bytes

Contents

//////////////////////////////
// Box Sizing Mixin
//////////////////////////////
$box-sizing-extend: false !default;

@mixin box-sizing($value, $extend: $box-sizing-extend) {
  @if $extend {
    @extend %singularity-#{$value};
  }
  @else {
    -moz-box-sizing: $value;
    box-sizing: $value;
  }
}

%singularity-content-box {
  @include box-sizing(content-box, false);
}

%singularity-border-box {
  @include box-sizing(border-box, false);
}

%singularity-padding-box {
  @include box-sizing(padding-box, false);
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
singularitygs-1.8.0 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.7.1 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.7.0 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.6.2 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.6.1 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.5.1 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.5.0 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.4.0 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.3.0 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.2.3 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.2.1 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.2.0 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.2.0.rc.6 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.2.0.rc.3 stylesheets/singularitygs/helpers/_box-sizing.scss
singularitygs-1.2.0.rc.1 stylesheets/singularitygs/helpers/_box-sizing.scss