A HTML/CSS Class Naming Convention for Scalable/Modular CSS.
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
// ---- | |
// Sass (v3.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
// Sass: Generating decoupled color schemes | |
// Helper functions | |
@function tint($color, $percentage) { | |
@return mix(white, $color, $percentage); |
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
// ---- | |
// Sass (v3.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
// Sass: Typed value factory & validator using Map | |
// Direction type that accepts only top, right, left, bottom | |
// Direction type factory | |
@function dir-new($dir) { |
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
<a class="button">An example link</a> | |
<a class="button--ghost">An example link</a> |
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
<div class="container--micro"> | |
<!-- The style attributes only for the purpose of the demo --> | |
<div style="float: left; height: 100px; background: #0f0;"> | |
content | |
</div> | |
<div style="float: left; height: 100px; background: #00f;"> | |
content | |
</div> | |
</div> |
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
// Sass: Resolving component dependencies | |
// Other ideas: https://github.com/whizark/xass#ideas | |
// The storage for dependency management | |
$container: ( | |
-components: (), | |
-frozen: () | |
); |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
// Sass: Resolving component dependencies | |
// An improved version of https://gist.github.com/whizark/51ccdfbf57dbcb73953f | |
// Other ideas: https://github.com/whizark/xass#ideas |
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
// ---- | |
// Sass (v3.4.4) | |
// Compass (v1.0.1) | |
// ---- | |
// Sass: Creating new scope & instance variable/method in Sass | |
// | |
// Other ideas: https://github.com/whizark/xass#ideas | |
// This is pseudo code |
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
<a class="button">A button</a> | |
<button class="button">Button button</button> | |
<a class="button-large">A button</a> | |
<button class="button-large">Button button</button> |
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
// ---- | |
// Sass (v3.4.5) | |
// Compass (v1.0.1) | |
// ---- | |
// Sass: Creating custom scope & scope-based default value in Sass | |
// | |
// A use case using mixin. | |
// This is pseudo code so you need implement some code. | |
// |