]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - static/css/style.css
Merge branch 'master' into better-footer
[irc/freenode/web-7.0.git] / static / css / style.css
index 28e0a73a1bfcc746686ef3e8ffd64529526e6d17..7a37d78697db19b914f7b6c8b492b579dd1fdd6c 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;
@@ -106,23 +108,36 @@ a {
     margin-top: .75em;
     padding: 0 .75em;
     max-width: var(--max-width);
-    line-height: 1.3;
+    line-height: 1.4;
 }
 
 .main h1,
 .main h2,
 .main h3,
+.main h4,
 .main li,
-.main p + p,
-.main ul + p {
+.main pre,
+.main p {
     margin-top: .7em;
 }
 
-.main ul {
+.main h1 + p,
+.main h2 + p,
+.main h3 + p,
+.main h3 + p {
+    margin-top: 0;
+}
+
+ul {
     padding-left: 2em;
     list-style-type: disc;
 }
 
+hr {
+    margin-top: .8em;
+    margin-bottom: .8em;
+}
+
 /* jumbotron */
 .jumbotron {
     position: relative;
@@ -156,10 +171,11 @@ a {
     text-decoration: none;
     color: var(--jumbotron-text-color);
     margin-bottom: 5px;
-    padding: 5px;
     flex-basis: 30%;
+    min-width: 26%;
     background-color: var(--box-color);
     border-radius: var(--box-round);
+    padding: 1em;
 }
 
 .box:hover,.box:active {
@@ -172,8 +188,8 @@ a {
     font-size: 20px;
     font-weight: 600;
     line-height: 16px;
-    padding: 10px 0;
     display: block;
+    margin-top: .75em;
 }
 
 .fa-users {
@@ -188,57 +204,65 @@ a {
     text-align: center;
 }
 
-/* articles feed */
+/* articles */
 h1 {
     margin: 0;
 }
 
-div.art {
-    clear: right;
-    flex-grow: 1;
-}
-
-div.artlist {
+.art-info {
+    line-height: 1.6;
     display: flex;
+    flex-direction: row;
     flex-wrap: wrap;
-    justify-content: flex-start;
-    align-items: stretch;
-    max-width: var(--max-width);
-    margin: 0 auto;
-    margin-top: .5em;
+    justify-content: space-between;
+    align-items: baseline;
 }
 
-div.art:not(:first-child) {
-    border-top: 1px solid var(--border-color);
+.art-info h1 {
+    margin-top: 0;
+    display: inline;
 }
 
-b.art {
-    margin-bottom: 0;
-    font-size: 18px;
+.art-body {
+    margin-bottom: 1em;
 }
 
-p.art {
-    margin: 0;
+.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;
-    margin: 0 .5em;
-    line-height: 24px;
+    display: inline-block;
+    text-align: baseline;
+    line-height: 1;
+    white-space: nowrap;
+    color: #bdbcbc;
+    font-feature-settings: "tnum";
+    font-variant-numeric: tabular-nums;
 }
 
-p.heading {
-    white-space: nowrap;
+.art-nav {
+    display: flex;
+    flex-direction: row;
+    justify-content: space-between;
+    width: 100%;
 }
 
-p.art-link {
-    margin-top: 0;
+@media all and (max-width: 600px) {
+    .main.artlist {
+        padding-left: 0;
+        padding-right: 0;
+    }
+
+    .artlist .art-info {
+        padding: 0 .75em;
+    }
 }
 
 /* help */
@@ -284,6 +308,16 @@ a.hchild:hover,a.hchild:active {
     border-bottom-left-radius: var(--box-round);
 }
 
+/* faq */
+.faq-index {
+    list-style-type: none;
+    padding-left: 0;
+}
+
+.faq-index li {
+    font-size: 120%;
+}
+
 /* footer */
 .footers {
     /*min-height: 30vh;*/
@@ -294,19 +328,23 @@ a.hchild:hover,a.hchild:active {
 .footer {
     background: var(--jumbotron-bg);
     color: var(--footer-text-color);
+    width: 100%;
     margin-top: 2vh;
+    box-shadow: 0 -3px 5px rgba(150,150,150,.36);
+    min-height: 9.5rem;
+}
+
+.footer-container {
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
     align-items: flex-start;
-    box-shadow: 0 -3px 5px rgba(150,150,150,.36);
-    min-height: 9.5rem;
+    margin: 0 auto;
 }
 
 .footerchild {
+    margin: 0 2em;
     margin-top: .5em;
-    flex: 1 1 1px;
-    min-width: 12rem;
 }
 
 .footerchild:last-child {
@@ -320,11 +358,11 @@ a.hchild:hover,a.hchild:active {
     }
 }
 
-.footer a {
+footer a {
     color: var(--footer-link-color);
 }
 
-.footer a:hover {
+footer a:hover {
     color: #fff;
 }
 
@@ -333,7 +371,8 @@ a.hchild:hover,a.hchild:active {
     display: inline-block;
 }
 
-.footerchild ul,.footerchild ul ul {
+.footerchild ul, .footerchild ul ul {
+    padding-left: 0;
     margin-left: 10px;
     margin-right: 10px;
     list-style-type: none;
@@ -405,40 +444,47 @@ a.hchild:hover,a.hchild:active {
     }
 }
 
-.footer h2,.footer h3 {
+.footer h2, .footer h3 {
     margin-left: 10px;
     margin-right: 10px;
 }
 
-.copyright {
+footer.copyright {
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
-    align-items: center;
     background: var(--copyright-bg);
     min-height: 1.5rem;
     color: var(--copyright-text-color);
+    padding-left: .5em;
+    padding-right: .5em;
+    overflow: hidden;
 }
 
-a.copyright {
-    background: var(--copyright-bg);
-    margin-bottom: 0;
-    margin-top: 0;
-    margin-left: .5em;
-    margin-right: .5em;
-    width: auto;
-    height: auto;
+footer.copyright div {
+    display: flex;
+    align-items: center;
+    height: 1.5rem;
+    line-height: 1.5rem;
+    vertical-align: top;
 }
 
-.copyright a img {
+.copyright * {
+    margin: 0;
     height: 1.5rem;
-    width: auto;
+    line-height: 1.5rem;
 }
 
-.copyright p {
-    margin-bottom: 0;
-    margin-top: 0;
-    margin-left: .5em;
+.copyright .fa {
+    height: 100%;
+}
+
+.copyright .footer-link {
+    height: 28px;
     margin-right: .5em;
-    text-align: right;
+}
+
+.copyright img {
+    height: 1.5rem;
+    width: auto;
 }