Files
Kanban-Front/src/css/Board.css
Vladiysss 31c2764936 Init
2026-04-18 14:55:18 +03:00

333 lines
7.1 KiB
CSS

.inf-panel {
flex: 0 0 auto;
background: var(--color-surface-2);
border: 1px solid var(--color-border);
padding: var(--space-lg);
border-radius: var(--radius-md);
margin-bottom: var(--space-md);
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.inf-panel strong {
margin-right: 1ch;
color: var(--color-text-dim);
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.inf-panel .row {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: var(--space-md);
align-items: center;
}
.row p, .row h3 {
display: flex;
margin: 0;
word-break: break-word;
align-items: center;
color: var(--color-text);
}
.row h3 {
font-size: 1.15rem;
font-weight: 700;
}
.row p {
font-size: 0.92rem;
}
.modal-content .row { margin: 0; }
.members-avatar {
height: 30px;
width: 30px;
margin-left: var(--space-sm);
border-radius: var(--radius-full);
object-fit: cover;
border: 2px solid var(--color-surface-2);
margin-right: -14px;
transition: transform var(--transition-base);
}
.members-avatar:hover { transform: translateY(-2px) scale(1.08); z-index: 2; }
.row button {
width: auto;
background: transparent;
display: flex;
align-items: center;
padding: 6px 10px;
margin: 0;
color: var(--color-text);
font-weight: 500;
border-radius: var(--radius-sm);
box-shadow: none;
}
.row button:hover:not(:disabled) {
background: var(--color-surface-3);
color: var(--color-text);
transform: none;
box-shadow: none;
}
/* Members-list */
.members-list {
gap: var(--space-sm);
padding: var(--space-sm);
display: flex;
flex-direction: column;
}
.members-list button {
border-radius: var(--radius-md);
margin: 0;
padding: var(--space-md);
display: flex;
flex-direction: column;
align-items: flex-start;
background: var(--color-surface-3);
width: 100%;
}
.members-list button:hover {
background: var(--color-surface-3);
box-shadow: 0 0 0 2px var(--color-primary-glow);
}
.modal-member {
flex: 0 1 auto;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
align-items: stretch;
}
/* Setting panel */
.set-panel {
flex: 0 0 auto;
background: var(--color-surface-2);
border: 1px solid var(--color-border);
padding: var(--space-md);
border-radius: var(--radius-md);
margin-bottom: var(--space-md);
display: flex;
flex-direction: row;
gap: var(--space-sm);
flex-wrap: wrap;
}
.set-panel button {
width: auto;
margin: 0;
flex: 1 1 140px;
}
/* Board */
.board-panel {
flex: 1 1 auto;
background: var(--color-surface-2);
border: 1px solid var(--color-border);
overflow-x: auto;
overflow-y: hidden;
gap: var(--space-md);
padding: var(--space-md);
border-radius: var(--radius-md);
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: stretch;
}
.categori {
flex: 1 1 auto;
overflow-y: auto;
overflow-x: hidden;
background: var(--color-surface-3);
border: 1px solid var(--color-border);
min-width: 300px;
max-width: 340px;
padding: var(--space-md);
border-radius: var(--radius-md);
display: flex;
flex-direction: column;
align-items: stretch;
transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.categori:hover {
border-color: var(--color-border-strong);
}
.categori > button {
width: 100%;
display: flex;
background: transparent;
padding: var(--space-sm) var(--space-md);
margin: 0 0 var(--space-sm);
justify-content: flex-start;
color: var(--color-text);
box-shadow: none;
}
.categori > button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.04);
transform: none;
box-shadow: none;
}
.categori > button h3 {
margin: 0;
font-size: 1.05rem;
color: var(--color-text);
}
.bib { width: 100%; height: 100%; }
.task-list {
flex: 1 1 auto;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
gap: var(--space-sm);
width: 100%;
margin-top: var(--space-sm);
padding-right: 4px;
}
.task {
text-align: left;
margin: 0;
color: var(--color-text);
padding: var(--space-md);
display: flex;
justify-content: space-around;
flex-direction: column;
border-radius: var(--radius-md);
font-size: 0.92rem;
background: var(--color-surface);
border: 1px solid var(--color-border);
width: 100%;
box-sizing: border-box;
gap: 6px;
transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
cursor: grab;
}
.task:active { cursor: grabbing; }
.task:hover {
background: var(--color-surface-3);
border-color: var(--color-primary);
transform: translateY(-1px);
box-shadow: var(--shadow-sm);
}
.task > div:first-child {
font-weight: 600;
color: var(--color-text);
}
.task > div:not(:first-child) {
font-size: 0.82rem;
color: var(--color-text-muted);
}
.create {
background: transparent;
border: 2px dashed var(--color-border-strong);
display: flex;
flex-direction: row;
align-items: center;
transition: border-color var(--transition-base), background var(--transition-base);
}
.create button {
background: transparent;
color: var(--color-text-muted);
margin: 0;
width: 100%;
box-shadow: none;
}
.create button:hover:not(:disabled) {
background: transparent;
color: var(--color-text);
transform: none;
box-shadow: none;
}
.create:hover {
border-color: var(--color-primary);
background: rgba(91, 140, 255, 0.06);
}
.categori .create {
margin-top: 0;
flex: 0 0 auto;
}
.categori.create {
margin-top: 0;
align-items: center;
justify-content: center;
flex: 0 0 200px;
min-height: 120px;
}
.categori.create .bib button {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-xs);
}
.categori.create .bib button div { font-size: 2rem; font-weight: 300; line-height: 1; }
.task.create { margin-top: 0; padding: var(--space-sm); }
.task.create button { font-size: 0.88rem; padding: 8px; }
.task.move {
min-height: 30px;
opacity: 0;
background: transparent;
border: 2px dashed transparent;
transition: opacity var(--transition-base), border-color var(--transition-base);
}
label { text-align: left; }
/* Scrollbars */
.task-list::-webkit-scrollbar,
.board-panel::-webkit-scrollbar {
width: 8px;
height: 10px;
}
.task-list::-webkit-scrollbar-track,
.board-panel::-webkit-scrollbar-track {
background: transparent;
}
.task-list::-webkit-scrollbar-thumb,
.board-panel::-webkit-scrollbar-thumb {
background: var(--color-surface-3);
border-radius: var(--radius-full);
}
.task-list::-webkit-scrollbar-thumb:hover,
.board-panel::-webkit-scrollbar-thumb:hover {
background: var(--color-primary);
}