https://github.com/sha-red/compass-mixins/tree/master/lib
extended with more sass frameworks and as django app.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
314 B
19 lines
314 B
@mixin s-fa-icon($icon) { |
|
@extend %fa; |
|
@each $value in $icon { |
|
@extend %#{convert-value($value)}; |
|
} |
|
} |
|
|
|
$value_map: ( |
|
right: pull-right, |
|
left: pull-left |
|
); |
|
|
|
@function convert-value($value) { |
|
@if map-has-key($value_map, $value) { |
|
@return map-get($value_map, $value); |
|
} @else { |
|
@return fa-#{$value}; |
|
} |
|
} |