Тёмный фон для кнопки раскрытия юзербара

This commit is contained in:
ErickSkrauch
2016-11-11 11:23:55 +03:00
parent 81c2b48cd1
commit f09e35627e
2 changed files with 11 additions and 2 deletions

View File

@ -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} />

View File

@ -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 {