xstatic-mdi/xstatic/pkg/mdi/data/scss/_functions.scss
Rob Cresswell 9152b6b52b Update XStatic-MDI to 1.6.50.0
Change-Id: I2654f297a66c0069c457ada85de208d4473187d1
2016-06-28 13:10:48 +01:00

17 lines
379 B
SCSS

@function char($character-code) {
@if function-exists("selector-append") {
@return unquote("\"\\#{$character-code}\"");
}
@if "\\#{'x'}" == "\\x" {
@return str-slice("\x", 1, 1) + $character-code;
}
@else {
@return #{"\"\\"}#{$character-code + "\""};
}
}
@function mdi($name) {
@return char(map-get($mdi-icons, $name));
}