]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - static/css/style.css
Fixed padding
[irc/freenode/web-7.0.git] / static / css / style.css
index bc27d000f627b4e2503085c97ce7759748e99d7f..d8750c007a3b292dfca98a31ab957abeb9351ff0 100644 (file)
@@ -1,18 +1,16 @@
 /* vars */
 :root {
-    --navbar-bg: #fff;
-    --jumbotron-bg: #eee;
-    --jumbotron-bg-fall: 65,225,64;
-    --copyright-bg: 170,178,171;
+    --navbar-bg: #292f2f;
+    --jumbotron-bg: #3a4346;
+    --copyright-bg: #292f2f;
     --link-color: 66,139,202;
-    --footer-link-color: 51,51,51;
+    --footer-link-color: #ddd;
     --nlink-col: #000;
     --text-color: #333;
-    --footer-text-color: 51,51,51;
-    --copyright-text-color: 0,0,0;
-    --jumbotron-text-color: #333;
-    --border-color: 0,0,0;
-    --footer-border-color: 51,51,51;
+    --footer-text-color: #eee;
+    --copyright-text-color: #ccc;
+    --jumbotron-text-color: #eee;
+    --border-color: #292f2f;
     --box-hover-color: #ddd;
     --box-round: 10px;
 }
@@ -43,6 +41,7 @@ a {
     width: 100%;
     height: 50px;
     background-color: var(--navbar-bg);
+    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
     position: fixed;
     left: 0;
     right: 0;
@@ -51,10 +50,27 @@ a {
     flex-wrap: nowrap;
     justify-content: space-between;
     align-items: center;
-    border-bottom: 1px solid rgba(var(--border-color),.3);
+    border-bottom: 1px solid var(--border-color);
     z-index: 100;
 }
 
+@media all and (max-width: 600px) {
+    .navbar {
+        position: absolute;
+    }
+}
+
+.navbar a {
+    height: 40px;
+}
+
+a.nav-light {
+    background-color: #eee;
+    height: 44px;
+    padding: 2px;
+    margin-right: 3px;
+}
+
 .nlogo {
     height: 40px;
 }
@@ -79,26 +95,33 @@ a {
 }
 
 .main {
-    margin-left: .5em;
-    margin-top: 1em;
+    margin: 0 .75em;
+    margin-top: .75em;
 }
 
 .main h1,
 .main h2,
 .main h3,
-.main p + p {
+.main li,
+.main p + p,
+.main ul + p {
     margin-top: .5em;
 }
 
+.main ul {
+    padding-left: 2em;
+    list-style-type: disc;
+}
+
 /* jumbotron */
 .jumbotron {
     position: relative;
     width: 100%;
     margin-top: -16px;
-    background: #000;
     background: var(--jumbotron-bg);
-    box-shadow: 0 3px 5px rgba(150,150,150,.36);
+    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
     color: var(--jumbotron-text-color);
+    padding: 2em 0;
 }
 
 .child {
@@ -130,22 +153,18 @@ a {
     -moz-border-radius: var(--box-round);
 }
 
-.box span {
-    display: block;
-}
-
 .box:hover,.box:active {
     background-color: var(--box-hover-color);
 }
 
 .box div{
-    font-size: 28px;
-    line-height: 28px;
-    padding-left: 8px;
-    font-weight: 700;
     position: relative;
-    display: inline;
-    top: -10px;
+    top: initial;
+    font-size: 20px;
+    font-weight: normal;
+    line-height: 16px;
+    padding: 10px 0;
+    display: block;
 }
 
 .fa-users {
@@ -156,10 +175,6 @@ a {
     margin-bottom: 5px;
 }
 
-.fa-4x {
-    padding-left: 8px;
-}
-
 .title {
     text-align: center;
 }
@@ -171,10 +186,28 @@ h1 {
 
 div.art {
     clear: right;
+    min-height: 2em;
+    flex-grow: 1;
+}
+
+div.artlist {
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: flex-start;
+    align-items: stretch;
+    margin-top: .5em;
+}
+
+@media all and (min-width: 800px) {
+    div.artlist {
+        max-width: 50%;
+        margin-right: auto;
+        margin-left: auto;
+    }
 }
 
 div.art:not(:first-child) {
-    border-top: 1px solid rgba(var(--border-color),.3);
+    border-top: 1px solid var(--border-color);
 }
 
 b.art {
@@ -205,12 +238,6 @@ p.art-link {
     margin-top: 0;
 }
 
-/* Article */
-.art-full h1,
-.art-full h2,
-.art-full h3,
-.art-full h4 {}
-
 /* help */
 .hmain {
     display: flex;
@@ -224,9 +251,9 @@ a.hchild {
 /*height: 40px;*/
     width: 95%;
     text-align: center;
-    border-top: 1px solid rgba(var(--border-color),.6);
-    border-left: 1px solid rgba(var(--border-color),.6);
-    border-right: 1px solid rgba(var(--border-color),.6);
+    border-top: 1px solid var(--border-color);
+    border-left: 1px solid var(--border-color);
+    border-right: 1px solid var(--border-color);
 }
 
 a.hchild:hover,a.hchild:active {
@@ -245,7 +272,7 @@ a.hchild:hover,a.hchild:active {
 
 .hchild:last-child {
     margin-bottom: 10px;
-    border-bottom: 1px solid rgba(var(--border-color),.6);
+    border-bottom: 1px solid var(--border-color);
     -webkit-border-bottom-right-radius: var(--box-round);
     -webkit-border-bottom-left-radius: var(--box-round);
     -moz-border-radius-bottomright: var(--box-round);
@@ -263,7 +290,7 @@ a.hchild:hover,a.hchild:active {
 
 .footer {
     background: var(--jumbotron-bg);
-    color: rgba(var(--footer-text-color),.9);
+    color: var(--footer-text-color);
     margin-top: 2vh;
     display: flex;
     flex-wrap: wrap;
@@ -291,7 +318,7 @@ a.hchild:hover,a.hchild:active {
 }
 
 .footer a {
-    color: #000;
+    color: var(--footer-link-color);
 }
 
 .footer h2 {
@@ -343,6 +370,9 @@ a.hchild:hover,a.hchild:active {
     .fa-4x {
         padding: 0;
         margin: 0;
+        width: 60px;
+        text-align: center;
+        font-size: 28px;
     }
 
     .box-container {
@@ -351,14 +381,22 @@ a.hchild:hover,a.hchild:active {
     }
 
     .box div {
+        font-size: 22px;
+        line-height: 22px;
+        padding-left: 8px;
+        font-weight: 700;
         position: relative;
-        top: initial;
-        font-size: 16px;
-        font-weight: normal;
-        line-height: 16px;
-        padding: 10px 0;
-        display: block;
+        display: inline;
+        text-align: center;
+
+    }
+
+    .box {
+        text-align: left;
+        border-radius: calc(var(--box-round) / 2);
+        margin: 5px 0;
     }
+
 }
 
 .footer h2,.footer h3 {
@@ -368,16 +406,16 @@ a.hchild:hover,a.hchild:active {
 
 .copyright {
     display: flex;
-    flex-wrap: nowrap;
+    flex-wrap: wrap;
     justify-content: space-between;
     align-items: center;
-    background: rgba(var(--copyright-bg),.5);
-    height: 1.5rem;
-    color: rgba(var(--copyright-text-color),.8);
+    background: var(--copyright-bg);
+    min-height: 1.5rem;
+    color: var(--copyright-text-color);
 }
 
 a.copyright {
-    background: rgba(var(--copyright-bg),.5);
+    background: var(--copyright-bg);
     margin-bottom: 0;
     margin-top: 0;
     margin-left: .5em;
@@ -398,13 +436,3 @@ a.copyright {
     margin-right: .5em;
     text-align: right;
 }
-
-@media all and (max-width: 600px) {
-    .copyright {
-        height: 5vh;
-    }
-
-    .copyright a img {
-        height: 5vh;
-    }
-}