mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Merge pull request #17259 from twbs/v4gc
v4: Conditional predefined grid classes
This commit is contained in:
commit
a748e251fd
@ -23,8 +23,10 @@
|
|||||||
//
|
//
|
||||||
// Rows contain and clear the floats of your columns.
|
// Rows contain and clear the floats of your columns.
|
||||||
|
|
||||||
.row {
|
@if $enable-grid-classes {
|
||||||
@include make-row();
|
.row {
|
||||||
|
@include make-row();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -32,14 +34,16 @@
|
|||||||
//
|
//
|
||||||
// Common styles for small and large grid columns
|
// Common styles for small and large grid columns
|
||||||
|
|
||||||
@include make-grid-columns();
|
@if $enable-grid-classes {
|
||||||
|
@include make-grid-columns();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Flex variation
|
// Flex variation
|
||||||
//
|
//
|
||||||
// Custom styles for additional flex alignment options.
|
// Custom styles for additional flex alignment options.
|
||||||
|
|
||||||
@if $enable-flex {
|
@if $enable-flex and $enable-grid-classes {
|
||||||
|
|
||||||
// Flex column reordering
|
// Flex column reordering
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ $enable-shadows: false !default;
|
|||||||
$enable-gradients: false !default;
|
$enable-gradients: false !default;
|
||||||
$enable-transitions: false !default;
|
$enable-transitions: false !default;
|
||||||
$enable-hover-media-query: false !default;
|
$enable-hover-media-query: false !default;
|
||||||
|
$enable-grid-classes: true !default;
|
||||||
|
|
||||||
|
|
||||||
// Spacing
|
// Spacing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user