]> jfr.im git - irc/freenode/web-7.0.git/blobdiff - css/mock1.css
updated style
[irc/freenode/web-7.0.git] / css / mock1.css
index 7b46a31de9a06690d74fee6f7a8157637618a7ef..604d2ad4c50853d9dcf47dbe34332452541a261b 100644 (file)
+/* vars */
+:root {
+    --navbar-bg: #fff;
+    /*--jumbotron-bg: 15,75,14;*/
+    /*--jumbotron-bg: rgba(75,235,74,.4);*/
+    --jumbotron-bg: rgb(238,238,238);
+    --jumbotron-bg-fall: 65,225,64;
+    --copyright-bg: 170,178,171;
+    --link-color: 66,139,202;
+    /*--footer-link-color: 255,255,255;*/
+    --footer-link-color: 51,51,51;
+    --nlink-col: #000;
+    --text-color: #333;
+    /*--footer-text-color: 255,255,255;*/
+    --footer-text-color: 51,51,51;
+    --copyright-text-color: 0,0,0;
+    --jumbotron-text-color: #333;
+    --border-color: 0,0,0;
+    /*--footer-border-color: 255,255,255;*/
+    --footer-border-color: 51,51,51;
+    --box-hover-color: #eee;
+    --box-round: 10px;
+}
+
 /* reset css for browser compat */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }
-
+/* global */
 body {
-  font-family: Verdana, Helvetica, sans-serif;
-  font-size: 16px;
-  color: #222222;
+    font-family: 'Open Sans';
+    color: var(--text-color);
+    font-size: 14px;
+    min-height: 100vh;
+    height: auto;
+}
+
+a {
+    color: rgb(var(--link-color));
+    text-decoration: none;
 }
 
 /* navbar */
 .navbar {
-  width: 100%;
-  height: 50px;
-  background-color: white;
-  position: fixed;
-  left: 0;
-  right: 0;
-  top: 0;
-  display: flex;
-  flex-wrap: nowrap;
-  align-items: center;
-  border-bottom: 1px solid #ccc;
-  z-index: 100;
+    width: 100%;
+    height: 50px;
+    background-color: var(--navbar-bg);
+    position: fixed;
+    left: 0;
+    right: 0;
+    top: 0;
+    display: flex;
+    flex-wrap: nowrap;
+    justify-content: space-between;
+    align-items: center;
+    border-bottom: 1px solid rgba(var(--border-color),.3);
+    z-index: 100;
 }
+
 .nlogo {
-  height: 40px;
+    height: 40px;
 }
-/* navigation links */
+
 .navlinks {
-        position: relative;
-        display: table;
-        height: 50px;
-        margin: 0 20px;
-        list-style-type: none;
+    display: flex;
+    justify-content: space-around;
+    flex-wrap: nowrap;
 }
 
-.navlinks > li {
-  text-decoration: none;
-  font-size: 20px;
-  color: black;
-  float: left;
-  display: table-cell;
-  margin: 0 15px;
-  padding-top: 25px;
-  transform: translate(0, -25%); /* I have no idea how or why this works but it just does. */
-  cursor: pointer; /* for pseudo-links to still feel like links */
+.nlink {
+    text-decoration: none;
+    color: var(--nlink-col);
 }
 
 /* main */
 .container {
-  margin: 51px 0 0; /* merged margins into one */
-  padding: 0;
-  width: 100%; 
-  position: relative;
-  height: auto;
-  min-height: 100%; /* height is needed for some properties */
+    padding: 50px 0 0;
+    width: 100%;
+    min-height: 70vh;
+}
+
+.main {
+    margin-left: .5em;
+    margin-top: 1em;
 }
 
 /* jumbotron */
 .jumbotron {
-  color: white;
-  height: 50%;
-  width: 100%;
-  top: 50%;
-  margin: 5% 0;
-  position: relative;
-  display: flex;
-  padding: 25px;
-  wrap-flex: wrap;
-  justify-content: center;
-  align-items: center;
+    position: relative;
+    width: 100%;
+    margin-top: -16px;
+    background: #000;
+    background: var(--jumbotron-bg);
+    box-shadow: 0 3px 5px rgba(150,150,150,.36);
+    color: var(--jumbotron-text-color);
 }
+
 .child {
-  text-align: center;
+    text-align: center;
+    margin: .5em;
+    font-size: 32px;
+    line-height: 48px;
 }
-.box {
-  text-align: center;
-  text-decoration: none;
-  color: black;
-  margin: 0 1%;
-  margin-bottom: 5px;
-  border: 1px solid #000;
-  height: 250px;
-  background-color: #fff;
-  border-radius: 10px;
-  width: 350px;
-  display: inline-block;
-}
-.box:hover, .box:active {
-  background-color: #eee;
+
+.box-container {
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: space-around;
+    align-items: stretch;
 }
-.title {
-  text-align: center;
+
+.box {
+    text-align: center;
+    text-decoration: none;
+    color: var(--text-color);
+    margin-bottom: 5px;
+    flex-basis: 30%;
+    border: 1px solid rgba(var(--border-color), 0.39);
+    background-color: #fff;
+    border-radius:  var(--box-round);
+    -webkit-border-radius: var(--box-round);
+    -moz-border-radius: var(--box-round);
 }
 
-/* a big welcome for newcomers ;) */
-.welcome-big {
-  position: relative;
-  margin-top: 51px;
-  border-bottom: 1px solid #888;
-  width: 100%;
+.box:hover,.box:active {
+    background-color: var(--box-hover-color);
+}
 
-  background: rgb(65,225,64); /* fallback */
-  background: rgba(15, 75, 14, .6);
+.fa-users {
+    margin-top: 5px;
+}
 
-  padding: 10%;
+.fa-comment,.fa-question {
+    margin-bottom: 5px;
+}
 
-  text-align: center;
-  color: white;
-  text-shadow: 0 3px 6px rgba(0,0,0, 0.16), 0 3px 6px rgba(0,0,0, 0.21);
+.title {
+    text-align: center;
+}
 
-  box-shadow: 0 3px 5px rgba(0,0,0, 0.36);
+/* articles feed */
+h1 {
+    margin: 0;
+}
 
-  height: 50%;
+div.art {
+    border-bottom: 1px solid rgba(var(--border-color),.3);
+    
+}
+div.art:last-child {
+    border-bottom: none;
+}
 
-  overflow: hidden;
-  vertical-align: bottom;
+b.art {
+    margin-bottom: 0;
+    font-size: 18px;
 }
 
-.welcome-big h1 { /* make this stand out */
-  font-size: 50px;
-  line-height: 80px;
-} 
+p.art {
+    margin: 0;
+}
 
-.welcome-big h3 {
-  font-size: 22px;
-  width: 70%;
-  margin: 0 auto;
-  vertical-align: middle;
-  }
+p.art-ingress {
+    font-style: italic;
+    margin: 0;
+}
 
-.welcome-learnmore {
-  border: 1px solid #666;
-  background-color: white;
-  font-size: 18px;
-  line-height: 24px;
-  font-weight: 400;
+.art-date {
+    color: #ccc;
+    margin: 0;
+}
+p.heading {
+    white-space: nowrap;
+}
+p.art-link {
+    margin-top: 0;
+}
 
-  padding: 5px 8px;
+/* help */
+.hmain {
+    display: flex;
+    flex-wrap: wrap;
+    justify-content: space-around;
+    align-items: stretch;
+}
 
-  border-radius: 8px;
+a.hchild {
+    color: var(--text-color);
+/*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);
+}
 
-  box-shadow: 0 3px 6px rgba(0,0,0, 0.16), 0 3px 6px rgba(0,0,0, 0.21);
+a.hchild:hover,a.hchild:active {
+    background-color: var(--box-hover-color);
+}
 
-  display: block;
-  position: relative;
-  margin: 0 auto;
-  vertical-align: middle;
-  bottom: -50%;
-  transform: translate(0, 50%);
+.hchild:first-child {
+    margin-top: 10px;
+    -webkit-border-top-left-radius: var(--box-round);
+    -webkit-border-top-right-radius: var(--box-round);
+    -moz-border-radius-topleft: var(--box-round);
+    -moz-border-radius-topright: var(--box-round);
+    border-top-left-radius: var(--box-round);
+    border-top-right-radius: var(--box-round);
+}
 
-  }
-/* articles feed */
-div.art {
-  border-bottom: 1px solid #eee;
+.hchild:last-child {
+    margin-bottom: 10px;
+    border-bottom: 1px solid rgba(var(--border-color),.6);
+    -webkit-border-bottom-right-radius: var(--box-round);
+    -webkit-border-bottom-left-radius: var(--box-round);
+    -moz-border-radius-bottomright: var(--box-round);
+    -moz-border-radius-bottomleft: var(--box-round);
+    border-bottom-right-radius: var(--box-round);
+    border-bottom-left-radius: var(--box-round);
 }
-div.art:last-child {
-  border-bottom: none;
+
+/* footer */
+.footer {
+    background: var(--jumbotron-bg);
+    color: rgba(var(--footer-text-color),.9);
+    margin-top: 1em;
+    display: flex;
+    flex-wrap: nowrap;
+    min-height: 30vh;
+    justify-content: space-between;
+    align-items: flex-start;
+    box-shadow: 0 -3px 5px rgba(150,150,150,.36);
 }
-h3.art {
-  margin: 0;
+
+.footerchild {
+    margin-top: .5em;
 }
-p.art {
-  margin: 0;
+
+.footer a {
+    color: #000;
 }
-p.art-ingress {
-  font-style: italic;
-  margin: 0;
+
+.footerchild ul,
+.footerchild ul ul {
+    margin-left: 10px;
+    margin-right: 10px;
+    list-style-type: none;
 }
-p.art-date {
-  color: #ccc;
-  margin-top: 0;
+
+.footerchild ul ul {
+    padding-left: 30px;
 }
-a {
-  color: #0645AD;
-  text-decoration: none;
+
+@media all and (max-width: 500px) {
+    .footer {
+        flex-direction: column;
+    }
+
+    .footerchild {
+        width: 100%;
+        border-bottom: 1px solid rgba(var(--footer-border-color),.5);
+    }
+
+    .footerchild:last-child {
+        border: none;
+    }
+
+    .footerchild ul li:last-child {
+        margin-bottom: .5em;
+    }
+    .hdn {
+    display: none;
+    }
 }
-p.art-link {
-  margin-top: 0;
+
+.footer h2,.footer h3 {
+    margin-left: 10px;
+    margin-right: 10px;
 }
 
-/* footer */
-.footer {
-  background: #666; /* >:^) */
-  width: 100%;
-  /* margin and padding are reset at line 1-5 */
-  display: flex;
-  flex-wrap: wrap;
-  color: #eee;
-  font-size: 18px;
-  line-height: 22px;
-  
-  min-height: 22px;
-  height: auto;
-
-  position: fixed;
-  bottom: 0;
-} /* plz no justify ;_; */
+.copyright {
+    display: flex;
+    height: 31px;
+    flex-wrap: nowrap;
+    justify-content: space-between;
+    align-items: center;
+    background: rgba(var(--copyright-bg),.5);
+    color: rgba(var(--copyright-text-color),.8);
+}
 
-.footer a {
-  text-decoration: none;
-  color: #7bf;
-  }
-
-.footer-links {
-  position: absolute;
-  right: 0;
-  margin-right: 8px;
-  }
+a.copyright {
+    background: rgba(var(--copyright-bg),.5);
+    margin-bottom: 0;
+    margin-top: 0;
+    margin-left: .5em;
+    margin-right: .5em;
+}
+.copyright p {
+    margin-bottom: 0;
+    margin-top: 0;
+    margin-left: .5em;
+    margin-right: .5em;
+}