X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/528842a36f00e4e84f36a81982830d1e0373c82a..457df43b590b71dfda2178d36b477796f25447a3:/static/css/style.css diff --git a/static/css/style.css b/static/css/style.css index 0bc6dcfb6..74930e4ee 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -77,6 +77,7 @@ img { /* navbar */ .navbar { + color: var(--c-light); width: 100%; height: 50px; background-color: var(--navbar-bg); @@ -105,13 +106,97 @@ img { height: 40px; } -.nlogo { - height: 40px; +/* nav = navbar + * pia = Private Internet access + */ +#nav-logo { order: 10; } +#nav-pia { order: 30; } + +#nav-jump { order: 1000; } + +#nav-search { + order: 20; + margin-left: auto; + line-height: 35px; +} + +#nav-search input { + background-color: var(--c-bg-dark); + border-style: none; + border-radius: 2px; + color: var(--c-light); + padding: .5em; + padding-right: 2em; + margin-right: -2em; +} + +#nav-label { + display: inline-block; + width: 2em; + margin-right: .7em; +} + +@media (--max-sm) { + #nav-search { + order: 100; + margin: 0 .5em; + } + + #nav-pia { + margin-left: auto; + } + + #nav-label { + width: auto; + margin: 0 .5em; + } + + #nav-searchbox:not(:focus) { + display: inline-block; + position: absolute; + height: 0; + width: 0; + padding: 0; + margin: 0; + background: transparent; + overflow: hidden; + } + + #nav-searchbox:focus { + position: absolute; + visibility: visible; + outline: none; + top: 0; + left: 0; + right: 0; + height: 50px; + line-height: 50px; + font-size: 1.5em; + padding-right: 2.5em; + width: 100%; + } + + #nav-searchbox:focus + #nav-label { + display: block; + position: absolute; + pointer-events: none; + top: 0; + right: 0; + width: 1.5em; + font-size: 2em; + line-height: 50px; + padding-top: -.1em; + margin: 0; + } } +/* n = nav */ +.nlogo { height: 40px; } + +/* t = text (used in jumbotron for small logo as text) */ .tlogo { - height: 40px; - margin-bottom: -9px; + height: 2.4ex; + margin-bottom: -.47ex; margin-left: -10px; margin-right: -10px; } @@ -135,9 +220,12 @@ img { .main h2, .main h3, .main h4, +.main h5, +.main h6, .main li, .main pre, -.main p { +.main p, +.main blockquote { margin-top: .7em; } @@ -148,7 +236,10 @@ img { .main h1 + p, .main h2 + p, .main h3 + p, -.main h3 + p { +.main h4 + p, +.main h5 + p, +.main h6 + p, +.main blockquote > p:first-child { margin-top: 0; } @@ -204,6 +295,7 @@ tr:nth-child(odd) { padding: 4em 0 4em 0; } +/* j = jumbotron */ .jindex { z-index: 99; } @@ -274,6 +366,7 @@ tr:nth-child(odd) { margin-top: .75em; } +/* fa = font awesome */ .fa-users { margin-top: var(--margin-box-fa); } @@ -332,7 +425,7 @@ tr:nth-child(odd) { h1 { margin: 0; } - +/* art = article */ .artlist ul { padding: 0; list-style-type: none; @@ -352,6 +445,13 @@ h1 { margin-right: 2em; } +.art-warning { + margin-bottom: 2em; + padding: .5em; + border: 1px solid var(--border-color); + color: red; +} + .art-body { margin-bottom: 1em; } @@ -406,6 +506,13 @@ h1 { .art-nav *:nth-child(2) { text-align: center; } .art-nav *:nth-child(3) { text-align: right; } +blockquote { + padding-left: 1em; + display: inline-block; + border-left: .5em solid var(--c-shadow); + font-style: italic; +} + @media (--max-md) { .main.artlist { padding-left: 0; @@ -418,6 +525,7 @@ h1 { } /* faq */ +/* kb = knowledge base */ .kb-index { list-style-type: none; padding-left: 0; @@ -537,6 +645,7 @@ footer a:hover { margin-bottom: .1em; } + /* hdn = hidden */ .hdn { display: none; } @@ -607,6 +716,5 @@ footer.copyright div { } .copyright img { - height: 1.5rem; width: auto; }