Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
9bafdf60
Commit
9bafdf60
authored
Jun 29, 2016
by
Connor Hudson
Committed by
GitHub
Jun 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #619 from technoboy10/darken-dropdown
Darken Account Nav Link when Menu Open
parents
1422c393
41d9b1f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
src/components/navigation/www/navigation.jsx
src/components/navigation/www/navigation.jsx
+6
-1
src/components/navigation/www/navigation.scss
src/components/navigation/www/navigation.scss
+4
-0
No files found.
src/components/navigation/www/navigation.jsx
View file @
9bafdf60
...
...
@@ -178,6 +178,10 @@ var Navigation = React.createClass({
'
message-count
'
:
true
,
'
show
'
:
this
.
state
.
unreadMessageCount
>
0
});
var
dropdownClasses
=
classNames
({
'
user-info
'
:
true
,
'
open
'
:
this
.
state
.
accountNavOpen
});
var
formatMessage
=
this
.
props
.
intl
.
formatMessage
;
var
createLink
=
this
.
props
.
session
.
session
.
user
?
'
/projects/editor/
'
:
'
/projects/editor/?tip_bar=home
'
;
return
(
...
...
@@ -241,7 +245,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=
{
dropdownClasses
}
href=
"#"
onClick=
{
this
.
handleAccountNavClick
}
>
<
Avatar
src=
{
this
.
props
.
session
.
session
.
user
.
thumbnailUrl
}
alt=
""
/>
{
this
.
props
.
session
.
session
.
user
.
username
}
</
a
>
...
...
src/components/navigation/www/navigation.scss
View file @
9bafdf60
...
...
@@ -170,6 +170,10 @@
vertical-align
:
middle
;
}
&
.open
{
background-color
:
$active-gray
;
}
&
:after
{
display
:
inline-block
;
margin-left
:
8px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment