]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - static/css/style.css
Fixed gh logo
[irc/freenode/web-7.0.git] / static / css / style.css
index 9b2a8d6ccef00193b3ea5333a3e4af07896014fc..9c705b8e36322a8a8fd37d739cb7aa57939ea0f5 100644 (file)
@@ -1,21 +1,39 @@
 /* vars */
 :root {
-    --navbar-bg: #292f2f;
+    /* backgrounds */
+    --navbar-bg:    #292f2f;
     --jumbotron-bg: #3a4346;
     --copyright-bg: #292f2f;
-    --link-color: #2fa6bc;
+    
+    /* link colors */
+    --link-color:        #2fa6bc;
     --footer-link-color: #ecf7fa;
-    --nlink-col: #000;
-    --text-color: #292f2f;
-    --footer-text-color: #ecf7fa;
+    --nlink-col:         #000000;
+    
+    /* text colors */
+    --text-color:           #292f2f;
+    --footer-text-color:    #ecf7fa;
     --copyright-text-color: #ecf7fa;
     --jumbotron-text-color: #ecf7fa;
-    --border-color: #292f2f;
-    --box-color: #4c5456;
+    --fn-grey:              #e6e6e6;
+    --fn-green:             #4beb4a;
+    --art-date-color:       #bdbcbc;
+    --footer-hover-color:   #ffffff;
+    
+    /* box colors */
+    --border-color:    #292f2f;
+    --box-color:       #4c5456;
     --box-hover-color: #292f2f;
-    --box-round: 10px;
-    --max-width: 600px;
+    --box-round:       10px;
+    
+    /* other */
+    --max-width:     600px;
+    --max-width-box: 800px;
+    --margin-box-fa: 5px;
 }
+@custom-media --max-sm all and (max-width: 600px);
+@custom-media --max-md all and (max-width: 800px);
+@custom-media --max-rem all and (max-width: 60rem);
 
 /* reset css for browser compat */
 * {
@@ -62,14 +80,14 @@ a {
     margin-top: auto;
     margin-bottom: auto;
     font-size: 30px;
-    color: #E6E6E6;
+    color: var(--fn-grey);
     text-shadow: .5px .5px #000;
 }
 .green {
-    color: #4BEB4A;
+    color: var(--fn-green);
 }
 
-@media all and (max-width: 600px) {
+@media (--max-sm); {
     .navbar {
         position: absolute;
     }
@@ -128,7 +146,7 @@ a {
     margin-top: 0;
 }
 
-.main ul {
+ul {
     padding-left: 2em;
     list-style-type: disc;
 }
@@ -162,7 +180,7 @@ hr {
     flex-wrap: wrap;
     justify-content: space-around;
     align-items: stretch;
-    max-width: 800px;
+    max-width: var(--max-width-box);
     margin: 0 auto;
 }
 
@@ -171,10 +189,11 @@ hr {
     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 {
@@ -187,34 +206,80 @@ hr {
     font-size: 20px;
     font-weight: 600;
     line-height: 16px;
-    padding: 10px 0;
     display: block;
+    margin-top: .75em;
 }
 
 .fa-users {
-    margin-top: 5px;
+    margin-top: var(--margin-box-fa);
 }
 
 .fa-comment,.fa-question {
-    margin-bottom: 5px;
+    margin-bottom: var(--margin-box-fa);
 }
 
 .title {
     text-align: center;
 }
 
+@media (--max-md) {
+    .box {
+        text-align: center;
+    }
+
+    .child {
+        font-size: 20px;
+        line-height: 30px;
+        padding: 10px 0 5px;
+    }
+
+    .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;
+        display: inline;
+        text-align: center;
+    }
+
+    .box {
+        text-align: left;
+        border-radius: calc(var(--box-round) / 2);
+        margin: 5px 0;
+    }
+}
+
 /* articles */
 h1 {
     margin: 0;
 }
 
 .art-info {
+    line-height: 1.6;
     display: flex;
-    flex-wrap: wrap;
     flex-direction: row;
+    flex-wrap: wrap;
     justify-content: space-between;
-    align-items: center;
-    line-height: 1.6;
+    align-items: baseline;
+}
+
+.art-info h1 {
+    margin-top: 0;
+    display: inline;
 }
 
 .art-body {
@@ -232,11 +297,13 @@ h1 {
 }
 
 .art-date {
-    display: block;
-    color: #ccc;
+    display: inline-block;
+    text-align: baseline;
+    line-height: 1;
+    white-space: nowrap;
+    color: var(--art-date-color);
     font-feature-settings: "tnum";
     font-variant-numeric: tabular-nums;
-    min-width: max-content;
 }
 
 .art-nav {
@@ -246,7 +313,7 @@ h1 {
     width: 100%;
 }
 
-@media all and (max-width: 600px) {
+@media (--max-md) {
     .main.artlist {
         padding-left: 0;
         padding-right: 0;
@@ -257,47 +324,14 @@ h1 {
     }
 }
 
-/* help */
-.hmain {
-    display: flex;
-    flex-wrap: wrap;
-    justify-content: space-around;
-    align-items: stretch;
-}
-
-a.hchild {
-    color: var(--text-color);
-/*height: 40px;*/
-    width: 95%;
-    text-align: center;
-    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 {
-    background-color: var(--box-hover-color);
-}
-
-.hchild:first-child {
-    margin-top: 10px;
-    -webkit-border-top-left-radius: var(--box-round);
-    -webkit-border-top-right-radius: var(--box-round);
-    -moz-border-radius-topleft: var(--box-round);
-    -moz-border-radius-topright: var(--box-round);
-    border-top-left-radius: var(--box-round);
-    border-top-right-radius: var(--box-round);
+/* faq */
+.faq-index {
+    list-style-type: none;
+    padding-left: 0;
 }
 
-.hchild:last-child {
-    margin-bottom: 10px;
-    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);
-    -moz-border-radius-bottomleft: var(--box-round);
-    border-bottom-right-radius: var(--box-round);
-    border-bottom-left-radius: var(--box-round);
+.faq-index li {
+    font-size: 120%;
 }
 
 /* footer */
@@ -310,38 +344,42 @@ 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 {
     margin-bottom: 1em;
 }
 
-@media all and (max-width: 60rem) {
+@media (--max-rem) {
     .footer-push {
         margin-left: auto;
         width: max-content;
     }
 }
 
-.footer a {
+footer a {
     color: var(--footer-link-color);
 }
 
-.footer a:hover {
-    color: #fff;
+footer a:hover {
+    color: var(--footer-hover-color);
 }
 
 .footer h2 {
@@ -349,7 +387,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;
@@ -359,7 +398,7 @@ a.hchild:hover,a.hchild:active {
     padding-left: 30px;
 }
 
-@media all and (max-width: 600px) {
+@media (--max-md) {
     .footer {
         flex-direction: column;
     }
@@ -379,82 +418,51 @@ a.hchild:hover,a.hchild:active {
     .hdn {
         display: none;
     }
-
-    .box {
-        text-align: center;
-    }
-
-    .child {
-        font-size: 20px;
-        line-height: 30px;
-        padding: 10px 0 5px;
-    }
-
-    .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;
-        display: inline;
-        text-align: center;
-
-    }
-
-    .box {
-        text-align: left;
-        border-radius: calc(var(--box-round) / 2);
-        margin: 5px 0;
-    }
 }
 
-.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%;
+    vertical-align: top;
+    font-size: 1.4em;
+}
+
+.copyright .footer-link {
+    height: 28px;
     margin-right: .5em;
-    text-align: right;
+}
+
+.copyright img {
+    height: 1.5rem;
+    width: auto;
 }