diff options
author | Mark Otto <markd.otto@gmail.com> | 2016-10-28 08:06:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-28 08:06:47 +0300 |
commit | 8f0429973dd06a1770494f957a5a8f0e85de0ac5 (patch) | |
tree | 69e319dc9a29719772fc6eefb00c5229dcff9498 | |
parent | 2df2efc1fbee2a152b5347c7d8e9651f1c1c2265 (diff) | |
parent | f677806463edf3da8df8a847433dfc027660c66b (diff) |
Merge pull request #20441 from cortopy/visibility-mixin
Visibility mixin
-rw-r--r-- | _visibility.scss | 5 | ||||
-rw-r--r-- | scss/_mixins.scss | 1 | ||||
-rw-r--r-- | scss/utilities/_visibility.scss | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/_visibility.scss b/_visibility.scss new file mode 100644 index 0000000000..88c50b05d5 --- /dev/null +++ b/_visibility.scss @@ -0,0 +1,5 @@ +// Visibility + +@mixin invisible { + visibility: hidden !important; +} diff --git a/scss/_mixins.scss b/scss/_mixins.scss index 8c2b9290ea..375e8486d2 100644 --- a/scss/_mixins.scss +++ b/scss/_mixins.scss @@ -28,6 +28,7 @@ @import "mixins/text-emphasis"; @import "mixins/text-hide"; @import "mixins/text-truncate"; +@import "mixins/visibility"; // // Components @import "mixins/alert"; diff --git a/scss/utilities/_visibility.scss b/scss/utilities/_visibility.scss index cdb1428698..fcedc9cb91 100644 --- a/scss/utilities/_visibility.scss +++ b/scss/utilities/_visibility.scss @@ -3,7 +3,7 @@ // .invisible { - visibility: hidden !important; + @include invisible(); } // Responsive visibility utilities |