X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/51214f4affdf88d0ac7cb56a7ecb3acb48b11146..39165c0cdb4a054d3e88773bfff0246cf5b924e7:/static/css/style.css diff --git a/static/css/style.css b/static/css/style.css index 0196cfb60..812d73c2a 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -3,16 +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: 600px; } /* reset css for browser compat */ @@ -32,7 +34,7 @@ body { } a { - color: rgb(var(--link-color)); + color: var(--link-color); text-decoration: none; } @@ -52,6 +54,7 @@ a { align-items: center; border-bottom: 1px solid var(--border-color); z-index: 100; + padding-right: 5px; } @media all and (max-width: 600px) { @@ -61,16 +64,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; } @@ -88,15 +85,18 @@ 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.3; } .main h1, @@ -105,7 +105,7 @@ a.nav-light { .main li, .main p + p, .main ul + p { - margin-top: .5em; + margin-top: .7em; } .main ul { @@ -126,9 +126,10 @@ a.nav-light { .child { text-align: center; - margin: .5em; + margin: .5em auto; font-size: 32px; line-height: 48px; + max-width: 75%; } .box-container { @@ -143,18 +144,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 span { - display: block; } .box:hover,.box:active { @@ -164,8 +159,8 @@ a.nav-light { .box div{ position: relative; top: initial; - font-size: 16px; - font-weight: normal; + font-size: 20px; + font-weight: 600; line-height: 16px; padding: 10px 0; display: block; @@ -179,10 +174,6 @@ a.nav-light { margin-bottom: 5px; } -.fa-4x { - padding-left: 8px; -} - .title { text-align: center; } @@ -194,7 +185,6 @@ h1 { div.art { clear: right; - min-height: 2em; flex-grow: 1; } @@ -203,17 +193,11 @@ div.artlist { 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); } @@ -236,6 +220,7 @@ p.art-ingress { float: right; color: #ccc; margin: 0 .5em; + line-height: 24px; } p.heading { @@ -329,6 +314,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; @@ -404,7 +393,6 @@ a.hchild:hover,a.hchild:active { border-radius: calc(var(--box-round) / 2); margin: 5px 0; } - } .footer h2,.footer h3 {