Skip to content

Instantly share code, notes, and snippets.

@cmorss
Created August 13, 2013 21:48
Show Gist options
  • Save cmorss/6226043 to your computer and use it in GitHub Desktop.
Save cmorss/6226043 to your computer and use it in GitHub Desktop.
%button {
color: red;
font-size: 14px;
}
%button-big {
font-size: 18px;
}
## Problem:
Need a button with a different font-size
## Solution 1:
%button-medium {
font-size: 16px;
}
.my-class {
@extend %button-medium;
}
## Solution 2:
.my-class {
@extend %button;
font-size: 16px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment