2021-01-03 14:25:43 +05:30
|
|
|
@mixin build-content($border-radius: 30px) {
|
|
|
|
display: inline-block;
|
|
|
|
padding: 8px 10px 9px;
|
|
|
|
width: 100%;
|
2021-02-22 17:27:13 +05:30
|
|
|
border: 1px solid var(--border-color, $border-color);
|
2021-01-03 14:25:43 +05:30
|
|
|
border-radius: $border-radius;
|
2021-02-22 17:27:13 +05:30
|
|
|
background-color: var(--white, $white);
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
&:hover {
|
2021-02-22 17:27:13 +05:30
|
|
|
background-color: var(--gray-50, $gray-50);
|
2021-01-03 14:25:43 +05:30
|
|
|
border: 1px solid $dropdown-toggle-active-border-color;
|
2021-02-22 17:27:13 +05:30
|
|
|
color: var(--gl-text-color, $gl-text-color);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin mini-pipeline-graph-color(
|
|
|
|
$color-background-default,
|
|
|
|
$color-background-hover-focus,
|
|
|
|
$color-background-active,
|
|
|
|
$color-foreground-default,
|
|
|
|
$color-foreground-hover-focus,
|
|
|
|
$color-foreground-active
|
|
|
|
) {
|
|
|
|
background-color: $color-background-default;
|
|
|
|
border-color: $color-foreground-default;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: $color-foreground-default;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-background-hover-focus;
|
|
|
|
border-color: $color-foreground-hover-focus;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: $color-foreground-hover-focus;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: $color-background-active;
|
|
|
|
border-color: $color-foreground-active;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: $color-foreground-active;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: 0 0 4px 1px $blue-300;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin mini-pipeline-item() {
|
|
|
|
border-radius: 100px;
|
2021-02-22 17:27:13 +05:30
|
|
|
background-color: var(--white, $white);
|
2021-01-03 14:25:43 +05:30
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
width: $ci-action-icon-size;
|
|
|
|
height: $ci-action-icon-size;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
position: relative;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
border-width: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Dropdown button animation in mini pipeline graph
|
|
|
|
&.ci-status-icon-success {
|
2021-02-22 17:27:13 +05:30
|
|
|
@include mini-pipeline-graph-color(var(--white, $white), $green-100, $green-200, $green-500, $green-600, $green-700);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ci-status-icon-failed {
|
2021-02-22 17:27:13 +05:30
|
|
|
@include mini-pipeline-graph-color(var(--white, $white), $red-100, $red-200, $red-500, $red-600, $red-700);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ci-status-icon-pending,
|
|
|
|
&.ci-status-icon-waiting-for-resource,
|
|
|
|
&.ci-status-icon-success-with-warnings {
|
2021-02-22 17:27:13 +05:30
|
|
|
@include mini-pipeline-graph-color(var(--white, $white), $orange-50, $orange-100, $orange-500, $orange-600, $orange-700);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ci-status-icon-running {
|
2021-02-22 17:27:13 +05:30
|
|
|
@include mini-pipeline-graph-color(var(--white, $white), $blue-100, $blue-200, $blue-500, $blue-600, $blue-700);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.ci-status-icon-canceled,
|
|
|
|
&.ci-status-icon-scheduled,
|
|
|
|
&.ci-status-icon-disabled,
|
|
|
|
&.ci-status-icon-manual {
|
2021-02-22 17:27:13 +05:30
|
|
|
@include mini-pipeline-graph-color(var(--white, $white), $gray-500, $gray-700, $gray-900, $gray-950, $black);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
&.ci-status-icon-preparing,
|
2021-01-03 14:25:43 +05:30
|
|
|
&.ci-status-icon-created,
|
2021-03-11 19:13:27 +05:30
|
|
|
&.ci-status-icon-not-found,
|
2021-01-03 14:25:43 +05:30
|
|
|
&.ci-status-icon-skipped {
|
2021-03-11 19:13:27 +05:30
|
|
|
@include mini-pipeline-graph-color(var(--white, $white), var(--gray-100, $gray-100), var(--gray-200, $gray-200), var(--gray-400, $gray-400), var(--gray-500, $gray-500), var(--gray-600, $gray-600));
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
Action icons inside dropdowns:
|
|
|
|
- mini graph in pipelines table
|
|
|
|
- dropdown in big graph
|
|
|
|
- mini graph in MR widget pipeline
|
|
|
|
- mini graph in Commit widget pipeline
|
|
|
|
*/
|
|
|
|
@mixin pipeline-graph-dropdown-menu() {
|
2022-01-26 12:08:38 +05:30
|
|
|
width: auto;
|
|
|
|
max-width: 400px;
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
// override dropdown.scss
|
|
|
|
&.dropdown-menu li button,
|
|
|
|
&.dropdown-menu li a.ci-action-icon-container {
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ci-action-icon-container {
|
|
|
|
position: absolute;
|
|
|
|
right: 8px;
|
|
|
|
top: 8px;
|
|
|
|
|
|
|
|
&.ci-action-icon-wrapper {
|
|
|
|
height: $ci-action-dropdown-button-size;
|
|
|
|
width: $ci-action-dropdown-button-size;
|
|
|
|
border-radius: 50%;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
&:hover {
|
2021-06-08 01:23:25 +05:30
|
|
|
box-shadow: inset 0 0 0 2px var(--gray-400, $gray-400);
|
2021-03-08 18:12:59 +05:30
|
|
|
background-color: var(--gray-50, $gray-50);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
.gl-spinner,
|
2021-01-03 14:25:43 +05:30
|
|
|
svg {
|
|
|
|
width: $ci-action-dropdown-svg-size;
|
|
|
|
height: $ci-action-dropdown-svg-size;
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
vertical-align: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SVGs in the commit widget and mr widget
|
|
|
|
a.ci-action-icon-container.ci-action-icon-wrapper svg {
|
|
|
|
top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scrollable-menu {
|
|
|
|
padding: 0;
|
|
|
|
max-height: 245px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
// link to the build
|
|
|
|
.mini-pipeline-graph-dropdown-item {
|
|
|
|
align-items: center;
|
|
|
|
clear: both;
|
|
|
|
display: flex;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: $line-height-base;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
// Match dropdown.scss for all `a` tags
|
|
|
|
&.non-details-job-component {
|
|
|
|
padding: $gl-padding-8 $gl-btn-horz-padding;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ci-job-name-component {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ci-status-icon {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
width: $pipeline-dropdown-status-icon-size;
|
|
|
|
height: $pipeline-dropdown-status-icon-size;
|
|
|
|
margin: 3px 0;
|
|
|
|
position: relative;
|
|
|
|
overflow: visible;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2021-06-08 01:23:25 +05:30
|
|
|
}
|
2021-01-03 14:25:43 +05:30
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
// 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,
|
|
|
|
.mini-pipeline-graph-dropdown-item:hover,
|
|
|
|
.mini-pipeline-graph-dropdown-item:focus {
|
|
|
|
outline: none;
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: var(--gray-100, $gray-50);
|
2021-01-03 14:25:43 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|