From 0679ed68330120939ff73dc9708f1aee6745f9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Thu, 12 May 2022 09:55:11 +0100 Subject: [PATCH] Use dark palette for Kanban cards in dark theme --- www/kanban/app-kanban.less | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/www/kanban/app-kanban.less b/www/kanban/app-kanban.less index 6391b5b42..d871a45ae 100644 --- a/www/kanban/app-kanban.less +++ b/www/kanban/app-kanban.less @@ -22,6 +22,7 @@ @palette0: @cp_kanban-color0; // Default bg color for header @kanban-colors: @cp_kanban-colors; + @kanban-card-colors: @cp_kanban-card-colors; .kanban-board-header { background-color: @palette0; @@ -65,15 +66,21 @@ } .kanban-card-colors(@kanban-card-colors; @index) when (@index > 0){ // loop through the @colors - .kanban-colors(@kanban-card-colors; (@index - 1)); + .kanban-card-colors(@kanban-card-colors; (@index - 1)); @color: extract(@kanban-card-colors, @index); // make a numbered class selector for each color - .cp-kanban-card-color@{index}{ - background-color: @color !important; + // .cp-kanban-card-color@{index}{ + // background-color: @color !important; + // } + .cp-kanban-palette-color@{index}{ + &.kanban-item { + background-color: @color !important; + } } } // call the loop .kanban-colors(@kanban-colors; length(@kanban-colors)); + .kanban-card-colors(@kanban-card-colors; length(@kanban-card-colors)); .cp-kanban-edit-modal { display: flex; @@ -133,6 +140,9 @@ line-height: 30px; color: @cp_kanban-fg; border: 1px solid fade(@cp_kanban-fg, 40%); + &.fa-check { // tick on selected color + color: @cryptpad_color_grey_800; // XXX review if we show dark palette in card picker + } } } #cp-kanban-edit-tags {