]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - static/css/style.css
Add a title and more spacing into the article list
[irc/freenode/web-7.0.git] / static / css / style.css
index 7327c9c074e5c9c7fd2ccde745e4ffa5272966e3..a0b34943668a05742255c4602fd510d777d81852 100644 (file)
@@ -66,6 +66,9 @@ a {
 a:hover {
     color: var(--link-hover-color);
 }
+img {
+    max-width: 100%;
+}
 
 /* navbar */
 .navbar {
@@ -105,13 +108,12 @@ a:hover {
 .container {
     width: 100%;
     min-height: 98vh;
-    padding-top: 50px;
     padding-bottom: 11.5rem;
 }
 
 .main {
     margin: 0 auto;
-    margin-top: .75em;
+    margin-top: 3.75em;
     padding: 0 .75em;
     max-width: var(--max-width);
     line-height: 1.4;
@@ -152,7 +154,7 @@ hr {
     background: var(--jumbotron-bg);
     box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
     color: var(--jumbotron-text-color);
-    padding: 2em 0;
+    padding: 8em 0 4em 0;
 }
 
 .child {
@@ -189,7 +191,7 @@ hr {
     background-color: var(--box-hover-color);
 }
 
-.box div{
+.box span {
     position: relative;
     top: initial;
     font-size: 20px;
@@ -235,13 +237,13 @@ hr {
         margin: 0 .5em;
     }
 
-    .box div {
+    .box span {
         font-size: 22px;
         line-height: 22px;
         padding-left: 8px;
-        font-weight: 700;
+        font-weight: bold;
         position: relative;
-        display: inline;
+        display: inline-block;
         text-align: center;
     }
 
@@ -258,7 +260,7 @@ h1 {
 }
 
 .art-info {
-    line-height: 1.6;
+    line-height: 2.1;
     display: flex;
     flex-direction: row;
     flex-wrap: wrap;
@@ -269,6 +271,7 @@ h1 {
 .art-info h1 {
     margin-top: 0;
     display: inline;
+    margin-right: 2em;
 }
 
 .art-body {
@@ -281,13 +284,18 @@ h1 {
     margin-top: .5em;
 }
 
+.artlist.heading {
+    margin: 8em 0 2em 0;
+    padding: 0 0.75em;
+}
+
 .artlist .art-info:not(:first-child) {
     border-top: 1px solid var(--border-color);
 }
 
 .art-date {
     display: inline-block;
-    text-align: baseline;
+    vertical-align: baseline;
     line-height: 1;
     white-space: nowrap;
     color: var(--art-date-color);
@@ -314,13 +322,37 @@ h1 {
 }
 
 /* faq */
-.faq-index {
+.kb-index {
     list-style-type: none;
     padding-left: 0;
+    display: flex;
+    flex-direction: row;
+    flex-wrap: wrap;
+    justify-content: stretch;
+}
+
+.kb-index li {
+    display: block;
+    flex: 1 1 15em;
+    height: 7em;
+    margin: 1em;
 }
 
-.faq-index li {
-    font-size: 120%;
+.kb-index li h2 {
+    margin-top: 0;
+}
+
+.kb-index a {
+    display: block;
+    color: var(--text-color);
+    width: 100%;
+    height: 100%;
+}
+.kb-index a h2 {
+    color: var(--link-color);
+}
+.kb-index a:hover h2 {
+    color: var(--link-hover-color);
 }
 
 /* footer */
@@ -337,12 +369,14 @@ h1 {
     margin-top: 2vh;
     box-shadow: 0 -3px 5px rgba(150,150,150,.36);
     min-height: 9.5rem;
+
+    padding: 3em 0;
 }
 
 .footer-container {
     display: flex;
     flex-wrap: wrap;
-    justify-content: space-between;
+    justify-content: center;
     align-items: flex-start;
     margin: 0 auto;
 }
@@ -350,7 +384,8 @@ h1 {
 .footerchild {
     margin: 0 2em;
     margin-top: .5em;
-    flex: 1 1 1px;
+    flex-grow: 1;
+    flex-shrink: 0;
 }
 
 .footerchild:last-child {