debian-mirror-gitlab/app/assets/stylesheets/pages/environments.scss

477 lines
7.2 KiB
SCSS
Raw Normal View History

2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(md) {
2017-08-17 22:00:37 +05:30
.deployments-container {
width: 100%;
overflow: auto;
}
}
.environments-folder-name {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-08-17 22:00:37 +05:30
padding-top: 20px;
}
.environments-container {
2017-09-10 17:25:29 +05:30
.ci-table {
2017-08-17 22:00:37 +05:30
.deployment-column {
> span {
word-break: break-all;
}
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
.avatar {
float: none;
}
2016-09-13 17:45:13 +05:30
}
2017-08-17 22:00:37 +05:30
.btn-group {
2018-11-18 11:00:15 +05:30
> .btn:not(.btn-danger) {
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
}
svg path {
fill: $gl-text-color-secondary;
}
.dropdown {
outline: none;
}
2016-11-03 12:29:30 +05:30
}
2017-08-17 22:00:37 +05:30
.btn .text-center {
display: inline;
}
.commit-title {
margin: 0;
}
.external-url,
.dropdown-new {
color: $gl-text-color-secondary;
}
.dropdown-menu {
.fa {
margin-right: 6px;
color: $gl-text-color-secondary;
}
}
.build-link,
2017-09-10 17:25:29 +05:30
.ref-name {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
}
.stop-env-link,
.external-url {
color: $gl-text-color-secondary;
.stop-env-icon {
font-size: 14px;
}
}
.deployment .build-column {
2016-11-03 12:29:30 +05:30
.build-link {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-11-03 12:29:30 +05:30
}
2017-08-17 22:00:37 +05:30
2016-11-03 12:29:30 +05:30
.avatar {
float: none;
2017-09-10 17:25:29 +05:30
margin-right: 0;
2016-11-03 12:29:30 +05:30
}
}
2017-08-17 22:00:37 +05:30
.folder-icon {
margin-right: 3px;
color: $gl-text-color-secondary;
display: inline-block;
2018-12-13 13:39:08 +05:30
vertical-align: text-top;
2017-08-17 22:00:37 +05:30
.fa:nth-child(1) {
margin-right: 3px;
}
}
.folder-name {
cursor: pointer;
color: $gl-text-color-secondary;
display: inline-block;
}
.icon-container {
width: 20px;
text-align: center;
}
.branch-commit {
2017-09-10 17:25:29 +05:30
.commit-sha {
2017-08-17 22:00:37 +05:30
margin-right: 0;
}
}
.no-btn {
2018-03-17 18:26:18 +05:30
border: 0;
2017-08-17 22:00:37 +05:30
background: none;
outline: none;
width: 100%;
text-align: left;
}
2018-03-27 19:54:05 +05:30
.environment-child-row {
padding-left: 20px;
}
2016-11-03 12:29:30 +05:30
}
2016-09-13 17:45:13 +05:30
}
2017-09-10 17:25:29 +05:30
.gl-responsive-table-row {
.branch-commit {
max-width: 100%;
2017-08-17 22:00:37 +05:30
}
2017-09-10 17:25:29 +05:30
}
2016-09-13 17:45:13 +05:30
2017-09-10 17:25:29 +05:30
.folder-row {
2018-03-17 18:26:18 +05:30
border-left: 0;
border-right: 0;
2016-11-03 12:29:30 +05:30
2018-11-08 19:23:39 +05:30
@media (min-width: map-get($grid-breakpoints, md)-1) {
2018-03-17 18:26:18 +05:30
border-top: 0;
2017-08-17 22:00:37 +05:30
}
}
.x-axis path,
.y-axis path,
.label-x-axis-line,
.label-y-axis-line {
fill: none;
stroke-width: 1;
shape-rendering: crispEdges;
}
.x-axis path,
.y-axis path {
2018-12-05 23:21:45 +05:30
stroke: $gl-gray-350;
2017-08-17 22:00:37 +05:30
}
.label-x-axis-line,
.label-y-axis-line {
stroke: $border-color;
}
.y-axis {
line {
2018-12-05 23:21:45 +05:30
stroke: $gl-gray-350;
2017-08-17 22:00:37 +05:30
stroke-width: 1;
}
}
.metric-area {
2018-03-17 18:26:18 +05:30
opacity: 0.25;
2017-08-17 22:00:37 +05:30
}
.prometheus-graph-overlay {
fill: none;
2018-03-17 18:26:18 +05:30
opacity: 0;
2017-08-17 22:00:37 +05:30
pointer-events: all;
}
.rect-text-metric {
fill: $white-light;
stroke-width: 1;
stroke: $gray-darkest;
}
.rect-axis-text {
fill: $white-light;
}
.text-metric {
2017-09-10 17:25:29 +05:30
font-size: 12px;
2017-08-17 22:00:37 +05:30
}
.selected-metric-line {
stroke: $gl-gray-dark;
stroke-width: 1;
}
.deployment-line {
stroke: $black;
2017-09-10 17:25:29 +05:30
stroke-width: 1;
2017-08-17 22:00:37 +05:30
}
2018-03-17 18:26:18 +05:30
.divider-line {
stroke-width: 1;
stroke: $gray-darkest;
2017-08-17 22:00:37 +05:30
}
2018-11-08 19:23:39 +05:30
.prometheus-graphs {
.environments {
.dropdown-menu-toggle {
svg {
position: absolute;
right: 5%;
top: 25%;
}
}
.dropdown-menu-toggle,
.dropdown-menu {
width: 240px;
}
}
}
2017-08-17 22:00:37 +05:30
.environments-actions {
.external-url,
.monitoring-url,
.terminal-button,
.stop-env-link {
width: 38px;
2016-11-03 12:29:30 +05:30
}
}
2017-09-10 17:25:29 +05:30
.prometheus-panel {
margin-top: 20px;
}
2018-03-17 18:26:18 +05:30
.prometheus-graph-group {
display: flex;
flex-wrap: wrap;
padding: $gl-padding / 2;
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
.prometheus-graph {
padding: $gl-padding / 2;
}
2017-09-10 17:25:29 +05:30
2018-11-08 19:23:39 +05:30
.prometheus-graph-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: $gl-padding-8;
h5 {
2019-03-02 22:35:43 +05:30
font-size: $gl-font-size-large;
2018-11-08 19:23:39 +05:30
margin: 0;
}
}
2018-03-17 18:26:18 +05:30
.prometheus-graph-cursor {
position: absolute;
2019-03-02 22:35:43 +05:30
background: $gray-600;
2018-03-17 18:26:18 +05:30
width: 1px;
}
.prometheus-graph-flag {
display: block;
min-width: 160px;
2018-11-18 11:00:15 +05:30
border: 0;
box-shadow: 0 1px 4px 0 $black-transparent;
2018-03-17 18:26:18 +05:30
h5 {
padding: 0;
margin: 0;
font-size: 14px;
line-height: 1.2;
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
.deploy-meta-content {
border-bottom: 1px solid $white-dark;
svg {
height: 15px;
vertical-align: bottom;
}
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
&.popover {
2018-10-15 14:42:47 +05:30
padding: 0;
2018-03-17 18:26:18 +05:30
&.left {
left: auto;
right: 0;
margin-right: 10px;
2018-10-15 14:42:47 +05:30
> .arrow {
2018-11-18 11:00:15 +05:30
right: -14px;
2018-10-15 14:42:47 +05:30
border-left-color: $border-color;
}
> .arrow::after {
2018-11-18 11:00:15 +05:30
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
2019-03-02 22:35:43 +05:30
border-left: 4px solid $gray-50;
2018-11-18 11:00:15 +05:30
}
.arrow-shadow {
right: -3px;
box-shadow: 1px 0 9px 0 $black-transparent;
2018-10-15 14:42:47 +05:30
}
2018-03-17 18:26:18 +05:30
}
&.right {
left: 0;
right: auto;
margin-left: 10px;
2018-10-15 14:42:47 +05:30
> .arrow {
2018-11-18 11:00:15 +05:30
left: -7px;
2018-10-15 14:42:47 +05:30
border-right-color: $border-color;
}
> .arrow::after {
2018-11-18 11:00:15 +05:30
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
2019-03-02 22:35:43 +05:30
border-right: 4px solid $gray-50;
2018-11-18 11:00:15 +05:30
}
.arrow-shadow {
left: -3px;
box-shadow: 1px 0 8px 0 $black-transparent;
2018-10-15 14:42:47 +05:30
}
2018-03-17 18:26:18 +05:30
}
> .arrow {
2018-11-18 11:00:15 +05:30
top: 10px;
margin: 0;
}
.arrow-shadow {
2018-12-13 13:39:08 +05:30
content: '';
2018-11-18 11:00:15 +05:30
position: absolute;
width: 7px;
height: 7px;
background-color: transparent;
transform: rotate(45deg);
top: 13px;
2018-03-17 18:26:18 +05:30
}
> .popover-title,
> .popover-content {
2018-10-15 14:42:47 +05:30
padding: 8px;
2018-03-17 18:26:18 +05:30
font-size: 12px;
white-space: nowrap;
2018-11-18 11:00:15 +05:30
position: relative;
2018-03-17 18:26:18 +05:30
}
2018-10-15 14:42:47 +05:30
> .popover-title {
2019-03-02 22:35:43 +05:30
background-color: $gray-50;
2018-11-18 11:00:15 +05:30
border-radius: $border-radius-default $border-radius-default 0 0;
2018-10-15 14:42:47 +05:30
}
}
strong {
font-weight: 600;
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
}
2018-05-09 12:01:36 +05:30
.prometheus-table {
border-collapse: collapse;
padding: 0;
margin: 0;
td {
vertical-align: middle;
+ td {
2018-10-15 14:42:47 +05:30
padding-left: 8px;
2018-05-09 12:01:36 +05:30
vertical-align: top;
}
}
.legend-metric-title {
font-size: 12px;
vertical-align: middle;
}
}
2018-03-17 18:26:18 +05:30
.prometheus-svg-container {
position: relative;
height: 0;
width: 100%;
padding: 0;
padding-bottom: 100%;
2017-09-10 17:25:29 +05:30
2018-05-09 12:01:36 +05:30
.text-metric-usage {
2018-03-17 18:26:18 +05:30
fill: $black;
font-weight: $gl-font-weight-normal;
font-size: 12px;
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
> svg {
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
text {
fill: $gl-text-color;
stroke-width: 0;
}
.text-metric-bold {
font-weight: $gl-font-weight-bold;
}
.label-axis-text {
fill: $black;
font-weight: $gl-font-weight-normal;
font-size: 10px;
}
2017-09-10 17:25:29 +05:30
.legend-axis-text {
2018-03-17 18:26:18 +05:30
fill: $black;
}
.tick {
> line {
stroke: $gray-darker;
}
> text {
2019-03-02 22:35:43 +05:30
fill: $gray-600;
2018-03-27 19:54:05 +05:30
font-size: 10px;
2018-03-17 18:26:18 +05:30
}
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
.y-label-text,
.x-label-text {
fill: $gray-darkest;
}
.axis-tick {
stroke: $gray-darker;
}
.deploy-info-text {
dominant-baseline: text-before-edge;
font-size: 12px;
}
.deploy-info-text-link {
2018-11-18 11:00:15 +05:30
font-family: $monospace-font;
2018-11-20 20:47:30 +05:30
fill: $blue-600;
2018-03-17 18:26:18 +05:30
&:hover {
2018-11-20 20:47:30 +05:30
fill: $blue-800;
2018-03-17 18:26:18 +05:30
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2018-03-17 18:26:18 +05:30
.label-axis-text,
.text-metric-usage,
.legend-axis-text {
font-size: 8px;
}
.tick > text {
font-size: 8px;
}
}
2017-09-10 17:25:29 +05:30
}
}
2018-05-09 12:01:36 +05:30
.prometheus-table-row-highlight {
2019-03-02 22:35:43 +05:30
background-color: $gray-100;
2018-05-09 12:01:36 +05:30
}