mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Picking Largest grew the page heading and the minicards and left the header bar, the left menu, the lists, the swimlane header and every popup exactly as they were. The preset was a percentage on the root element, and a root percentage only reaches text whose size is written in a relative unit: rem is measured against the root, em against its parent. WeKan writes most of its sizes in px, and px is absolute, so exactly the rem-sized parts scaled. The base rule made it worse: html, body, input, select, textarea, button re-stated font: 14px, so the body took the stock size straight back off the scaled root. The preset is published as a number as well (--wekan-ui-font-scale), and every px font-size and line-height in the client stylesheets - 433 declarations across 37 files - is written calc(14px * var(--wekan-ui-font-scale, 1)). line-height scales with the size on purpose: 21px of type in an 18px line box is the same setting half-applied. The base font rule is split into font-family and font-size, because the shorthand's size was the one thing the setting had to be able to move. Nothing renders differently until a preset is chosen: the fallback is 1 and the variable is removed for Default. tests/uiFonts.test.cjs fails on any bare px font-size or line-height, so a new one cannot quietly opt out of the setting; the two density guards unwrap the calc as they read the file, so each still pins the size it means. Thanks to xet7 !
217 lines
5.1 KiB
CSS
217 lines
5.1 KiB
CSS
.js-add-checklist {
|
|
color: #8c8c8c;
|
|
}
|
|
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: #8c8c8c;
|
|
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.01em 16px;
|
|
border-radius: 16px;
|
|
height: 100%;
|
|
}
|
|
.checklist-title {
|
|
padding: 10px;
|
|
}
|
|
.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-inline-end: 2px solid #3cb500;
|
|
}
|
|
.checklist-item .item-title {
|
|
flex: 1;
|
|
}
|
|
.checklist-item .item-title.is-checked {
|
|
color: #8c8c8c;
|
|
font-style: italic;
|
|
text-decoration: line-through;
|
|
}
|
|
.checklist-item .item-title .viewer p {
|
|
margin-bottom: 2px;
|
|
display: block;
|
|
word-wrap: break-word;
|
|
max-width: 420px;
|
|
}
|
|
.checklist-item span.fa.checklistitem-handle {
|
|
padding-top: 2px;
|
|
padding-inline-end: 10px;
|
|
}
|
|
.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: #2980b9;
|
|
}
|