Created
February 9, 2017 17:09
-
-
Save slugbyte/9e922ec2b3f5f25c3ad417f3b29726a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$brand-primary: #fafaf7; | |
$brand-secondary: #afafaf; | |
$brand-active: #47a; | |
$brand-focus: #774; | |
$brand-error: #f44; | |
$brand-success: #7f7; | |
$brand-black: #000; | |
$brand-dark: #444; | |
$brand-med: #777; | |
$brand-light: #fffff7; | |
$pad: 0.5em; | |
@mixin magic-pad { | |
box-sizing: border-box; | |
padding: $pad; | |
} | |
@mixin horizontal-center { | |
margin: 0 auto; | |
} | |
@mixin bubble { | |
@include magic-pad; | |
border-radius: 0.25em; | |
font-family: sans-serif; | |
} | |
@mixin code { | |
background-color: $brand-med; | |
color: $brand-light; | |
} | |
* { | |
position: static; | |
width: 100%; | |
margin: 0px; | |
padding: 0px; | |
font-size: 1em; | |
font-weight: normal; | |
line-height: 1.2em; | |
color: $brand-black; | |
&:focus { | |
outline: 0; | |
} | |
} | |
html, body { | |
position: relative; | |
width: 100%; | |
height: 100%; | |
background-color: $brand-secondary; | |
} | |
body { | |
@include horizontal-center; | |
width: 960px; | |
height: auto; | |
padding: $pad * 2; | |
background-color: $brand-primary; | |
} | |
body * { | |
margin-bottom: $pad; | |
} | |
@for $i from 6 through 1 { | |
h#{$i} { | |
color: $brand-dark; | |
font-size: 9/($i + 2) * 1em;; | |
margin-bottom: $i/10 * 1em; | |
} | |
} | |
p { | |
color: $brand-med; | |
} | |
a { | |
color: $brand-active; | |
font-weight: bolder; | |
text-decoration: none; | |
font-family: sans-serif; | |
} | |
pre { | |
@include magic-pad; | |
padding-left: $pad * 2; | |
@include code; | |
} | |
ul { | |
margin-left: $pad; | |
padding-left: $pad; | |
} | |
button { | |
@include bubble; | |
width: fit-content; | |
border: none; | |
background-color: $brand-dark; | |
color: $brand-light; | |
&:hover { | |
background-color: $brand-med; | |
} | |
&:active { | |
color: $brand-light; | |
background-color: $brand-black; | |
} | |
} | |
form { | |
font-family: sans-serif; | |
input { | |
@include bubble; | |
border: 2px solid $brand-dark; | |
&:focus { | |
border: 2px solid $brand-focus; | |
border-radius: 0.25em; | |
} | |
} | |
} | |
.special { | |
color: $brand-dark; | |
font-size: 1.1em; | |
font-weight: bold; | |
} | |
.code { | |
@include code; | |
font-family: sans-serif; | |
font-size: 0.9em; | |
padding-left: $pad / 2; | |
border-radius: 0.25em; | |
border: 2px solid $brand-med; | |
} | |
.bubble { | |
@include bubble; | |
background-color: $brand-dark; | |
} | |
.error { | |
@include bubble; | |
color: $brand-light; | |
background-color: $brand-error; | |
} | |
.success { | |
@include bubble; | |
color: $brand-dark; | |
background-color: $brand-success; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment