mirror of
https://github.com/twbs/bootstrap.git
synced 2025-06-05 00:02:25 -04:00
feat: checks for $grid-breakpoints
map list (#30609)
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
This commit is contained in:
parent
d2325b65c8
commit
a8883a3b96
@ -23,11 +23,13 @@
|
|||||||
// Starts at zero
|
// Starts at zero
|
||||||
// Used to ensure the min-width of the lowest breakpoint starts at 0.
|
// Used to ensure the min-width of the lowest breakpoint starts at 0.
|
||||||
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
|
@mixin _assert-starts-at-zero($map, $map-name: "$grid-breakpoints") {
|
||||||
|
@if length($map) > 0 {
|
||||||
$values: map-values($map);
|
$values: map-values($map);
|
||||||
$first-value: nth($values, 1);
|
$first-value: nth($values, 1);
|
||||||
@if $first-value != 0 {
|
@if $first-value != 0 {
|
||||||
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
|
@warn "First breakpoint in #{$map-name} must start at 0, but starts at #{$first-value}.";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Internal Bootstrap function to turn maps into its negative variant.
|
// Internal Bootstrap function to turn maps into its negative variant.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user