]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - static/css/style.css
fix date positioning
[irc/freenode/web-7.0.git] / static / css / style.css
index c1b4efd30745946cfc18cdb6e776c4efa8828cb2..17c1feb88dbe3568ed93c3054e64a04416a758e5 100644 (file)
@@ -27,6 +27,8 @@
 /* global */
 body {
     font-family: 'Open Sans';
+    font-feature-settings: "lnum";
+    font-variant-numeric: lining-nums;
     color: var(--text-color);
     font-size: 14px;
     min-height: 100vh;
@@ -201,49 +203,54 @@ hr {
     text-align: center;
 }
 
-/* articles feed */
+/* articles */
 h1 {
     margin: 0;
 }
 
-div.art {
-    clear: right;
-    flex-grow: 1;
+.art-info {
+    line-height: 1.6;
+    display: flex;
+    flex-direction: row;
+    flex-wrap: wrap;
+    justify-content: space-between;
+    align-items: baseline;
 }
 
-div.artlist {
-    max-width: var(--max-width);
-    margin: 0 auto;
-    margin-top: .5em;
+.art-info h1 {
+    margin-top: 0;
+    display: inline;
 }
 
-div.art:not(:first-child) {
-    border-top: 1px solid var(--border-color);
+.art-body {
+    margin-bottom: 1em;
 }
 
-b.art {
-    margin-bottom: 0;
-    font-size: 18px;
+.artlist {
+    max-width: var(--max-width);
+    margin: 0 auto;
+    margin-top: .5em;
 }
 
-p.art-ingress {
-    font-style: italic;
-    margin: 0;
+.artlist .art-info:not(:first-child) {
+    border-top: 1px solid var(--border-color);
 }
 
 .art-date {
-    float: right;
-    color: #ccc;
-    line-height: 24px;
-    font-feature-settings: tnum;
-}
-
-p.heading {
+    display: inline-block;
+    text-align: baseline;
+    line-height: 1;
     white-space: nowrap;
+    color: #ccc;
+    font-feature-settings: "tnum";
+    font-variant-numeric: tabular-nums;
 }
 
-p.art-link {
-    margin-top: 0;
+.art-nav {
+    display: flex;
+    flex-direction: row;
+    justify-content: space-between;
+    width: 100%;
 }
 
 @media all and (max-width: 600px) {
@@ -252,7 +259,7 @@ p.art-link {
         padding-right: 0;
     }
 
-    div.art {
+    .artlist .art-info {
         padding: 0 .75em;
     }
 }