accounts-frontend/packages/app/components/auth/chooseAccount/accountSwitcher.scss

96 lines
1.6 KiB
SCSS
Raw Normal View History

@import '~app/components/ui/colors.scss';
@import '~app/components/ui/fonts.scss';
.accountSwitcher {
background: $black;
2021-03-26 08:49:04 +05:30
text-align: start;
}
$border: 1px solid lighter($black);
.item {
display: flex;
flex-direction: row;
align-items: center;
padding: 15px 20px;
border-top: 1px solid lighter($black);
transition: background-color 0.25s, filter 0.5s cubic-bezier(0, 0.55, 0.45, 1);
cursor: pointer;
&:hover {
background-color: lighter($black);
}
&:active {
background-color: darker($black);
}
&:last-of-type {
border-bottom: $border;
}
}
.inactiveItem {
filter: grayscale(100%);
pointer-events: none;
}
.accountAvatar {
font-size: 35px;
2021-03-26 08:49:04 +05:30
margin-inline-end: 15px;
}
.accountInfo {
flex-grow: 1;
2021-03-26 08:49:04 +05:30
margin-inline-end: 15px;
min-width: 0; // Fix for text-overflow. See https://stackoverflow.com/a/40612184
}
%overflowText {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.accountUsername {
@extend %overflowText;
font-family: $font-family-title;
color: #fff;
.deletedAccount & {
color: #aaa;
}
}
.accountEmail {
@extend %overflowText;
color: #999;
font-size: 12px;
.deletedAccount & {
color: #666;
}
}
.nextIcon {
composes: arrowRight from '~app/components/ui/icons.scss';
position: relative;
2021-03-26 08:49:04 +05:30
inset-inline-start: 0;
font-size: 24px;
color: #4e4e4e;
line-height: 35px;
2021-03-26 08:49:04 +05:30
transition: color 0.25s, inset-inline-start 0.5s;
.item:hover & {
color: #aaa;
2021-03-26 08:49:04 +05:30
inset-inline-start: 5px;
}
}
.accountLoader {
font-size: 10px;
}