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

226 lines
3.7 KiB
SCSS
Raw Normal View History

@import '~app/components/ui/colors.scss';
@import '~app/components/ui/fonts.scss';
// TODO: эту константу можно заимпортить из panel.scss, но это приводит к странным ошибкам
//@import '~app/components/ui/panel.scss';
$bodyLeftRightPadding: 20px;
$lightBorderColor: #eee;
2016-11-06 01:53:56 +05:30
.accountSwitcher {
2020-05-24 04:38:24 +05:30
text-align: left;
}
.accountInfo {
}
2016-11-13 02:12:12 +05:30
.accountUsername,
.accountEmail {
2020-05-24 04:38:24 +05:30
overflow: hidden;
text-overflow: ellipsis;
}
.lightAccountSwitcher {
2020-05-24 04:38:24 +05:30
background: #fff;
color: #444;
min-width: 205px;
$border: 1px solid $lightBorderColor;
border-left: $border;
border-right: $border;
border-bottom: 7px solid darker($green);
.item {
padding: 15px;
border-bottom: 1px solid $lightBorderColor;
}
2020-05-24 04:38:24 +05:30
.accountSwitchItem {
cursor: pointer;
transition: 0.25s;
&:hover {
background-color: $whiteButtonLight;
}
&:active {
background-color: $whiteButtonDark;
}
}
2020-05-24 04:38:24 +05:30
.accountIcon {
font-size: 27px;
width: 20px;
text-align: center;
}
2020-05-24 04:38:24 +05:30
.activeAccountIcon {
font-size: 40px;
}
2020-05-24 04:38:24 +05:30
.activeAccountInfo {
margin-left: 29px;
}
2020-05-24 04:38:24 +05:30
.activeAccountUsername {
font-family: $font-family-title;
font-size: 20px;
color: $green;
}
2020-05-24 04:38:24 +05:30
.activeAccountEmail {
}
2020-05-24 04:38:24 +05:30
.links {
margin-top: 6px;
}
2020-05-24 04:38:24 +05:30
.link {
font-size: 12px;
margin-bottom: 3px;
white-space: nowrap;
2020-05-24 04:38:24 +05:30
&:last-of-type {
margin-bottom: 0;
}
}
2020-05-24 04:38:24 +05:30
.accountInfo {
margin-left: 29px;
margin-right: 25px;
}
2020-05-24 04:38:24 +05:30
.accountUsername {
font-family: $font-family-title;
font-size: 14px;
color: #666;
}
2016-11-06 01:53:56 +05:30
2020-05-24 04:38:24 +05:30
.accountEmail {
font-size: 10px;
color: #999;
}
2020-05-24 04:38:24 +05:30
.addAccount {
}
}
.darkAccountSwitcher {
2020-05-24 04:38:24 +05:30
background: $black;
2020-05-24 04:38:24 +05:30
$border: 1px solid lighter($black);
2020-05-24 04:38:24 +05:30
.item {
padding: 15px 20px;
border-top: 1px solid lighter($black);
transition: 0.25s;
cursor: pointer;
2020-05-24 04:38:24 +05:30
&:hover {
background-color: lighter($black);
}
2020-05-24 04:38:24 +05:30
&:active {
background-color: darker($black);
}
2020-05-24 04:38:24 +05:30
&:last-of-type {
border-bottom: $border;
}
}
2020-05-24 04:38:24 +05:30
.accountIcon {
font-size: 35px;
}
2020-05-24 04:38:24 +05:30
.accountInfo {
margin-left: 30px;
margin-right: 26px;
}
2020-05-24 04:38:24 +05:30
.accountUsername {
font-family: $font-family-title;
color: #fff;
}
2020-05-24 04:38:24 +05:30
.accountEmail {
color: #666;
font-size: 12px;
}
}
.accountIcon {
2020-05-24 04:38:24 +05:30
composes: minecraft-character from '~app/components/ui/icons.scss';
2020-05-24 04:38:24 +05:30
float: left;
2020-05-24 04:38:24 +05:30
&1 {
color: $green;
}
2020-05-24 04:38:24 +05:30
&2 {
color: $blue;
}
2020-05-24 04:38:24 +05:30
&3 {
color: $violet;
}
2020-05-24 04:38:24 +05:30
&4 {
color: $orange;
}
2020-05-24 04:38:24 +05:30
&5 {
color: $dark_blue;
}
2020-05-24 04:38:24 +05:30
&6 {
color: $light_violet;
}
2020-05-24 04:38:24 +05:30
&7 {
color: $red;
}
}
.addIcon {
2020-05-24 04:38:24 +05:30
composes: plus from '~app/components/ui/icons.scss';
2020-05-24 04:38:24 +05:30
color: $green;
position: relative;
bottom: 1px;
margin-right: 3px;
}
.nextIcon {
2020-05-24 04:38:24 +05:30
composes: arrowRight from '~app/components/ui/icons.scss';
2020-05-24 04:38:24 +05:30
position: relative;
float: right;
2020-05-24 04:38:24 +05:30
font-size: 24px;
color: #4e4e4e;
line-height: 35px;
left: 0;
2020-05-24 04:38:24 +05:30
transition: color 0.25s, left 0.5s;
2020-05-24 04:38:24 +05:30
.item:hover & {
color: #aaa;
left: 5px;
}
}
.logoutIcon {
2020-05-24 04:38:24 +05:30
composes: exit from '~app/components/ui/icons.scss';
2020-05-24 04:38:24 +05:30
color: #cdcdcd;
float: right;
line-height: 27px;
transition: 0.25s;
2016-11-06 01:53:56 +05:30
2020-05-24 04:38:24 +05:30
&:hover {
color: #777;
}
2016-11-06 01:53:56 +05:30
}