Update page styles

This commit is contained in:
Cole Bemis 2017-02-26 17:28:30 -08:00
parent b5662c7095
commit 92116b8a84

View File

@ -1,13 +1,21 @@
--- ---
--- ---
$color-accent: #0090FF;
/* Mixins */ /* Mixins */
@mixin for-tablet-up { @mixin for-tablet-portrait-up {
@media (min-width: 640px) { @media (min-width: 640px) {
@content; @content;
} }
} }
@mixin for-tablet-landscape-up {
@media (min-width: 900px) {
@content;
}
}
/* General */ /* General */
html { html {
@ -22,6 +30,7 @@ body {
margin: 0; margin: 0;
font-family: "Rubik", sans-serif; font-family: "Rubik", sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
color: rgba(black, 0.9);
} }
a { a {
@ -45,25 +54,33 @@ a {
display: inline-block; display: inline-block;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
border-radius: 0.375rem; border-radius: 0.375rem;
border: 1px solid transparent; transition: background-color 150ms, box-shadow 150ms;
} }
.button-primary { .button-primary {
color: white; color: white;
background-color: black; background-color: $color-accent;
&:hover {
background-color: mix(black, $color-accent, 10%);
}
} }
.button-secondary { .button-secondary {
border-color: black; color: $color-accent;
box-shadow: inset 0 0 0 1px rgba($color-accent, 0.25);
&:hover {
box-shadow: inset 0 0 0 1px rgba($color-accent, 0.5);
}
} }
/* Header */ /* Header */
.header { .header {
border-bottom: 1px solid black;
text-align: center; text-align: center;
@include for-tablet-up { @include for-tablet-portrait-up {
text-align: left; text-align: left;
} }
} }
@ -73,7 +90,7 @@ a {
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
@include for-tablet-up { @include for-tablet-portrait-up {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
@ -87,6 +104,7 @@ a {
.description { .description {
margin: 0; margin: 0;
color: rgba(black, 0.5);
} }
.header-button-group { .header-button-group {
@ -94,7 +112,7 @@ a {
flex-direction: column; flex-direction: column;
margin-top: 4rem; margin-top: 4rem;
@include for-tablet-up { @include for-tablet-portrait-up {
flex-direction: row-reverse; flex-direction: row-reverse;
margin-top: 0; margin-top: 0;
@ -106,7 +124,7 @@ a {
.button + .button { .button + .button {
margin-top: 1rem; margin-top: 1rem;
@include for-tablet-up { @include for-tablet-portrait-up {
margin-top: 0; margin-top: 0;
} }
} }
@ -114,6 +132,11 @@ a {
/* Icons */ /* Icons */
.icons {
padding: 3rem 0;
background: #f5f5f5;
}
.icons-container { .icons-container {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -137,10 +160,6 @@ a {
/* Request */ /* Request */
.request {
background-color: lightgray;
}
.request-container { .request-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -154,3 +173,94 @@ a {
text-align: center; text-align: center;
} }
/* Footer */
.footer {
background-color: #212121;
color: white;
padding: 1rem 0;
@include for-tablet-portrait-up {
padding: 4rem 0;
}
}
.footer a {
@include for-tablet-landscape-up {
padding: 0 0 0.25rem;
border-bottom: 1px solid transparent;
transition: border-color 150ms;
&:hover {
border-color: rgba(white, 0.5);
}
}
}
.footer-container {
display: flex;
flex-direction: column;
}
.footer-main {
display: flex;
flex-direction: column;
@include for-tablet-landscape-up {
flex-direction: row-reverse;
justify-content: space-between;
margin-bottom: 0.75rem;
}
}
.footer-links {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
@include for-tablet-landscape-up {
flex-direction: row;
}
}
.footer-link {
border-bottom: 1px solid rgba(white, 0.15);
@include for-tablet-landscape-up {
border-bottom: none;
margin-left: 2rem;
}
a {
display: inline-block;
width: 100%;
padding: 1rem 0;
@include for-tablet-landscape-up {
padding: 0.25rem 0;
}
}
}
.made-with-love {
margin: 2rem 0 1rem;
text-align: center;
@include for-tablet-landscape-up {
margin: 0;
}
}
.icon-count {
margin: 0 0 1rem;
font-size: 0.875rem;
text-align: center;
color: rgba(white, 0.5);
@include for-tablet-landscape-up {
align-self: flex-start;
margin: 0;
}
}