Commit 0dc4080d authored by Florie Guibert's avatar Florie Guibert

Fix dark mode for boards and swimlanes

parent 071aea87
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
margin: 0; margin: 0;
padding: $gl-padding-4 $gl-padding $gl-padding; padding: $gl-padding-4 $gl-padding $gl-padding;
border-bottom: 0; border-bottom: 0;
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
} }
.issue-boards-page { .issue-boards-page {
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
} }
&:hover { &:hover {
background-color: $gray-50; background-color: var(--gray-50, $gray-50);
transition: background-color 0.1s linear; transition: background-color 0.1s linear;
} }
} }
...@@ -167,8 +167,8 @@ ...@@ -167,8 +167,8 @@
.board-inner { .board-inner {
font-size: $issue-boards-font-size; font-size: $issue-boards-font-size;
background: $gray-light; background: var(--gray-10, $gray-10);
border: 1px solid $gray-100; border: 1px solid var(--gray-100, $gray-100);
} }
.board-header { .board-header {
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
.board-title { .board-title {
align-items: center; align-items: center;
font-size: 1em; font-size: 1em;
border-bottom: 1px solid $gray-100; border-bottom: 1px solid var(--gray-100, $gray-100);
padding: 0 $gl-spacing-scale-3; padding: 0 $gl-spacing-scale-3;
height: 3rem; height: 3rem;
...@@ -217,14 +217,14 @@ ...@@ -217,14 +217,14 @@
outline: 0; outline: 0;
&:hover { &:hover {
color: $blue-600; color: var(--blue-600, $blue-600);
box-shadow: none; box-shadow: none;
} }
} }
.board-blank-state, .board-blank-state,
.board-promotion-state { .board-promotion-state {
background-color: $white; background-color: var(--white, $white);
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
...@@ -258,9 +258,9 @@ ...@@ -258,9 +258,9 @@
} }
.board-card { .board-card {
background: $white; background: var(--white, $white);
border: 1px solid $gray-100; border: 1px solid var(--gray-100, $gray-100);
box-shadow: 0 1px 2px $issue-boards-card-shadow; box-shadow: 0 1px 2px rgba(var(--black, $black), 0.1);
line-height: $gl-padding; line-height: $gl-padding;
list-style: none; list-style: none;
position: relative; position: relative;
...@@ -271,12 +271,12 @@ ...@@ -271,12 +271,12 @@
&.is-active, &.is-active,
&.is-active .board-card-assignee:hover a { &.is-active .board-card-assignee:hover a {
background-color: $blue-50; background-color: var(--blue-50, $blue-50);
} }
&.multi-select { &.multi-select {
border-color: $blue-200; border-color: var(--blue-200, $blue-200);
background-color: $blue-50; background-color: var(--blue-50, $blue-50);
} }
.gl-label { .gl-label {
...@@ -285,12 +285,12 @@ ...@@ -285,12 +285,12 @@
} }
.confidential-icon { .confidential-icon {
color: $orange-500; color: var(--orange-500, $orange-500);
cursor: help; cursor: help;
} }
.issue-blocked-icon { .issue-blocked-icon {
color: $red-500; color: var(--red-500, $red-500);
} }
@include media-breakpoint-down(md) { @include media-breakpoint-down(md) {
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
font-size: 1em; font-size: 1em;
a { a {
color: $gl-text-color; color: var(--gray-900, $gray-900);
} }
@include media-breakpoint-down(md) { @include media-breakpoint-down(md) {
...@@ -325,7 +325,7 @@ ...@@ -325,7 +325,7 @@
min-width: $gl-padding-24; min-width: $gl-padding-24;
height: $gl-padding-24; height: $gl-padding-24;
border-radius: $gl-padding-24; border-radius: $gl-padding-24;
background-color: $gl-text-color-tertiary; background-color: var(--gray-400, $gray-400);
font-size: $gl-font-size-xs; font-size: $gl-font-size-xs;
cursor: help; cursor: help;
font-weight: $gl-font-weight-bold; font-weight: $gl-font-weight-bold;
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
.board-card-number { .board-card-number {
font-size: $gl-font-size-xs; font-size: $gl-font-size-xs;
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
@include media-breakpoint-up(md) { @include media-breakpoint-up(md) {
font-size: $label-font-size; font-size: $label-font-size;
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
.board-list-count { .board-list-count {
padding: 10px 0; padding: 10px 0;
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
font-size: 13px; font-size: 13px;
} }
...@@ -437,8 +437,8 @@ ...@@ -437,8 +437,8 @@
max-width: 1100px; max-width: 1100px;
min-height: 500px; min-height: 500px;
padding: 25px 15px 0; padding: 25px 15px 0;
background-color: $white; background-color: var(--white, $white);
box-shadow: 0 2px 12px rgba($black, 0.5); box-shadow: 0 2px 12px rgba(var(--black, $black), 0.5);
.empty-state { .empty-state {
&.add-issues-empty-state-filter { &.add-issues-empty-state-filter {
...@@ -486,8 +486,8 @@ ...@@ -486,8 +486,8 @@
} }
.board-card { .board-card {
border: 1px solid $border-white-normal; border: 1px solid var(--gray-900, $gray-900);
box-shadow: 0 1px 2px rgba($issue-boards-card-shadow, 0.3); box-shadow: 0 1px 2px rgba(var(--black, $black), 0.4);
cursor: pointer; cursor: pointer;
} }
} }
...@@ -511,16 +511,16 @@ ...@@ -511,16 +511,16 @@
right: -3px; right: -3px;
top: -3px; top: -3px;
width: 17px; width: 17px;
background-color: $blue-500; background-color: var(--blue-500, $blue-500);
color: $white; color: $white;
border: 1px solid $blue-600; border: 1px solid var(--blue-600, $blue-600);
font-size: 9px; font-size: 9px;
line-height: 15px; line-height: 15px;
border-radius: 50%; border-radius: 50%;
} }
.board-card-info { .board-card-info {
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
white-space: nowrap; white-space: nowrap;
margin-right: $gl-padding-8; margin-right: $gl-padding-8;
...@@ -529,7 +529,7 @@ ...@@ -529,7 +529,7 @@
} }
&.board-card-weight { &.board-card-weight {
color: $gl-text-color-secondary; color: var(--gray-500, $gray-500);
cursor: pointer; cursor: pointer;
&:hover { &:hover {
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
} }
.board-card-info-icon { .board-card-info-icon {
color: $gray-500; color: var(--gray-500, $gray-500);
margin-right: $gl-padding-4; margin-right: $gl-padding-4;
vertical-align: text-top; vertical-align: text-top;
} }
...@@ -568,7 +568,7 @@ ...@@ -568,7 +568,7 @@
height: 100%; height: 100%;
top: 0; top: 0;
left: 0; left: 0;
background: $white; background: var(--white, $white);
z-index: 9000; z-index: 9000;
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
...@@ -591,7 +591,7 @@ ...@@ -591,7 +591,7 @@
} }
.board-header-collapsed-info-icon:hover { .board-header-collapsed-info-icon:hover {
color: $gray-900; color: var(--gray-900, $gray-900);
} }
$epic-icons-spacing: 40px; $epic-icons-spacing: 40px;
......
---
title: Fix dark mode for boards and swimlanes
merge_request: 44951
author:
type: fixed
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