]> 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 0da075cac9f1308b8b88e98763513c4e9072b25a..17c1feb88dbe3568ed93c3054e64a04416a758e5 100644 (file)
@@ -1,20 +1,20 @@
 /* vars */
 :root {
-    --navbar-bg: #fff;
-    --jumbotron-bg: #eee;
-    --jumbotron-bg-fall: 65,225,64;
-    --copyright-bg: 170,178,171;
-    --link-color: 66,139,202;
-    --footer-link-color: 51,51,51;
+    --navbar-bg: #292f2f;
+    --jumbotron-bg: #3a4346;
+    --copyright-bg: #292f2f;
+    --link-color: #2fa6bc;
+    --footer-link-color: #ecf7fa;
     --nlink-col: #000;
-    --text-color: #333;
-    --footer-text-color: 51,51,51;
-    --copyright-text-color: 0,0,0;
-    --jumbotron-text-color: #333;
-    --border-color: 0,0,0;
-    --footer-border-color: 51,51,51;
-    --box-hover-color: #ddd;
+    --text-color: #292f2f;
+    --footer-text-color: #ecf7fa;
+    --copyright-text-color: #ecf7fa;
+    --jumbotron-text-color: #ecf7fa;
+    --border-color: #292f2f;
+    --box-color: #4c5456;
+    --box-hover-color: #292f2f;
     --box-round: 10px;
+    --max-width: 600px;
 }
 
 /* reset css for browser compat */
@@ -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;
@@ -34,7 +36,7 @@ body {
 }
 
 a {
-    color: rgb(var(--link-color));
+    color: var(--link-color);
     text-decoration: none;
 }
 
@@ -43,6 +45,7 @@ a {
     width: 100%;
     height: 50px;
     background-color: var(--navbar-bg);
+    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
     position: fixed;
     left: 0;
     right: 0;
@@ -51,8 +54,30 @@ a {
     flex-wrap: nowrap;
     justify-content: space-between;
     align-items: center;
-    border-bottom: 1px solid rgba(var(--border-color),.3);
+    border-bottom: 1px solid var(--border-color);
     z-index: 100;
+    padding-right: 5px;
+}
+[class*='fn-'] {
+    margin-top: auto;
+    margin-bottom: auto;
+    font-size: 30px;
+    color: #E6E6E6;
+    text-shadow: .5px .5px #000;
+}
+.green {
+    color: #4BEB4A;
+}
+
+@media all and (max-width: 600px) {
+    .navbar {
+        position: absolute;
+    }
+}
+
+.navbar a {
+    margin-top: 2px;
+    height: 40px;
 }
 
 .nlogo {
@@ -72,22 +97,45 @@ a {
 
 /* main */
 .container {
-    padding: 50px 0 0;
     width: 100%;
-    min-height: 68vh;
+    min-height: 98vh;
+    padding-top: 50px;
+    padding-bottom: 11.5rem;
 }
 
 .main {
-    margin-left: .5em;
-    margin-top: 1em;
-    margin-bottom: 1em;
+    margin: 0 auto;
+    margin-top: .75em;
+    padding: 0 .75em;
+    max-width: var(--max-width);
+    line-height: 1.4;
 }
 
 .main h1,
 .main h2,
 .main h3,
-.main p + p {
-    margin-top: .5em;
+.main h4,
+.main li,
+.main pre,
+.main p {
+    margin-top: .7em;
+}
+
+.main h1 + p,
+.main h2 + p,
+.main h3 + p,
+.main h3 + p {
+    margin-top: 0;
+}
+
+.main ul {
+    padding-left: 2em;
+    list-style-type: disc;
+}
+
+hr {
+    margin-top: .8em;
+    margin-bottom: .8em;
 }
 
 /* jumbotron */
@@ -95,17 +143,18 @@ a {
     position: relative;
     width: 100%;
     margin-top: -16px;
-    background: #000;
     background: var(--jumbotron-bg);
-    box-shadow: 0 3px 5px rgba(150,150,150,.36);
+    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
     color: var(--jumbotron-text-color);
+    padding: 2em 0;
 }
 
 .child {
     text-align: center;
-    margin: .5em;
+    margin: .5em auto;
     font-size: 32px;
     line-height: 48px;
+    max-width: 75%;
 }
 
 .box-container {
@@ -113,19 +162,19 @@ a {
     flex-wrap: wrap;
     justify-content: space-around;
     align-items: stretch;
+    max-width: 800px;
+    margin: 0 auto;
 }
 
 .box {
-    text-align: left;
+    text-align: center;
     text-decoration: none;
-    color: var(--text-color);
+    color: var(--jumbotron-text-color);
     margin-bottom: 5px;
     padding: 5px;
     flex-basis: 30%;
-    background-color: #fff;
+    background-color: var(--box-color);
     border-radius: var(--box-round);
-    -webkit-border-radius: var(--box-round);
-    -moz-border-radius: var(--box-round);
 }
 
 .box:hover,.box:active {
@@ -133,13 +182,13 @@ a {
 }
 
 .box div{
-    font-size: 28px;
-    line-height: 28px;
-    padding-left: 8px;
-    font-weight: 700;
     position: relative;
-    display: inline;
-    top: -10px;
+    top: initial;
+    font-size: 20px;
+    font-weight: 600;
+    line-height: 16px;
+    padding: 10px 0;
+    display: block;
 }
 
 .fa-users {
@@ -150,59 +199,70 @@ a {
     margin-bottom: 5px;
 }
 
-.fa-4x {
-    padding-left: 8px;
-}
-
 .title {
     text-align: center;
 }
 
-/* articles feed */
+/* articles */
 h1 {
     margin: 0;
 }
 
-div.art {
-    border-bottom: 1px solid rgba(var(--border-color),.3);
+.art-info {
+    line-height: 1.6;
+    display: flex;
+    flex-direction: row;
+    flex-wrap: wrap;
+    justify-content: space-between;
+    align-items: baseline;
 }
 
-div.art:last-child {
-    border-bottom: none;
+.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 {
+    display: inline-block;
+    text-align: baseline;
+    line-height: 1;
+    white-space: nowrap;
     color: #ccc;
-    margin: 0;
+    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;
+    }
 
-/* Article */
-.art-full h1,
-.art-full h2,
-.art-full h3,
-.art-full h4 {}
+    .artlist .art-info {
+        padding: 0 .75em;
+    }
+}
 
 /* help */
 .hmain {
@@ -217,9 +277,9 @@ a.hchild {
 /*height: 40px;*/
     width: 95%;
     text-align: center;
-    border-top: 1px solid rgba(var(--border-color),.6);
-    border-left: 1px solid rgba(var(--border-color),.6);
-    border-right: 1px solid rgba(var(--border-color),.6);
+    border-top: 1px solid var(--border-color);
+    border-left: 1px solid var(--border-color);
+    border-right: 1px solid var(--border-color);
 }
 
 a.hchild:hover,a.hchild:active {
@@ -238,7 +298,7 @@ a.hchild:hover,a.hchild:active {
 
 .hchild:last-child {
     margin-bottom: 10px;
-    border-bottom: 1px solid rgba(var(--border-color),.6);
+    border-bottom: 1px solid var(--border-color);
     -webkit-border-bottom-right-radius: var(--box-round);
     -webkit-border-bottom-left-radius: var(--box-round);
     -moz-border-radius-bottomright: var(--box-round);
@@ -249,31 +309,50 @@ a.hchild:hover,a.hchild:active {
 
 /* footer */
 .footers {
-    min-height: 30vh;
+    /*min-height: 30vh;*/
+    margin-top: -11rem;
+    min-height: 11rem;
 }
 
 .footer {
     background: var(--jumbotron-bg);
-    color: rgba(var(--footer-text-color),.9);
+    color: var(--footer-text-color);
     margin-top: 2vh;
     display: flex;
-    flex-wrap: nowrap;
-    min-height: 27vh;
+    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;
 }
 
 .footerchild {
     margin-top: .5em;
+    flex: 1 1 1px;
+    min-width: 12rem;
+}
+
+.footerchild:last-child {
+    margin-bottom: 1em;
+}
+
+@media all and (max-width: 60rem) {
+    .footer-push {
+        margin-left: auto;
+        width: max-content;
+    }
 }
 
 .footer a {
-    color: #000;
+    color: var(--footer-link-color);
+}
+
+.footer a:hover {
+    color: #fff;
 }
 
 .footer h2 {
-    margin-bottom: 9px;
+    margin-bottom: .1em;
     display: inline-block;
 }
 
@@ -287,7 +366,7 @@ a.hchild:hover,a.hchild:active {
     padding-left: 30px;
 }
 
-@media all and (max-width: 500px) {
+@media all and (max-width: 600px) {
     .footer {
         flex-direction: column;
     }
@@ -296,6 +375,10 @@ a.hchild:hover,a.hchild:active {
         width: 100%;
     }
 
+    .footer-push {
+        margin-left: 0;
+    }
+
     .footerchild ul li:last-child {
         margin-bottom: .5em;
     }
@@ -317,16 +400,31 @@ a.hchild:hover,a.hchild:active {
     .fa-4x {
         padding: 0;
         margin: 0;
+        width: 60px;
+        text-align: center;
+        font-size: 28px;
+    }
+
+    .box-container {
+        flex-direction: column;
+        margin: 0 .5em;
     }
 
     .box div {
+        font-size: 22px;
+        line-height: 22px;
+        padding-left: 8px;
+        font-weight: 700;
         position: relative;
-        top: initial;
-        font-size: 16px;
-        font-weight: normal;
-        line-height: 16px;
-        padding: 10px 0;
-        display: block;
+        display: inline;
+        text-align: center;
+
+    }
+
+    .box {
+        text-align: left;
+        border-radius: calc(var(--box-round) / 2);
+        margin: 5px 0;
     }
 }
 
@@ -337,16 +435,16 @@ a.hchild:hover,a.hchild:active {
 
 .copyright {
     display: flex;
-    flex-wrap: nowrap;
+    flex-wrap: wrap;
     justify-content: space-between;
     align-items: center;
-    background: rgba(var(--copyright-bg),.5);
-    height: 3vh;
-    color: rgba(var(--copyright-text-color),.8);
+    background: var(--copyright-bg);
+    min-height: 1.5rem;
+    color: var(--copyright-text-color);
 }
 
 a.copyright {
-    background: rgba(var(--copyright-bg),.5);
+    background: var(--copyright-bg);
     margin-bottom: 0;
     margin-top: 0;
     margin-left: .5em;
@@ -356,7 +454,7 @@ a.copyright {
 }
 
 .copyright a img {
-    height: 3vh;
+    height: 1.5rem;
     width: auto;
 }
 
@@ -367,13 +465,3 @@ a.copyright {
     margin-right: .5em;
     text-align: right;
 }
-
-@media all and (max-width: 500px) {
-    .copyright {
-        height: 5vh;
-    }
-
-    .copyright a img {
-        height: 5vh;
-    }
-}