1
0
Fork 0
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:
Martijn Cuppens 2019-02-07 18:19:00 +01:00 committed by XhmikosR
parent c0e42cb89e
commit bcfb7ed159
3 changed files with 8 additions and 4 deletions

View file

@ -4,4 +4,5 @@
@mixin invisible($visibility) {
visibility: $visibility !important;
@include deprecate("`invisible()`", "v4.3.0", "v5");
}

View file

@ -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;
}

View file

@ -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);
}