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

945 lines
15 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;
}
2016-10-10 17:21:08 -04:00
.table.ci-table {
min-width: 1200px;
2016-12-15 08:22:39 -05:00
table-layout: fixed;
2016-10-04 17:50:59 -04:00
.pipeline-id {
color: $black;
2016-10-04 17:50:59 -04:00
}
.pipeline-date,
.pipeline-status {
width: 10%;
}
2016-10-10 09:46:28 -04:00
.pipeline-info,
.pipeline-commit,
.pipeline-actions,
.pipeline-stages {
width: 20%;
2016-10-10 09:46:28 -04:00
}
}
2016-05-16 17:34:42 -04:00
}
@media (max-width: $screen-md-max) {
.content-list {
&.pipelines,
&.builds-content-list {
width: 100%;
overflow: auto;
}
2016-07-11 09:38:27 -04:00
}
}
.content-list.pipelines .table-holder {
min-height: 300px;
}
2016-07-21 15:42:23 -04:00
.pipeline-holder {
width: 100%;
overflow: auto;
}
2016-10-10 17:21:08 -04:00
.table.ci-table {
min-width: 900px;
2016-07-21 15:42:23 -04:00
&.pipeline {
min-width: 650px;
}
2016-10-10 17:31:24 -04:00
&.builds-page {
tr {
height: 71px;
}
}
tr {
th {
padding: 16px 8px;
border: none;
}
td {
padding: 10px 8px;
}
2016-12-21 07:56:10 -05:00
.commit-link {
padding: 9px 8px 10px;
}
}
tbody {
border-top-width: 1px;
}
.build.retried {
background-color: $gray-lightest;
}
.commit-link {
a {
&:focus {
text-decoration: none;
}
}
a:hover {
text-decoration: none;
}
}
.avatar {
margin-left: 0;
float: none;
}
.branch-commit {
.branch-name {
font-weight: bold;
max-width: 120px;
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: $gl-gray-light;
}
.fa {
font-size: 12px;
color: $gl-text-color;
}
.commit-id {
color: $gl-link-color;
}
.commit-title {
margin-top: 4px;
max-width: 225px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.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;
width: 10px;
2016-10-07 17:21:08 -04:00
&.commit-icon {
width: 15px;
text-align: center;
}
}
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-12-22 19:36:55 -05:00
top: 10px;
2016-09-14 06:32:19 -04:00
border-bottom: 2px solid $border-color;
}
}
}
}
.duration,
.finished-at {
color: $gl-gray-light;
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;
color: $gl-gray-light;
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: $gl-gray-light;
2016-07-08 15:09:30 -04:00
.fa {
color: $gl-gray-light;
2016-07-08 15:09:30 -04:00
font-size: 14px;
}
svg,
.fa {
margin-right: 0;
}
}
.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
2016-12-05 10:59:30 -05:00
.admin-builds-table {
.ci-table td:last-child {
min-width: 120px;
}
}
2016-08-08 17:26:33 -04:00
// Pipeline visualization
.pipeline-actions {
border-bottom: none;
}
2016-08-08 18:42:28 -04:00
.tab-pane {
&.pipelines {
.ci-table {
min-width: 900px;
}
.content-list.pipelines {
overflow: auto;
}
.stage {
max-width: 100px;
width: 100px;
}
.pipeline-actions {
min-width: initial;
}
}
&.builds {
.ci-table {
tr {
height: 71px;
}
}
}
}
// Pipeline graph
2016-08-09 16:39:01 -04:00
.pipeline-graph {
width: 100%;
2016-12-12 17:26:21 -05:00
background-color: $gray-light;
padding: $gl-padding;
2016-08-09 16:39:01 -04:00
white-space: nowrap;
transition: max-height 0.3s, padding 0.3s;
2016-08-09 15:26:25 -04:00
ul {
padding: 0;
}
2016-08-08 18:42:28 -04:00
a {
text-decoration: none;
color: $gl-text-color-light;
}
svg {
vertical-align: middle;
margin-right: 3px;
}
.stage-column {
display: inline-block;
vertical-align: top;
&:not(:last-child) {
margin-right: 44px;
}
&.left-margin {
&:not(:first-child) {
margin-left: 44px;
.left-connector {
&::before {
content: '';
position: absolute;
top: 48%;
left: -48px;
border-top: 2px solid $border-color;
width: 48px;
height: 1px;
}
}
}
}
2016-08-08 18:42:28 -04:00
&.no-margin {
margin: 0;
}
2016-09-29 17:24:37 -04:00
li {
list-style: none;
}
&:last-child {
.build {
// Remove right connecting horizontal line from first build in last stage
&:first-child {
&::after {
border: none;
}
}
// Remove right curved connectors from all builds in last stage
&:not(:first-child) {
&::after {
border: none;
}
}
// Remove opposite curve
.curve {
&::before {
display: none;
}
}
}
}
&:first-child {
.build {
// Remove left curved connectors from all builds in first stage
&:not(:first-child) {
&::before {
border: none;
}
}
// 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;
top: -31px;
border-top: 2px solid $border-color;
}
&::after {
left: -44px;
border-right: 2px solid $border-color;
border-radius: 0 20px;
}
2016-09-29 17:24:37 -04:00
&::before {
right: -44px;
border-left: 2px solid $border-color;
border-radius: 20px 0 0;
}
}
2016-08-09 15:26:25 -04:00
}
2016-08-08 18:42:28 -04:00
.stage-name {
margin: 0 0 15px 10px;
2016-08-08 18:42:28 -04:00
font-weight: bold;
width: 176px;
2016-08-09 16:08:04 -04:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2016-08-08 18:42:28 -04:00
}
.build {
position: relative;
width: 186px;
2016-08-08 18:42:28 -04:00
margin-bottom: 10px;
2016-12-14 18:27:26 -05:00
white-space: normal;
color: $gl-text-color-light;
2016-08-08 18:42:28 -04:00
.dropdown-menu-toggle {
background-color: transparent;
border: none;
padding: 0;
color: $gl-text-color-light;
2016-09-20 20:45:39 -04:00
&:focus {
outline: none;
}
2016-08-18 10:18:56 -04:00
&:hover {
color: $gl-text-color;
2016-08-18 10:18:56 -04:00
.dropdown-counter-badge {
color: $gl-text-color;
2016-08-18 10:18:56 -04:00
}
}
}
> .build-content {
display: inline-block;
padding: 8px 10px 9px;
width: 100%;
border: 1px solid $border-color;
border-radius: 30px;
background-color: $white-light;
&:hover {
background-color: $stage-hover-bg;
border: 1px solid $stage-hover-border;
color: $gl-text-color;
}
}
2016-09-07 11:31:32 -04:00
> .ci-action-icon-container {
position: absolute;
2016-12-21 07:56:10 -05:00
right: 5px;
top: 5px;
}
.ci-status-icon svg {
height: 20px;
width: 20px;
}
2016-09-07 11:31:32 -04:00
.arrow {
&::before,
&::after {
content: '';
display: inline-block;
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
top: 18px;
2016-09-07 11:31:32 -04:00
}
&::before {
left: -5px;
margin-top: -6px;
border-width: 7px 5px 7px 0;
border-right-color: $border-color;
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;
2016-08-16 20:52:34 -04:00
}
2016-08-09 16:08:04 -04:00
}
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: 48%;
right: -48px;
2016-08-09 15:26:25 -04:00
border-top: 2px solid $border-color;
width: 48px;
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 {
2016-08-09 15:26:25 -04:00
content: '';
top: -49px;
2016-08-09 15:26:25 -04:00
position: absolute;
border-bottom: 2px solid $border-color;
width: 25px;
height: 69px;
2016-08-09 15:26:25 -04:00
}
// Right connecting curves
&::after {
right: -25px;
2016-08-09 15:26:25 -04:00
border-right: 2px solid $border-color;
border-radius: 0 0 20px;
2016-08-09 15:26:25 -04:00
}
// Left connecting curves
&::before {
left: -25px;
2016-08-09 15:26:25 -04:00
border-left: 2px solid $border-color;
border-radius: 0 0 0 20px;
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: -9px;
2016-08-25 13:48:15 -04:00
}
2016-08-25 13:48:15 -04:00
.curve {
display: block;
2016-08-09 15:26:25 -04:00
}
}
}
.grouped-pipeline-dropdown {
.dropdown-build {
.build-content {
width: 100%;
&:hover {
background-color: $stage-hover-bg;
color: $gl-text-color;
}
}
.ci-action-icon-container {
padding: 0;
font-size: 11px;
position: absolute;
top: 1px;
right: 8px;
}
}
}
2016-12-14 13:34:56 -05:00
}
2016-08-09 15:26:25 -04:00
2016-12-14 13:34:56 -05:00
.dropdown-counter-badge {
color: $border-color;
font-weight: 100;
font-size: 15px;
position: absolute;
right: 5px;
top: 8px;
2016-12-14 13:34:56 -05:00
}
2016-08-25 13:48:15 -04:00
2016-12-14 13:34:56 -05:00
.grouped-pipeline-dropdown {
padding: 0;
width: 195px;
min-width: 195px;
2016-12-14 13:34:56 -05:00
left: auto;
right: -195px;
top: -4px;
2016-12-14 13:34:56 -05:00
box-shadow: 0 1px 5px $black-transparent;
2016-08-25 13:48:15 -04:00
2016-12-14 13:34:56 -05:00
a {
display: inline-block;
2016-12-21 07:56:10 -05:00
}
.dropdown-build {
.build-content {
width: 100%;
2016-08-25 13:48:15 -04:00
&:hover {
background-color: $stage-hover-bg;
color: $gl-text-color;
}
}
.ci-action-icon-container {
padding: 0;
font-size: 11px;
position: absolute;
margin-top: 3px;
right: 7px;
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-12-14 13:34:56 -05:00
ul {
max-height: 245px;
overflow: auto;
2016-12-21 07:56:10 -05:00
margin: 3px 0;
2016-12-14 13:34:56 -05:00
li {
margin: 4px 8px 4px 9px;
padding: 0;
line-height: 1.1;
position: relative;
2016-12-21 07:56:10 -05:00
.ci-action-icon-container:hover {
background-color: transparent;
}
.ci-status-icon {
position: relative;
top: 2px;
}
2016-12-14 13:34:56 -05:00
}
}
}
.pipeline-graph .dropdown-build .ci-status-icon svg {
width: 18px;
height: 18px;
}
2016-12-14 13:34:56 -05:00
.ci-status-text {
max-width: 110px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
display: inline-block;
position: relative;
font-weight: 200;
2016-12-14 13:34:56 -05:00
}
2016-10-10 17:43:40 -04:00
// Action Icons
.ci-action-icon-container .ci-action-icon-wrapper {
i {
2016-12-14 12:31:43 -05:00
color: $border-color;
border-radius: 100%;
2016-12-14 12:31:43 -05:00
border: 1px solid $border-color;
padding: 5px 6px;
font-size: 13px;
background: $white-light;
2016-12-14 11:53:39 -05:00
height: 30px;
width: 30px;
2016-08-25 13:48:15 -04:00
2016-12-15 05:55:34 -05:00
&::before {
2016-12-14 11:53:39 -05:00
position: relative;
top: 3px;
left: 3px;
2016-08-25 13:48:15 -04:00
}
&:hover {
color: $gl-text-color;
background-color: $stage-hover-bg;
border: 1px solid $stage-hover-bg;
}
}
2016-08-25 13:48:15 -04:00
.ci-play-icon {
padding: 5px 5px 5px 7px;
}
2016-12-15 12:30:49 -05:00
}
2016-12-14 08:54:23 -05:00
2016-12-14 13:34:56 -05:00
.dropdown-build {
color: $gl-text-color-light;
2016-12-21 07:56:10 -05:00
.build-content {
padding: 4px 7px 8px;
2016-12-21 07:56:10 -05:00
}
.ci-action-icon-container {
2016-12-14 13:34:56 -05:00
padding: 0;
font-size: 11px;
float: right;
2016-12-21 07:56:10 -05:00
margin-top: 3px;
display: inline-block;
position: relative;
2016-12-14 13:34:56 -05:00
i {
font-size: 11px;
margin-top: 0;
}
}
.ci-action-icon-container {
i {
2016-12-21 07:56:10 -05:00
width: 24px;
height: 24px;
2016-12-14 13:34:56 -05:00
&::before {
2016-12-14 13:34:56 -05:00
top: 1px;
left: 1px;
2016-08-25 13:48:15 -04:00
}
}
}
2016-12-14 13:34:56 -05:00
.stage {
max-width: 100px;
width: 100px;
}
2016-08-17 13:33:05 -04:00
2016-12-14 13:34:56 -05:00
.ci-status-icon svg {
height: 18px;
width: 18px;
}
.ci-status-text {
max-width: 95px;
}
}
2016-12-14 08:54:23 -05:00
/**
* Builds dropdown in mini pipeline
*/
2016-12-14 13:34:56 -05:00
.mini-pipeline-graph {
.builds-dropdown {
background-color: transparent;
padding: 0;
2016-12-14 13:41:21 -05:00
color: $gl-text-color-light;
2016-12-14 18:47:04 -05:00
border: none;
2016-12-14 19:17:40 -05:00
margin: 0;
2016-12-22 19:18:57 -05:00
&:focus,
&:hover {
outline: none;
margin-right: -8px;
.ci-status-icon {
width: 32px;
padding: 0 8px 0 0;
transition: width 0.1s cubic-bezier(0.25, 0, 1, 1);
+ .dropdown-caret {
visibility: visible;
2016-12-23 07:06:45 -05:00
opacity: 1;
2016-12-22 19:18:57 -05:00
}
}
}
&:focus,
&:active {
.ci-status-icon-success {
background-color: rgba($gl-success, .1);
}
.ci-status-icon-failed {
background-color: rgba($gl-danger, .1);
}
.ci-status-icon-pending,
.ci-status-icon-success_with_warnings {
background-color: rgba($gl-warning, .1);
}
.ci-status-icon-running {
background-color: rgba($blue-normal, .1);
}
.ci-status-icon-canceled,
.ci-status-icon-disabled,
.ci-status-icon-not-found {
background-color: rgba($gl-gray, .1);
}
.ci-status-icon-created,
.ci-status-icon-skipped {
background-color: rgba($gray-darkest, .1);
}
}
.mini-pipeline-graph-icon-container {
.dropdown-caret {
font-size: 11px;
position: absolute;
top: 6px;
2016-12-22 19:18:57 -05:00
left: 20px;
margin-right: -6px;
z-index: 2;
visibility: hidden;
opacity: 0;
transition: visibility 0.1s, opacity 0.1s linear;
2016-12-22 19:18:57 -05:00
}
}
2016-12-14 13:34:56 -05:00
}
2016-12-14 08:54:23 -05:00
2016-12-21 07:56:10 -05:00
.dropdown-build .build-content {
padding: 3px 7px 7px;
}
2016-12-19 12:58:46 -05:00
.builds-dropdown-loading {
margin: 10px auto;
width: 18px;
}
2016-12-14 13:34:56 -05:00
.grouped-pipeline-dropdown {
right: -172px;
top: 23px;
2016-12-20 08:22:31 -05:00
min-height: 50px;
2016-08-25 13:48:15 -04:00
a {
2016-12-19 12:58:46 -05:00
color: $gl-text-color-light;
}
2016-12-14 13:41:21 -05:00
}
2016-12-14 13:34:56 -05:00
.arrow-up {
2016-08-25 13:48:15 -04:00
&::before,
&::after {
content: '';
2016-12-14 13:34:56 -05:00
display: inline-block;
2016-08-25 13:48:15 -04:00
position: absolute;
2016-12-14 13:34:56 -05:00
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
top: -6px;
left: 2px;
border-width: 0 5px 6px;
2016-08-25 13:48:15 -04:00
}
2016-12-14 13:34:56 -05:00
&::before {
border-width: 0 5px 5px;
2016-12-14 13:34:56 -05:00
border-bottom-color: $border-color;
2016-08-25 13:48:15 -04:00
}
2016-12-14 13:34:56 -05:00
&::after {
margin-top: 1px;
border-bottom-color: $white-light;
2016-08-09 15:26:25 -04:00
}
2016-08-08 18:42:28 -04:00
}
2016-08-08 17:26:33 -04:00
}
/**
* Icons in mini pipeline graph
*/
2016-12-15 08:22:39 -05:00
.mini-pipeline-graph-icon-container .ci-status-icon {
display: inline-block;
border: 1px solid;
2016-12-21 07:56:10 -05:00
border-radius: 22px;
margin-right: 1px;
2016-12-21 07:56:10 -05:00
width: 22px;
height: 22px;
position: relative;
z-index: 2;
2016-12-22 19:18:57 -05:00
transition: all 0.1s cubic-bezier(0.25, 0, 1, 1);
svg {
top: -1px;
2016-12-21 07:56:10 -05:00
left: -1px;
}
}
2016-12-21 07:56:10 -05:00
.stage-cell .mini-pipeline-graph-icon-container .ci-status-icon svg {
width: 22px;
height: 22px;
}
2016-12-14 19:59:04 -05:00
.terminal-icon {
margin-left: 3px;
}
.terminal-container {
.content-block {
border-bottom: none;
}
#terminal {
margin-top: 10px;
min-height: 450px;
box-sizing: border-box;
> div {
min-height: 450px;
}
}
}