Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ----
- // libsass (v3.2.5)
- // ----
- @function dec-to-hex($d) {
- $hexVals: "A" "B" "C" "D" "E" "F";
- $base: 16;
- $quotient: $d;
- $result: "";
- @if $d == 0 {
- $result: "00";
- }
- @while $quotient != 0 {
- $mod: $quotient % $base;
- $quotient: floor($quotient / $base);
- @if $mod > 9 {
- $mod: nth($hexVals, $mod - 9);
- }
- @if $d < $base {
- $result: "0" + $mod;
- } @else {
- $result: $mod + $result;
- }
- }
- @return #{"\"\\"}#{$result + "\""};
- }
- .icon {
- content: dec-to-hex(58245);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement