mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Deprecate invisible()
mixin (#28066)
This commit is contained in:
parent
c0e42cb89e
commit
bcfb7ed159
3 changed files with 8 additions and 4 deletions
|
@ -4,4 +4,5 @@
|
|||
|
||||
@mixin invisible($visibility) {
|
||||
visibility: $visibility !important;
|
||||
@include deprecate("`invisible()`", "v4.3.0", "v5");
|
||||
}
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
// stylelint-disable declaration-no-important
|
||||
|
||||
//
|
||||
// Visibility utilities
|
||||
//
|
||||
|
||||
.visible {
|
||||
@include invisible(visible);
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
.invisible {
|
||||
@include invisible(hidden);
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
|
|
@ -17,13 +17,14 @@ Apply `.visible` or `.invisible` as needed.
|
|||
{% highlight scss %}
|
||||
// Class
|
||||
.visible {
|
||||
visibility: visible;
|
||||
visibility: visible !important;
|
||||
}
|
||||
.invisible {
|
||||
visibility: hidden;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
|
||||
// Usage as a mixin
|
||||
// Warning: The `invisible()` mixin has been deprecated as of v4.3.0. It will be removed entirely in v5.
|
||||
.element {
|
||||
@include invisible(visible);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue