Commit c8f2d31e authored by Simon Knox's avatar Simon Knox

Merge branch...

Merge branch '239823-convert-stylesheets-pages-environments-scss-into-page-specific-bundle_part_2' into 'master'

Add CSS variables to support Dark Mode in Environments

See merge request gitlab-org/gitlab!44627
parents 278f6b66 6ddfd459
...@@ -8,24 +8,24 @@ ...@@ -8,24 +8,24 @@
.external-url, .external-url,
.dropdown-new { .dropdown-new {
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
} }
.build-link, .build-link,
.ref-name { .ref-name {
color: $gl-text-color; color: var(--gray-900, $gray-900);
} }
.folder-icon { .folder-icon {
margin-right: 3px; margin-right: 3px;
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
display: inline-block; display: inline-block;
vertical-align: text-top; vertical-align: text-top;
} }
.folder-name { .folder-name {
cursor: pointer; cursor: pointer;
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
display: inline-block; display: inline-block;
} }
...@@ -74,17 +74,17 @@ ...@@ -74,17 +74,17 @@
.x-axis path, .x-axis path,
.y-axis path { .y-axis path {
stroke: $gray-300; stroke: var(--gray-300, $gray-300);
} }
.label-x-axis-line, .label-x-axis-line,
.label-y-axis-line { .label-y-axis-line {
stroke: $border-color; stroke: var(--gray-100, $gray-100);
} }
.y-axis { .y-axis {
line { line {
stroke: $gray-300; stroke: var(--gray-300, $gray-300);
stroke-width: 1; stroke-width: 1;
} }
} }
...@@ -94,13 +94,13 @@ ...@@ -94,13 +94,13 @@
} }
.rect-text-metric { .rect-text-metric {
fill: $white; fill: var(--white, $white);
stroke-width: 1; stroke-width: 1;
stroke: $gray-darkest; stroke: var(--gray-600, $gray-600);
} }
.rect-axis-text { .rect-axis-text {
fill: $white; fill: var(--white, $white);
} }
.text-metric { .text-metric {
...@@ -108,18 +108,18 @@ ...@@ -108,18 +108,18 @@
} }
.selected-metric-line { .selected-metric-line {
stroke: $gray-900; stroke: var(--gray-900, $gray-900);
stroke-width: 1; stroke-width: 1;
} }
.deployment-line { .deployment-line {
stroke: $black; stroke: var(--white, $white);
stroke-width: 1; stroke-width: 1;
} }
.divider-line { .divider-line {
stroke-width: 1; stroke-width: 1;
stroke: $gray-darkest; stroke: var(--gray-600, $gray-600);
} }
.environments-actions { .environments-actions {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Deploy boards * Deploy boards
*/ */
.deploy-board { .deploy-board {
background-color: $gray-light; background-color: var(--gray-50, $gray-50);
min-height: 20px; min-height: 20px;
> .loading-icon, > .loading-icon,
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
} }
.deploy-board-legend .legend-text { .deploy-board-legend .legend-text {
color: $gl-text-color; color: var(--gray-900, $gray-900);
font-size: $gl-font-size-small; font-size: $gl-font-size-small;
font-weight: $gl-font-weight-bold; font-weight: $gl-font-weight-bold;
line-height: $gl-line-height-14; line-height: $gl-line-height-14;
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
i { i {
cursor: pointer; cursor: pointer;
color: $layout-link-gray; color: var(--gray-200, $gray-200);
padding-right: 10px; padding-right: 10px;
} }
} }
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
margin-left: $btn-side-margin; margin-left: $btn-side-margin;
.dropdown.open & { .dropdown.open & {
background: $white-normal; background: var(--gray-50, $gray-50);
outline: 0; outline: 0;
} }
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
} }
&.chevron { &.chevron {
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
} }
} }
} }
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
} }
.alert-error-message { .alert-error-message {
color: $red-500; color: var(--red-500, $red-500);
vertical-align: middle; vertical-align: middle;
} }
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
} }
.canary-deployment-callout { .canary-deployment-callout {
border-bottom: 1px solid $border-white-normal; border-bottom: 1px solid var(--gray-500, $gray-500);
display: flex; display: flex;
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
...@@ -145,39 +145,39 @@ ...@@ -145,39 +145,39 @@
&-message { &-message {
max-width: 600px; max-width: 600px;
color: $gray-500; color: var(--gray-500, $gray-500);
} }
&-close { &-close {
color: $gray-500; color: var(--gray-500, $gray-500);
cursor: pointer; cursor: pointer;
} }
&-button { &-button {
border-color: $blue-500; border-color: var(--blue-500, $blue-500);
color: $blue-500; color: var(--blue-500, $blue-500);
&:not(:disabled):not(.disabled):active { &:not(:disabled):not(.disabled):active {
background-color: $blue-200; background-color: var(--blue-200, $blue-200);
border: 2px solid $blue-600; border: 2px solid var(--blue-600, $blue-600);
color: $blue-700; color: var(--blue-700, $blue-700);
height: 34px; height: 34px;
padding: 5px 9px; padding: 5px 9px;
} }
&:focus { &:focus {
background-color: $blue-100; background-color: var(--blue-500, $blue-500);
border: 2px solid $blue-500; border: 2px solid var(--blue-500, $blue-500);
box-shadow: 0 0 4px 1px $blue-200; box-shadow: 0 0 4px 1px var(--blue-200, $blue-200);
color: $blue-600; color: var(--blue-600, $blue-600);
height: 34px; height: 34px;
padding: 5px 9px; padding: 5px 9px;
} }
&:hover { &:hover {
background-color: $blue-100; background-color: var(--blue-500, $blue-500);
border: 2px solid $blue-500; border: 2px solid var(--blue-500, $blue-500);
color: $blue-600; color: var(--blue-600, $blue-600);
height: 34px; height: 34px;
padding: 5px 9px; padding: 5px 9px;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment