Skip to content

Instantly share code, notes, and snippets.

@maylogger
Created July 19, 2014 06:55
Show Gist options
  • Save maylogger/e81f119d2418a94ebdaa to your computer and use it in GitHub Desktop.
Save maylogger/e81f119d2418a94ebdaa to your computer and use it in GitHub Desktop.
各種 modifier 的優缺點
.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