Commit 52d834c3 authored by Technoboy10's avatar Technoboy10

darken account nav link when menu open

parent 16fe86b2
...@@ -241,7 +241,8 @@ var Navigation = React.createClass({ ...@@ -241,7 +241,8 @@ var Navigation = React.createClass({
</a> </a>
</li>, </li>,
<li className="link right account-nav" key="account-nav"> <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="" /> <Avatar src={this.props.session.session.user.thumbnailUrl} alt="" />
{this.props.session.session.user.username} {this.props.session.session.user.username}
</a> </a>
......
...@@ -170,6 +170,10 @@ ...@@ -170,6 +170,10 @@
vertical-align: middle; vertical-align: middle;
} }
&.open {
background-color: $active-gray;
}
&:after { &:after {
display: inline-block; display: inline-block;
margin-left: 8px; margin-left: 8px;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment