summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiri Reiter <siri@jones.dk>2016-02-24 00:05:09 +0100
committerSiri Reiter <siri@jones.dk>2016-02-24 00:05:09 +0100
commitd224455450c144433db1c13b938737db130d2434 (patch)
treea2f1a564081191243b3f81b0c0a5292548613b16
parentd1e88004bfff6710809e0e36df436af164a0b28e (diff)
Move responsive column count from test.
-rw-r--r--style.scss25
1 files changed, 25 insertions, 0 deletions
diff --git a/style.scss b/style.scss
index 367b882..e49dc7e 100644
--- a/style.scss
+++ b/style.scss
@@ -3,6 +3,10 @@
@import "compass/typography/links";
@import "../shared/themes/default/ikiwiki";
+// to make responsive functions and columns possible
+@import 'h5bp/helpers';
+@import 'compass/css3';
+
// site defaults
@include h5bp-normalize;
@include h5bp-main;
@@ -438,3 +442,24 @@ th {
margin-bottom: 0;
}
+//Responsive design
+@media screen and (max-width: 480px) {
+ .columns {
+ @include column-count(1);
+ }
+ .inlinepage {
+ margin: 0;
+ }
+}
+
+@media screen and (min-width: 480px) and (max-width: 700px) {
+ .columns {
+ @include column-count(2);
+ }
+}
+
+@media screen and (min-width: 701px) {
+ .columns {
+ @include column-count(3);
+ }
+}