]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - themes/blueview/style.css
Make the layout adjust to narrow viewports better
[git.ikiwiki.info.git] / themes / blueview / style.css
index af1434574b537259e4bbf77fee8780788fe18856..7b3382c357825f8eb514da00ef8cc36f4bfb2042 100644 (file)
@@ -279,3 +279,26 @@ body {
 
 }
 
+/* lose the border on mobile */
+@media (max-width: 600px) {
+       body {
+               padding: 0;
+       }
+       .page {
+               border: none;
+               margin: 0;
+       }
+       #pagebody {
+               margin: auto;
+               border: none;
+       }
+}
+
+/* cancel the minimum width if it would mean scrollbars */
+@media (max-width: 850px) {
+       .page {
+               width: auto;
+               min-width: 0;
+               padding: 0;
+       }
+}