X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/0e9ffab7ce3555bf707c4391c523ce018b9d9809..63375cb5174c60a9fa8c94191fdb39b6cb323f3d:/static/css/style.css diff --git a/static/css/style.css b/static/css/style.css index 0da075cac..28e0a73a1 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,20 +1,20 @@ /* vars */ :root { - --navbar-bg: #fff; - --jumbotron-bg: #eee; - --jumbotron-bg-fall: 65,225,64; - --copyright-bg: 170,178,171; - --link-color: 66,139,202; - --footer-link-color: 51,51,51; + --navbar-bg: #292f2f; + --jumbotron-bg: #3a4346; + --copyright-bg: #292f2f; + --link-color: #2fa6bc; + --footer-link-color: #ecf7fa; --nlink-col: #000; - --text-color: #333; - --footer-text-color: 51,51,51; - --copyright-text-color: 0,0,0; - --jumbotron-text-color: #333; - --border-color: 0,0,0; - --footer-border-color: 51,51,51; - --box-hover-color: #ddd; + --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; } /* reset css for browser compat */ @@ -34,7 +34,7 @@ body { } a { - color: rgb(var(--link-color)); + color: var(--link-color); text-decoration: none; } @@ -43,6 +43,7 @@ a { width: 100%; height: 50px; background-color: var(--navbar-bg); + box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5); position: fixed; left: 0; right: 0; @@ -51,8 +52,30 @@ a { flex-wrap: nowrap; justify-content: space-between; align-items: center; - border-bottom: 1px solid rgba(var(--border-color),.3); + 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) { + .navbar { + position: absolute; + } +} + +.navbar a { + margin-top: 2px; + height: 40px; } .nlogo { @@ -72,22 +95,32 @@ a { /* main */ .container { - padding: 50px 0 0; width: 100%; - min-height: 68vh; + min-height: 98vh; + padding-top: 50px; + padding-bottom: 11.5rem; } .main { - margin-left: .5em; - margin-top: 1em; - margin-bottom: 1em; + margin: 0 auto; + margin-top: .75em; + padding: 0 .75em; + max-width: var(--max-width); + line-height: 1.3; } .main h1, .main h2, .main h3, -.main p + p { - margin-top: .5em; +.main li, +.main p + p, +.main ul + p { + margin-top: .7em; +} + +.main ul { + padding-left: 2em; + list-style-type: disc; } /* jumbotron */ @@ -95,17 +128,18 @@ a { position: relative; width: 100%; margin-top: -16px; - background: #000; background: var(--jumbotron-bg); - box-shadow: 0 3px 5px rgba(150,150,150,.36); + box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); color: var(--jumbotron-text-color); + padding: 2em 0; } .child { text-align: center; - margin: .5em; + margin: .5em auto; font-size: 32px; line-height: 48px; + max-width: 75%; } .box-container { @@ -113,19 +147,19 @@ a { flex-wrap: wrap; justify-content: space-around; align-items: stretch; + max-width: 800px; + margin: 0 auto; } .box { - text-align: left; + 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 { @@ -133,13 +167,13 @@ a { } .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; + padding: 10px 0; + display: block; } .fa-users { @@ -150,10 +184,6 @@ a { margin-bottom: 5px; } -.fa-4x { - padding-left: 8px; -} - .title { text-align: center; } @@ -164,11 +194,22 @@ h1 { } div.art { - border-bottom: 1px solid rgba(var(--border-color),.3); + clear: right; + flex-grow: 1; } -div.art:last-child { - border-bottom: none; +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; +} + +div.art:not(:first-child) { + border-top: 1px solid var(--border-color); } b.art { @@ -186,8 +227,10 @@ p.art-ingress { } .art-date { + float: right; color: #ccc; - margin: 0; + margin: 0 .5em; + line-height: 24px; } p.heading { @@ -198,12 +241,6 @@ p.art-link { margin-top: 0; } -/* Article */ -.art-full h1, -.art-full h2, -.art-full h3, -.art-full h4 {} - /* help */ .hmain { display: flex; @@ -217,9 +254,9 @@ a.hchild { /*height: 40px;*/ width: 95%; text-align: center; - border-top: 1px solid rgba(var(--border-color),.6); - border-left: 1px solid rgba(var(--border-color),.6); - border-right: 1px solid rgba(var(--border-color),.6); + 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 { @@ -238,7 +275,7 @@ a.hchild:hover,a.hchild:active { .hchild:last-child { margin-bottom: 10px; - border-bottom: 1px solid rgba(var(--border-color),.6); + 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); @@ -249,31 +286,50 @@ a.hchild:hover,a.hchild:active { /* footer */ .footers { - min-height: 30vh; + /*min-height: 30vh;*/ + margin-top: -11rem; + min-height: 11rem; } .footer { background: var(--jumbotron-bg); - color: rgba(var(--footer-text-color),.9); + color: var(--footer-text-color); margin-top: 2vh; display: flex; - flex-wrap: nowrap; - min-height: 27vh; + 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; } .footerchild { 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 a { - color: #000; + color: var(--footer-link-color); +} + +.footer a:hover { + color: #fff; } .footer h2 { - margin-bottom: 9px; + margin-bottom: .1em; display: inline-block; } @@ -287,7 +343,7 @@ a.hchild:hover,a.hchild:active { padding-left: 30px; } -@media all and (max-width: 500px) { +@media all and (max-width: 600px) { .footer { flex-direction: column; } @@ -296,6 +352,10 @@ a.hchild:hover,a.hchild:active { width: 100%; } + .footer-push { + margin-left: 0; + } + .footerchild ul li:last-child { margin-bottom: .5em; } @@ -317,16 +377,31 @@ a.hchild:hover,a.hchild:active { .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; - top: initial; - font-size: 16px; - font-weight: normal; - line-height: 16px; - padding: 10px 0; - display: block; + display: inline; + text-align: center; + + } + + .box { + text-align: left; + border-radius: calc(var(--box-round) / 2); + margin: 5px 0; } } @@ -337,16 +412,16 @@ a.hchild:hover,a.hchild:active { .copyright { display: flex; - flex-wrap: nowrap; + flex-wrap: wrap; justify-content: space-between; align-items: center; - background: rgba(var(--copyright-bg),.5); - height: 3vh; - color: rgba(var(--copyright-text-color),.8); + background: var(--copyright-bg); + min-height: 1.5rem; + color: var(--copyright-text-color); } a.copyright { - background: rgba(var(--copyright-bg),.5); + background: var(--copyright-bg); margin-bottom: 0; margin-top: 0; margin-left: .5em; @@ -356,7 +431,7 @@ a.copyright { } .copyright a img { - height: 3vh; + height: 1.5rem; width: auto; } @@ -367,13 +442,3 @@ a.copyright { margin-right: .5em; text-align: right; } - -@media all and (max-width: 500px) { - .copyright { - height: 5vh; - } - - .copyright a img { - height: 5vh; - } -}