X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/d08ca67e1f873f22f7b400bdfec53694218f3aa7..refs/pull/49/head:/static/css/style.css?ds=sidebyside diff --git a/static/css/style.css b/static/css/style.css index 4e3cb2292..c1b4efd30 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -3,17 +3,18 @@ --navbar-bg: #292f2f; --jumbotron-bg: #3a4346; --copyright-bg: #292f2f; - --link-color: 66,139,202; - --footer-link-color: #ddd; + --link-color: #2fa6bc; + --footer-link-color: #ecf7fa; --nlink-col: #000; - --text-color: #333; - --footer-text-color: #eee; - --copyright-text-color: #ccc; - --jumbotron-text-color: #eee; + --text-color: #292f2f; + --footer-text-color: #ecf7fa; + --copyright-text-color: #ecf7fa; + --jumbotron-text-color: #ecf7fa; --border-color: #292f2f; - --box-hover-color: #ddd; + --box-color: #4c5456; + --box-hover-color: #292f2f; --box-round: 10px; - --max-width: 800px; + --max-width: 600px; } /* reset css for browser compat */ @@ -33,7 +34,7 @@ body { } a { - color: rgb(var(--link-color)); + color: var(--link-color); text-decoration: none; } @@ -53,6 +54,17 @@ 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: #E6E6E6; + text-shadow: .5px .5px #000; +} +.green { + color: #4BEB4A; } @media all and (max-width: 600px) { @@ -62,16 +74,10 @@ a { } .navbar a { + margin-top: 2px; height: 40px; } -a.nav-light { - background-color: #eee; - height: 44px; - padding: 2px; - margin-right: 3px; -} - .nlogo { height: 40px; } @@ -89,25 +95,35 @@ a.nav-light { /* main */ .container { - padding: 50px 0 0; width: 100%; min-height: 98vh; + padding-top: 50px; padding-bottom: 11.5rem; } .main { 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 h4, .main li, -.main p + p, -.main ul + p { - margin-top: .5em; +.main pre, +.main p { + margin-top: .7em; +} + +.main h1 + p, +.main h2 + p, +.main h3 + p, +.main h3 + p { + margin-top: 0; } .main ul { @@ -115,6 +131,11 @@ a.nav-light { list-style-type: disc; } +hr { + margin-top: .8em; + margin-bottom: .8em; +} + /* jumbotron */ .jumbotron { position: relative; @@ -128,9 +149,10 @@ a.nav-light { .child { text-align: center; - margin: .5em; + margin: .5em auto; font-size: 32px; line-height: 48px; + max-width: 75%; } .box-container { @@ -145,14 +167,12 @@ a.nav-light { .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; + 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 { @@ -163,7 +183,7 @@ a.nav-light { position: relative; top: initial; font-size: 20px; - font-weight: normal; + font-weight: 600; line-height: 16px; padding: 10px 0; display: block; @@ -188,26 +208,15 @@ h1 { div.art { clear: right; - min-height: 2em; flex-grow: 1; } div.artlist { - display: flex; - flex-wrap: wrap; - justify-content: flex-start; - align-items: stretch; + max-width: var(--max-width); + margin: 0 auto; margin-top: .5em; } -@media all and (min-width: 800px) { - div.artlist { - max-width: 50%; - margin-right: auto; - margin-left: auto; - } -} - div.art:not(:first-child) { border-top: 1px solid var(--border-color); } @@ -217,10 +226,6 @@ b.art { font-size: 18px; } -p.art { - margin: 0; -} - p.art-ingress { font-style: italic; margin: 0; @@ -229,7 +234,8 @@ p.art-ingress { .art-date { float: right; color: #ccc; - margin: 0 .5em; + line-height: 24px; + font-feature-settings: tnum; } p.heading { @@ -240,6 +246,17 @@ p.art-link { margin-top: 0; } +@media all and (max-width: 600px) { + .main.artlist { + padding-left: 0; + padding-right: 0; + } + + div.art { + padding: 0 .75em; + } +} + /* help */ .hmain { display: flex; @@ -323,6 +340,10 @@ a.hchild:hover,a.hchild:active { color: var(--footer-link-color); } +.footer a:hover { + color: #fff; +} + .footer h2 { margin-bottom: .1em; display: inline-block; @@ -398,11 +419,6 @@ a.hchild:hover,a.hchild:active { border-radius: calc(var(--box-round) / 2); margin: 5px 0; } - - .main { - margin: .75em .75em; - } - } .footer h2,.footer h3 {