drewcassidy.me/css/style.scss

168 lines
2.6 KiB
SCSS

---
---
@import 'util';
@import 'colors';
@import 'fonts';
.blue {
fill: $blue;
background-color: $blue;
}
.orange {
fill: $orange;
background-color: $orange;
}
.green {
fill: $green;
background-color: $green;
}
.magenta {
fill: $magenta;
background-color: $magenta;
}
.dark-blue {
fill: $dark-blue;
background-color: $dark-blue;
}
.dark-orange {
fill: $dark-orange;
background-color: $dark-orange;
}
.dark-green {
fill: $dark-green;
background-color: $dark-green;
}
.dark-magenta {
fill: $dark-magenta;
background-color: $dark-magenta;
}
::selection {
color: white;
background: $orange; /* WebKit/Blink Browsers */
}
::-moz-selection {
color: white;
background: $orange; /* WebKit/Blink Browsers */
}
body {
margin: 0;
background-color: $margin;
}
#box {
background-color: $background;
max-width: 800px;
z-index: 0;
margin-left: auto;
margin-right: auto;
margin-top: 0;
height: 100%;
@media screen and (min-width: $mobile-width){
box-shadow: 0 0 4px 5px $shadow;
-moz-box-shadow: 0 0 4px 5px $shadow;
-webkit-box-shadow: 0 0 4px 5px $shadow;
}
}
// HEADER
header {
@media screen and (max-width: $mobile-width){
top: 0;
right: 0;
z-index: 1;
background-color: darken($background, 5%);
border-bottom: 1px solid $subtle;
padding: {
top: 0;
bottom: 0;
left: 30px;
}
line-height: 10px;
}
#title {
margin:0;
padding: 10px;
font-family: $title-font;
color: $title-text;
font-weight: normal;
font-size: 28px;
@media screen and (max-width: $mobile-width){
font-size: 16px;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
color: inherit;
text-decoration: underline;
}
.slash {
display: inline-block;
vertical-align: -10%;
font: {
size: 36px;
}
@media screen and (max-width: $mobile-width){
font-size: 20px;
}
}
}
}
#main {
display: flex;
}
#content {
padding: {
right: 20px;
left: 20px;
}
flex-grow: 1;
font-family: $body-font;
color: $body-text;
line-height: 1.5em;
p {
margin: {
top: 0;
bottom: 15px;
}
}
}
footer {
font-size: 1em;
text-align: center;
}