217 lines
2.7 KiB
SCSS
217 lines
2.7 KiB
SCSS
|
|
||
|
//
|
||
|
// IMPORTS
|
||
|
//
|
||
|
|
||
|
@import "_reset";
|
||
|
@import "_variables";
|
||
|
@import "_mixins";
|
||
|
@import "_highlights"; // Tempted to move this to the end of the file, so that it shows up at the end of the .css
|
||
|
|
||
|
//
|
||
|
// BASE RULES
|
||
|
//
|
||
|
|
||
|
html {
|
||
|
font-size: 100%;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
max-width: 820px;
|
||
|
margin: 0 auto;
|
||
|
|
||
|
background: $white;
|
||
|
font: 18px/1.4 $helvetica;
|
||
|
color: $darkGray;
|
||
|
}
|
||
|
|
||
|
h1, h2, h3, h4, h5, h6, .section > header {
|
||
|
font-family: $helveticaNeue;
|
||
|
color: $darkerGray;
|
||
|
font-weight: bold;
|
||
|
|
||
|
line-height: 1.7;
|
||
|
margin: 2em 0 15px;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
font-size: 2rem;
|
||
|
@include mobile {
|
||
|
font-size: 2rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
h2 {
|
||
|
letter-spacing: 1px;
|
||
|
font-weight: 300;
|
||
|
|
||
|
font-size: 1.7rem;
|
||
|
@include mobile {
|
||
|
font-size: 1.5rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
h3 {
|
||
|
font-weight: 600;
|
||
|
|
||
|
font-size: 1.2rem;
|
||
|
@include mobile {
|
||
|
font-size: 1.2rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
h4 {
|
||
|
font-size: 1rem;
|
||
|
@include mobile {
|
||
|
font-size: 1rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
margin: 15px 0;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
text-decoration: none;
|
||
|
cursor: pointer;
|
||
|
color: $blue;
|
||
|
&:hover, &:active {
|
||
|
text-decoration: underline;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ul {
|
||
|
padding-left: 30px;
|
||
|
list-style-type: disc;
|
||
|
}
|
||
|
|
||
|
// Specify the color of the selection
|
||
|
::-moz-selection {
|
||
|
color: $black;
|
||
|
background: $lighterGray;
|
||
|
}
|
||
|
::selection {
|
||
|
color: $black;
|
||
|
background: $lighterGray;
|
||
|
}
|
||
|
|
||
|
|
||
|
//
|
||
|
// LAYOUT / SECTIONS
|
||
|
//
|
||
|
|
||
|
header {
|
||
|
margin: 40px 0;
|
||
|
}
|
||
|
|
||
|
.logo {
|
||
|
float: left;
|
||
|
|
||
|
a {
|
||
|
text-decoration: none;
|
||
|
cursor: pointer;
|
||
|
color: $darkGray;
|
||
|
&:hover, &:active {
|
||
|
color: $blue;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
nav {
|
||
|
float: right;
|
||
|
|
||
|
font-family: $helveticaNeue;
|
||
|
font-size: 1.1rem;
|
||
|
@include mobile {
|
||
|
font-size: 1rem;
|
||
|
}
|
||
|
|
||
|
a {
|
||
|
margin-left: 25px;
|
||
|
text-align: right;
|
||
|
font-weight: 300;
|
||
|
letter-spacing: 1px;
|
||
|
color: $gray;
|
||
|
|
||
|
&:hover, &:active {
|
||
|
text-decoration: none;
|
||
|
cursor: pointer;
|
||
|
color: $darkGray;
|
||
|
&:hover, &:active {
|
||
|
color: $blue;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.logo, nav {
|
||
|
@include mobile {
|
||
|
float: none;
|
||
|
width: 100%;
|
||
|
text-align: center;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.hero {
|
||
|
margin: 80px 20px 40px;
|
||
|
@include mobile {
|
||
|
margin: 40px 0;
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
float: left;
|
||
|
width: 160px;
|
||
|
padding-right: 30px;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
float: left;
|
||
|
width: 590px;
|
||
|
|
||
|
margin: 0;
|
||
|
|
||
|
font-weight: 400;
|
||
|
font-size: 2.5rem;
|
||
|
line-height: 1.3;
|
||
|
@include mobile {
|
||
|
font-size: 2.5rem;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
float: left;
|
||
|
width: 590px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
article {
|
||
|
width: 700px;
|
||
|
//margin: 0 auto;
|
||
|
|
||
|
@include mobile {
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
blockquote {
|
||
|
border-left: 2px solid $gray;
|
||
|
font-size: 1.2em;
|
||
|
font-style: italic;
|
||
|
margin: 1.8em .8em;
|
||
|
padding: 0.1em 1em;
|
||
|
color: $gray;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
footer {
|
||
|
text-align: center;
|
||
|
|
||
|
border-top: 1px $lightGray solid;
|
||
|
padding: 1rem 0;
|
||
|
|
||
|
p {
|
||
|
margin: 0 0 1rem 0;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
}
|