mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fixes #25703
This commit is contained in:
parent
f3cec5e7f9
commit
9cf3ebbf2b
1 changed files with 1 additions and 13 deletions
|
@ -418,16 +418,4 @@ a {
|
|||
}
|
||||
{% endhighlight %}
|
||||
|
||||
You can also use our breakpoint variables in your media queries:
|
||||
|
||||
{% highlight css %}
|
||||
.content-secondary {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (min-width(var(--breakpoint-sm))) {
|
||||
.content-secondary {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
{% endhighlight %}
|
||||
While we include breakpoints in our CSS variables, they unfortunately cannot be used in media queries. These remain in the compiled CSS for backward compatibility given they can be utilized by JavaScript. [Learn more in the spec.](https://www.w3.org/TR/css-variables-1/#using-variables)
|
||||
|
|
Loading…
Reference in a new issue