Created
October 15, 2019 07:54
-
-
Save prochor666/a9fd5e33824e75adb50db93fca6e8c6e to your computer and use it in GitHub Desktop.
Fixed version for materialdesignicons with scssphp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 str-slice("\x",1,1) + $character-code; | |
} | |
} | |
@function mdi($name) { | |
@if map-has-key($mdi-icons, $name) == false { | |
@warn "Icon #{$name} not found."; | |
@return ""; | |
} | |
@return char(map-get($mdi-icons, $name)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment