Files
wekan/client/components/sidebar/sidebar.css
T
Lauri Ojansivu 973c2ad901 Fix #3453 #3199; linked-card custom field crash; pin #3843.
- #3453: publish the FULL subtask ancestor chain, not only direct
  parents - the cross-board full-path label vanished after refresh.
- #3748 (defect half): skip unresolvable custom-field definitions on
  linked cards - phantom empty rows and a template TypeError on every
  card details render. The mirroring itself is by design: linked cards
  are pointers; label/custom-field ids are board-scoped; name-based
  inheritance is the copy feature, not the link feature.
- #3199: group each archived card with its own Restore/Delete links and
  add a clear separator below the group (RTL-safe, theme-neutral).
- #3843: comment-editor uploads and the attachments popup now share one
  null-safe meta builder, and tests pin that comment attachments list in
  the card's Attachments section.

Closes #3748: mirroring is by design (see above); the only actionable
defect is fixed in this commit.
Closes #3378: already fixed - notification_cleanup moved off SyncedCron
to a guarded Meteor.setInterval singleton, and quave:synced-cron 2.4.0
handles the E11000 history collision that percolate 1.5.x missed.
Closes #3276: already fixed by d3625db75 - the spent-time badge helpers
now read the live Cards document reactively, so the overtime color flips
immediately; verified behaviorally against the real component.
Closes #3843: behavior verified present and now regression-locked.

Thanks to MPeti1, peterbecich, fxkr, jghaanstra and xet7.
2026-07-17 03:21:02 +03:00

454 lines
11 KiB
CSS

.sidebar {
position: absolute;
top: 0;
bottom: 0;
inset-inline-end: 0;
overflow-y: scroll;
}
.sidebar {
background: #f7f7f7;
box-shadow: -10px 0px 5px -10px #b3b3b3;
}
.sidebar-xmark {
position: absolute;
inset-inline-end: 0px;
top: 0px;
font-size: 25px;
padding: 10px;
}
.sidebar-xmark:hover {
background: rgba(0,0,0,0.15);
}
.sidebar-actions {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 10px 10px 0px 10px;
}
.sidebar .sidebar-content {
padding: 0 12px;
}
.sidebar .sidebar-content .hide-btn {
display: none;
}
.sidebar .sidebar-content h3 {
color: #808080;
font-size: 1em;
margin-bottom: 10px;
font-weight: bold;
}
.sidebar .sidebar-content h3 i.fa {
margin-inline-end: 3px;
}
.sidebar .sidebar-content hr {
margin: 13px 0;
}
.sidebar .sidebar-content ul.sidebar-list {
display: flex;
flex-direction: column;
}
/* Use checklist-style green checkboxes for all sidebar checkboxes */
.sidebar .materialCheckBox.is-checked,
.boardCardSettingsPopup .materialCheckBox.is-checked,
.boardSubtaskSettingsPopup .materialCheckBox.is-checked {
top: -4px !important;
inset-inline-start: -3px !important;
width: 7px !important;
height: 15px !important;
margin-inline-end: 6px !important;
border-top: 2px solid transparent !important;
border-inline-start: 2px solid transparent !important;
border-bottom: 2px solid #3cb500 !important;
border-inline-end: 2px solid #3cb500 !important;
transform: rotate(40deg) !important;
-webkit-backface-visibility: hidden !important;
backface-visibility: hidden !important;
transform-origin: 100% 100% !important;
}
/* Grey checkmarks when grey icons setting is enabled */
body.grey-icons-enabled .sidebar .materialCheckBox.is-checked,
body.grey-icons-enabled .boardCardSettingsPopup .materialCheckBox.is-checked,
body.grey-icons-enabled .boardSubtaskSettingsPopup .materialCheckBox.is-checked {
border-bottom: 2px solid #7a7a7a !important;
border-inline-end: 2px solid #7a7a7a !important;
}
/* Card Settings 3-column grid layout */
.card-settings-grid {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
gap: 10px;
margin-bottom: 10px;
/* Keep the "Show on Card / Show on Minicard / Description" titles visible
while the rows below scroll (the popup scrolls in .pop-over .content-wrapper). */
position: sticky;
top: 0;
z-index: 2;
background: #fff;
padding: 5px 0;
border-bottom: 2px solid #ddd;
}
.card-settings-row {
display: grid;
grid-template-columns: 1fr 1fr 2fr;
gap: 10px;
align-items: center;
padding: 5px 0;
border-bottom: 1px solid #eee;
}
.card-settings-column {
display: flex;
align-items: center;
justify-content: center;
}
.card-settings-column:last-child {
justify-content: flex-start;
}
.card-settings-column h4 {
margin: 0;
font-size: 12px;
font-weight: bold;
text-align: center;
}
.sidebar .sidebar-content ul.sidebar-list li > a {
display: flex;
height: 30px;
margin: 0;
padding: 4px;
border-radius: 3px;
align-items: center;
}
.sidebar .sidebar-content ul.sidebar-list li > a:hover,
.sidebar .sidebar-content ul.sidebar-list li > a:hover i,
.sidebar .sidebar-content ul.sidebar-list li > a:hover .quiet {
color: #fff;
}
.sidebar .sidebar-content ul.sidebar-list li > a .member,
.sidebar .sidebar-content ul.sidebar-list li > a .card-label {
margin-inline-end: 7px;
margin-top: 5px;
}
.sidebar .sidebar-content ul.sidebar-list li > a .minicard-edit-button {
float: inline-end;
padding: 8px;
border-radius: 3px;
}
.sidebar .sidebar-content ul.sidebar-list li > a .sidebar-list-item-description {
flex: 1;
overflow: ellipsis;
}
.sidebar .sidebar-content ul.sidebar-list li > a .fa.fa-check {
margin: 0 4px;
color: #3cb500;
}
/* Grey check icons when grey icons setting is enabled */
body.grey-icons-enabled .sidebar .sidebar-content ul.sidebar-list li > a .fa.fa-check {
color: #7a7a7a;
}
.sidebar .sidebar-content ul.sidebar-list li .minicard {
padding: 6px 8px 4px;
}
.sidebar .sidebar-content ul.sidebar-list li .minicard .minicard-edit-button {
float: inline-end;
padding: 4px;
border-radius: 3px;
}
.sidebar .sidebar-content ul.sidebar-list li .minicard .minicard-edit-button:hover {
background: #dbdbdb;
}
.sidebar .sidebar-content .sidebar-btn {
display: block;
margin: 5px 0;
padding: 10px;
border-radius: 3px;
background: #e6e6e6;
}
.sidebar .sidebar-content .sidebar-btn * {
color: #fff;
}
.sidebar .sidebar-content .sidebar-btn:hover * {
color: #fff;
}
.sidebar .sidebar-content .sidebar-btn i.fa {
margin-inline-end: 10px;
}
.sidebar .sidebar-shortcuts {
top: 7px;
font-size: 1em;
line-height: 1.6em;
color: #000;
}
.sidebar .sidebar-shortcuts .sidebar-btn {
margin-inline-start: 3px;
margin-inline-end: 3px;
}
.board-sidebar {
display: none;
width: 30vw;
z-index: 100;
transition: top 0.1s, right 0.1s, width 0.1s;
}
.board-sidebar.is-open {
display: block;
/* #6465 follow-up: the card details window docks to the right edge with
z-index 2001 — the same place this sidebar opens. When the user opens the
sidebar, the sidebar must win, or its content (e.g. the archives
Restore/Delete links) sits unreachable UNDER the card window. */
z-index: 2002;
}
.board-widget h4 {
margin: 5px 0;
}
.board-widget-activity {
margin-inline-end: -4px;
}
.sidebar-tongue {
display: block;
width: 30px;
height: 30px;
inset-inline-start: -30px;
position: absolute;
top: 0px;
z-index: 15;
background: #f7f7f7;
border-bottom-left-radius: 3px;
box-shadow: -4px 0px 7px -4px #b3b3b3;
color: #808080;
transition: left 0.1s;
}
.sidebar-tongue i.fa {
padding: 3px 9px;
font-size: 24px;
transition: transform 0.5s;
}
.sidebar-accessibility {
color: #4d4d4d;
padding: 5px 10px;
display: flex;
align-items: center;
text-decoration: none;
border-radius: 3px;
cursor: pointer;
margin-inline-start: auto;
margin-inline-end: 30px;
}
.sidebar-accessibility:hover {
background-color: #d9d9d9;
}
.sidebar-accessibility span {
margin-inline-start: 5px;
}
.board-sidebar.is-open .sidebar-tongue {
inset-inline-start: -28px;
}
.board-sidebar.is-open .sidebar-tongue:hover {
inset-inline-start: -25px;
}
.board-sidebar.is-open .sidebar-tongue i.fa {
transform: rotate(180deg);
}
.sidebar-tongue.is-hidden,
.board-sidebar.is-open .sidebar-tongue.is-hidden {
z-index: 0;
inset-inline-start: 5px;
}
/* #3199: In the Archive sidebar's Cards tab each card's Restore/Delete links
used to sit BETWEEN two archived cards with near-equal spacing, so users
could not tell which card they belonged to. Group each card with its own
links: no gap between the card and its links, and a clear separator gap
below the whole group before the next card. Spacing-only, so it works in
every board color/theme; logical properties keep it RTL-safe. */
.archived-card-item {
margin-block-end: 1.6em;
}
.archived-card-item .minicard-wrapper {
margin-bottom: 0;
}
.archived-card-item p.quiet {
margin-block-start: 2px;
margin-block-end: 0;
padding-inline-start: 4px;
}
.archived-lists .archived-lists-item {
border-top: 1px solid #ccc;
clear: both;
padding: 5px 0;
}
.archived-lists .archived-lists-item:first-child {
border-top: none;
}
.archived-lists .archived-lists-item button {
float: inline-end;
margin: 0;
margin: 0 0 5px 5px;
padding: 0 10px 0 10px;
}
@media screen and (max-width: 800px) {
/* On phones (iPhone 12 mini, etc.) the right sidebar should be a full-width
panel at the top of the board, in BOTH mobile mode and desktop mode. The
sidebar lives inside .board-wrapper, which is wider than the viewport on a
phone, so an absolutely-positioned sidebar (inset-inline-end: 0) pins to the
far right of the wide board and shows as a narrow strip. Pin it to the
VIEWPORT instead (position: fixed + 100vw) so it spans the full screen
width. At 100% zoom .board-wrapper has no transform, so fixed resolves to
the viewport in desktop mode too. */
.board-sidebar.sidebar {
position: fixed;
top: 0;
bottom: 0;
inset-inline-start: 0;
inset-inline-end: 0;
width: 100vw;
max-width: 100vw;
z-index: 1000;
}
/* Normalise sidebar text on phones so the headings are not oversized and the
small text is not tiny — keep them close to the board's text size so board
and sidebar read at one consistent size. */
.board-sidebar.sidebar .sidebar-content {
font-size: 14px;
}
.board-sidebar.sidebar .sidebar-content h2,
.board-sidebar.sidebar .sidebar-content h3 {
font-size: 16px;
}
.board-sidebar.sidebar .sidebar-content ul.sidebar-list li > a,
.board-sidebar.sidebar .sidebar-content .card-label,
.board-sidebar.sidebar .sidebar-content .card-label .card-label-name,
.board-sidebar.sidebar .sidebar-content p,
.board-sidebar.sidebar .sidebar-content span {
font-size: 14px;
}
.board-sidebar .sidebar-content .hide-btn {
width: 40px;
height: 40px;
position: absolute;
inset-inline-end: 5px;
top: 5px;
display: block;
z-index: 15;
background: #f7f7f7;
transition: left 0.1s;
color: #808080;
border-radius: 50%;
border: 1px solid #b3b3b3;
box-shadow: 0 1px 6px rgba(0,0,0,0.3);
color: #808080;
}
.board-sidebar .sidebar-content .hide-btn i.fa {
padding: 8px 16px;
font-size: 24px;
font-weight: bold;
}
.sidebar-tongue {
width: 40px;
height: 40px;
inset-inline-start: -47px;
top: 5px;
display: block;
border-radius: 50%;
border: 1px solid #b3b3b3;
box-shadow: 0 1px 6px rgba(0,0,0,0.3);
color: #808080;
}
.board-sidebar.is-open .sidebar-tongue {
display: none;
}
.sidebar-tongue i.fa {
padding: 8px 0px 8px 16px;
font-weight: bold;
}
}
#jsBoardOrgs,
#jsBoardTeams {
width: 90%;
}
.leaveBoardBtn {
background-color: #008000 !important;
}
.cancelLeaveBoardBtn {
margin-inline-start: 5% !important;
background-color: #f00 !important;
}
.addTeamsLabel,
.addOrganizationsLabel {
font-weight: normal;
}
.js-manage-board-removeTeam:hover,
.js-manage-board-removeTeam.is-active,
.js-manage-board-removeOrg:hover,
.js-manage-board-removeOrg.is-active {
box-shadow: 0 0 0 2px #e23210 inset !important;
}
.js-manage-board-addTeam:hover,
.js-manage-board-addTeam.is-active,
.js-manage-board-addOrg:hover,
.js-manage-board-addOrg.is-active {
box-shadow: 0 0 0 2px #73ea10 inset !important;
}
.addTeamFaPlus {
color: #008000 !important;
}
.removeTeamFaMinus {
color: #f00 !important;
}
.divaddfaplusminus {
padding-top: 5px;
margin-inline-start: 40px;
}
/* Board backgrounds management popup */
.board-backgrounds-manage .board-backgrounds-grid {
display: flex;
flex-wrap: wrap;
margin-top: 8px;
}
.board-bg-item {
width: 48%;
margin: 1%;
border: 2px solid transparent;
border-radius: 3px;
}
.board-bg-item.is-active {
border-color: #3cb500;
}
.board-bg-thumb {
height: 80px;
background-size: cover;
background-position: center;
border-radius: 3px;
position: relative;
}
.board-bg-active-check {
position: absolute;
top: 4px;
inset-inline-end: 4px;
color: #3cb500;
background: rgba(255, 255, 255, 0.85);
border-radius: 50%;
padding: 2px;
}
.board-bg-actions {
display: flex;
justify-content: space-around;
padding: 4px 0;
}
.board-bg-actions a {
cursor: pointer;
color: #4d4d4d;
}
.board-bg-actions a:hover {
color: #000;
}
.js-bg-upload-button {
display: inline-block;
margin-bottom: 8px;
}