Skip to content

Instantly share code, notes, and snippets.

@annez
Last active August 29, 2015 14:00
Show Gist options
  • Save annez/11283030 to your computer and use it in GitHub Desktop.
Save annez/11283030 to your computer and use it in GitHub Desktop.
// 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