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

933 lines
17 KiB
SCSS
Raw Normal View History

2016-12-28 17:44:08 -05:00
.pipelines {
.stage {
max-width: 90px;
width: 90px;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2017-03-22 16:46:01 -04:00
.table-holder {
width: 100%;
}
2017-02-22 16:23:34 -05:00
.commit-title {
margin: 0;
2016-12-28 17:44:08 -05:00
}
.ci-table {
2016-12-28 17:44:08 -05:00
.label {
margin-bottom: 3px;
}
2016-12-28 17:44:08 -05:00
.pipeline-id {
color: $black;
}
2017-02-23 06:34:38 -05:00
.pipelines-time-ago {
text-align: right;
}
.pipeline-actions {
padding-right: 0;
min-width: 170px; //Guarantees buttons don't break in several lines.
.btn-default {
color: $gl-text-color-secondary;
}
.btn.btn-retry:hover,
.btn.btn-retry:focus {
2017-08-11 12:42:35 -04:00
border-color: $dropdown-toggle-active-border-color;
2017-02-23 06:34:38 -05:00
background-color: $white-normal;
}
svg path {
fill: $gl-text-color-secondary;
}
.dropdown-menu {
max-height: 250px;
overflow-y: auto;
}
.dropdown-toggle,
.dropdown-menu {
color: $gl-text-color-secondary;
.fa {
color: $gl-text-color-secondary;
font-size: 14px;
}
}
.btn-group {
&.open {
.btn-default {
background-color: $white-normal;
border-color: $border-white-normal;
}
}
.btn {
.icon-play {
height: 13px;
width: 12px;
}
}
}
.btn .text-center {
display: inline;
}
2017-02-23 06:34:38 -05:00
.tooltip {
white-space: nowrap;
}
}
2016-12-28 17:44:08 -05:00
}
}
2016-12-28 17:44:08 -05:00
@media (max-width: $screen-md-max) {
.content-list {
&.builds-content-list {
width: 100%;
overflow: auto;
}
2016-12-28 17:44:08 -05:00
}
}
.ci-table {
2016-12-28 17:44:08 -05:00
.build.retried {
background-color: $gray-lightest;
}
2016-12-28 17:44:08 -05:00
.commit-link {
a {
&:focus {
text-decoration: none;
}
}
2016-12-28 17:44:08 -05:00
a:hover {
text-decoration: none;
}
2016-12-28 17:44:08 -05:00
}
2016-12-28 17:44:08 -05:00
.avatar {
margin-left: 0;
float: none;
}
.api {
@extend .monospace;
}
2016-12-28 17:44:08 -05:00
.branch-commit {
.ref-name {
font-weight: $gl-font-weight-bold;
2016-12-28 17:44:08 -05:00
max-width: 120px;
overflow: hidden;
display: inline-block;
white-space: nowrap;
2017-06-23 03:36:40 -04:00
vertical-align: middle;
2016-12-28 17:44:08 -05:00
text-overflow: ellipsis;
}
2016-12-28 17:44:08 -05:00
svg {
height: 14px;
width: 14px;
vertical-align: middle;
2016-12-30 15:18:27 -05:00
fill: $gl-text-color-secondary;
}
2016-12-28 17:44:08 -05:00
.fa {
font-size: 12px;
color: $gl-text-color;
}
.commit-sha {
2016-12-28 17:44:08 -05:00
color: $gl-link-color;
}
2016-12-28 17:44:08 -05:00
.label {
margin-right: 4px;
}
2016-07-15 12:05:06 -04:00
2016-12-28 17:44:08 -05:00
.label-container {
font-size: 0;
2016-12-28 17:44:08 -05:00
.label {
margin-top: 5px;
2016-12-28 16:32:15 -05:00
}
2016-12-28 17:44:08 -05:00
}
}
2016-12-28 17:44:08 -05:00
.icon-container {
display: inline-block;
width: 10px;
2016-12-28 16:32:15 -05:00
2016-12-28 17:44:08 -05:00
&.commit-icon {
width: 15px;
text-align: center;
}
}
2016-12-28 16:32:15 -05:00
2016-12-28 17:44:08 -05:00
.duration,
.finished-at {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
2017-05-10 13:37:36 -04:00
margin: 0;
white-space: nowrap;
2016-12-28 17:44:08 -05:00
.fa {
font-size: 12px;
margin-right: 4px;
}
2016-12-28 17:44:08 -05:00
svg {
width: 12px;
height: 12px;
vertical-align: middle;
margin-right: 4px;
}
}
.build-link a {
color: $gl-text-color;
2016-12-28 17:44:08 -05:00
}
2016-07-08 15:09:30 -04:00
2016-12-28 17:44:08 -05:00
.btn-group.open .dropdown-toggle {
box-shadow: none;
}
}
2016-08-08 17:26:33 -04:00
.stage-cell {
.mini-pipeline-graph-dropdown-toggle svg {
2017-08-11 12:42:35 -04:00
height: $ci-action-icon-size;
width: $ci-action-icon-size;
position: absolute;
top: -1px;
left: -1px;
z-index: 2;
overflow: visible;
}
.stage-container {
display: inline-block;
position: relative;
vertical-align: middle;
2017-08-11 12:42:35 -04:00
height: $ci-action-icon-size;
2017-08-06 22:29:37 -04:00
margin: 3px 0;
+ .stage-container {
margin-left: 6px;
}
// Hack to show a button tooltip inline
button.has-tooltip + .tooltip {
min-width: 105px;
}
// Bootstrap way of showing the content inline for anchors.
a.has-tooltip {
white-space: nowrap;
}
&:not(:last-child) {
&::after {
content: '';
width: 7px;
position: absolute;
right: -7px;
top: 10px;
border-bottom: 2px solid $border-color;
}
}
}
}
2016-12-28 17:44:08 -05:00
.admin-builds-table {
.ci-table td:last-child {
min-width: 120px;
}
}
2016-12-05 10:59:30 -05:00
2016-12-28 17:44:08 -05:00
// Pipeline visualization
.pipeline-actions {
border-bottom: none;
}
2016-08-08 18:42:28 -04:00
2016-12-28 17:44:08 -05:00
.tab-pane {
2017-02-23 06:34:38 -05:00
&.builds .ci-table tr {
height: 71px;
}
2016-12-28 17:44:08 -05:00
}
2016-08-08 18:42:28 -04:00
.build-failures {
.build-state {
padding: 20px 2px;
.build-name {
float: right;
font-weight: $gl-font-weight-normal;
}
.ci-status-icon-failed svg {
vertical-align: middle;
}
.stage {
color: $gl-text-color-secondary;
font-weight: $gl-font-weight-normal;
vertical-align: middle;
}
}
.build-log {
border: none;
line-height: initial;
}
}
2016-12-28 17:44:08 -05:00
// Pipeline graph
.pipeline-graph {
width: 100%;
background-color: $gray-light;
padding: $gl-padding;
white-space: nowrap;
transition: max-height 0.3s, padding 0.3s;
overflow: auto;
2016-12-28 17:44:08 -05:00
2017-01-05 11:47:49 -05:00
.stage-column-list,
.builds-container > ul {
2016-12-28 17:44:08 -05:00
padding: 0;
}
2016-12-28 17:44:08 -05:00
a {
text-decoration: none;
2017-08-11 12:42:35 -04:00
color: $gl-text-color;
2016-12-28 17:44:08 -05:00
}
2016-12-28 17:44:08 -05:00
svg {
vertical-align: middle;
margin-right: 3px;
}
2016-12-28 17:44:08 -05:00
.stage-column {
display: inline-block;
vertical-align: top;
2016-12-28 17:44:08 -05:00
&:not(:last-child) {
margin-right: 44px;
2016-12-28 16:32:15 -05:00
}
2016-12-28 17:44:08 -05:00
&.left-margin {
&:not(:first-child) {
margin-left: 44px;
.left-connector {
&::before {
content: '';
position: absolute;
top: 48%;
2017-05-10 11:47:00 -04:00
left: -44px;
2016-12-28 17:44:08 -05:00
border-top: 2px solid $border-color;
2017-05-10 11:47:00 -04:00
width: 44px;
2016-12-28 17:44:08 -05:00
height: 1px;
}
}
}
}
2016-09-29 17:24:37 -04:00
2016-12-28 17:44:08 -05:00
&.no-margin {
margin: 0;
}
2016-12-28 17:44:08 -05:00
li {
list-style: none;
2016-12-28 16:32:15 -05:00
}
2016-12-28 17:44:08 -05:00
&:last-child {
.build {
// Remove right connecting horizontal line from first build in last stage
&:first-child {
&::after {
border: none;
}
}
2016-12-28 17:44:08 -05:00
// Remove right curved connectors from all builds in last stage
&:not(:first-child) {
&::after {
border: none;
2016-12-28 16:32:15 -05:00
}
2016-12-28 17:44:08 -05:00
}
// Remove opposite curve
.curve {
&::before {
display: none;
}
}
}
2016-12-28 17:44:08 -05:00
}
2016-09-29 17:24:37 -04:00
2016-12-28 17:44:08 -05:00
&:first-child {
.build {
// Remove left curved connectors from all builds in first stage
&:not(:first-child) {
&::before {
border: none;
}
2016-12-28 17:44:08 -05:00
}
// Remove opposite curve
.curve {
&::after {
display: none;
}
}
}
2016-12-28 17:44:08 -05:00
}
2016-12-28 17:44:08 -05:00
// Curve first child connecting lines in opposite direction
.curve {
display: none;
2016-12-28 17:44:08 -05:00
&::before,
&::after {
content: '';
width: 21px;
height: 25px;
position: absolute;
top: -31px;
border-top: 2px solid $border-color;
}
2016-12-28 17:44:08 -05:00
&::after {
left: -44px;
border-right: 2px solid $border-color;
border-radius: 0 20px;
}
2016-08-08 18:42:28 -04:00
2016-12-28 17:44:08 -05:00
&::before {
right: -44px;
border-left: 2px solid $border-color;
border-radius: 20px 0 0;
}
2016-12-28 16:32:15 -05:00
}
2016-12-28 17:44:08 -05:00
}
2016-08-08 18:42:28 -04:00
2016-12-28 17:44:08 -05:00
.stage-name {
margin: 0 0 15px 10px;
font-weight: $gl-font-weight-bold;
2016-12-28 17:44:08 -05:00
width: 176px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2016-12-28 17:44:08 -05:00
.build {
position: relative;
width: 186px;
margin-bottom: 10px;
white-space: normal;
2017-08-11 12:42:35 -04:00
// ensure .build-content has hover style when action-icon is hovered
.ci-job-dropdown-container:hover .build-content {
@extend .build-content:hover;
}
2016-08-08 18:42:28 -04:00
// Action Icons in big pipeline-graph nodes
2017-05-10 11:47:00 -04:00
.ci-action-icon-container .ci-action-icon-wrapper {
height: 30px;
width: 30px;
background: $white-light;
border: 1px solid $border-color;
border-radius: 100%;
display: block;
&:hover {
background-color: $stage-hover-bg;
2017-08-11 12:42:35 -04:00
border: 1px solid $dropdown-toggle-active-border-color;
}
svg {
2017-08-11 12:42:35 -04:00
fill: $gl-text-color-secondary;
position: relative;
left: -1px;
top: -1px;
}
&:hover svg {
fill: $gl-text-color;
}
}
2017-05-10 11:47:00 -04:00
.ci-action-icon-container {
position: absolute;
right: 5px;
top: 5px;
}
.ci-status-icon svg {
height: 20px;
width: 20px;
}
2016-12-28 17:44:08 -05:00
.dropdown-menu-toggle {
background-color: transparent;
border: none;
padding: 0;
2016-12-28 16:32:15 -05:00
2016-12-28 17:44:08 -05:00
&:focus {
outline: none;
}
2016-12-28 17:44:08 -05:00
}
2016-08-16 20:52:34 -04:00
2017-05-10 11:47:00 -04:00
.build-content {
2016-12-28 17:44:08 -05:00
display: inline-block;
padding: 8px 10px 9px;
width: 100%;
border: 1px solid $border-color;
border-radius: 30px;
background-color: $white-light;
}
2016-09-07 11:31:32 -04:00
a.build-content:hover,
button.build-content:hover {
background-color: $stage-hover-bg;
2017-08-11 12:42:35 -04:00
border: 1px solid $dropdown-toggle-active-border-color;
2016-12-28 17:44:08 -05:00
}
2016-09-07 11:31:32 -04:00
2016-12-28 16:32:15 -05:00
2016-12-28 17:44:08 -05:00
// Connect first build in each stage with right horizontal line
&:first-child {
&::after {
content: '';
position: absolute;
top: 48%;
right: -48px;
border-top: 2px solid $border-color;
width: 48px;
height: 1px;
}
}
2016-12-28 16:32:15 -05:00
2016-12-28 17:44:08 -05:00
// Connect each build (except for first) with curved lines
&:not(:first-child) {
&::after,
&::before {
content: '';
top: -49px;
position: absolute;
border-bottom: 2px solid $border-color;
width: 25px;
height: 69px;
2016-08-09 15:26:25 -04:00
}
2016-12-28 17:44:08 -05:00
// Right connecting curves
&::after {
right: -25px;
border-right: 2px solid $border-color;
border-radius: 0 0 20px;
}
2016-12-28 16:32:15 -05:00
2016-12-28 17:44:08 -05:00
// Left connecting curves
&::before {
left: -25px;
border-left: 2px solid $border-color;
border-radius: 0 0 0 20px;
2016-08-09 15:26:25 -04:00
}
}
2016-12-28 17:44:08 -05:00
// Connect second build to first build with smaller curved line
&:nth-child(2) {
&::after,
&::before {
height: 29px;
top: -9px;
}
2016-12-28 16:32:15 -05:00
2016-12-28 17:44:08 -05:00
.curve {
display: block;
2016-08-09 15:26:25 -04:00
}
}
}
2016-12-28 17:44:08 -05:00
}
// Triggers the dropdown in the big pipeline graph
2016-12-28 17:44:08 -05:00
.dropdown-counter-badge {
font-weight: 100;
font-size: 15px;
position: absolute;
right: 13px;
2016-12-28 17:44:08 -05:00
top: 8px;
}
.ci-status-text {
max-width: 110px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: bottom;
display: inline-block;
position: relative;
font-weight: $gl-font-weight-normal;
2016-12-28 17:44:08 -05:00
}
@mixin mini-pipeline-graph-color($color-light, $color-main, $color-dark) {
border-color: $color-main;
color: $color-main;
&:hover,
&:focus,
&:active {
background-color: $color-light;
border-color: $color-dark;
color: $color-dark;
svg {
fill: $color-dark;
}
}
}
// Dropdown button in mini pipeline graph
button.mini-pipeline-graph-dropdown-toggle {
border-radius: 100px;
background-color: $white-light;
border-width: 1px;
border-style: solid;
2017-08-11 12:42:35 -04:00
width: $ci-action-icon-size;
height: $ci-action-icon-size;
margin: 0;
padding: 0;
transition: all 0.2s linear;
position: relative;
vertical-align: middle;
2016-12-28 17:44:08 -05:00
> .fa.fa-caret-down {
position: absolute;
left: 20px;
top: 5px;
display: inline-block;
visibility: hidden;
opacity: 0;
color: inherit;
font-size: 12px;
transition: visibility 0.1s, opacity 0.1s linear;
}
2016-08-25 13:48:15 -04:00
&:active,
&:focus,
&:hover {
outline: none;
width: 35px;
2016-12-14 13:34:56 -05:00
.fa.fa-caret-down {
visibility: visible;
opacity: 1;
2016-12-28 16:32:15 -05:00
}
2016-12-28 17:44:08 -05:00
}
2016-12-14 13:34:56 -05:00
// Dropdown button animation in mini pipeline graph
&.ci-status-icon-success {
@include mini-pipeline-graph-color($green-50, $green-500, $green-600);
2016-12-21 07:56:10 -05:00
}
&.ci-status-icon-failed {
@include mini-pipeline-graph-color($red-50, $red-500, $red-600);
2016-12-28 17:44:08 -05:00
}
2016-12-14 13:34:56 -05:00
&.ci-status-icon-pending,
&.ci-status-icon-success_with_warnings {
@include mini-pipeline-graph-color($orange-50, $orange-500, $orange-600);
2016-12-28 17:44:08 -05:00
}
2016-08-25 13:48:15 -04:00
&.ci-status-icon-running {
@include mini-pipeline-graph-color($blue-50, $blue-400, $blue-600);
2016-12-28 17:44:08 -05:00
}
2016-12-22 19:18:57 -05:00
&.ci-status-icon-canceled,
&.ci-status-icon-disabled,
&.ci-status-icon-not-found,
&.ci-status-icon-manual {
@include mini-pipeline-graph-color(rgba($gl-text-color, 0.1), $gl-text-color, $gl-text-color);
2016-12-28 17:44:08 -05:00
}
2016-12-22 19:18:57 -05:00
&.ci-status-icon-created,
&.ci-status-icon-skipped {
@include mini-pipeline-graph-color(rgba($gray-darkest, 0.1), $gray-darkest, $gray-darkest);
2016-12-28 17:44:08 -05:00
}
}
2017-08-11 12:42:35 -04:00
@include new-style-dropdown('.big-pipeline-graph-dropdown-menu');
@include new-style-dropdown('.mini-pipeline-graph-dropdown-menu');
// dropdown content for big and mini pipeline
.big-pipeline-graph-dropdown-menu,
.mini-pipeline-graph-dropdown-menu {
width: 195px;
max-width: 195px;
2016-12-22 19:18:57 -05:00
.scrollable-menu {
padding: 0;
max-height: 245px;
overflow: auto;
2016-12-21 07:56:10 -05:00
}
2016-12-22 19:18:57 -05:00
2017-08-11 12:42:35 -04:00
li {
position: relative;
2016-12-22 19:18:57 -05:00
2017-08-11 12:42:35 -04:00
// ensure .mini-pipeline-graph-dropdown-item has hover style when action-icon is hovered
&:hover > .mini-pipeline-graph-dropdown-item,
&:hover > .ci-job-component > .mini-pipeline-graph-dropdown-item {
@extend .mini-pipeline-graph-dropdown-item:hover;
}
2017-08-11 12:42:35 -04:00
// Action icon on the right
a.ci-action-icon-wrapper {
border-radius: 50%;
border: 1px solid $border-color;
width: $ci-action-icon-size;
height: $ci-action-icon-size;
padding: 2px 0 0 5px;
font-size: 12px;
background-color: $white-light;
position: absolute;
top: 50%;
right: $gl-padding;
margin-top: -#{$ci-action-icon-size / 2};
2017-08-11 12:42:35 -04:00
&:hover,
&:focus {
background-color: $stage-hover-bg;
border: 1px solid $dropdown-toggle-active-border-color;
}
2016-12-22 19:18:57 -05:00
2017-08-11 12:42:35 -04:00
svg {
fill: $gl-text-color-secondary;
width: $ci-action-icon-size;
height: $ci-action-icon-size;
left: -6px;
position: relative;
top: -3px;
}
2016-12-22 19:18:57 -05:00
2017-08-11 12:42:35 -04:00
&:hover svg,
&:focus svg {
fill: $gl-text-color;
}
}
// link to the build
.mini-pipeline-graph-dropdown-item {
padding: 3px 7px 4px;
align-items: center;
clear: both;
display: flex;
font-weight: normal;
line-height: $line-height-base;
white-space: nowrap;
2017-08-11 12:42:35 -04:00
border-radius: 3px;
2017-08-11 12:42:35 -04:00
.ci-job-name-component {
align-items: center;
display: flex;
flex: 1;
}
2016-12-22 19:18:57 -05:00
2017-08-11 12:42:35 -04:00
// build name
.ci-build-text,
.ci-status-text {
font-weight: 200;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: 70%;
margin-left: 2px;
display: inline-block;
2016-08-25 13:48:15 -04:00
2017-08-11 12:42:35 -04:00
@media (max-width: $screen-xs-max) {
max-width: 60%;
}
2016-12-28 16:32:15 -05:00
}
2017-08-11 12:42:35 -04:00
.ci-status-icon {
@extend .append-right-8;
position: relative;
> svg {
width: $pipeline-dropdown-status-icon-size;
height: $pipeline-dropdown-status-icon-size;
margin: 3px 0;
position: relative;
overflow: visible;
display: block;
}
}
&:hover,
&:focus {
outline: none;
text-decoration: none;
background-color: $stage-hover-bg;
}
2016-12-19 12:58:46 -05:00
}
2016-12-14 13:41:21 -05:00
}
}
2017-01-05 11:47:49 -05:00
// Dropdown in the big pipeline graph
.big-pipeline-graph-dropdown-menu {
width: 195px;
min-width: 195px;
2017-08-11 12:42:35 -04:00
left: 100%;
top: -10px;
2017-01-05 11:47:49 -05:00
box-shadow: 0 1px 5px $black-transparent;
}
2016-12-14 19:59:04 -05:00
/**
* Top arrow in the dropdown in the big pipeline graph
*/
.big-pipeline-graph-dropdown-menu {
&::before,
&::after {
content: '';
display: inline-block;
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
top: 18px;
}
&::before {
2017-08-11 12:42:35 -04:00
left: -6px;
margin-top: 3px;
border-width: 7px 5px 7px 0;
border-right-color: $border-color;
}
&::after {
2017-08-11 12:42:35 -04:00
left: -5px;
border-width: 10px 7px 10px 0;
border-right-color: $white-light;
}
}
/**
* Top arrow in the dropdown in the mini pipeline graph
*/
.mini-pipeline-graph-dropdown-menu {
2017-08-11 10:30:48 -04:00
z-index: 200;
2016-12-28 17:44:08 -05:00
&::before,
&::after {
content: '';
display: inline-block;
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
top: -6px;
left: 50%;
transform: translate(-50%, 0);
border-width: 0 5px 6px;
@media (max-width: $screen-sm-max) {
left: 100%;
margin-left: -12px;
}
}
2016-12-28 17:44:08 -05:00
&::before {
border-width: 0 5px 5px;
border-bottom-color: $border-color;
}
&::after {
margin-top: 1px;
border-bottom-color: $white-light;
2016-12-28 16:32:15 -05:00
}
2016-12-28 17:44:08 -05:00
}
/**
* Center dropdown menu in mini graph
*/
.mini-pipeline-graph-dropdown-menu.dropdown-menu {
transform: translate(-80%, 0);
min-width: 150px;
@media(min-width: $screen-md-min) {
transform: translate(-50%, 0);
right: auto;
left: 50%;
min-width: 240px;
}
}
2016-12-28 17:44:08 -05:00
/**
* Terminal
2016-12-28 17:44:08 -05:00
*/
.terminal-icon {
margin-left: 3px;
}
.terminal-container {
.content-block {
border-bottom: none;
2016-12-14 19:59:04 -05:00
}
2016-12-28 17:44:08 -05:00
#terminal {
margin-top: 10px;
min-height: 450px;
box-sizing: border-box;
2016-12-14 19:59:04 -05:00
2016-12-28 17:44:08 -05:00
> div {
2016-12-14 19:59:04 -05:00
min-height: 450px;
}
}
2016-12-28 17:44:08 -05:00
}
/**
* Play button with icon in dropdowns
*/
.ci-table .no-btn {
border: none;
background: none;
outline: none;
width: 100%;
text-align: left;
.icon-play {
position: relative;
top: 2px;
margin-right: 5px;
height: 13px;
width: 12px;
}
}
.ci-header-container {
min-height: 55px;
.text-center {
padding-top: 12px;
}
.header-action-buttons {
.btn,
a {
margin-left: 10px;
}
}
}
.pipelines-container .top-area .nav-controls > .btn:last-child {
float: none;
}