]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - static/css/style.css
fix line-endings
[irc/freenode/web-7.0.git] / static / css / style.css
index e68a64f382743e219511d1adc0f1f1b69e3ea2f0..40c079bc2fb8b1214dac91940bfddfeaecff7f53 100644 (file)
@@ -77,6 +77,7 @@ img {
 
 /* navbar */
 .navbar {
+    color: var(--c-light);
     width: 100%;
     height: 50px;
     background-color: var(--navbar-bg);
@@ -105,13 +106,94 @@ img {
     height: 40px;
 }
 
+#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;
+    }
+}
+
 .nlogo {
     height: 40px;
 }
 
 .tlogo {
-    height: 40px;
-    margin-bottom: -9px;
+    height: 2.4ex;
+    margin-bottom: -.47ex;
     margin-left: -10px;
     margin-right: -10px;
 }
@@ -358,6 +440,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;
 }
@@ -620,6 +709,5 @@ footer.copyright div {
 }
 
 .copyright img {
-    height: 1.5rem;
     width: auto;
 }