]> git.draconx.ca Git - homepage.git/blobdiff - content/style.scss
Fix media queries that disable justification.
[homepage.git] / content / style.scss
index b0c042cdc6f5f3a44f784de6e016dda0ead212f8..82b872028fc1db23c80e229cbcc3a0b33f59196f 100644 (file)
@@ -50,11 +50,13 @@ a:active { color: $linkactivecolour; }
 
 h1 { @include header_size(60em, 2em); }
 h2 { @include header_size(60em, 1.5em); }
+h5 { @include header_size(60em, 1em); }
 
 p>img { max-width: 40em; width: 100%; height: auto; }
 
 p, dt, dd, li {
     text-align: justify;
+    @media (max-width: 28em) { text-align: left; }
     padding: 0;
     margin: 0;
 }
@@ -65,7 +67,7 @@ p, table, div, ul, ol, dl, hr {
     margin: 0;
 }
 
-p, table, body>div { margin: 1em 0; }
+p, table, body>div, h5 { margin: 1em 0; }
 
 li { margin: 0 0 0 2em; }
 dd { margin: 0 0 0 1em; }
@@ -88,9 +90,7 @@ kbd {
     color: $annotationcolour;
 
     a:link, a:visited { color: inherit; }
-}
-@media not screen {
-    .permalink { visibility: hidden; }
+    @media not screen { visibility: hidden; }
 }
 
 // General table styles.
@@ -156,14 +156,13 @@ table.cc {
 }
 
 // Site footer rules
-#footer {
+#footer, #article-info {
     text-align: center;
     max-width: 44em;
     padding: 0 3em;
     margin: 0;
 
     p {
-        color: $annotationcolour;
         display: inline-block;
         font-size: 0.8em;
         max-width: 100%;
@@ -171,6 +170,9 @@ table.cc {
     }
 }
 
+#footer p { color: $annotationcolour; }
+#article-info p { font-style: italic; }
+
 // "unordered" lists with explicit ordering in content
 ul.ordered > {
     li { list-style: none; }
@@ -192,6 +194,3 @@ ul.ordered > {
     #sitetitle * { float: none; }
     #footer { padding: 0 1em; }
 }
-@media (max-width: 28em) {
-    * { text-align: left; }
-}