Skip to content

Commit

Permalink
Fix icon display in chrome (#2385)
Browse files Browse the repository at this point in the history
* fix icon display in chrome #2384
  • Loading branch information
dartcafe committed Apr 21, 2022
1 parent b7ffce5 commit 85c587f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/assets/scss/icons-md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
// masked svg background icon
@mixin masked-icon($url, $color: var(--icon-md-color-default)) {
-webkit-mask-image: $url;
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
-webkit-mask-size: var(--icon-size);
mask-image: $url;
mask-repeat: no-repeat;
mask-position: center;
Expand All @@ -14,6 +17,7 @@

&.empty-content__icon {
mask-size: 64px;
-webkit-mask-size: 64px;
}
}

Expand Down Expand Up @@ -164,6 +168,7 @@
background-color: var(--color-polls-foreground-no) !important;
@include masked-icon(var(--icon-md-cancel));
mask-size: 100%;
-webkit-mask-size: 100%;
}

.icon-mask-md-maybe-vote,
Expand Down

0 comments on commit 85c587f

Please sign in to comment.