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
Tatuya Kamada
gitlab-ce
Commits
6fde0e09
Commit
6fde0e09
authored
Dec 15, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSS: dropdown on hover
parent
83ebc97b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
5 deletions
+58
-5
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+52
-0
app/views/ci/status/_mini_graph_badge.html.haml
app/views/ci/status/_mini_graph_badge.html.haml
+1
-2
app/views/projects/ci/pipelines/_pipeline.html.haml
app/views/projects/ci/pipelines/_pipeline.html.haml
+5
-3
No files found.
app/assets/stylesheets/pages/pipelines.scss
View file @
6fde0e09
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
.table.ci-table
{
.table.ci-table
{
min-width
:
1200px
;
min-width
:
1200px
;
table-layout
:
fixed
;
.pipeline-id
{
.pipeline-id
{
color
:
$black
;
color
:
$black
;
...
@@ -795,3 +796,54 @@
...
@@ -795,3 +796,54 @@
}
}
}
}
}
}
.mini-pipeline-graph-icon-container
.ci-status-icon
{
display
:
inline-block
;
border
:
1px
solid
;
border-radius
:
20px
;
margin-right
:
1px
;
width
:
20px
;
height
:
20px
;
position
:
relative
;
svg
{
top
:
-1px
;
position
:
relative
;
}
}
.builds-dropdown
{
&
:focus
{
margin-right
:
-6px
;
.ci-status-icon
{
width
:
27px
;
padding
:
0px
6px
0px
0px
;
+
.dropdown-caret
{
display
:
inline-block
;
}
}
}
.mini-pipeline-graph-icon-container
{
.ci-status-icon
:hover
,
.ci-status-icon
:focus
{
width
:
27px
;
padding
:
0px
6px
0px
0px
;
+
.dropdown-caret
{
display
:
inline-block
;
}
}
.dropdown-caret
{
font-size
:
12px
;
position
:
relative
;
top
:
3px
;
left
:
-11px
;
margin-right
:
-6px
;
display
:
none
;
}
}
}
app/views/ci/status/_mini_graph_badge.html.haml
View file @
6fde0e09
...
@@ -2,5 +2,4 @@
...
@@ -2,5 +2,4 @@
-
icon
=
"
#{
status
.
icon
}
_borderless"
-
icon
=
"
#{
status
.
icon
}
_borderless"
-
klass
=
"ci-status-icon ci-status-icon-
#{
status
}
"
-
klass
=
"ci-status-icon ci-status-icon-
#{
status
}
"
%span
.mini-pipeline-graph-icon-container
%span
{
class:
klass
}=
custom_icon
(
icon
)
%span
{
class:
klass
}=
custom_icon
(
icon
)
app/views/projects/ci/pipelines/_pipeline.html.haml
View file @
6fde0e09
...
@@ -54,8 +54,9 @@
...
@@ -54,8 +54,9 @@
.dropdown.inline.build-content
.dropdown.inline.build-content
%button
.has-tooltip.builds-dropdown
{
type:
'button'
,
data:
{
toggle:
'dropdown'
,
title:
tooltip
}
}
%button
.has-tooltip.builds-dropdown
{
type:
'button'
,
data:
{
toggle:
'dropdown'
,
title:
tooltip
}
}
%span
{
class:
klass
}
%span
{
class:
klass
}
=
render
'ci/status/mini_graph_badge'
,
subject:
stage
%span
.mini-pipeline-graph-icon-container
%span
=
icon
(
'caret-down'
,
class:
'dropdown-caret'
)
=
render
'ci/status/mini_graph_badge'
,
subject:
stage
=
icon
(
'caret-down'
,
class:
'dropdown-caret'
)
.dropdown-menu.grouped-pipeline-dropdown
.dropdown-menu.grouped-pipeline-dropdown
.arrow-up
.arrow-up
%ul
%ul
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
-
else
-
else
-
if
details_path
-
if
details_path
=
link_to
details_path
,
class:
klass
,
title:
tooltip
do
=
link_to
details_path
,
class:
klass
,
title:
tooltip
do
=
render
'ci/status/mini_graph_badge'
,
subject:
stage
%span
.mini-pipeline-graph-icon-container
=
render
'ci/status/mini_graph_badge'
,
subject:
stage
%td
%td
-
if
pipeline
.
duration
-
if
pipeline
.
duration
...
...
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