diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-05-23 10:29:47 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-05-23 10:29:47 +0200 |
commit | c19f69360ac1ffff013f9b7b210f30024a9daa29 (patch) | |
tree | f2c1c2425f94106496c5260ffa4077cb8ea1c02f | |
parent | e0cea162a8124fbd22b6c764c9869244cc90d487 (diff) | |
parent | 822fc6b4b19388df666cdb28f7443101f1a1499b (diff) |
Merge branch 'default' into default-prep-sass
Conflicts (manually resolved):
default/_ikiwiki.scss
-rw-r--r-- | default/_ikiwiki.scss | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/default/_ikiwiki.scss b/default/_ikiwiki.scss index 02ccc9d..845b6fe 100644 --- a/default/_ikiwiki.scss +++ b/default/_ikiwiki.scss @@ -783,6 +783,53 @@ a.openid_large_btn:focus { } } +@mixin ikiwiki-mobile { +/* 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; + } +} +} + // all styles in same order as original Ikiwiki stylesheet @mixin ikiwiki-style-legacy { @include ikiwiki-header; @@ -826,6 +873,7 @@ a.openid_large_btn:focus { @include ikiwiki-plugin-openid; @include ikiwiki-plugin-attachment; @include ikiwiki-plugin-trail; + @include ikiwiki-mobile; } @mixin ikiwiki-site { @@ -885,6 +933,7 @@ a.openid_large_btn:focus { @include ikiwiki-plugin-editpage; @include ikiwiki-plugin-attachment; @include ikiwiki-plugin-openid; + @include ikiwiki-mobile; } @mixin ikiwiki { |