Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
a103fcb7
Commit
a103fcb7
authored
Mar 29, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved back some css classes
parent
29872c39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
app/assets/javascripts/gl_dropdown.js.coffee
app/assets/javascripts/gl_dropdown.js.coffee
+3
-3
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+2
-9
No files found.
app/assets/javascripts/gl_dropdown.js.coffee
View file @
a103fcb7
...
@@ -326,8 +326,8 @@ class GitLabDropdown
...
@@ -326,8 +326,8 @@ class GitLabDropdown
).
join
(
''
)
).
join
(
''
)
noResults
:
->
noResults
:
->
html
=
"<li class='dropdown-menu-empty-link
is-focused
'>"
html
=
"<li class='dropdown-menu-empty-link'>"
html
+=
"<a href='#'>"
html
+=
"<a href='#'
class='is-focused'
>"
html
+=
"No matching results."
html
+=
"No matching results."
html
+=
"</a>"
html
+=
"</a>"
html
+=
"</li>"
html
+=
"</li>"
...
@@ -433,7 +433,7 @@ class GitLabDropdown
...
@@ -433,7 +433,7 @@ class GitLabDropdown
# Update the class for the row at the specific index
# Update the class for the row at the specific index
$listItem
=
$listItems
.
eq
(
index
)
$listItem
=
$listItems
.
eq
(
index
)
$listItem
.
addClass
"is-focused"
$listItem
.
find
(
'a:first-child'
).
addClass
"is-focused"
# Dropdown content scroll area
# Dropdown content scroll area
$dropdownContent
=
$listItem
.
closest
(
'.dropdown-content'
)
$dropdownContent
=
$listItem
.
closest
(
'.dropdown-content'
)
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
a103fcb7
...
@@ -104,14 +104,6 @@
...
@@ -104,14 +104,6 @@
padding
:
0
10px
;
padding
:
0
10px
;
}
}
.is-focused
{
a
{
background-color
:
$dropdown-link-hover-bg
;
text-decoration
:
none
;
outline
:
0
;
}
}
.divider
{
.divider
{
height
:
1px
;
height
:
1px
;
margin
:
8px
10px
;
margin
:
8px
10px
;
...
@@ -140,7 +132,8 @@
...
@@ -140,7 +132,8 @@
overflow
:
hidden
;
overflow
:
hidden
;
&
:hover
,
&
:hover
,
&
:focus
{
&
:focus
,
&
.is-focused
{
background-color
:
$dropdown-link-hover-bg
;
background-color
:
$dropdown-link-hover-bg
;
text-decoration
:
none
;
text-decoration
:
none
;
outline
:
0
;
outline
:
0
;
...
...
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