Created
September 26, 2014 18:24
-
-
Save csswizardry/0e438c4308577c85f420 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
@mixin font-weight($weight) { | |
@if($weight == 'normal') { | |
font-weight: 400; | |
} | |
@elseif($weight == 'bold') { | |
font-weight: 700; | |
} | |
} | |
.btn { | |
display: inline-block; | |
padding: 1em; | |
border-radius: 2px; | |
} | |
.btn-positive { | |
@extend .btn; | |
background: green; | |
color: white; | |
} | |
.btn-negative { | |
@extend .btn; | |
background: red; | |
color: white; | |
} | |
.heading-main { | |
font-size: 3em; | |
line-height: 1.4; | |
@include font-weight(bold); | |
} | |
.heading-sub { | |
font-size: 2em; | |
line-height: 1.2; | |
@include font-weight(normal); | |
} | |
.message-error { | |
@include font-weight(bold); | |
} |
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
.btn, .btn-positive, .btn-negative { | |
display: inline-block; | |
padding: 1em; | |
border-radius: 2px; | |
} | |
.btn-positive { | |
background: green; | |
color: white; | |
} | |
.btn-negative { | |
background: red; | |
color: white; | |
} | |
.heading-main { | |
font-size: 3em; | |
line-height: 1.4; | |
font-weight: 700; | |
} | |
.heading-sub { | |
font-size: 2em; | |
line-height: 1.2; | |
font-weight: 400; | |
} | |
.message-error { | |
font-weight: 700; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment