eis-website/css/kanban.css
2026-05-20 13:50:39 +00:00

417 lines
7 KiB
CSS

/* ====================== KANBAN BOARD STYLES ====================== */
.kanban-main {
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 2rem 0;
}
.kanban-header {
max-width: 1400px;
margin: 0 auto 2rem;
padding: 0 2rem;
text-align: center;
}
.kanban-header h1 {
font-size: 3rem;
color: white;
margin: 0 0 0.5rem 0;
text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.kanban-header p {
color: rgba(255, 255, 255, 0.9);
font-size: 1.1rem;
margin-bottom: 2rem;
}
.header-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
.btn {
padding: 0.8rem 1.5rem;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-transform: capitalize;
}
.btn-primary {
background: white;
color: #667eea;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.3);
border-color: white;
}
.btn-danger {
background: rgba(239, 68, 68, 0.2);
color: #fecaca;
border: 2px solid rgba(239, 68, 68, 0.5);
}
.btn-danger:hover {
background: rgba(239, 68, 68, 0.3);
border-color: #fecaca;
}
/* ====================== KANBAN CONTAINER ====================== */
.kanban-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
gap: 2rem;
overflow-x: auto;
padding-bottom: 2rem;
}
.kanban-container::-webkit-scrollbar {
height: 8px;
}
.kanban-container::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
}
.kanban-container::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}
.kanban-container::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}
/* ====================== SPALTEN ====================== */
.kanban-column {
flex: 0 0 320px;
background: white;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
max-height: 80vh;
overflow: hidden;
transition: all 0.3s ease;
}
.kanban-column.drag-over {
background: #f0f4ff;
box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
transform: scale(1.02);
}
.kanban-column-header {
padding: 1.5rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 12px 12px 0 0;
}
.kanban-column-title {
font-size: 1.2rem;
font-weight: 700;
margin: 0;
}
.column-delete-btn {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 32px;
height: 32px;
border-radius: 6px;
cursor: pointer;
font-size: 1.2rem;
transition: all 0.2s ease;
}
.column-delete-btn:hover {
background: rgba(255, 255, 255, 0.4);
}
.kanban-cards {
flex: 1;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 1rem;
overflow-y: auto;
}
.kanban-cards::-webkit-scrollbar {
width: 6px;
}
.kanban-cards::-webkit-scrollbar-track {
background: transparent;
}
.kanban-cards::-webkit-scrollbar-thumb {
background: #e2e8f0;
border-radius: 3px;
}
.kanban-cards::-webkit-scrollbar-thumb:hover {
background: #cbd5e1;
}
/* ====================== KARTEN ====================== */
.kanban-card {
background: white;
border: 2px solid #e2e8f0;
border-radius: 8px;
padding: 1rem;
cursor: move;
transition: all 0.2s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
position: relative;
min-height: 60px;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 0.5rem;
}
.kanban-card:hover {
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
border-color: #667eea;
transform: translateY(-2px);
}
.kanban-card.dragging {
opacity: 0.5;
transform: rotate(5deg);
}
.kanban-card.drag-over-card {
border-top: 3px solid #667eea;
margin-top: 8px;
}
.card-content {
flex: 1;
word-break: break-word;
}
.card-text {
margin: 0;
color: #1e293b;
font-size: 0.95rem;
line-height: 1.5;
outline: none;
min-height: 1.5em;
}
.card-text:focus {
background: #f0f4ff;
padding: 0.25rem;
border-radius: 4px;
}
.card-label {
display: inline-block;
padding: 0.3rem 0.6rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
color: white;
margin-top: 0.5rem;
cursor: pointer;
transition: all 0.2s ease;
}
.card-label:hover {
transform: scale(1.1);
}
.label-red {
background: #ef4444;
}
.label-blue {
background: #3b82f6;
}
.label-yellow {
background: #eab308;
}
.label-green {
background: #22c55e;
}
.label-purple {
background: #a855f7;
}
.card-actions {
display: flex;
gap: 0.3rem;
flex-direction: column;
}
.card-delete-btn {
background: #ef4444;
border: none;
color: white;
width: 28px;
height: 28px;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.card-delete-btn:hover {
background: #dc2626;
transform: scale(1.15);
}
/* ====================== ADD BUTTON ====================== */
.add-card-btn {
width: 100%;
padding: 0.8rem;
background: #f1f5f9;
border: 2px dashed #cbd5e1;
border-radius: 8px;
color: #64748b;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
margin-top: auto;
}
.add-card-btn:hover {
background: #e2e8f0;
border-color: #667eea;
color: #667eea;
}
/* ====================== COLOR PICKER ====================== */
.color-picker {
position: fixed;
background: white;
border-radius: 8px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
z-index: 1000;
overflow: hidden;
}
.color-picker-title {
padding: 0.8rem 1rem;
background: #f1f5f9;
font-size: 0.9rem;
font-weight: 600;
color: #475569;
border-bottom: 1px solid #e2e8f0;
}
.color-options {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
padding: 0.8rem;
}
.color-option {
width: 40px;
height: 40px;
border-radius: 6px;
cursor: pointer;
border: 3px solid transparent;
transition: all 0.2s ease;
}
.color-option:hover {
transform: scale(1.1);
}
.color-option.active {
border-color: #1e293b;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
.kanban-header h1 {
font-size: 2rem;
}
.kanban-container {
padding: 0 1rem;
gap: 1rem;
}
.kanban-column {
flex: 0 0 280px;
}
.header-actions {
gap: 0.5rem;
}
.btn {
padding: 0.6rem 1rem;
font-size: 0.9rem;
}
}
@media (max-width: 480px) {
.kanban-header h1 {
font-size: 1.5rem;
}
.kanban-container {
padding: 0 0.5rem;
gap: 0.5rem;
}
.kanban-column {
flex: 0 0 250px;
}
.header-actions {
flex-direction: column;
}
.btn {
width: 100%;
}
}