Sha256: a0a828c957b17f27529a009efa02682a737ba5158dbe1d7aaa996ee1100d3729
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
//// //// @group icons //// /// Output classes to build the PNG icons /// /// /// @param {String} $icon-name /// Icon name that matches one of the ones in the list /// /// @param {String} $size-name /// Size name for the class-naming convention /// /// @param {String} $size-px /// Used to build folder structure of PNG fallbacks in different sizes @mixin png-bg-icon($icon-name, $size-name, $size-px) { .us-icon--#{$icon-name}.us-icon--#{$size-name}, .us-icon--#{$icon-name}--after.us-icon--#{$size-name}--after:after, .us-icon--#{$icon-name}--before.us-icon--#{$size-name}--before:before { background-image: url(ustyle-image-path("#{$base-icon-path}#{$size-px}/#{$icon-name}.png")); } } @each $icon in $icons { @each $size in $icon-sizes { $size-name: nth($size, 1); $pixels: nth($size, 2); @if $svg-first == false { @include png-bg-icon($icon, $size-name, $pixels); } @else { #{$png-support-class} { @include png-bg-icon($icon, $size-name, $pixels); } } } }
Version data entries
12 entries across 12 versions & 1 rubygems