Summary Files Commits Branches @commit @diff @stats
path: root / src / layout.less
diff options
context:
space:
mode:
Commit5a9b45d27f0b3e950709ca921c7f962b388d1c5f (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-03 17:33:42 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-03-03 17:33:42 +0800
Files0b112d6e7277b4a98c5853c60e7ad869f43465cf /src/layout.less
Spectre-Dark-Gruvbox-5a9b45d27f0b3e950709ca921c7f962b388d1c5f.tar
Spectre-Dark-Gruvbox-5a9b45d27f0b3e950709ca921c7f962b388d1c5f.tar.gz
Spectre-Dark-Gruvbox-5a9b45d27f0b3e950709ca921c7f962b388d1c5f.zip
Parentd3f234693d75a3bad237449e9ce174e086d955ec (diff)
Add Responsive Visibility and new examples
1 files changed, 22 insertions, 0 deletions
-rw-r--r--src/layout.less22
diff --git a/src/layout.less b/src/layout.less
index 199bb73..7ebfea2 100644
--- a/src/layout.less
+++ b/src/layout.less
@@ -350,28 +350,50 @@
}
// Responsive breakpoint system
+.show-xs,
+.show-sm,
+.show-md,
+.show-lg,
+.show-xl {
+ display: none !important;
+}
@media screen and (max-width: @size-xs) {
.hide-xs {
display: none !important;
}
+ .show-xs {
+ display: block !important;
+ }
}
@media screen and (max-width: @size-sm) {
.hide-sm {
display: none !important;
}
+ .show-sm {
+ display: block !important;
+ }
}
@media screen and (max-width: @size-md) {
.hide-md {
display: none !important;
}
+ .show-md {
+ display: block !important;
+ }
}
@media screen and (max-width: @size-lg) {
.hide-lg {
display: none !important;
}
+ .show-lg {
+ display: block !important;
+ }
}
@media screen and (max-width: @size-xl) {
.hide-xl {
display: none !important;
}
+ .show-xl {
+ display: block !important;
+ }
}