X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/5b76ff14c357f7cf10b594659aa05181cf5fd524..a895232a75a203c7f480a9b1eaab4e687b7b2585:/static/css/style.css diff --git a/static/css/style.css b/static/css/style.css index 9c705b8e3..a05330699 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,31 +1,36 @@ /* vars */ :root { + --c-dark: #292f2f; + --c-bg-dark: #3a4346; + --c-bg-light: #4c5456; + --c-light: #ecf7fa; + --c-hl-dark: #008499; + --c-hl-light: #3baec4; + /* backgrounds */ - --navbar-bg: #292f2f; - --jumbotron-bg: #3a4346; - --copyright-bg: #292f2f; - + --navbar-bg: var(--c-dark); + --jumbotron-bg: var(--c-bg-dark); + --copyright-bg: var(--c-dark); + /* link colors */ - --link-color: #2fa6bc; - --footer-link-color: #ecf7fa; - --nlink-col: #000000; - + --link-color: var(--c-hl-dark); + --link-hover-color: var(--c-hl-light); + --footer-link-color: var(--c-light); + --footer-hover-color: #fff; + /* 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; - + --text-color: var(--c-dark); + --footer-text-color: var(--c-light); + --copyright-text-color: var(--c-light); + --jumbotron-text-color: var(--c-light); + --art-date-color: color(var(--c-dark) tint(50%)); + /* box colors */ - --border-color: #292f2f; - --box-color: #4c5456; - --box-hover-color: #292f2f; + --border-color: var(--c-dark); + --box-color: var(--c-bg-light); + --box-hover-color: var(--c-dark);; --box-round: 10px; - + /* other */ --max-width: 600px; --max-width-box: 800px; @@ -58,6 +63,13 @@ a { text-decoration: none; } +a:hover { + color: var(--link-hover-color); +} +img { + max-width: 100%; +} + /* navbar */ .navbar { width: 100%; @@ -76,16 +88,6 @@ a { 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 (--max-sm); { .navbar { @@ -102,28 +104,16 @@ a { height: 40px; } -.navlinks { - display: flex; - justify-content: space-around; - flex-wrap: nowrap; -} - -.nlink { - text-decoration: none; - color: var(--nlink-col); -} - /* main */ .container { width: 100%; - min-height: 98vh; + min-height: 100vh; padding-top: 50px; - padding-bottom: 11.5rem; + padding-bottom: 12.5rem; } .main { - margin: 0 auto; - margin-top: .75em; + margin: 2em auto; padding: 0 .75em; max-width: var(--max-width); line-height: 1.4; @@ -151,6 +141,11 @@ ul { list-style-type: disc; } +ol { + padding-left: 2em; + list-style-type: decimal; +} + hr { margin-top: .8em; margin-bottom: .8em; @@ -160,11 +155,37 @@ hr { .jumbotron { position: relative; width: 100%; - margin-top: -16px; + margin-top: -50px; background: var(--jumbotron-bg); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6); color: var(--jumbotron-text-color); - padding: 2em 0; + padding: 4em 0 4em 0; +} + +.jindex { + z-index: 102; +} + +.jlogo { + display: block; + margin: 25px auto; +} + +.jpia { + position: absolute; + height: 40px; + right: 0; + top: 0; + margin: 25px; +} + +@media (--max-sm) { + .jlogo { + margin: 2em auto -2em auto; + } + .jumbotron { + padding-bottom: 2em; + } } .child { @@ -197,10 +218,11 @@ hr { } .box:hover,.box:active { + color: var(--jumbotron-text-color); background-color: var(--box-hover-color); } -.box div{ +.box span { position: relative; top: initial; font-size: 20px; @@ -214,7 +236,7 @@ hr { margin-top: var(--margin-box-fa); } -.fa-comment,.fa-question { +.fa-comments,.fa-question { margin-bottom: var(--margin-box-fa); } @@ -246,14 +268,15 @@ hr { margin: 0 .5em; } - .box div { + .box span { font-size: 22px; line-height: 22px; padding-left: 8px; - font-weight: 700; + font-weight: bold; position: relative; - display: inline; + display: inline-block; text-align: center; + margin-top: 0; } .box { @@ -269,7 +292,7 @@ h1 { } .art-info { - line-height: 1.6; + margin-top: 2.1em; display: flex; flex-direction: row; flex-wrap: wrap; @@ -280,6 +303,7 @@ h1 { .art-info h1 { margin-top: 0; display: inline; + margin-right: 2em; } .art-body { @@ -292,13 +316,18 @@ h1 { margin-top: .5em; } +.artlist.heading { + margin: 8em auto 2em auto; + padding: 0 0.75em; +} + .artlist .art-info:not(:first-child) { border-top: 1px solid var(--border-color); } .art-date { display: inline-block; - text-align: baseline; + vertical-align: baseline; line-height: 1; white-space: nowrap; color: var(--art-date-color); @@ -325,35 +354,59 @@ h1 { } /* faq */ -.faq-index { +.kb-index { list-style-type: none; padding-left: 0; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: stretch; } -.faq-index li { - font-size: 120%; +.kb-index li { + display: block; + flex: 1 1 15em; + height: 7em; + margin: 1em; +} + +.kb-index li h2 { + margin-top: 0; +} + +.kb-index a { + display: block; + color: var(--text-color); + width: 100%; + height: 100%; +} +.kb-index a h2 { + color: var(--link-color); +} +.kb-index a:hover h2 { + color: var(--link-hover-color); } /* footer */ .footers { /*min-height: 30vh;*/ - margin-top: -11rem; - min-height: 11rem; + margin-top: -12rem; + min-height: 12rem; } .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; + min-height: 10.5rem; + padding: 3em 0; } .footer-container { display: flex; flex-wrap: wrap; - justify-content: space-between; + justify-content: center; align-items: flex-start; margin: 0 auto; } @@ -361,17 +414,17 @@ h1 { .footerchild { margin: 0 2em; margin-top: .5em; + flex-grow: 1; + flex-shrink: 0; } .footerchild:last-child { - margin-bottom: 1em; + margin-bottom: .5em; } -@media (--max-rem) { - .footer-push { - margin-left: auto; - width: max-content; - } +.footer-push { + margin-left: auto; + width: max-content; } footer a { @@ -398,26 +451,45 @@ footer a:hover { padding-left: 30px; } -@media (--max-md) { - .footer { +@media (--max-sm) { + .footer-container { flex-direction: column; } - .footerchild { - width: 100%; - } - .footer-push { margin-left: 0; + width: 100%; } .footerchild ul li:last-child { margin-bottom: .5em; } + .footer-push ul li:last-child { + margin-bottom: .1em; + } + .hdn { display: none; } + .footer { + padding: .5em 0; + } + .footer-push ul { + display: flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: space-between; + align-items: flex-start; + text-align: center; + } + .footer-push ul li { + display: inline-block; + font-size: 12vw; + } + .footer-push ul li img { + height: 12vw; + } } .footer h2, .footer h3 {