X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/361c2fab57fce88e138a47d0378a7973b159e9eb..d4b00db0ab459fa0ef7facf95175e60515e4750e:/static/css/style.css diff --git a/static/css/style.css b/static/css/style.css index f35dcb745..73d1caed6 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,18 +1,16 @@ /* vars */ :root { - --navbar-bg: #fff; - --jumbotron-bg: #eee; - --jumbotron-bg-fall: 65,225,64; - --copyright-bg: 170,178,171; + --navbar-bg: #292f2f; + --jumbotron-bg: #3a4346; + --copyright-bg: #292f2f; --link-color: 66,139,202; - --footer-link-color: 51,51,51; + --footer-link-color: #ddd; --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; + --footer-text-color: #eee; + --copyright-text-color: #ccc; + --jumbotron-text-color: #eee; + --border-color: #292f2f; --box-hover-color: #ddd; --box-round: 10px; } @@ -43,6 +41,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,10 +50,27 @@ 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; } +@media all and (max-width: 600px) { + .navbar { + position: absolute; + } +} + +.navbar a { + height: 40px; +} + +a.nav-light { + background-color: #eee; + height: 44px; + padding: 2px; + margin-right: 3px; +} + .nlogo { height: 40px; } @@ -74,13 +90,20 @@ a { .container { padding: 50px 0 0; width: 100%; - min-height: 68vh; + min-height: 98vh; + padding-bottom: 11.5rem; } .main { - margin-left: .5em; + margin: 0 .5em; margin-top: 1em; - margin-bottom: 1em; +} + +.main h1, +.main h2, +.main h3, +.main p + p { + margin-top: .5em; } /* jumbotron */ @@ -90,8 +113,9 @@ a { 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 { @@ -106,10 +130,12 @@ 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); margin-bottom: 5px; @@ -121,18 +147,22 @@ a { -moz-border-radius: var(--box-round); } +.box span { + display: block; +} + .box:hover,.box:active { background-color: var(--box-hover-color); } .box div{ - font-size: 28px; - line-height: 28px; - padding-left: 8px; - font-weight: 700; position: relative; - display: inline; - top: -10px; + top: initial; + font-size: 16px; + font-weight: normal; + line-height: 16px; + padding: 10px 0; + display: block; } .fa-users { @@ -157,11 +187,11 @@ h1 { } div.art { - border-bottom: 1px solid rgba(var(--border-color),.3); + clear: right; } -div.art:last-child { - border-bottom: none; +div.art:not(:first-child) { + border-top: 1px solid var(--border-color); } b.art { @@ -179,8 +209,9 @@ p.art-ingress { } .art-date { + float: right; color: #ccc; - margin: 0; + margin: 0 .5em; } p.heading { @@ -210,9 +241,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 { @@ -231,7 +262,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); @@ -242,31 +273,46 @@ 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 h2 { - margin-bottom: 9px; + margin-bottom: .1em; display: inline-block; } @@ -280,7 +326,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; } @@ -289,6 +335,10 @@ a.hchild:hover,a.hchild:active { width: 100%; } + .footer-push { + margin-left: 0; + } + .footerchild ul li:last-child { margin-bottom: .5em; } @@ -310,17 +360,33 @@ 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; + } + } .footer h2,.footer h3 { @@ -330,16 +396,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; @@ -349,7 +415,7 @@ a.copyright { } .copyright a img { - height: 3vh; + height: 1.5rem; width: auto; } @@ -360,13 +426,3 @@ a.copyright { margin-right: .5em; text-align: right; } - -@media all and (max-width: 500px) { - .copyright { - height: 5vh; - } - - .copyright a img { - height: 5vh; - } -}