gitlab-org--gitlab-foss/app/assets/stylesheets/pages/pipelines.scss

596 lines
9.5 KiB
SCSS
Raw Normal View History

2016-05-20 19:50:16 -04:00
.pipelines {
.stage {
max-width: 90px;
width: 90px;
text-align: center;
2016-05-20 19:50:16 -04:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.commit-title {
margin: 0;
}
.controls {
white-space: nowrap;
}
.btn {
margin: 4px;
}
.table.builds {
min-width: 1200px;
}
2016-05-16 17:34:42 -04:00
}
2016-07-11 09:38:27 -04:00
.content-list {
&.pipelines,
&.builds-content-list {
width: 100%;
overflow: auto;
}
}
2016-07-21 15:42:23 -04:00
.pipeline-holder {
width: 100%;
overflow: auto;
}
.pipelines .table.builds .branch-commit {
width: 33%;
}
.table.builds {
min-width: 900px;
2016-07-21 15:42:23 -04:00
&.pipeline {
min-width: 650px;
}
tr {
th {
padding: 16px 8px;
border: none;
}
td {
padding: 10px 8px;
}
}
tbody {
border-top-width: 1px;
}
.commit-link {
2016-07-19 09:47:26 -04:00
.ci-status {
2016-07-15 12:05:06 -04:00
svg {
top: 1px;
margin-right: 0;
}
}
a:hover {
text-decoration: none;
}
}
.branch-commit {
.branch-name {
font-weight: bold;
max-width: 150px;
overflow: hidden;
display: inline-block;
white-space: nowrap;
vertical-align: top;
text-overflow: ellipsis;
}
svg {
height: 14px;
2016-07-21 11:38:19 -04:00
width: 14px;
vertical-align: middle;
fill: $table-text-gray;
}
.fa {
font-size: 12px;
color: $table-text-gray;
}
.commit-id {
color: $gl-link-color;
margin-right: 8px;
}
.commit-title {
margin-top: 4px;
2016-07-20 12:17:52 -04:00
max-width: 300px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.avatar {
margin-left: 0;
}
2016-07-11 09:38:27 -04:00
.label {
margin-right: 4px;
}
2016-07-11 09:38:27 -04:00
.label-container {
font-size: 0;
.label {
margin-top: 5px;
}
2016-07-11 09:38:27 -04:00
}
}
.icon-container {
display: inline-block;
text-align: right;
width: 15px;
.fa {
position: relative;
right: 3px;
}
svg {
position: relative;
right: 1px;
}
}
2016-07-15 12:05:06 -04:00
.stage-cell {
2016-09-14 06:32:19 -04:00
font-size: 0;
svg {
2016-07-19 09:47:26 -04:00
height: 18px;
width: 18px;
2016-09-14 06:32:19 -04:00
position: relative;
z-index: 2;
vertical-align: middle;
2016-07-21 10:37:31 -04:00
overflow: visible;
}
.stage-container {
display: inline-block;
position: relative;
margin-right: 6px;
.tooltip {
white-space: nowrap;
}
&:not(:last-child) {
&::after {
content: '';
2016-09-14 06:32:19 -04:00
width: 8px;
position: absolute;;
2016-09-14 06:32:19 -04:00
right: -7px;
2016-09-16 03:48:26 -04:00
bottom: 8px;
2016-09-14 06:32:19 -04:00
border-bottom: 2px solid $border-color;
}
}
a {
display: block;
}
}
}
.duration,
.finished-at {
color: $table-text-gray;
2016-07-11 09:38:27 -04:00
margin: 4px 0;
.fa {
font-size: 12px;
2016-07-13 17:08:16 -04:00
margin-right: 4px;
}
svg {
width: 12px;
2016-07-21 11:38:19 -04:00
height: 12px;
vertical-align: middle;
2016-07-13 17:08:16 -04:00
margin-right: 4px;
}
}
.pipeline-actions {
min-width: 140px;
.btn {
2016-07-08 15:09:30 -04:00
margin: 0;
2016-07-11 09:38:27 -04:00
color: $table-text-gray;
2016-07-08 15:09:30 -04:00
}
.cancel-retry-btns {
2016-07-16 18:51:39 -04:00
vertical-align: middle;
.btn:not(:first-child) {
margin-left: 8px;
}
}
2016-07-08 15:09:30 -04:00
.dropdown-toggle,
2016-07-11 09:38:27 -04:00
.dropdown-menu {
color: $table-text-gray;
2016-07-08 15:09:30 -04:00
.fa {
color: $table-text-gray;
margin-right: 6px;
font-size: 14px;
}
}
.btn-remove {
color: $white-light;
}
2016-07-08 15:09:30 -04:00
.btn-group {
&.open {
.btn-default {
background-color: $white-normal;
border-color: $border-white-normal;
}
}
2016-08-25 17:15:44 -04:00
.btn {
.icon-play {
height: 13px;
width: 12px;
}
}
2016-07-08 15:09:30 -04:00
}
}
.build-link {
a {
color: $gl-dark-link-color;
}
}
2016-07-08 15:09:30 -04:00
.btn-group.open .dropdown-toggle {
box-shadow: none;
}
}
2016-08-08 17:26:33 -04:00
// Pipeline visualization
2016-08-08 18:42:28 -04:00
.toggle-pipeline-btn {
background-color: $gray-dark;
.caret {
border-top: none;
border-bottom: 4px solid;
}
&.graph-collapsed {
background-color: $white-light;
.caret {
border-bottom: none;
border-top: 4px solid;
}
}
}
2016-08-09 16:39:01 -04:00
.pipeline-graph {
width: 100%;
overflow: auto;
2016-08-09 16:39:01 -04:00
white-space: nowrap;
transition: max-height 0.3s, padding 0.3s;
&.graph-collapsed {
max-height: 0;
padding: 0 16px;
}
2016-08-09 16:39:01 -04:00
}
.pipeline-visualization {
position: relative;
2016-08-09 15:26:25 -04:00
ul {
padding: 0;
}
2016-08-08 18:42:28 -04:00
}
2016-08-08 17:26:33 -04:00
.stage-column {
display: inline-block;
vertical-align: top;
margin-right: 65px;
2016-08-08 18:42:28 -04:00
2016-08-09 15:26:25 -04:00
li {
list-style: none;
}
2016-08-08 18:42:28 -04:00
.stage-name {
margin-bottom: 15px;
font-weight: bold;
2016-08-09 16:08:04 -04:00
width: 150px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2016-08-08 18:42:28 -04:00
}
.build {
border: 1px solid $border-color;
position: relative;
padding: 6px 10px;
border-radius: 30px;
width: 150px;
margin-bottom: 10px;
2016-08-17 11:20:46 -04:00
&.playable {
background-color: $gray-light;
2016-08-18 10:18:56 -04:00
svg {
height: 12px;
width: 12px;
position: relative;
top: 1px;
path {
fill: $layout-link-gray;
}
}
}
2016-08-09 16:08:04 -04:00
.build-content {
width: 130px;
2016-09-07 11:31:32 -04:00
.ci-status-text {
width: 110px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
display: inline-block;
position: relative;
top: -1px;
}
2016-08-16 20:52:34 -04:00
a {
color: $layout-link-gray;
2016-08-26 18:34:21 -04:00
text-decoration: none;
&:hover {
.ci-status-text {
text-decoration: underline;
}
}
2016-09-07 11:31:32 -04:00
}
.dropdown-menu-toggle {
border: none;
width: auto;
padding: 0;
color: $layout-link-gray;
.ci-status-text {
width: 80px;
}
}
.grouped-pipeline-dropdown {
padding: 8px 0;
width: 200px;
left: auto;
right: -214px;
top: -9px;
a:hover {
.ci-status-text {
text-decoration: none;
}
}
.ci-status-text {
width: 145px;
}
.arrow {
&:before,
&:after {
content: '';
display: inline-block;
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
top: 18px;
}
&:before {
left: -5px;
margin-top: -6px;
border-width: 7px 5px 7px 0;
border-right-color: $border-color;
}
2016-08-26 18:34:21 -04:00
2016-09-07 11:31:32 -04:00
&:after {
left: -4px;
margin-top: -9px;
border-width: 10px 7px 10px 0;
border-right-color: $white-light;
}
}
}
.badge {
background-color: $gray-dark;
color: $layout-link-gray;
font-weight: normal;
2016-08-16 20:52:34 -04:00
}
2016-08-09 16:08:04 -04:00
}
2016-08-08 18:42:28 -04:00
svg {
2016-09-07 11:31:32 -04:00
vertical-align: middle;
2016-08-08 18:42:28 -04:00
margin-right: 5px;
}
2016-08-09 15:26:25 -04:00
// Connect first build in each stage with right horizontal line
2016-08-08 18:42:28 -04:00
&:first-child {
2016-08-09 15:26:25 -04:00
&::after {
2016-08-08 18:42:28 -04:00
content: '';
position: absolute;
top: 50%;
right: -69px;
2016-08-09 15:26:25 -04:00
border-top: 2px solid $border-color;
width: 69px;
2016-08-08 18:42:28 -04:00
height: 1px;
}
}
2016-08-09 15:26:25 -04:00
// Connect each build (except for first) with curved lines
&:not(:first-child) {
&::after, &::before {
content: '';
top: -47px;
position: absolute;
border-bottom: 2px solid $border-color;
width: 20px;
height: 65px;
}
// Right connecting curves
&::after {
right: -20px;
2016-08-09 15:26:25 -04:00
border-right: 2px solid $border-color;
border-radius: 0 0 15px;
2016-08-09 15:26:25 -04:00
}
// Left connecting curves
&::before {
left: -20px;
2016-08-09 15:26:25 -04:00
border-left: 2px solid $border-color;
border-radius: 0 0 0 15px;
2016-08-09 15:26:25 -04:00
}
}
// Connect second build to first build with smaller curved line
&:nth-child(2) {
&::after, &::before {
2016-08-25 13:48:15 -04:00
height: 29px;
top: -10px;
}
.curve {
display: block;
2016-08-09 15:26:25 -04:00
}
}
}
&:last-child {
.build {
// Remove right connecting horizontal line from first build in last stage
&:first-child {
&::after, &::before {
border: none;
}
}
// Remove right curved connectors from all builds in last stage
&:not(:first-child) {
&::after {
border: none;
}
}
2016-08-25 13:48:15 -04:00
// Remove opposite curve
.curve {
&::before {
display: none;
}
}
2016-08-08 18:42:28 -04:00
}
2016-08-09 15:26:25 -04:00
}
2016-08-08 18:42:28 -04:00
2016-08-09 15:26:25 -04:00
&:first-child {
.build {
// Remove left curved connectors from all builds in first stage
&:not(:first-child) {
&::before {
border: none;
}
}
2016-08-25 13:48:15 -04:00
// Remove opposite curve
.curve {
&::after {
display: none;
}
}
}
}
// Curve first child connecting lines in opposite direction
.curve {
display: none;
&::before,
&::after {
content: '';
width: 21px;
height: 25px;
position: absolute;
2016-09-07 11:31:32 -04:00
top: -29px;
2016-08-25 13:48:15 -04:00
border-top: 2px solid $border-color;
}
&::after {
left: -39px;
border-right: 2px solid $border-color;
border-radius: 0 15px;
2016-08-25 13:48:15 -04:00
}
&::before {
right: -39px;
border-left: 2px solid $border-color;
border-radius: 15px 0 0;
2016-08-09 15:26:25 -04:00
}
2016-08-08 18:42:28 -04:00
}
2016-08-08 17:26:33 -04:00
}
.pipeline-actions {
border-bottom: none;
}
.toggle-pipeline-btn {
.fa {
color: $dropdown-header-color;
}
}
2016-08-17 13:33:05 -04:00
.pipelines.tab-pane {
.content-list.pipelines {
overflow: auto;
}
.stage {
max-width: 100px;
width: 100px;
}
.pipeline-actions {
min-width: initial;
}
}
2016-08-30 16:31:58 -04:00
.ci-status-icon-created {
svg {
2016-09-06 11:26:51 -04:00
fill: $gray-darkest;
2016-08-30 16:31:58 -04:00
}
}