mirror of
https://github.com/marcomandy/plain-text-kanban.git
synced 2026-07-22 06:08:18 +00:00
814 lines
14 KiB
CSS
814 lines
14 KiB
CSS
.kanban-view-content {
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
.kanban-board {
|
|
display: flex;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
height: 100%;
|
|
overflow-x: auto;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
/* Columns */
|
|
|
|
.kanban-column {
|
|
flex: 0 0 280px;
|
|
background: var(--background-secondary);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 100%;
|
|
transition: opacity 0.15s;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.kanban-column.dragging {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.kanban-column.drop-before {
|
|
border-left: 3px solid var(--interactive-accent);
|
|
}
|
|
|
|
.kanban-column.drop-after {
|
|
border-right: 3px solid var(--interactive-accent);
|
|
}
|
|
|
|
.kanban-column-header {
|
|
padding: 8px 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
user-select: none;
|
|
gap: 6px;
|
|
}
|
|
|
|
.kanban-column-header-buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.kanban-column-archive {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
transition: color 0.15s, background 0.15s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.kanban-column-archive:hover {
|
|
color: var(--text-normal);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.kanban-column-archive svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.kanban-column-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.kanban-column-delete {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
width: 24px;
|
|
height: 24px;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
transition: color 0.15s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.kanban-column-delete:hover {
|
|
color: var(--text-error);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.kanban-column-title {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
cursor: text;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.kanban-column-count {
|
|
background: var(--background-modifier-border);
|
|
color: var(--text-muted);
|
|
border-radius: 10px;
|
|
padding: 2px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Card list */
|
|
|
|
.kanban-column-body {
|
|
padding: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
overflow-y: auto;
|
|
min-height: 40px;
|
|
flex: 1;
|
|
}
|
|
|
|
.kanban-column-body.drop-at-end {
|
|
border-bottom: 3px solid var(--interactive-accent);
|
|
border-radius: 0 0 8px 8px;
|
|
}
|
|
|
|
/* Cards */
|
|
|
|
.kanban-card {
|
|
background: var(--background-primary);
|
|
border-radius: 6px;
|
|
padding: 10px 12px 10px 24px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
transition: box-shadow 0.15s, opacity 0.15s;
|
|
border: 1px solid var(--background-modifier-border);
|
|
position: relative;
|
|
min-width: 0;
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.kanban-card:hover {
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.kanban-card.dragging {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.kanban-card.drop-above {
|
|
border-top: 3px solid var(--interactive-accent);
|
|
margin-top: -3px;
|
|
}
|
|
|
|
.kanban-card-delete {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.kanban-card-delete:hover {
|
|
color: var(--text-error);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.kanban-card-title {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
margin-bottom: 4px;
|
|
cursor: text;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
/* Labels */
|
|
|
|
.kanban-card-labels {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 4px;
|
|
align-items: center;
|
|
}
|
|
|
|
.kanban-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
line-height: 1.5;
|
|
white-space: nowrap;
|
|
cursor: default;
|
|
height: 22px;
|
|
box-sizing: border-box;
|
|
background-color: var(--label-bg, var(--background-modifier-border));
|
|
color: var(--label-color, var(--text-normal));
|
|
}
|
|
|
|
.kanban-label-name {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.kanban-label-delete {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: opacity 0.15s;
|
|
margin-left: 2px;
|
|
opacity: 0.6;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
top: -1px;
|
|
}
|
|
|
|
.kanban-label-delete:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.kanban-label-add {
|
|
background: none;
|
|
border: 1px dashed var(--text-faint);
|
|
color: var(--text-faint);
|
|
border-radius: 10px;
|
|
padding: 2px 7px;
|
|
font-size: 11px;
|
|
line-height: 1.5;
|
|
cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
height: 22px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.kanban-label-add:hover {
|
|
color: var(--text-muted);
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
.kanban-label-new-input {
|
|
width: 80px;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--interactive-accent);
|
|
border-radius: 10px;
|
|
color: var(--text-normal);
|
|
font-size: 11px;
|
|
padding: 1px 8px;
|
|
line-height: 1.5;
|
|
outline: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* Label editing */
|
|
|
|
.kanban-label-edit-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.kanban-label-name-input {
|
|
width: 70px;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--interactive-accent);
|
|
border-radius: 4px;
|
|
color: var(--text-normal);
|
|
font-size: 11px;
|
|
padding: 1px 4px;
|
|
outline: none;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.kanban-label-color-input {
|
|
width: 22px;
|
|
height: 22px;
|
|
padding: 0;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background: none;
|
|
}
|
|
|
|
.kanban-card-body {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
cursor: text;
|
|
}
|
|
|
|
.kanban-card-body p {
|
|
margin: 0;
|
|
min-height: 1.4em;
|
|
}
|
|
|
|
.kanban-card-body ul {
|
|
padding-left: 18px;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.kanban-card-body li {
|
|
margin: 2px 0;
|
|
}
|
|
|
|
/* Images in card body */
|
|
|
|
.kanban-card-body img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 4px;
|
|
display: block;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* Inline editing */
|
|
|
|
.kanban-edit-input {
|
|
width: 100%;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--interactive-accent);
|
|
border-radius: 4px;
|
|
color: var(--text-normal);
|
|
font-family: inherit;
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.kanban-column-title-edit {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
.kanban-card-title-edit {
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
.kanban-edit-textarea {
|
|
width: 100%;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--interactive-accent);
|
|
border-radius: 4px;
|
|
color: var(--text-normal);
|
|
font-family: var(--font-monospace);
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
padding: 4px 6px;
|
|
outline: none;
|
|
resize: none;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
min-height: 60px;
|
|
}
|
|
|
|
.kanban-card-body-placeholder {
|
|
font-size: 12px;
|
|
color: var(--text-faint);
|
|
cursor: text;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
/* Add checklist button */
|
|
|
|
.kanban-add-checklist-btn {
|
|
font-size: 12px;
|
|
color: var(--text-faint);
|
|
cursor: pointer;
|
|
padding: 2px 0;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.kanban-add-checklist-btn:hover {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Add card / Add column buttons */
|
|
|
|
.kanban-add-card-btn {
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.kanban-add-card-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.kanban-add-column-btn {
|
|
flex: 0 0 280px;
|
|
background: var(--background-secondary);
|
|
border-radius: 8px;
|
|
padding: 12px 16px;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
transition: background 0.15s, color 0.15s;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.kanban-add-column-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Drag handles */
|
|
|
|
.kanban-drag-handle {
|
|
color: var(--text-faint);
|
|
cursor: grab;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
border-radius: 4px;
|
|
transition: color 0.15s, background 0.15s;
|
|
}
|
|
|
|
.kanban-drag-handle:hover {
|
|
color: var(--text-muted);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.kanban-drag-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.kanban-drag-handle svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.kanban-card-drag-handle {
|
|
position: absolute;
|
|
left: 2px;
|
|
top: 8px;
|
|
}
|
|
|
|
/* Drop placeholders */
|
|
|
|
.kanban-card-placeholder {
|
|
border: 2px dashed var(--interactive-accent);
|
|
border-radius: 6px;
|
|
height: 40px;
|
|
min-height: 40px;
|
|
flex-shrink: 0;
|
|
background: var(--background-secondary-alt);
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.kanban-column-placeholder {
|
|
flex: 0 0 280px;
|
|
border: 2px dashed var(--interactive-accent);
|
|
border-radius: 8px;
|
|
min-height: 100px;
|
|
background: var(--background-secondary-alt);
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Column highlight during card drag */
|
|
|
|
.kanban-column.drag-target-column {
|
|
outline: 2px solid var(--interactive-accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
/* Settings-driven visibility */
|
|
|
|
.kanban-hide-counter .kanban-column-count {
|
|
display: none;
|
|
}
|
|
|
|
.kanban-hide-add-label .kanban-label-add {
|
|
display: none;
|
|
}
|
|
|
|
.kanban-hide-add-description .kanban-card-body-placeholder {
|
|
display: none;
|
|
}
|
|
|
|
.kanban-hide-add-checklist .kanban-add-checklist-btn {
|
|
display: none;
|
|
}
|
|
|
|
/* Hover-only buttons */
|
|
|
|
.kanban-hover-buttons .kanban-column-header-buttons {
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.kanban-hover-buttons .kanban-column:hover .kanban-column-header-buttons {
|
|
opacity: 1;
|
|
}
|
|
|
|
.kanban-hover-buttons .kanban-card-delete {
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.kanban-hover-buttons .kanban-card:hover .kanban-card-delete {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Swimlanes */
|
|
|
|
.kanban-swimlanes-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.kanban-swimlane {
|
|
flex: 0 0 auto;
|
|
height: calc(100vh - 100px);
|
|
min-height: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-bottom: 2px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.kanban-swimlane:last-of-type {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.kanban-swimlane .kanban-board {
|
|
flex: 1;
|
|
height: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.kanban-swimlane-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 16px;
|
|
background: var(--background-secondary);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.kanban-swimlane-labels {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
flex: 1;
|
|
align-items: center;
|
|
}
|
|
|
|
.kanban-swimlane-all-labels {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.kanban-swimlane-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
height: 22px;
|
|
box-sizing: border-box;
|
|
background-color: var(--label-bg, var(--background-modifier-border));
|
|
color: var(--label-color, var(--text-normal));
|
|
}
|
|
|
|
.kanban-swimlane-label-remove {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
padding: 0;
|
|
margin-left: 2px;
|
|
opacity: 0.6;
|
|
width: 16px;
|
|
height: 16px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.kanban-swimlane-label-remove:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.kanban-swimlane-add-label {
|
|
background: none;
|
|
border: 1px dashed var(--text-faint);
|
|
color: var(--text-faint);
|
|
border-radius: 10px;
|
|
padding: 2px 8px;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
height: 22px;
|
|
box-sizing: border-box;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.kanban-swimlane-add-label:hover {
|
|
color: var(--text-muted);
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
.kanban-swimlane-delete {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.kanban-swimlane-delete:hover {
|
|
color: var(--text-error);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.kanban-add-swimlane-btn {
|
|
padding: 6px 16px;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
opacity: 0.6;
|
|
flex-shrink: 0;
|
|
transition: opacity 0.15s, background 0.15s;
|
|
}
|
|
|
|
.kanban-add-swimlane-btn:hover {
|
|
color: var(--text-normal);
|
|
opacity: 1;
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.kanban-swimlane-label-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 8px;
|
|
z-index: 100;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
padding: 6px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
min-width: 160px;
|
|
max-height: 220px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.kanban-swimlane-label-input {
|
|
width: 100%;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
color: var(--text-normal);
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
outline: none;
|
|
margin-bottom: 4px;
|
|
box-sizing: border-box;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.kanban-swimlane-label-input:focus {
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.kanban-swimlane-label-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.kanban-swimlane-label-option {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.kanban-swimlane-label-option:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* ── Board-level settings popover ── */
|
|
|
|
.kanban-board-settings-popover {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 8px;
|
|
padding: 12px 14px;
|
|
width: 320px;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.kanban-board-settings-title {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.kanban-board-settings-hint {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.kanban-board-settings-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 5px 0;
|
|
gap: 8px;
|
|
}
|
|
|
|
.kanban-board-settings-label-name {
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Label editing state */
|
|
|
|
.kanban-label.kanban-label-editing {
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Utility */
|
|
|
|
.kanban-hidden {
|
|
display: none;
|
|
}
|