Skip to content

Commit

Permalink
Make the avatar shine through on hover and make it black backgrounded…
Browse files Browse the repository at this point in the history
… in dark-mode

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 11, 2020
1 parent 3d85067 commit d068ed6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Avatar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,12 @@ export default {
}

&:not(&--unknown) {
// White background for avatars with transparency, also in dark theme
// White background for avatars with transparency
background-color: #fff !important;
body.theme--dark & {
// And black background in dark mode, as it shines through on hover of the menu
background-color: #000 !important;
}
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05) inset;
}

Expand Down Expand Up @@ -495,7 +499,7 @@ export default {
opacity: 1;
}
img {
opacity: 0;
opacity: 0.3;
}
}
.icon-more,
Expand Down

0 comments on commit d068ed6

Please sign in to comment.