feather/style.scss

285 lines
4.3 KiB
SCSS
Raw Normal View History

2017-02-22 10:57:21 +03:00
---
---
2017-02-27 23:27:41 +03:00
/* 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);
2017-02-27 04:28:30 +03:00
$color-accent: #0090FF;
2017-02-27 23:42:31 +03:00
$color-accent-lighter: rgba($color-accent, 0.5);
$color-accent-darker: #0086EC;
2017-02-27 23:27:41 +03:00
$transition-duration: 200ms;
$border-radius: 0.375rem;
2017-02-27 04:28:30 +03:00
2017-02-26 23:27:25 +03:00
/* Mixins */
2017-02-27 04:28:30 +03:00
@mixin for-tablet-portrait-up {
2017-02-26 23:27:25 +03:00
@media (min-width: 640px) {
@content;
}
}
2017-02-27 04:28:30 +03:00
@mixin for-tablet-landscape-up {
@media (min-width: 900px) {
@content;
}
}
2017-02-26 23:27:25 +03:00
/* General */
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
margin: 0;
font-family: "Rubik", sans-serif;
-webkit-font-smoothing: antialiased;
2017-02-27 23:44:19 +03:00
-moz-osx-font-smoothing: grayscale;
2017-02-27 23:27:41 +03:00
color: $color-text-primary;
2017-02-26 23:27:25 +03:00
}
a {
text-decoration: none;
color: currentColor;
}
.section {
display: flex;
flex-direction: column;
align-items: center;
2017-02-27 02:15:28 +03:00
padding: 4rem 0;
2017-02-26 23:27:25 +03:00
}
.container {
2017-02-27 23:27:41 +03:00
width: 85%;
2017-02-26 23:27:25 +03:00
max-width: 64rem;
}
.button {
display: inline-block;
padding: 1rem 1.5rem;
2017-02-27 23:27:41 +03:00
border-radius: $border-radius;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
2017-02-27 23:42:31 +03:00
transition:
color $transition-duration,
background-color $transition-duration,
box-shadow $transition-duration;
2017-02-26 23:27:25 +03:00
}
.button-primary {
2017-02-27 01:44:46 +03:00
color: white;
2017-02-27 04:28:30 +03:00
background-color: $color-accent;
2017-02-27 23:42:31 +03:00
&:hover {
background-color: $color-accent-darker;
}
2017-02-26 23:27:25 +03:00
}
.button-secondary {
2017-02-27 04:28:30 +03:00
color: $color-accent;
2017-02-27 23:42:31 +03:00
box-shadow: inset 0 0 0 1px $color-accent-lighter;
&:hover {
box-shadow: inset 0 0 0 1px $color-accent;
}
2017-02-26 23:27:25 +03:00
}
/* Header */
.header {
text-align: center;
2017-02-27 04:28:30 +03:00
@include for-tablet-portrait-up {
2017-02-26 23:27:25 +03:00
text-align: left;
}
}
.header-container {
display: flex;
flex-direction: column;
justify-content: space-between;
2017-02-27 04:28:30 +03:00
@include for-tablet-portrait-up {
2017-02-26 23:27:25 +03:00
flex-direction: row;
align-items: center;
}
}
.title {
margin: 0 0 0.5rem;
font-size: 2rem;
font-weight: 300;
}
.description {
margin: 0;
2017-02-27 23:27:41 +03:00
color: $color-text-secondary;
2017-02-26 23:27:25 +03:00
}
.header-button-group {
display: flex;
flex-direction: column;
margin-top: 4rem;
2017-02-27 04:28:30 +03:00
@include for-tablet-portrait-up {
2017-02-26 23:27:25 +03:00
flex-direction: row-reverse;
margin-top: 0;
.button {
margin-left: 1rem;
}
}
.button + .button {
margin-top: 1rem;
2017-02-27 04:28:30 +03:00
@include for-tablet-portrait-up {
2017-02-26 23:27:25 +03:00
margin-top: 0;
}
}
}
2017-02-26 23:27:46 +03:00
2017-02-27 01:44:46 +03:00
/* Icons */
2017-02-27 04:28:30 +03:00
.icons {
padding: 3rem 0;
background: #f5f5f5;
}
2017-02-27 02:15:28 +03:00
.icons-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
2017-02-26 23:27:46 +03:00
.feather-icon {
display: inline-block;
width: 1.5rem;
height: 1.5rem;
2017-02-27 02:15:28 +03:00
margin: 1rem;
2017-02-26 23:27:46 +03:00
stroke-width: 2px;
> svg {
width: 100%;
height: 100%;
stroke: currentColor;
stroke-width: inherit;
}
}
2017-02-26 23:40:07 +03:00
/* Request */
.request-container {
display: flex;
flex-direction: column;
align-items: center;
}
.request-heading {
margin: 0 0 1.5rem;
font-size: 1.25rem;
font-weight: 400;
text-align: center;
}
2017-02-27 04:28:30 +03:00
/* Footer */
.footer {
padding: 1rem 0;
2017-02-27 23:27:41 +03:00
border-top: 1px solid $color-border;
2017-02-27 04:28:30 +03:00
2017-02-27 23:27:41 +03:00
@include for-tablet-landscape-up {
2017-02-27 04:28:30 +03:00
padding: 4rem 0;
}
}
.footer a {
2017-02-27 23:27:41 +03:00
transition: color $transition-duration;
2017-02-27 04:28:30 +03:00
2017-02-27 23:27:41 +03:00
&:hover {
color: $color-accent;
2017-02-27 04:28:30 +03:00
}
}
.footer-container {
display: flex;
flex-direction: column;
}
.footer-main {
display: flex;
flex-direction: column;
2017-02-27 23:27:41 +03:00
@include for-tablet-landscape-up {
flex-direction: row-reverse;
justify-content: space-between;
margin-bottom: 1rem;
}
2017-02-27 04:28:30 +03:00
}
.footer-links {
2017-02-27 23:27:41 +03:00
display: flex;
flex-direction: column;
2017-02-27 04:28:30 +03:00
margin: 0;
padding: 0;
list-style: none;
2017-02-27 23:27:41 +03:00
color: $color-text-secondary;
2017-02-27 04:28:30 +03:00
@include for-tablet-landscape-up {
flex-direction: row;
}
}
.footer-link {
2017-02-27 23:27:41 +03:00
border-bottom: 1px solid $color-border;
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 1px;
2017-02-27 04:28:30 +03:00
@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 {
2017-02-27 23:27:41 +03:00
padding: 0;
2017-02-27 04:28:30 +03:00
}
}
}
.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;
2017-02-27 23:27:41 +03:00
color: $color-text-secondary;
2017-02-27 04:28:30 +03:00
@include for-tablet-landscape-up {
align-self: flex-start;
margin: 0;
}
}