Update styles

This commit is contained in:
Cole Bemis 2017-02-27 12:27:41 -08:00
parent 92116b8a84
commit b24716ebb3

View File

@ -1,6 +1,17 @@
--- ---
--- ---
/* Variables */
$color-primary: #000;
$color-text-primary: rgba($color-primary, 0.9);
$color-text-secondary: rgba($color-primary, 0.5);
$color-border: rgba($color-primary, 0.1);
$color-accent: #0090FF; $color-accent: #0090FF;
$color-accent-secondary: rgba($color-accent, 0.5);
$transition-duration: 200ms;
$border-radius: 0.375rem;
/* Mixins */ /* Mixins */
@ -30,7 +41,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); color: $color-text-primary;
} }
a { a {
@ -46,33 +57,32 @@ a {
} }
.container { .container {
width: 90%; width: 85%;
max-width: 64rem; max-width: 64rem;
} }
.button { .button {
display: inline-block; display: inline-block;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
border-radius: 0.375rem; border-radius: $border-radius;
transition: background-color 150ms, box-shadow 150ms; font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
transition: opacity $transition-duration;
&:hover {
opacity: 0.7;
}
} }
.button-primary { .button-primary {
color: white; color: white;
background-color: $color-accent; background-color: $color-accent;
&:hover {
background-color: mix(black, $color-accent, 10%);
}
} }
.button-secondary { .button-secondary {
color: $color-accent; color: $color-accent;
box-shadow: inset 0 0 0 1px rgba($color-accent, 0.25); box-shadow: inset 0 0 0 1px $color-accent-secondary;
&:hover {
box-shadow: inset 0 0 0 1px rgba($color-accent, 0.5);
}
} }
/* Header */ /* Header */
@ -104,7 +114,7 @@ a {
.description { .description {
margin: 0; margin: 0;
color: rgba(black, 0.5); color: $color-text-secondary;
} }
.header-button-group { .header-button-group {
@ -176,24 +186,19 @@ a {
/* Footer */ /* Footer */
.footer { .footer {
background-color: #212121;
color: white;
padding: 1rem 0; padding: 1rem 0;
border-top: 1px solid $color-border;
@include for-tablet-portrait-up { @include for-tablet-landscape-up {
padding: 4rem 0; padding: 4rem 0;
} }
} }
.footer a { .footer a {
@include for-tablet-landscape-up { transition: color $transition-duration;
padding: 0 0 0.25rem;
border-bottom: 1px solid transparent;
transition: border-color 150ms;
&:hover { &:hover {
border-color: rgba(white, 0.5); color: $color-accent;
}
} }
} }
@ -206,19 +211,20 @@ a {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@include for-tablet-landscape-up { @include for-tablet-landscape-up {
flex-direction: row-reverse; flex-direction: row-reverse;
justify-content: space-between; justify-content: space-between;
margin-bottom: 0.75rem; margin-bottom: 1rem;
} }
} }
.footer-links { .footer-links {
display: flex;
flex-direction: column;
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
display: flex; color: $color-text-secondary;
flex-direction: column;
@include for-tablet-landscape-up { @include for-tablet-landscape-up {
flex-direction: row; flex-direction: row;
@ -226,7 +232,10 @@ a {
} }
.footer-link { .footer-link {
border-bottom: 1px solid rgba(white, 0.15); border-bottom: 1px solid $color-border;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
@include for-tablet-landscape-up { @include for-tablet-landscape-up {
border-bottom: none; border-bottom: none;
@ -239,7 +248,7 @@ a {
padding: 1rem 0; padding: 1rem 0;
@include for-tablet-landscape-up { @include for-tablet-landscape-up {
padding: 0.25rem 0; padding: 0;
} }
} }
} }
@ -257,7 +266,7 @@ a {
margin: 0 0 1rem; margin: 0 0 1rem;
font-size: 0.875rem; font-size: 0.875rem;
text-align: center; text-align: center;
color: rgba(white, 0.5); color: $color-text-secondary;
@include for-tablet-landscape-up { @include for-tablet-landscape-up {
align-self: flex-start; align-self: flex-start;