Skip to content

Commit 13e2821

Browse files
committed
chore: use shorthand properties.
1 parent a781621 commit 13e2821

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/lib/acode.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -649,23 +649,14 @@ export default class Acode {
649649
width: 24px;
650650
height: 24px;
651651
vertical-align: middle;
652-
-webkit-mask-image: url(${src});
653-
mask-image: url(${src});
654-
-webkit-mask-size: contain;
655-
mask-size: contain;
656-
-webkit-mask-repeat: no-repeat;
657-
mask-repeat: no-repeat;
658-
-webkit-mask-position: center;
659-
mask-position: center;
652+
-webkit-mask: url(${src}) no-repeat center / contain;
653+
mask: url(${src}) no-repeat center / contain;
660654
background-color: currentColor;
661655
}`;
662656
} else {
663657
// Default: preserve original icon colors
664658
css = `.icon.${className}{
665-
background-image: url(${src});
666-
background-size: 24px;
667-
background-repeat: no-repeat;
668-
background-position: center;
659+
background: url(${src}) no-repeat center / 24px;
669660
}`;
670661
}
671662
style = <style icon={className}>{css}</style>;

0 commit comments

Comments
 (0)