Skip to content

Commit

Permalink
Merge pull request #1399 from nextcloud/avatar-and-status-fixes
Browse files Browse the repository at this point in the history
Avatar and status fixes
  • Loading branch information
nickvergessen authored Sep 11, 2020
2 parents 3d85067 + df56877 commit 0f453af
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 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 Expand Up @@ -551,16 +555,25 @@ export default {
.avatardiv__user-status {
position: absolute;
right: -5px;
bottom: -5px;
height: 16px;
width: 16px;
right: -4px;
bottom: -4px;
height: 18px;
width: 18px;
line-height: 14px;
font-size: 14px;
border: 1px solid var(--color-main-background);
border: 2px solid var(--color-main-background);
background-color: var(--color-main-background);
border-radius: 50%;
.acli:hover & {
border-color: var(--color-background-hover);
background-color: var(--color-background-hover);
}
.acli.active & {
border-color: var(--color-primary-light);
background-color: var(--color-primary-light);
}
&--online{
@include iconfont('user-status-online');
color: #49b382;
Expand Down

0 comments on commit 0f453af

Please sign in to comment.