Created
July 19, 2014 06:55
-
-
Save maylogger/e81f119d2418a94ebdaa to your computer and use it in GitHub Desktop.
各種 modifier 的優缺點
This file contains 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
.btn { | |
} | |
.btn--large { | |
} | |
<a class="btn btn--large"> // for ie6 | |
---- | |
.btn { | |
&.large { | |
} | |
} | |
<a class="btn large"> | |
--- | |
.btn { | |
} | |
.btn-large { | |
@extned .btn; | |
} | |
<a class="btn-large"> | |
--- | |
.card { | |
} | |
.card-sport { | |
} | |
.card-food { | |
} | |
<div class="card-group"> | |
<div class="card card_sport"> | |
<div class="card-header"></div> | |
<div class="card-body"></div> | |
<div class="card-footer"></div> | |
</div> | |
<div class="card card-food"></div> | |
<div class="card card-sport"></div> | |
<div class="card card-"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment