]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - css/mock1.css
Yey i had some stuff stached!
[irc/freenode/web-7.0.git] / css / mock1.css
index 4ac98b72bf62f0a3a142b547598177acffe89842..6aa59c0e58202614c234f933a9c8432a71a7814f 100644 (file)
@@ -1,12 +1,30 @@
+/* vars */
+:root {
+  --navbar-bg: white;
+  --nlink-col: black;
+  --jumbotron-bg: rgba(75,235,74,.4);
+  --footer-bg: #eee;
+  --link-color: #428bca;
+  --text-color: #333;
+  --border-color: 0,0,0;
+  --box-hover-color: #eee;
+}
+
+/* global */
 body {
-  font-family: Arial, Helvetica, sans-serif;
+  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+  color: var(--text-color);
+}
+a {
+  color: var(--link-color);
+  text-decoration: none;
 }
 
 /* navbar */
 .navbar {
   width: 100%;
   height: 50px;
-  background-color: white;
+  background-color: var(--navbar-bg);
   position: fixed;
   left: 0;
   right: 0;
@@ -15,7 +33,7 @@ body {
   flex-wrap: nowrap;
   justify-content: space-between;
   align-items: center;
-  border-bottom: 1px solid #ccc;
+  border-bottom: 1px solid rgba(var(--border-color),.3);
   z-index: 100;
 }
 .nlogo {
@@ -23,7 +41,7 @@ body {
 }
 .nlink {
   text-decoration: none;
-  color: black;
+  color: var(--nlink-col);
 }
 
 /* main */
@@ -36,12 +54,12 @@ body {
   width: 100%; 
   margin-left: 0;
   margin-right: 0;
-  position: relative;
+  position: static;
 }
 
 /* jumbotron */
 .jumbotron {
-  background: rgba(75,235,74,.4);
+  background: var(--jumbotron-bg);
   width: 100%;
 }
 .child {
@@ -56,23 +74,26 @@ body {
 .box {
   text-align: center;
   text-decoration: none;
-  color: black;
+  color: var(--text-color);
   margin-bottom: 5px;
-  border: 1px solid #000;
+  border: 1px solid rgb(var(--border-color));
   flex-basis: 30%;
-  height: 120px;
+  height: 105px;
   background-color: #fff;
 }
 .box:hover, .box:active {
-  background-color: #eee;
+  background-color: var(--box-hover-color);
 }
 .title {
   text-align: center;
 }
 
 /* articles feed */
+h1 {
+  margin: 0;
+}
 div.art {
-  border-bottom: 1px solid #eee;
+  border-top: 1px solid rgba(var(--border-color),.3);
 }
 div.art:last-child {
   border-bottom: none;
@@ -91,24 +112,23 @@ p.art-date {
   color: #ccc;
   margin-top: 0;
 }
-a {
-  color: #0645AD;
-  text-decoration: none;
-}
 p.art-link {
   margin-top: 0;
 }
 
 /* footer */
 .footer {
-  background: #eee;
-  width: 100%;
+  background: var(--footer-bg);
+  width: device-width;
   margin: 0;
   padding: 0;
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
-  align-items: center;
+  align-items: flex-start;
+}
+.footer .footerchild p {
+  margin: 0;
 }
 .footerline {
   border-right: 1px solid #000;