mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
darken account nav link when menu open
This commit is contained in:
parent
16fe86b2fd
commit
52d834c3fa
2 changed files with 11 additions and 6 deletions
|
@ -241,7 +241,8 @@ var Navigation = React.createClass({
|
|||
</a>
|
||||
</li>,
|
||||
<li className="link right account-nav" key="account-nav">
|
||||
<a className="user-info" href="#" onClick={this.handleAccountNavClick}>
|
||||
<a className={this.state.accountNavOpen ? 'user-info open' : 'user-info'}
|
||||
href="#" onClick={this.handleAccountNavClick}>
|
||||
<Avatar src={this.props.session.session.user.thumbnailUrl} alt="" />
|
||||
{this.props.session.session.user.username}
|
||||
</a>
|
||||
|
|
|
@ -170,6 +170,10 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&.open {
|
||||
background-color: $active-gray;
|
||||
}
|
||||
|
||||
&:after {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
|
|
Loading…
Reference in a new issue