Skip to content

Instantly share code, notes, and snippets.

@CheetoMao
Created October 3, 2014 16:41
Show Gist options
  • Save CheetoMao/36b7488e8dab4658cb89 to your computer and use it in GitHub Desktop.
Save CheetoMao/36b7488e8dab4658cb89 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<button class="button">.button</button>
<button class="button--yellow">.button--yellow</button>
<button class="button_blue">.button_blue</button>
<button class="button-green">.button-green</button>
<button class="buttonPink">.buttonPink</button>
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
.button {
background: #F00;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1.25rem;
padding: 1rem 2rem;
box-shadow: 0 -4px 0px 0 rgba(0,0,0,.2)inset;
&--yellow {
@extend .button;
background: #FF0;
}
&_blue {
@extend .button;
background: #00F;
}
&-green {
@extend .button;
background: #0F0;
}
&Pink {
@extend .button;
background: #F0F;
}
}
.button, .button--yellow, .button_blue, .button-green, .buttonPink {
background: #F00;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1.25rem;
padding: 1rem 2rem;
box-shadow: 0 -4px 0px 0 rgba(0, 0, 0, 0.2) inset;
}
.button--yellow {
background: #FF0;
}
.button_blue {
background: #00F;
}
.button-green {
background: #0F0;
}
.buttonPink {
background: #F0F;
}
<button class="button">.button</button>
<button class="button--yellow">.button--yellow</button>
<button class="button_blue">.button_blue</button>
<button class="button-green">.button-green</button>
<button class="buttonPink">.buttonPink</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment