Files
wekan/client/components/cards/checklists.css
T
Lauri Ojansivu a6b10e3592 Dark themes: the quiet greys, Card Settings, popups and sidebars are readable again.
The accessibility audit made the quiet text greys dark for every theme, and
old rules never followed the dark themes: Card Settings drew white text on
light grey blocks, popup items, the sidebar's shortcuts row, quiet buttons and
sidebar labels were black on dark, and an !important list header beat each
theme's own. The quiet text is a variable with a light value on the dark
surfaces; Card Settings' sections, popup items and the other rules follow the
theme. axe-core finds no colour contrast failure in cleandark, moderndark, dark
and exodark on the board, sidebar, Card Settings, an opened card and the custom
fields popup.

Thanks to Samunosuke and xet7 !

Fixes #6863,
2026-11-03 11:41:58 +02:00

264 lines
6.4 KiB
CSS

.js-add-checklist {
color: var(--wekan-quiet-text, #595959);
}
textarea.js-add-checklist-item,
textarea.js-edit-checklist-item {
overflow: hidden;
word-wrap: break-word;
resize: none;
height: 34px;
}
.delete-text,
.js-delete-checklist-item,
.js-convert-checklist-item-to-card {
color: var(--wekan-quiet-text, #595959);
text-decoration: underline;
word-wrap: break-word;
float: inline-end;
padding-top: 6px;
}
.delete-text:hover,
.js-delete-checklist-item:hover,
.js-convert-checklist-item-to-card:hover {
color: inherit;
}
.checklists-title {
display: flex;
justify-content: space-between;
}
.checklist-progress-bar-container {
display: flex;
flex-direction: row;
align-items: center;
}
.checklist-progress-bar-container .checklist-progress-text {
margin-inline-end: 10px;
}
.checklist-progress-bar-container .checklist-progress-bar {
width: 80%;
height: 10px;
background-color: #e0e0e0;
border-radius: 16px;
}
.checklist-progress-bar-container .checklist-progress-bar .checklist-progress {
color: #fff;
background-color: #666;
padding: 0;
box-sizing: border-box;
border-radius: 16px;
height: 100%;
}
.checklist-title {
padding: calc(10px * min(1, var(--wekan-ui-font-scale, 1)));
}
.checklist-title .checkbox {
float: inline-start;
width: 30px;
height: 30px;
font-size: calc(18px * var(--wekan-ui-font-scale, 1));
line-height: calc(30px * var(--wekan-ui-font-scale, 1));
}
.checklist-title .title {
font-size: calc(18px * var(--wekan-ui-font-scale, 1));
line-height: calc(25px * var(--wekan-ui-font-scale, 1));
}
.checklist-title .checklist-stat {
margin: 0 0.5em;
float: inline-end;
padding-top: 6px;
}
.checklist-title .checklist-stat.is-finished {
color: #3cb500;
}
.checklist-title span.fa.checklist-handle {
padding-inline-end: 20px;
padding-top: 3px;
float: inline-start;
}
#card-details-overlay {
top: 0;
bottom: -600px;
inset-inline-end: 0;
}
.checklist {
background: #f7f7f7;
}
.checklist.placeholder {
background: #ccc;
border-radius: 2px;
}
.checklist.ui-sortable-helper {
box-shadow: -2px 2px 8px rgba(0,0,0,0.3), 0 0 1px rgba(0,0,0,0.5);
transform: rotate(4deg);
cursor: grabbing;
}
.checklist-item {
margin: 0 0 0 0.1em;
line-height: calc(18px * var(--wekan-ui-font-scale, 1));
font-size: 1.1em;
margin-top: 3px;
display: flex;
background: #f7f7f7;
opacity: 1;
transition: height 0ms 400ms, opacity 400ms 0ms;
height: auto;
overflow: hidden;
}
.checklist-item.is-checked.invisible {
opacity: 0;
height: 0;
transition: height 0ms 0ms, opacity 600ms 0ms;
margin-top: 0;
margin-bottom: 0;
}
.checklist-item.placeholder {
background: #ccc;
border-radius: 2px;
}
.checklist-item.ui-sortable-helper {
box-shadow: -2px 2px 8px rgba(0,0,0,0.3), 0 0 1px rgba(0,0,0,0.5);
transform: rotate(4deg);
cursor: grabbing;
}
.checklist-item:hover {
background-color: #ebebeb;
}
.checklist-item .check-box-container {
padding-inline-end: 10px;
}
.checklist-item .check-box {
margin: 0.1em 0 0 0;
}
.checklist-item .check-box.is-checked {
border-bottom: 2px solid #3cb500;
border-right: 2px solid #3cb500;
}
.checklist-item .item-title {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
}
.checklist-item .item-title.is-checked {
color: var(--wekan-quiet-text, #595959);
font-style: italic;
text-decoration: line-through;
}
.checklist-item .item-title .viewer p {
margin-bottom: 2px;
display: block;
overflow-wrap: anywhere;
max-width: 420px;
}
.checklist-item span.fa.checklistitem-handle {
padding-top: 2px;
padding-inline-end: 10px;
}
/* #4755: the due-date badge/add-icon on a single checklist item. Checklist
items are dense UI, so the badge (reusing .card-date's own colours/icon -
see cardDate.css) is shrunk down rather than given its own new styling. */
.checklist-item .checklist-item-due-date {
align-self: center;
margin-inline-start: 6px;
font-size: 0.82em;
padding: 0 4px;
line-height: 1.6em;
white-space: nowrap;
}
.checklist-item .checklist-item-due-date-add {
align-self: center;
margin-inline-start: 6px;
color: var(--wekan-quiet-text, #595959);
text-decoration: none;
}
.checklist-item .checklist-item-due-date-add:hover {
color: #2573a7;
}
.js-delete-checklist-item,
.js-convert-checklist-item-to-card {
margin: 0 0 0.5em 1.33em;
padding: 12px 0 0 0;
}
.add-checklist-item {
margin: 0.2em 0 0.5em 1.33em;
}
.add-checklist-item.js-open-inlined-form,
.add-checklist.js-open-inlined-form {
display: block;
width: 50%;
}
.add-checklist-item.js-open-inlined-form:hover,
.add-checklist.js-open-inlined-form:hover {
background: #dbdbdb;
color: #222;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.add-checklist-top {
/* more space to checklists title */
padding-inline-start: 20px;
/* + is easier clickable */
padding-inline-end: 20px;
}
.add-checklist-top.js-open-inlined-form:hover {
background: #dbdbdb;
color: #222;
box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.card-details-item-title {
/* max width for adding checklist at top */
width: 100%;
}
.checklist-details-menu {
float: inline-end;
padding: 6px 10px 6px 10px;
}
.edit-controls label.toggle-label {
margin-inline-start: 2px;
}
/* #1591: the fold caret on a checklist title. Sized and coloured like the
actions menu beside it so the two read as one row of controls, and given a
real hit area - it is a single glyph, and a caret you have to aim at is worse
than no caret. */
.checklist-title .checklist-collapse {
/* Logical, so the caret sits on the reading-start side under dir=rtl too
(tests/rtl.test.js enforces this across component CSS). */
float: inline-start;
margin-block-start: 2px;
margin-inline-end: 4px;
padding: 2px 4px;
color: #808080;
font-size: calc(14px * var(--wekan-ui-font-scale, 1));
line-height: calc(14px * var(--wekan-ui-font-scale, 1));
cursor: pointer;
text-decoration: none;
}
.checklist-title .checklist-collapse:hover,
.checklist-title .checklist-collapse:focus-visible {
color: #2573a7;
}
.checklist-title .checklist-due-date-add {
float: inline-end;
width: auto;
min-width: 28px;
padding: 4px 6px;
margin: 0 4px;
background: transparent;
color: inherit;
border: 0;
}
/* #6796: the controls under the checklists on one line, not one per line. */
.checklists-bottom-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5em;
}
.checklists-bottom-actions .add-checklist.js-open-inlined-form {
display: inline-block;
width: auto;
padding-inline: 0.5em;
}