summaryrefslogtreecommitdiff
path: root/default
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-03-24 14:07:18 +0100
committerJonas Smedegaard <dr@jones.dk>2021-03-24 15:46:07 +0100
commit60d2c201aa85c733abe2eedec06eea3e2a5074b9 (patch)
treebd13094a0fa6736567be3e547517c921fae76565 /default
parent97d4fd0a27d2a64de45fa54a0e8bacac871cb93c (diff)
sync default styling with ikiwiki 3.20150107
Diffstat (limited to 'default')
-rw-r--r--default/style.css45
1 files changed, 45 insertions, 0 deletions
diff --git a/default/style.css b/default/style.css
index 4c48e5c..fe1eb90 100644
--- a/default/style.css
+++ b/default/style.css
@@ -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;
+ }
+}