Skip to content

Instantly share code, notes, and snippets.

@nadavspi
Created August 4, 2014 23:00
Show Gist options
  • Select an option

  • Save nadavspi/8f68d2297402afcf1897 to your computer and use it in GitHub Desktop.

Select an option

Save nadavspi/8f68d2297402afcf1897 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<a href="#" class="button-primary">Primary button</a>
<a href="#" class="button-secondary">Secondary button</a>
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.0)
// ----
.button {
padding: 1em 2em;
font-family: Avenir, Helvetica, sans-serif;
letter-spacing: 1px;
text-transform: uppercase;
text-decoration: none;
}
.button-primary {
@extend .button;
color: white;
background-color: maroon;
}
.button-secondary {
@extend .button;
color: dimgray;
background-color: papayawhip;
}
.button, .button-primary, .button-secondary {
padding: 1em 2em;
font-family: Avenir, Helvetica, sans-serif;
letter-spacing: 1px;
text-transform: uppercase;
text-decoration: none;
}
.button-primary {
color: white;
background-color: maroon;
}
.button-secondary {
color: dimgray;
background-color: papayawhip;
}
<a href="#" class="button-primary">Primary button</a>
<a href="#" class="button-secondary">Secondary button</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment