diff options
-rw-r--r-- | doc/style.css | 31 | ||||
-rw-r--r-- | themes/blueview/style.css | 23 |
2 files changed, 54 insertions, 0 deletions
diff --git a/doc/style.css b/doc/style.css index 4c48e5c7b..18bf531a6 100644 --- a/doc/style.css +++ b/doc/style.css @@ -548,3 +548,34 @@ 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; + } + + /* if the mobile browser is new enough, use flex layout to shuffle + * the sidebar to the end */ + .page { + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + flex-direction: column; + } + #pageheader { + -webkit-box-ordinal-group: -1; + -ms-flex-order: -1; + -webkit-order: -1; + order: -1; + } + .sidebar, #footer { + -webkit-box-ordinal-group: 1; + -ms-flex-order: 1; + -webkit-order: 1; + order: 1; + } +} diff --git a/themes/blueview/style.css b/themes/blueview/style.css index af1434574..7b3382c35 100644 --- a/themes/blueview/style.css +++ b/themes/blueview/style.css @@ -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; + } +} |