mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Тёмный фон для кнопки раскрытия юзербара
This commit is contained in:
@ -37,7 +37,7 @@ export default class LoggedInPanel extends Component {
|
|||||||
<div className={classNames(styles.activeAccount, {
|
<div className={classNames(styles.activeAccount, {
|
||||||
[styles.activeAccountExpanded]: isAccountSwitcherActive
|
[styles.activeAccountExpanded]: isAccountSwitcherActive
|
||||||
})}>
|
})}>
|
||||||
<button className={buttons.green} onClick={this.onExpandAccountSwitcher}>
|
<button className={styles.activeAccountButton} onClick={this.onExpandAccountSwitcher}>
|
||||||
<span className={styles.userIcon} />
|
<span className={styles.userIcon} />
|
||||||
<span className={styles.userName}>{user.username}</span>
|
<span className={styles.userName}>{user.username}</span>
|
||||||
<span className={styles.expandIcon} />
|
<span className={styles.expandIcon} />
|
||||||
|
@ -12,13 +12,21 @@
|
|||||||
border-right: $border;
|
border-right: $border;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.activeAccountButton {
|
||||||
|
composes: green from 'components/ui/buttons.scss';
|
||||||
|
}
|
||||||
|
|
||||||
.activeAccountExpanded {
|
.activeAccountExpanded {
|
||||||
|
.activeAccountButton {
|
||||||
|
background-color: darker($green);
|
||||||
|
}
|
||||||
|
|
||||||
.accountSwitcherContainer {
|
.accountSwitcherContainer {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.expandIcon {
|
.expandIcon {
|
||||||
transform: rotate(180deg);
|
transform: rotate(-180deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +45,7 @@
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
font-size: 6px;
|
font-size: 6px;
|
||||||
color: #CCC;
|
color: #CCC;
|
||||||
|
transition: .2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userName {
|
.userName {
|
||||||
|
Reference in New Issue
Block a user