]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - static/css/style.css
highlight all code blocks on registration page
[irc/freenode/web-7.0.git] / static / css / style.css
index 598c45659a7f0b92c57844f661fb2a7058d65cd8..a13b4ee5e16e0e0c543eecbbc66ebdb6e730ac4a 100644 (file)
@@ -4,6 +4,7 @@
     --c-bg-dark:  #3a4346;
     --c-bg-light: #4c5456;
     --c-light:    #ecf7fa;
+    --c-off-white: #f9f9f9;
     --c-hl-dark:  #008499;
     --c-hl-light: #3baec4;
     --c-shadow:   #dae5e2;
@@ -29,7 +30,7 @@
     /* box colors */
     --border-color:    var(--c-dark);
     --box-color:       var(--c-bg-light);
-    --box-hover-color: var(--c-dark);;
+    --box-hover-color: var(--c-dark);
     --box-round:       10px;
 
     /* other */
@@ -50,7 +51,7 @@
 
 /* global */
 body {
-    font-family: 'Open Sans';
+    font-family: 'Open Sans', sans-serif;
     font-feature-settings: "lnum";
     font-variant-numeric: lining-nums;
     color: var(--text-color);
@@ -59,6 +60,10 @@ body {
     height: auto;
 }
 
+.invisible {
+    display: none;
+}
+
 a {
     color: var(--link-color);
     text-decoration: none;
@@ -73,6 +78,7 @@ img {
 
 /* navbar */
 .navbar {
+    color: var(--c-light);
     width: 100%;
     height: 50px;
     background-color: var(--navbar-bg);
@@ -101,13 +107,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;
 }
@@ -131,9 +221,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;
 }
 
@@ -144,10 +237,46 @@ 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;
 }
 
+.main .page-variant-registration ~ pre, .main .page-variant-registration ~ * pre {
+    padding: .5em .75em;
+    border-radius: .25em;
+    background: var(--c-off-white);
+    color: var(--c-hl-dark);
+    box-shadow: 0 0 1px  var(--c-bg-light);
+}
+
+.toclink,
+.toclink:hover {
+    color: var(--text-color);
+}
+
+.toclink::after {
+    content: ' \f13d';
+    font-family: FontAwesome;
+    color: var(--link-color);
+    font-weight: normal;
+    opacity: 0;
+    transition: opacity .08s;
+}
+
+.toclink:hover::after {
+    opacity: 1;
+    color: var(--link-hover-color);
+}
+
+@media (--max-sm) {
+    .toclink::after {
+        opacity: 1;
+    }
+}
+
 ul {
     padding-left: 2em;
     list-style-type: disc;
@@ -200,6 +329,7 @@ tr:nth-child(odd) {
     padding: 4em 0 4em 0;
 }
 
+/* j = jumbotron */
 .jindex {
     z-index: 99;
 }
@@ -270,6 +400,7 @@ tr:nth-child(odd) {
     margin-top: .75em;
 }
 
+/* fa = font awesome */
 .fa-users {
     margin-top: var(--margin-box-fa);
 }
@@ -328,7 +459,7 @@ tr:nth-child(odd) {
 h1 {
     margin: 0;
 }
-
+/* art = article */
 .artlist ul {
     padding: 0;
     list-style-type: none;
@@ -348,6 +479,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;
 }
@@ -368,7 +506,7 @@ h1 {
     border-top: 1px solid var(--border-color);
 }
 
-.art-info .art {
+.artlist .art {
     font-weight: bold;
     font-size: 120%;
 }
@@ -391,10 +529,24 @@ h1 {
     display: flex;
     flex-direction: row;
     justify-content: space-between;
-    flex-basis: 30%;
     width: 100%;
 }
 
+.art-nav * {
+    flex-basis: 30%;
+}
+
+.art-nav *:nth-child(1) { text-align: left; }
+.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;
@@ -407,6 +559,7 @@ h1 {
 }
 
 /* faq */
+/* kb = knowledge base */
 .kb-index {
     list-style-type: none;
     padding-left: 0;
@@ -419,7 +572,7 @@ h1 {
 .kb-index li {
     display: block;
     flex: 1 1 15em;
-    height: 7em;
+    height: 3em;
     margin: 1em;
 }
 
@@ -526,6 +679,7 @@ footer a:hover {
         margin-bottom: .1em;
     }
 
+    /* hdn = hidden */
     .hdn {
         display: none;
     }
@@ -549,7 +703,7 @@ footer a:hover {
     }
     .footerchild ul li img,
     .footerchild ul li .fa-fw {
-        height: 2.5rem;
+        height: 3.5rem;
     }
 }
 
@@ -596,6 +750,5 @@ footer.copyright div {
 }
 
 .copyright img {
-    height: 1.5rem;
     width: auto;
 }