]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/style.css
move this with the real plugins, since it's now implemented - not sure it was still...
[git.ikiwiki.info.git] / doc / style.css
index 067a3bf7a65f4449bcd2452407c137dc5c27dc2b..fe1eb903df00348e72887b3e3fd09aeba47fa0a2 100644 (file)
@@ -5,10 +5,8 @@
  */
 
 /* html5 compat */
-article,
-header,
-footer,
-nav {
+article,aside,details,figcaption,figure,
+footer,header,hgroup,menu,nav,section {
        display: block;
 }
 
@@ -550,3 +548,48 @@ a.openid_large_btn:focus {
 .trailsep {
        display: none;
 }
+
+/* mobile/small-screen-friendly layout */
+@media (max-width: 600px) {
+       .sidebar {
+               width: auto;
+               float: none;
+               margin-top: 0;
+               border: none;
+       }
+
+       /* if the mobile browser is new enough, use flex layout to shuffle
+        * the sidebar to the end */
+       .page {
+               display: -webkit-box;
+               display: -webkit-flexbox;
+               display: -webkit-flex;
+               display: -moz-box;
+               display: -ms-flexbox;
+               display: flex;
+               -webkit-box-orient: vertical;
+               -webkit-flex-direction: tb;
+               -webkit-flex-direction: column;
+               -webkit-flex-flow: column;
+               -ms-flex-direction: column;
+               flex-direction: column;
+       }
+       #pageheader {
+               -webkit-box-ordinal-group: -1;
+               -webkit-order: -1;
+               -ms-box-ordinal-group: -1;
+               -ms-flex-order: -1;
+               order: -1;
+       }
+       .sidebar, #footer {
+               -webkit-box-ordinal-group: 1;
+               -webkit-order: 1;
+               -ms-box-ordinal-group: 1;
+               -ms-flex-order: 1;
+               order: 1;
+       }
+
+       .blogform, #blogform {
+               padding: 4px 4px;
+       }
+}