diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-05-23 09:38:49 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-05-23 09:38:49 +0200 |
commit | aaea4df364d1374d83c10f0b001ccf8e57353055 (patch) | |
tree | 8eed1e78ca974d93b65b227f25b417ee2dbde785 /style.css | |
parent | b09e27989b8786806ec12c9023ccdabc660f8901 (diff) |
Sync with ikiwiki 3.20150329.
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 45 |
1 files changed, 45 insertions, 0 deletions
@@ -548,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; + } +} |