Skip to content

Instantly share code, notes, and snippets.

@michaek
michaek / Readme.md
Last active August 29, 2015 14:07 — forked from nex3/use.scss
A new syntax to improve @import in Sass.

@import is one of the most useful features of Sass, but it has some shortcomings. For one, newcomers are often confused that it uses the same syntax as CSS's import, and think it does the same thing. It doesn't!

An improved import utility might:

  • Avoid overloading an existing name
  • Provide variable/mixin scoping
  • Allow importing of only some elements of an included file

Simplicity should be valued above features and options.

@michaek
michaek / SassMeister-input-HTML.html
Created September 26, 2014 15:39
Generated by SassMeister.com.
<p>I want "a" to work the same as "b"</p>
<p>
<a>a</a>
/
<b>b</b>
</p>
<p>I want "h" to work the same as "f"</p>
<p>
<e><f><g>e f g</g></f></e>
@michaek
michaek / SassMeister-input-HTML.html
Created September 24, 2014 12:41
Generated by SassMeister.com.
<p>I want "a" to work the same as "b"</p>
<p>
<a>a</a>
/
<b>b</b>
</p>
<p>I want "h" to work the same as "f"</p>
<p>
<e><f><g>e f g</g></f></e>
@michaek
michaek / SassMeister-input-HTML.html
Created September 18, 2014 15:49
Generated by SassMeister.com.
<div>
<div class="b">
Ok
</div>
</div>
@michaek
michaek / SassMeister-input-HTML.html
Last active August 29, 2015 14:06
Generated by SassMeister.com.
<div>
<div class="b">
Ok
</div>
</div>
@michaek
michaek / SassMeister-input-HTML.html
Last active August 29, 2015 14:06
Generated by SassMeister.com.
<div>
<div class="b">
Ok
</div>
</div>
@michaek
michaek / SassMeister-input-HTML.html
Created September 16, 2014 16:48
Generated by SassMeister.com.
<div>
<div class="b">
Ok
</div>
</div>
@michaek
michaek / SassMeister-input-HTML.html
Created September 16, 2014 16:32
Generated by SassMeister.com.
<div>
<div class="b">
Ok
</div>
</div>
@michaek
michaek / SassMeister-input-HTML.html
Created September 16, 2014 16:16
Generated by SassMeister.com.
<div>
<div class="b">
Ok
</div>
</div>
@michaek
michaek / SassMeister-input-HTML.html
Created September 11, 2014 12:05
Generated by SassMeister.com.
<div>
<div class="b">
Ok
</div>
</div>