about summary refs log tree commit diff
path: root/app/assets/stylesheets
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-12 13:17:17 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-12 13:17:17 +0200
commit45776b55b0d97d6a6b8b202d3076f19f1d055573 (patch)
tree3cae814a3dfbfbc3b2bac45bf149e18845170922 /app/assets/stylesheets
parente2ff39bf5db8cecd2bbe348dc2c3cf431a6d36ec (diff)
Responsively changing layout to single-column + nav on smaller screens
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r--app/assets/stylesheets/components.scss28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/assets/stylesheets/components.scss b/app/assets/stylesheets/components.scss
index 78419988d..ef39a87ed 100644
--- a/app/assets/stylesheets/components.scss
+++ b/app/assets/stylesheets/components.scss
@@ -227,3 +227,31 @@
     margin-bottom: 20px;
   }
 }
+
+.columns-area {
+  margin: 10px;
+  margin-left: 0;
+}
+
+.column {
+  width: 330px;
+}
+
+.drawer {
+  width: 280px;
+}
+
+.column, .drawer {
+  margin-left: 10px;
+}
+
+@media screen and (max-width: 1024px) {
+  .column, .drawer {
+    width: 100%;
+    margin: 0;
+  }
+
+  .columns-area {
+    margin: 10px;
+  }
+}