]> 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 40c079bc2fb8b1214dac91940bfddfeaecff7f53..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 */
@@ -106,6 +107,9 @@ img {
     height: 40px;
 }
 
+/* nav = navbar
+ * pia = Private Internet access
+ */
 #nav-logo { order: 10; }
 #nav-pia  { order: 30; }
 
@@ -187,10 +191,10 @@ img {
     }
 }
 
-.nlogo {
-    height: 40px;
-}
+/* n = nav */
+.nlogo { height: 40px; }
 
+/* t = text (used in jumbotron for small logo as text) */
 .tlogo {
     height: 2.4ex;
     margin-bottom: -.47ex;
@@ -240,6 +244,39 @@ img {
     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;
@@ -292,6 +329,7 @@ tr:nth-child(odd) {
     padding: 4em 0 4em 0;
 }
 
+/* j = jumbotron */
 .jindex {
     z-index: 99;
 }
@@ -362,6 +400,7 @@ tr:nth-child(odd) {
     margin-top: .75em;
 }
 
+/* fa = font awesome */
 .fa-users {
     margin-top: var(--margin-box-fa);
 }
@@ -420,7 +459,7 @@ tr:nth-child(odd) {
 h1 {
     margin: 0;
 }
-
+/* art = article */
 .artlist ul {
     padding: 0;
     list-style-type: none;
@@ -520,6 +559,7 @@ blockquote {
 }
 
 /* faq */
+/* kb = knowledge base */
 .kb-index {
     list-style-type: none;
     padding-left: 0;
@@ -639,6 +679,7 @@ footer a:hover {
         margin-bottom: .1em;
     }
 
+    /* hdn = hidden */
     .hdn {
         display: none;
     }
@@ -662,7 +703,7 @@ footer a:hover {
     }
     .footerchild ul li img,
     .footerchild ul li .fa-fw {
-        height: 2.5rem;
+        height: 3.5rem;
     }
 }