Sha256: e1c7fda2957c8dad445955b4d96af161a674141679136db471768e09b0682bea
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
@import 'facades/config'; @import 'facades/icons/classes'; @import 'facades/icons/legacy'; /* CSS Psuedo font-face icons Creates an inline font-face icon using $icon-font-family. ------------------------------------------------------------------ */ @mixin icon($name, $size: $font-size, $psuedo: before, $adjust-sizing: true){ @if unquote($size) == before or unquote($size) == after{ $psuedo: $size; $size: $font-size; } $psuedo:unquote($psuedo); @if $legacy-icon-format{ @include icon-expression($name, $size, $psuedo); } @else{ &:#{$psuedo}{ font-family:$icon-font-family; @include icon-content($name); } } } @mixin icon-before($name, $size: $font-size){ @include icon($name, $size, before); } @mixin icon-after($name, $size: $font-size){ @include icon($name, $size, after); } // Creates a square sprite-like icon @mixin icon-rect($size: 24px, $name: false){ &{ overflow:hidden; width:$size; height:$size; line-height:$size; font-size:ceil($size * 0.8); white-space:nowrap; display:inline-block; } &:before{ line-height:1.1; display:inline-block; width:$size; height:$size; text-align:center; @if $name{ @include icon-content($name); } } } @mixin icon-content($name){ content:"#{icon-glyph($name, $icon-pack)}"; } @mixin icon-font{ @font-face { font-family: $icon-font-family; src: url(icon-font-url($icon-pack, 'eot')); src: url(icon-font-url($icon-pack, 'eot2')) format('embedded-opentype'), url(icon-font-url($icon-pack, 'woff')) format('woff'), url(icon-font-url($icon-pack, 'ttf')) format('truetype'), url(icon-font-url($icon-pack, 'svg')) format('svg'); font-weight: normal; font-style: normal; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facades-1.1.0 | src/scss/facades/_icons.scss |