2020-10-23 03:53:59 +05:30
|
|
|
@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;
|
2020-10-23 03:53:59 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
$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;
|
|
|
|
}
|
|
|
|
|
2020-10-27 04:16:57 +05:30
|
|
|
.accountAvatar {
|
2020-10-23 03:53:59 +05:30
|
|
|
font-size: 35px;
|
2021-03-26 08:49:04 +05:30
|
|
|
margin-inline-end: 15px;
|
2020-10-23 03:53:59 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.accountInfo {
|
|
|
|
flex-grow: 1;
|
2021-03-26 08:49:04 +05:30
|
|
|
margin-inline-end: 15px;
|
2020-10-23 03:53:59 +05:30
|
|
|
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;
|
2020-10-27 04:16:57 +05:30
|
|
|
|
|
|
|
.deletedAccount & {
|
|
|
|
color: #aaa;
|
|
|
|
}
|
2020-10-23 03:53:59 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.accountEmail {
|
|
|
|
@extend %overflowText;
|
2020-10-27 04:16:57 +05:30
|
|
|
color: #999;
|
2020-10-23 03:53:59 +05:30
|
|
|
font-size: 12px;
|
2020-10-27 04:16:57 +05:30
|
|
|
|
|
|
|
.deletedAccount & {
|
|
|
|
color: #666;
|
|
|
|
}
|
2020-10-23 03:53:59 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.nextIcon {
|
|
|
|
composes: arrowRight from '~app/components/ui/icons.scss';
|
|
|
|
|
|
|
|
position: relative;
|
2021-03-26 08:49:04 +05:30
|
|
|
inset-inline-start: 0;
|
2020-10-23 03:53:59 +05:30
|
|
|
|
|
|
|
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;
|
|
|
|
// TODO: right now transition property doesn't support the bidirectional value.
|
|
|
|
// See https://github.com/gasolin/postcss-bidirection/issues/25.
|
|
|
|
// noinspection CssOverwrittenProperties Graceful degradation
|
2020-10-23 03:53:59 +05:30
|
|
|
transition: color 0.25s, left 0.5s;
|
|
|
|
|
2021-03-26 08:49:04 +05:30
|
|
|
html[dir='rtl'] & {
|
|
|
|
transition: color 0.25s, right 0.5s;
|
|
|
|
}
|
|
|
|
|
2020-10-23 03:53:59 +05:30
|
|
|
.item:hover & {
|
|
|
|
color: #aaa;
|
2021-03-26 08:49:04 +05:30
|
|
|
inset-inline-start: 5px;
|
2020-10-23 03:53:59 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.accountLoader {
|
|
|
|
font-size: 10px;
|
|
|
|
}
|