X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/cb3e944db018ecddf3784f396071710b41044009..refs/pull/69/head:/static/css/style.css diff --git a/static/css/style.css b/static/css/style.css index 7b063c120..dd2ca74c5 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,19 +1,39 @@ /* vars */ :root { - --navbar-bg: #292f2f; - --jumbotron-bg: #294848; + /* backgrounds */ + --navbar-bg: #292f2f; + --jumbotron-bg: #3a4346; --copyright-bg: #292f2f; - --link-color: 66,139,202; - --footer-link-color: #ddd; - --nlink-col: #000; - --text-color: #333; - --footer-text-color: #eee; - --copyright-text-color: #ccc; - --jumbotron-text-color: #eee; - --border-color: #292f2f; - --box-hover-color: #ddd; - --box-round: 10px; -} + + /* link colors */ + --link-color: #2fa6bc; + --footer-link-color: #ecf7fa; + --nlink-col: #000000; + + /* text colors */ + --text-color: #292f2f; + --footer-text-color: #ecf7fa; + --copyright-text-color: #ecf7fa; + --jumbotron-text-color: #ecf7fa; + --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; + + /* 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 */ * { @@ -25,6 +45,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; @@ -32,7 +54,7 @@ body { } a { - color: rgb(var(--link-color)); + color: var(--link-color); text-decoration: none; } @@ -52,25 +74,30 @@ a { align-items: center; 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: var(--fn-grey); + text-shadow: .5px .5px #000; +} +.green { + color: var(--fn-green); } -@media all and (max-width: 600px) { +@media (--max-sm); { .navbar { position: absolute; } } .navbar a { + margin-top: 2px; height: 40px; } -a.nav-light { - background-color: #eee; - height: 44px; - padding: 2px; - margin-right: 3px; -} - .nlogo { height: 40px; } @@ -88,22 +115,45 @@ a.nav-light { /* main */ .container { - padding: 50px 0 0; width: 100%; min-height: 98vh; + padding-top: 50px; padding-bottom: 11.5rem; } .main { - margin: 0 .5em; - margin-top: 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; +} + +ul { + padding-left: 2em; + list-style-type: disc; +} + +hr { + margin-top: .8em; + margin-bottom: .8em; } /* jumbotron */ @@ -111,7 +161,6 @@ a.nav-light { position: relative; width: 100%; margin-top: -16px; - background: #000; background: var(--jumbotron-bg); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); color: var(--jumbotron-text-color); @@ -120,9 +169,10 @@ a.nav-light { .child { text-align: center; - margin: .5em; + margin: .5em auto; font-size: 32px; line-height: 48px; + max-width: 75%; } .box-container { @@ -130,25 +180,20 @@ a.nav-light { flex-wrap: wrap; justify-content: space-around; align-items: stretch; - max-width: 800px; + max-width: var(--max-width-box); margin: 0 auto; } .box { 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; + min-width: 26%; + background-color: var(--box-color); border-radius: var(--box-round); - -webkit-border-radius: var(--box-round); - -moz-border-radius: var(--box-round); -} - -.box span { - display: block; + padding: 1em; } .box:hover,.box:active { @@ -156,131 +201,137 @@ a.nav-light { } .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; + display: block; + margin-top: .75em; } .fa-users { - margin-top: 5px; + margin-top: var(--margin-box-fa); } .fa-comment,.fa-question { - margin-bottom: 5px; -} - -.fa-4x { - padding-left: 8px; + margin-bottom: var(--margin-box-fa); } .title { text-align: center; } -/* articles feed */ -h1 { - margin: 0; +@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; + } } -div.art { - clear: right; - min-height: 2em; +/* articles */ +h1 { + margin: 0; } -div.artlist { +.art-info { + line-height: 1.6; display: flex; + flex-direction: row; flex-wrap: wrap; - justify-content: space-around; - align-items: stretch; -} - -div.artlist:first-child { - 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; -} - -p.heading { + 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; } -p.art-link { - margin-top: 0; -} - -/* Article */ -.art-full h1, -.art-full h2, -.art-full h3, -.art-full h4 {} - -/* help */ -.hmain { +.art-nav { display: flex; - flex-wrap: wrap; - justify-content: space-around; - align-items: stretch; + flex-direction: row; + justify-content: space-between; + width: 100%; } -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); -} +@media (--max-md) { + .main.artlist { + padding-left: 0; + padding-right: 0; + } -a.hchild:hover,a.hchild:active { - background-color: var(--box-hover-color); + .artlist .art-info { + padding: 0 .75em; + } } -.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 */ @@ -293,42 +344,51 @@ 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: var(--footer-hover-color); +} + .footer h2 { margin-bottom: .1em; 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; @@ -338,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; } @@ -358,72 +418,49 @@ 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; - } - - .box-container { - flex-direction: column; - margin: 0 .5em; - } - - .box div { - position: relative; - top: initial; - font-size: 16px; - font-weight: normal; - line-height: 16px; - padding: 10px 0; - display: block; - } } -.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; }