Summary Files Commits Branches @commit @diff @stats
path: root / src / layout.less
diff options
context:
space:
mode:
Commit173fb18813d0173d0545d8ca55ab4f6a76f7fdc9 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-06 17:15:29 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-06 17:15:29 +0800
Files9704600acf6b5549526cf81e355e092dd8efceab /src/layout.less
Spectre-Dark-Gruvbox-173fb18813d0173d0545d8ca55ab4f6a76f7fdc9.tar
Spectre-Dark-Gruvbox-173fb18813d0173d0545d8ca55ab4f6a76f7fdc9.tar.gz
Spectre-Dark-Gruvbox-173fb18813d0173d0545d8ca55ab4f6a76f7fdc9.zip
Parent41504e8032d35a68b7f224cf49cfe9b09b6f8e34 (diff)
add responsive breakpoint system code
1 files changed, 37 insertions, 4 deletions
-rw-r--r--src/layout.less41
diff --git a/src/layout.less b/src/layout.less
index b101ca0..ccdd609 100644
--- a/src/layout.less
+++ b/src/layout.less
@@ -8,10 +8,17 @@
&:extend(.clearfix all);
}
@media screen and (min-width: 961px) {
- .container {
- &.grid-960 {
- width: 96rem;
- }
+ .grid-960 {
+ width: 96rem;
+ margin-left: auto;
+ margin-right: auto;
+ }
+}
+@media screen and (min-width: 481px) {
+ .grid-480 {
+ width: 48rem;
+ margin-left: auto;
+ margin-right: auto;
}
}
@@ -82,3 +89,29 @@
}
}
+// Responsive breakpoint system
+@media screen and (max-width: 480px) {
+ .hide-xs {
+ display: none !important;
+ }
+}
+@media screen and (max-width: 600px) {
+ .hide-sm {
+ display: none !important;
+ }
+}
+@media screen and (max-width: 840px) {
+ .hide-md {
+ display: none !important;
+ }
+}
+@media screen and (max-width: 960px) {
+ .hide-lg {
+ display: none !important;
+ }
+}
+@media screen and (max-width: 1280px) {
+ .hide-xl {
+ display: none !important;
+ }
+} \ No newline at end of file