Skip to content

Instantly share code, notes, and snippets.

@cbfrance
Last active December 12, 2015 02:38
Show Gist options
  • Save cbfrance/4699875 to your computer and use it in GitHub Desktop.
Save cbfrance/4699875 to your computer and use it in GitHub Desktop.
comparison of a couple of common styles, how to use them together
// Baseline styles which should apply to all decent form markup
// Assume well-marked up forms
form input[type="submit"] {
// ... submit button styles
}
// Twitter bootstrap style buttons
// uses the placeholer % to avoid a needless render of the button class
// ... we do want to put btn classes on things!
%btn {
// ... many more twitter bootstrap styles
}
// now we can use TB stuff semantically
form input[type="submit"] {
@extend %btn;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment