X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/6c954340e15660fbf91e16b6fc9752a80a98058f..a9a27d4b8068aed5b03c2dba60e8071fe8ba05b1:/static/css/style.css diff --git a/static/css/style.css b/static/css/style.css index ad49939b4..567f9ea85 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,21 +1,44 @@ /* vars */ :root { - --navbar-bg: #292f2f; - --jumbotron-bg: #3a4346; - --copyright-bg: #292f2f; - --link-color: #2fa6bc; - --footer-link-color: #ecf7fa; - --nlink-col: #000; - --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; -} + --c-dark: #292f2f; + --c-bg-dark: #3a4346; + --c-bg-light: #4c5456; + --c-light: #ecf7fa; + --c-hl-dark: #008499; + --c-hl-light: #3baec4; + + /* backgrounds */ + --navbar-bg: var(--c-dark); + --jumbotron-bg: var(--c-bg-dark); + --copyright-bg: var(--c-dark); + + /* link colors */ + --link-color: var(--c-hl-dark); + --link-hover-color: var(--c-hl-light); + --footer-link-color: var(--c-light); + --footer-hover-color: #fff; + + /* text colors */ + --text-color: var(--c-dark); + --footer-text-color: var(--c-light); + --copyright-text-color: var(--c-light); + --jumbotron-text-color: var(--c-light); + --art-date-color: color(var(--c-dark) tint(50%)); + + /* box colors */ + --border-color: var(--c-dark); + --box-color: var(--c-bg-light); + --box-hover-color: var(--c-dark);; + --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 */ * { @@ -40,6 +63,13 @@ a { text-decoration: none; } +a:hover { + color: var(--link-hover-color); +} +img { + max-width: 100%; +} + /* navbar */ .navbar { width: 100%; @@ -58,18 +88,8 @@ a { 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) { +@media (--max-sm); { .navbar { position: absolute; } @@ -84,17 +104,6 @@ a { height: 40px; } -.navlinks { - display: flex; - justify-content: space-around; - flex-wrap: nowrap; -} - -.nlink { - text-decoration: none; - color: var(--nlink-col); -} - /* main */ .container { width: 100%; @@ -162,7 +171,7 @@ hr { flex-wrap: wrap; justify-content: space-around; align-items: stretch; - max-width: 800px; + max-width: var(--max-width-box); margin: 0 auto; } @@ -179,6 +188,7 @@ hr { } .box:hover,.box:active { + color: var(--jumbotron-text-color); background-color: var(--box-hover-color); } @@ -193,17 +203,58 @@ hr { } .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; @@ -242,7 +293,7 @@ h1 { text-align: baseline; line-height: 1; white-space: nowrap; - color: #bdbcbc; + color: var(--art-date-color); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; } @@ -254,7 +305,7 @@ h1 { width: 100%; } -@media all and (max-width: 600px) { +@media (--max-md) { .main.artlist { padding-left: 0; padding-right: 0; @@ -265,49 +316,6 @@ 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); -} - -.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 */ .faq-index { list-style-type: none; @@ -328,39 +336,41 @@ 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) { - .footer-push { - margin-left: auto; - width: max-content; - } +.footer-push { + margin-left: auto; + width: max-content; } -.footer-link, -.footer a { +footer a { color: var(--footer-link-color); } -.footer a:hover { - color: #fff; +footer a:hover { + color: var(--footer-hover-color); } .footer h2 { @@ -379,15 +389,11 @@ a.hchild:hover,a.hchild:active { padding-left: 30px; } -@media all and (max-width: 600px) { - .footer { +@media (--max-md) { + .footer-container { flex-direction: column; } - .footerchild { - width: 100%; - } - .footer-push { margin-left: 0; } @@ -399,49 +405,9 @@ 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; } @@ -472,6 +438,12 @@ footer.copyright div { line-height: 1.5rem; } +.copyright .fa { + height: 100%; + vertical-align: top; + font-size: 1.4em; +} + .copyright .footer-link { height: 28px; margin-right: .5em;