Skip to content

Commit

Permalink
fix(mask): fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukaato committed Dec 10, 2024
1 parent 6cd8a25 commit 6ef6a1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/src/components/avatar/avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--background: #{theme.use_color("neutral.base")};
--color: #{theme.use_color("neutral.content")};

display: inline-flex;
display: grid;

position: relative;
aspect-ratio: 1;
Expand Down
7 changes: 1 addition & 6 deletions packages/core/src/components/mask/mask.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
:host {
display: grid;
aspect-ratio: 1;
mask-position: center;
mask-repeat: no-repeat;

mask-size: contain;
}

:host-context(pop-avatar[placeholder]) {
display: grid;
place-items: center;
}

@mixin mask($type, $url) {
:host([type="#{$type}"]) {
mask-image: url($url);
Expand Down

0 comments on commit 6ef6a1a

Please sign in to comment.