mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
The default theme's blue is #2573a7, so the header's white and #f2f2f2 text passes WCAG AA; label colours, quiet greys and grey tiles have text that passes too. The Starred menu, the user menu and initials avatars carry their visible text in their accessible name. The card's Pomodoro field and the comment and description editors have a name. A card section heading is an h3 holding a real button with aria-expanded, and its menu and layout toggle sit beside it. The sign-in form is the main landmark with a level-one title, every page has a level-one heading, and the shortcuts list is reachable by keyboard. After the fixes axe-core finds no violation on 22 pages. Spec 45 runs the scan and tests/accessibilityAuditFixes.test.cjs pins each fault by its shape. Thanks to xet7 !
350 lines
7.6 KiB
CSS
350 lines
7.6 KiB
CSS
/* #4759: Member Settings / Font popup — a button per installed font (each shown in
|
|
its own font) and a row of size buttons (smaller ... 100% ... larger). Clicking a
|
|
button applies immediately. */
|
|
.ui-font-buttons,
|
|
.ui-font-size-buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin: 2px 0 10px 0;
|
|
}
|
|
.ui-font-btn,
|
|
.ui-font-size-btn {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
color: #333;
|
|
cursor: pointer;
|
|
font-size: calc(14px * var(--wekan-ui-font-scale, 1));
|
|
line-height: 1.4;
|
|
text-decoration: none;
|
|
}
|
|
.ui-font-btn:hover,
|
|
.ui-font-size-btn:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
.ui-font-btn.active,
|
|
.ui-font-size-btn.active {
|
|
background: #2573a7;
|
|
border-color: #2573a7;
|
|
color: #fff;
|
|
}
|
|
/* The "Unset" colour reset links look like buttons. */
|
|
.color-wheel-wrap .js-reset-text-color,
|
|
.color-wheel-wrap .js-reset-bg-color {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
color: #333;
|
|
cursor: pointer;
|
|
font-size: calc(14px * var(--wekan-ui-font-scale, 1));
|
|
line-height: 1.4;
|
|
text-decoration: none;
|
|
}
|
|
.color-wheel-wrap .js-reset-text-color:hover,
|
|
.color-wheel-wrap .js-reset-bg-color:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
.color-wheel-wrap .js-reset-text-color.disabled,
|
|
.color-wheel-wrap .js-reset-bg-color.disabled {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* #5514: native color-wheel (custom RGB / hex) picker wrapper, shared by the
|
|
label / list / swimlane / card color popups. */
|
|
.color-wheel-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin: 6px 0 10px 0;
|
|
}
|
|
.color-wheel-wrap label {
|
|
margin: 0;
|
|
}
|
|
/* Custom card colors already used on this board, offered beside the palette in
|
|
the card and Multi-Selection color popups. */
|
|
.custom-palette-colors {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin: 6px 0 4px 0;
|
|
}
|
|
.color-wheel-wrap input[type="color"] {
|
|
width: 44px;
|
|
height: 28px;
|
|
padding: 0;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background: none;
|
|
}
|
|
|
|
.card-label {
|
|
border: 1px solid #000;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
display: inline-block;
|
|
font-weight: 700;
|
|
font-size: calc(13px * var(--wekan-ui-font-scale, 1));
|
|
margin-inline-end: 4px;
|
|
margin-bottom: 5px;
|
|
padding: 3px 8px;
|
|
max-width: 210px;
|
|
min-width: 8px;
|
|
word-wrap: break-word;
|
|
min-height: 18px;
|
|
vertical-align: middle;
|
|
white-space: initial;
|
|
overflow: initial;
|
|
}
|
|
.card-label:hover {
|
|
color: #fff;
|
|
}
|
|
.card-label.square {
|
|
height: 30px;
|
|
width: 30px;
|
|
padding: 0;
|
|
}
|
|
.card-label.add-label {
|
|
box-shadow: 0 0 0 2px #bfbfbf inset;
|
|
border: initial;
|
|
}
|
|
.card-label.add-label:hover,
|
|
.card-label.add-label.is-active {
|
|
box-shadow: 0 0 0 2px #666 inset;
|
|
}
|
|
.card-label p {
|
|
margin: 0px;
|
|
}
|
|
.palette-colors {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start; /* left-align color chips in wider popovers */
|
|
}
|
|
.palette-colors .palette-color {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
/* Admin Panel / Settings / Shared labels uses the board label popup's picker
|
|
(labelColorPicker). The swatches grow to fill their row, so on the wide admin
|
|
page their width followed the window. There each swatch has the size it has
|
|
in an opened card's label popup - 36 x 25px of content, 3px 8px padding and a
|
|
1px border, 54 x 33px in all - at every window width. */
|
|
.shared-label-color .palette-colors .palette-color {
|
|
flex: 0 0 auto;
|
|
box-sizing: content-box;
|
|
width: 36px;
|
|
height: 25px;
|
|
padding: 3px 8px;
|
|
margin: 0 2px 2px 0;
|
|
}
|
|
.card-label-white {
|
|
background-color: #fff;
|
|
color: #000;
|
|
}
|
|
.card-label-white:hover {
|
|
color: #aaa;
|
|
}
|
|
.card-label-green {
|
|
background-color: #3cb500;
|
|
color: #000;
|
|
}
|
|
.card-label-green:hover {
|
|
color: #000;
|
|
}
|
|
.card-label-yellow {
|
|
background-color: #fad900;
|
|
color: #000;
|
|
}
|
|
.card-label-orange {
|
|
background-color: #ff9f19;
|
|
color: #000;
|
|
}
|
|
.card-label-red {
|
|
background-color: #eb4646;
|
|
color: #000;
|
|
}
|
|
.card-label-purple {
|
|
background-color: #a632db;
|
|
}
|
|
.card-label-blue {
|
|
background-color: #0079bf;
|
|
}
|
|
.card-label-pink {
|
|
background-color: #ff78cb;
|
|
color: #000;
|
|
}
|
|
.card-label-sky {
|
|
background-color: #00c2e0;
|
|
color: #000;
|
|
}
|
|
.card-label-black {
|
|
background-color: #4d4d4d;
|
|
}
|
|
.card-label-lime {
|
|
background-color: #51e898;
|
|
color: #000;
|
|
}
|
|
.card-label-silver {
|
|
background-color: #c0c0c0;
|
|
color: #000;
|
|
}
|
|
.card-label-peachpuff {
|
|
background-color: #ffdab9;
|
|
color: #000;
|
|
}
|
|
.card-label-crimson {
|
|
background-color: #dc143c;
|
|
}
|
|
.card-label-plum {
|
|
background-color: #dda0dd;
|
|
color: #000;
|
|
}
|
|
.card-label-darkgreen {
|
|
background-color: #006400;
|
|
}
|
|
.card-label-slateblue {
|
|
background-color: #6a5acd;
|
|
}
|
|
.card-label-magenta {
|
|
background-color: #f0f;
|
|
color: #000;
|
|
}
|
|
.card-label-gold {
|
|
background-color: #ffd700;
|
|
color: #000;
|
|
}
|
|
.card-label-navy {
|
|
background-color: #000080;
|
|
}
|
|
.card-label-gray {
|
|
background-color: #808080;
|
|
color: #000;
|
|
}
|
|
.card-label-saddlebrown {
|
|
background-color: #8b4513;
|
|
}
|
|
.card-label-paleturquoise {
|
|
background-color: #afeeee;
|
|
color: #000;
|
|
}
|
|
.card-label-mistyrose {
|
|
background-color: #ffe4e1;
|
|
color: #000;
|
|
}
|
|
.card-label-indigo {
|
|
background-color: #4b0082;
|
|
}
|
|
.edit-label .card-label,
|
|
.create-label .card-label {
|
|
float: inline-start;
|
|
height: 25px;
|
|
margin: 0px 3% 7px 0px;
|
|
width: 10.5%;
|
|
max-width: 10.5%;
|
|
cursor: pointer;
|
|
}
|
|
.edit-labels input[type="text"] {
|
|
margin: 4px 0 6px 38px;
|
|
width: 243px;
|
|
}
|
|
.edit-labels .card-label {
|
|
height: 30px;
|
|
inset-inline-start: 0;
|
|
padding: 1px 5px;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 24px;
|
|
}
|
|
.edit-labels .labels-static .card-label {
|
|
line-height: calc(30px * var(--wekan-ui-font-scale, 1));
|
|
margin-bottom: 4px;
|
|
position: relative;
|
|
top: auto;
|
|
inset-inline-start: 0;
|
|
width: 260px;
|
|
}
|
|
.edit-labels-pop-over {
|
|
margin-bottom: 8px;
|
|
}
|
|
.edit-labels-pop-over .card-label .viewer p {
|
|
margin: 0;
|
|
}
|
|
.edit-labels-pop-over .shortcut {
|
|
display: inline-block;
|
|
}
|
|
.card-label-selectable {
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
margin: 0;
|
|
margin-bottom: 3px;
|
|
width: 190px;
|
|
min-height: 18px;
|
|
padding: 8px;
|
|
position: relative;
|
|
transition: margin-inline-end 0.1s;
|
|
}
|
|
.card-label-selectable .card-label-selectable-icon {
|
|
position: absolute;
|
|
top: 8px;
|
|
inset-inline-end: -20px;
|
|
}
|
|
.card-label-selectable.active:hover,
|
|
.card-label-selectable.active,
|
|
.card-label-selectable.active.selected:hover,
|
|
.card-label-selectable.active.selected {
|
|
padding-inline-end: 32px;
|
|
}
|
|
.card-label-selectable.active:hover .card-label-selectable-icon,
|
|
.card-label-selectable.active .card-label-selectable-icon,
|
|
.card-label-selectable.active.selected:hover .card-label-selectable-icon,
|
|
.card-label-selectable.active.selected .card-label-selectable-icon {
|
|
inset-inline-end: 6px;
|
|
}
|
|
.card-label-selectable.selected,
|
|
.card-label-selectable:hover {
|
|
opacity: 0.8;
|
|
}
|
|
.active .card-label-selectable,
|
|
.active .card-label-selectable:hover {
|
|
margin-inline-end: 0;
|
|
}
|
|
.active .card-label-selectable .card-label-selectable-icon {
|
|
inset-inline-end: 8px;
|
|
}
|
|
.card-label-edit-button {
|
|
border-radius: 3px;
|
|
float: inline-end;
|
|
padding: 8px;
|
|
}
|
|
.card-label-edit-button:hover {
|
|
background: #dbdbdb;
|
|
}
|
|
ul.edit-labels-pop-over span.label-handle {
|
|
padding-inline-end: 10px;
|
|
display: inline-block;
|
|
width: 1.2em;
|
|
text-align: center;
|
|
color: #999;
|
|
}
|
|
ul.edit-labels-pop-over span.label-handle + .card-label {
|
|
max-width: 180px;
|
|
}
|
|
/* #2802: the label's own optional "milestone" due date, shown beside it in
|
|
the labels list. */
|
|
.card-label-due-at {
|
|
display: inline-block;
|
|
margin-inline-start: 6px;
|
|
font-size: 0.85em;
|
|
color: #999;
|
|
vertical-align: middle;
|
|
}
|