mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-31 19:50:22 +00:00
Avoid null value (#27570)
This commit is contained in:
parent
38e9e2b82c
commit
793b83fda8
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
// md
|
||||
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
|
||||
$n: index($breakpoint-names, $name);
|
||||
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
||||
@return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
||||
}
|
||||
|
||||
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
||||
|
|
|
|||
Loading…
Reference in a new issue