Last active
December 12, 2015 02:38
-
-
Save cbfrance/4699875 to your computer and use it in GitHub Desktop.
comparison of a couple of common styles, how to use them together
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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