File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff 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 > ;
You can’t perform that action at this time.
0 commit comments