Last active
August 29, 2015 14:00
-
-
Save annez/11283030 to your computer and use it in GitHub Desktop.
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
// This mixin is used for creating all classes or extends for the framework. | |
// It works by establishing the namespace at the start and the elemnt name afterwards. | |
// By default it gives you the namespaced class name and non-namespaced extend | |
=e($element, $namespace: $namespace, $placeholder: false, $extend: true) | |
@if $no-html-classes | |
%#{$element} | |
@content | |
@else if $placeholder | |
%#{$element} | |
@content | |
@else if $extend | |
.#{$namespace}#{$element}, | |
%#{$element} | |
@content | |
@else if $extend == false | |
.#{$namespace}#{$element} | |
@content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment