PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
core
/
base
/
resources
/
assets
/
sass
/
base
/
bootstrap
/
mixins
// Framework grid generation // // Used only by Bootstrap to generate the correct number of grid classes given // any value of `$grid-columns`. // [converter] This is defined recursively in LESS, but Sass supports real loops @use "sass:math"; @mixin make-grid-columns($i: 1, $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}") { @for $i from (1 + 1) through $grid-columns { $list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}"; } #{$list} { position: relative; // Prevent columns from collapsing when empty min-height: 1px; // Inner gutter via padding padding-left: ceil(($grid-gutter-width * 0.5)); padding-right: floor(($grid-gutter-width * 0.5)); } } // [converter] This is defined recursively in LESS, but Sass supports real loops @mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") { @for $i from (1 + 1) through $grid-columns { $list: "#{$list}, .col-#{$class}-#{$i}"; } #{$list} { float: left; } } @mixin calc-grid-column($index, $class, $type) { @if ($type == width) and ($index > 0) { .col-#{$class}-#{$index} { width: percentage(math.div($index, $grid-columns)); } } @if ($type == push) and ($index > 0) { .col-#{$class}-push-#{$index} { left: percentage(math.div($index, $grid-columns)); } } @if ($type == push) and ($index == 0) { .col-#{$class}-push-0 { left: auto; } } @if ($type == pull) and ($index > 0) { .col-#{$class}-pull-#{$index} { right: percentage(math.div($index, $grid-columns)); } } @if ($type == pull) and ($index == 0) { .col-#{$class}-pull-0 { right: auto; } } @if ($type == offset) { .col-#{$class}-offset-#{$index} { margin-left: percentage(math.div($index, $grid-columns)); } } } // [converter] This is defined recursively in LESS, but Sass supports real loops @mixin loop-grid-columns($columns, $class, $type) { @for $i from 0 through $columns { @include calc-grid-column($i, $class, $type); } } // Create grid for specific class @mixin make-grid($class) { @include float-grid-columns($class); @include loop-grid-columns($grid-columns, $class, width); @include loop-grid-columns($grid-columns, $class, pull); @include loop-grid-columns($grid-columns, $class, push); @include loop-grid-columns($grid-columns, $class, offset); }
[-] _alerts.scss
[edit]
[-] _border-radius.scss
[edit]
[-] _resize.scss
[edit]
[-] _clearfix.scss
[edit]
[-] _grid-framework.scss
[edit]
[-] _labels.scss
[edit]
[-] _progress-bar.scss
[edit]
[-] _reset-text.scss
[edit]
[-] _list-group.scss
[edit]
[-] _background-variant.scss
[edit]
[+]
..
[-] _buttons.scss
[edit]
[-] _text-overflow.scss
[edit]
[-] _reset-filter.scss
[edit]
[-] _forms.scss
[edit]
[-] _table-row.scss
[edit]
[-] _center-block.scss
[edit]
[-] _nav-divider.scss
[edit]
[-] _nav-vertical-align.scss
[edit]
[-] _opacity.scss
[edit]
[-] _panels.scss
[edit]
[-] _hide-text.scss
[edit]
[-] _text-emphasis.scss
[edit]
[-] _grid.scss
[edit]
[-] _responsive-visibility.scss
[edit]
[-] _image.scss
[edit]
[-] _size.scss
[edit]
[-] _pagination.scss
[edit]
[-] _vendor-prefixes.scss
[edit]
[-] _gradients.scss
[edit]
[-] _tab-focus.scss
[edit]