Last active
December 27, 2015 02:19
-
-
Save alextea/7251431 to your computer and use it in GitHub Desktop.
Fix class name
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
@import "../_colours"; | |
@import "../_typography"; | |
$alpha-colour: $pink; | |
$beta-colour: $orange; | |
@mixin phase-banner($state: alpha) { | |
padding: 0.5em 0; | |
@if $state == alpha { | |
background-color: $alpha-colour; | |
} @else if $state == beta { | |
background-color: $beta-colour; | |
} | |
p { | |
max-width: 960px; | |
margin: 0 auto; | |
padding: 0 15px; | |
color: $text-colour; | |
@include core-16; | |
} | |
a, a:link, a:visited, a:active { | |
color: $text-colour; | |
} | |
a:hover { | |
color: $text-colour; | |
} | |
} | |
@mixin phase-tag($state: alpha) { | |
display: block; | |
float: left; | |
@if $state == alpha { | |
background-color: $alpha-colour; | |
} @else if $state == beta { | |
background-color: $beta-colour; | |
} | |
color: #fff; | |
@include bold-16; | |
line-height: 20px; | |
text-transform: uppercase; | |
letter-spacing: 1px; | |
text-decoration: none; | |
margin: 3px 10px 0 0; | |
padding: 2px 5px 0; | |
} | |
.alpha-banner { | |
@include phase-banner(alpha); | |
} | |
.beta-banner { | |
@include phase-banner(beta); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment