Yhozen/steemsites

View on GitHub
src/main.css

Summary

Maintainability
Test Coverage
@import url(https://fonts.googleapis.com/css?family=Fjalla+One|Open+Sans);
:root {
    --bg-color: white;
    --text-color: rgba(0, 0, 0, 0.87);
    --link-color: #cd8e3e;
    --input-border: #41a7a9; 
    --button-color: #216572;
}
a {
    color: var(--link-color);
}

body {
    background: var(--bg-color);
    font-family: 'Fjalla One', sans-serif;
    margin: 0;
    padding: 0;
    height: auto;
}
  
section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
section h1 {
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0;
    font-weight: 400;
    text-align: center;
    margin: 5px 0 0;
}
#section-1 h1 {
    letter-spacing: 9px;
} 
section h2 {
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0;
    font-weight: 300;
    text-align: center;
    margin: 2px 0;
    color: rgba(0, 0, 0, 0.80);
}
section p {
    font-family: Helvetica, Verdana, sans-serif;
    font-size: 17px;
    text-align: justify;
    text-align-last: center;
    color: var(--text-color);
}
section #dropText {
    font-size: 15px;
}
.content-section {
    padding: 20px 13vw;
    box-sizing: border-box;
}
#section-2 {
    padding: 20px 0;
}
#section-2 .flex-1 {
    padding: 20px 5vw;
}
.spacer {
    margin: 30px auto;
}
.spacer-m {
    margin: 45px auto;
}
.spacer-l {
    margin: 70px auto;
}

.pure-button-primary, .pure-button-selected, a.pure-button-primary, a.pure-button-selected {
    background: var(--button-color);
}

input {
    margin: 11px;
}
.skewed-up-left {
    position: absolute;
    bottom: 0;
    left: 0;
    border-width: 100px 0 0 100vw;
    border-color: transparent transparent transparent  var(--bg-color);
    border-style: solid;
}
.skewed-down-right {
    position: absolute;
    top: 0;
    left: 0;
    border-width: 0 100vw 100px 0;
    border-color: transparent  var(--bg-color) transparent transparent ;
    border-style: solid;
}
.skewed-up-right {
    position: absolute;
    bottom: 0;
    left: 0;
    border-width: 100px 100vw 0 0;
    border-color: transparent  var(--bg-color) transparent transparent ;
    border-style: solid;
}

.pure-img {
    min-width: 100%;
    height: 100%;
}

#publishButton {
    margin: 0px auto;
    display: block;
}
input[type=text], input[type=password] {
    width: 80%;
    border: 4px solid var(--input-border);
    border-radius: 5px;
    margin: 6px;
    outline: none;
    padding: 8px;
    box-sizing: border-box;
    transition: .3s;
    font-size: 17px;
    text-transform: uppercase;
}
input[type=text]:focus, input[type=password]:focus{
    border-color: dodgerBlue;
    box-shadow: 0 0 8px 0 dodgerBlue;
}

.publish .pure-u-1 input[type=text], .publish .pure-u-1 input[type=password] {
    width: 99%;
    margin: 6px auto;
    display: block;
}
  
.pure-form {
    margin: 5px 5%;
}
.pure-form button {
    font-size: 20px;
    vertical-align: 0%;
}

.flex-container {
    display: flex;
    justify-content: center;
  }
.flex-1 {
    flex: 1;
    margin: 0 10px;
}

#list {
    height: auto;
    min-height: 252px;
    padding: 10px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
   
li {
    padding: 3px 7px;
    font: 200 20px/1.5 Helvetica, Verdana, sans-serif;
    font-size: 17px;
    border-bottom: 1px solid #ccc;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    transition: font-size 0.3s ease, background-color 0.3s ease;
}

li:last-child {
    border: none;
}
   
li:hover {
    cursor: pointer;
    font-size: 20px;
}

@media only screen and (max-width: 500px) {
    section h1 {
        font-size: 45px;
    }
    section h2 {
        font-size: 24px;
    }
    section p {
        font-size: 16px;
    }
    .spacer-l, .spacer-m {
        margin: 20px;
    }
    .content-section {
        height: 150vh;
    }
    .unmobile {
        display: none;
    }
}