summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-09 15:00:09 -0500
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-09 15:11:17 -0500
commita76864cc92241ef9b759fbe63282a45dea7d5e03 (patch)
treed67d95e7acb47964b2e587dc866fe902fb907b13
parent83c1ce74e01dcf95ac8f545d7584259615e8834f (diff)
downloadgitlab-ce-a76864cc92241ef9b759fbe63282a45dea7d5e03.tar.gz
Add min width and horizontally scroll pipeline graph when overflow
-rw-r--r--app/assets/stylesheets/pages/pipelines.scss23
1 files changed, 17 insertions, 6 deletions
diff --git a/app/assets/stylesheets/pages/pipelines.scss b/app/assets/stylesheets/pages/pipelines.scss
index fa422f4f3c5..a9ffda00278 100644
--- a/app/assets/stylesheets/pages/pipelines.scss
+++ b/app/assets/stylesheets/pages/pipelines.scss
@@ -234,16 +234,22 @@
.pipeline-visualization {
position: relative;
+ width: 100%;
+ overflow: auto;
ul {
padding: 0;
}
}
+.stage-column-list {
+ min-width: 1220px;
+}
+
.stage-column {
display: inline-block;
vertical-align: top;
- margin-right: 40px;
+ margin-right: 50px;
li {
list-style: none;
@@ -278,9 +284,9 @@
content: '';
position: absolute;
top: 50%;
- right: -44px;
+ right: -54px;
border-top: 2px solid $border-color;
- width: 44px;
+ width: 54px;
height: 1px;
}
}
@@ -298,7 +304,7 @@
// Right connecting curves
&::after {
- right: -21px;
+ right: -20px;
border-right: 2px solid $border-color;
border-radius: 0 0 50px 0;
-webkit-border-radius: 0 0 50px 0;
@@ -306,7 +312,7 @@
// Left connecting curves
&::before {
- left: -21px;
+ left: -20px;
border-left: 2px solid $border-color;
border-radius: 0 0 0 50px;
-webkit-border-radius: 0 0 0 50px;
@@ -316,9 +322,14 @@
// Connect second build to first build with smaller curved line
&:nth-child(2) {
&::after, &::before {
- height: 40px;
+ height: 45px;
top: -26px;
}
+ &::after {
+ // border-left: 2px solid $border-color;
+ border-top-right-radius: -50px;
+ -webkit-border-top-right-radius: -50px;
+ }
}
}