Skip to content

Commit

Permalink
fix: fix avatar background in dark mode #785
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm committed Oct 24, 2021
1 parent ad4f992 commit 52fe2d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scss/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
}

.avatar {
background-color: $dark-mode-lighten;
--tblr-avatar-bg: #{$dark-mode-lighten};
}

.avatar-list-stacked .avatar {
Expand Down
3 changes: 2 additions & 1 deletion src/scss/ui/_avatars.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.avatar {
--#{$variable-prefix}avatar-size: #{$avatar-size};
--#{$variable-prefix}avatar-bg: #{$gray-200};
position: relative;
width: var(--#{$variable-prefix}avatar-size);
height: var(--#{$variable-prefix}avatar-size);
Expand All @@ -13,7 +14,7 @@
text-transform: uppercase;
vertical-align: bottom;
user-select: none;
background: $gray-200 no-repeat center/cover;
background: var(--#{$variable-prefix}avatar-bg) no-repeat center/cover;
border-radius: $avatar-border-radius;

svg {
Expand Down

0 comments on commit 52fe2d7

Please sign in to comment.