mirror of
https://github.com/wekan/wekan.git
synced 2026-02-09 17:54:21 +01:00
295 lines
6.3 KiB
CSS
295 lines
6.3 KiB
CSS
.swimlane.js-lists{
|
|
background: #dedede;
|
|
display: flex;
|
|
overflow: auto;
|
|
flex-direction: row;
|
|
box-sizing: border-box;
|
|
height: var(--swimlane-height, auto);
|
|
min-height: var(--swimlane-min-height, 200px);
|
|
}
|
|
|
|
body.mobile-mode .swimlane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
.swimlane-header {
|
|
font-size: var(--header-scale);
|
|
}
|
|
}
|
|
|
|
.swimlane-container {
|
|
background-color: #ccc;
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
/* default to the same as lists to avoid contrast with the handle */
|
|
background: #dedede;
|
|
}
|
|
.swimlane.placeholder {
|
|
background-color: rgba(0,0,0,0.2);
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
height: 15vh;
|
|
}
|
|
.swimlane.ui-sortable-helper {
|
|
box-shadow: -0.3vw 0.3vh 1vh rgba(0,0,0,0.3), 0 0 0.1vw rgba(0,0,0,0.5);
|
|
transform: rotate(2deg);
|
|
cursor: grabbing;
|
|
}
|
|
.swimlane.ui-sortable-helper .swimlane-header.ui-sortable-handle {
|
|
cursor: grabbing;
|
|
}
|
|
.swimlane .swimlane-header-wrap {
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex: 1;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: max-content;
|
|
padding: 0.5lh 1ch;
|
|
background-color: #ccc;
|
|
|
|
position: sticky;
|
|
left: 0;
|
|
p {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.swimlane .swimlane-header-wrap .swimlane-header {
|
|
font-weight: bold;
|
|
overflow: hidden;
|
|
-o-text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
overflow-wrap: break-word;
|
|
z-index: 10;
|
|
pointer-events: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.swimlane {
|
|
.swimlane-header-menu-right, .swimlane-header-menu-left {
|
|
display: inline-flex;
|
|
align-content: center;
|
|
gap: 2ch;
|
|
}
|
|
/* can't resize beyond that point, but resizing screen causes
|
|
overflow, which is great because lists would shrink too much otherwise */
|
|
max-width: 100vw;
|
|
}
|
|
|
|
@media print {
|
|
.swimlane .swimlane-header-wrap .swimlane-header-menu-right {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.swimlane .swimlane-header-wrap .swimlane-header-handle {
|
|
cursor: move;
|
|
pointer-events: auto;
|
|
color: #a6a6a6;
|
|
}
|
|
.swimlane .swimlane-header-wrap .swimlane-header-menu-right .swimlane-collapse-indicator:hover {
|
|
background-color: transparent;
|
|
color: #333;
|
|
}
|
|
|
|
.swimlane .swimlane-header-wrap .swimlane-header-menu .js-open-swimlane-menu:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.swimlane .swimlane-header-wrap .swimlane-header-plus-icon:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.swimlane .swimlane-header-wrap .swimlane-header-handle:hover,
|
|
.swimlane .swimlane-header-wrap .swimlane-header-miniscreen-handle:hover {
|
|
color: #333;
|
|
}
|
|
|
|
#js-swimlane-height-edit .swimlane-height-error {
|
|
display: none;
|
|
}
|
|
.list-group {
|
|
height: 100%;
|
|
}
|
|
.moving-swimlane {
|
|
display: none;
|
|
}
|
|
.swimlane-white {
|
|
background: #fff !important;
|
|
color: #4d4d4d !important;
|
|
border: 1px solid #eee;
|
|
}
|
|
.swimlane-green {
|
|
background: #3cb500 !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-yellow {
|
|
background: #fad900 !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-orange {
|
|
background: #ff9f19 !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-red {
|
|
background: #eb4646 !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-purple {
|
|
background: #a632db !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-blue {
|
|
background: #0079bf !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-pink {
|
|
background: #ff78cb !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-sky {
|
|
background: #00c2e0 !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-black {
|
|
background: #4d4d4d !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-lime {
|
|
background: #51e898 !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-silver {
|
|
background: #ccc !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-peachpuff {
|
|
background: #ffdab9 !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-crimson {
|
|
background: #dc143c !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-plum {
|
|
background: #dda0dd !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-darkgreen {
|
|
background: #006400 !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-slateblue {
|
|
background: #6a5acd !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-magenta {
|
|
background: #f0f !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-gold {
|
|
background: #ffd700 !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-navy {
|
|
background: #000080 !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-gray {
|
|
background: #808080 !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-saddlebrown {
|
|
background: #8b4513 !important;
|
|
color: #fff !important;
|
|
}
|
|
.swimlane-paleturquoise {
|
|
background: #afeeee !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-mistyrose {
|
|
background: #ffe4e1 !important;
|
|
color: #4d4d4d !important;
|
|
}
|
|
.swimlane-indigo {
|
|
background: #4b0082 !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
body.mobile-mode {
|
|
.swimlane-resize-handle {
|
|
height: 2ch;
|
|
:active {
|
|
background: rgba(0, 123, 255, 0.4) !important;
|
|
}
|
|
}
|
|
}
|
|
body.mobile-mode {
|
|
.swimlane-resize-handle {
|
|
height: 1lh;
|
|
}
|
|
}
|
|
/* Swimlane resize handle */
|
|
.swimlane-resize-handle {
|
|
height: max(0.7ch, 0.3lh);
|
|
cursor: row-resize;
|
|
border-top: 2px solid transparent;
|
|
transition: all 0.2s ease;
|
|
border-radius: 2px;
|
|
/* Ensure the handle is clickable */
|
|
pointer-events: auto;
|
|
/* Prevent scrolling behaviour on click */
|
|
touch-action: none;
|
|
background: rgba(0, 0, 0, 0.1);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Add a subtle indicator line */
|
|
.swimlane-resize-handle::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 50vw;
|
|
width: 20px;
|
|
height: 1px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 5px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.swimlane.swimlane-resizing + .swimlane-resize-handle:hover::before, .swimlane-resize-handle:hover::before {
|
|
opacity:1;
|
|
}
|
|
|
|
.swimlane:not(.cannot-resize) {
|
|
/* Add a subtle resize indicator line at the bottom of swimlane on hover */
|
|
&:hover + .swimlane-resize-handle, + .swimlane-resize-handle:hover {
|
|
border-top: 1px solid rgba(0, 123, 255, 0.5);
|
|
background: rgba(0, 123, 255, 0.2);
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
.swimlane.swimlane-resizing + .swimlane-resize-handle {
|
|
background: rgba(0, 123, 255, 0.4) !important;
|
|
}
|
|
|
|
.swimlane.cannot-resize + .swimlane-resize-handle {
|
|
background: rgba(227, 64, 83, 0.5) !important;
|
|
border-radius: 0;
|
|
}
|
|
|
|
body.swimlane-resizing-active {
|
|
cursor: row-resize !important;
|
|
user-select: none !important;
|
|
}
|
|
|
|
body.swimlane-resizing-active * {
|
|
cursor: row-resize !important;
|
|
user-select: none !important;
|
|
}
|