Summary Files Commits Branches @commit @diff @stats
path: root / src / layout.less
diff options
context:
space:
mode:
Commita6baa2b684e0e32d3b2efa44b3a524dcda5997a3 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-03 19:28:00 +0800
Committer
 GitHub <noreply@github.com>
2017-03-03 19:28:00 +0800
Filese4796bf42fac9e44a2fbce26908eab03703a0c35 /src/layout.less
Spectre-Dark-Gruvbox-a6baa2b684e0e32d3b2efa44b3a524dcda5997a3.tar
Spectre-Dark-Gruvbox-a6baa2b684e0e32d3b2efa44b3a524dcda5997a3.tar.gz
Spectre-Dark-Gruvbox-a6baa2b684e0e32d3b2efa44b3a524dcda5997a3.zip
Parent30dd6ac6e84621b30a64d5fa47b4830b0b26c28c (diff)
Parentedd52afed611bf9aff92a7db7f5a331a8957db6f (diff)
Merge pull request #151 from picturepan2/feature/components v0.2.5
Feature/components
1 files changed, 25 insertions, 10 deletions
-rw-r--r--src/layout.less35
diff --git a/src/layout.less b/src/layout.less
index 05642aa..7ebfea2 100644
--- a/src/layout.less
+++ b/src/layout.less
@@ -6,16 +6,9 @@
padding-right: @layout-gutter;
width: 100%;
&:extend(.clearfix all);
-}
-// Grid sizes
-@media screen and (min-width: (960px + 2 * @html-font-size * @layout-gutter)) {
- .grid-960 {
- width: 96rem + 2 * @layout-gutter;
- }
-}
-@media screen and (min-width: (480px + 2 * @html-font-size * @layout-gutter)) {
- .grid-480 {
- width: 48rem + 2 * @layout-gutter;
+
+ &.grid-960 {
+ max-width: 96rem + 2 * @layout-gutter;
}
}
@@ -357,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;
+ }
}