Skip to content

Instantly share code, notes, and snippets.

@csswizardry
Created September 26, 2014 18:24
Show Gist options
  • Save csswizardry/0e438c4308577c85f420 to your computer and use it in GitHub Desktop.
Save csswizardry/0e438c4308577c85f420 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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);
}
.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