Skip to content

Commit b22db63

Browse files
committed
redesign
1 parent 8accdb0 commit b22db63

File tree

7 files changed

+640
-36
lines changed

7 files changed

+640
-36
lines changed

resources/css/flowforge.css

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,123 @@
3535
transform: translateX(0);
3636
}
3737
}
38+
39+
@layer base {
40+
:root {
41+
--kanban-column-bg: theme('colors.gray.100');
42+
--kanban-column-header: theme('colors.gray.700');
43+
--kanban-column-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
44+
45+
--kanban-card-bg: theme('colors.white');
46+
--kanban-card-hover: theme('colors.gray.50');
47+
--kanban-card-shadow-normal: 0 2px 4px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.06);
48+
--kanban-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.03);
49+
}
50+
51+
.dark {
52+
--kanban-column-bg: rgba(31, 41, 55, 0.8);
53+
--kanban-column-header: theme('colors.gray.200');
54+
--kanban-column-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
55+
56+
--kanban-card-bg: rgba(43, 55, 73, 0.95);
57+
--kanban-card-hover: rgba(55, 65, 81, 0.95);
58+
--kanban-card-shadow-normal: 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.3);
59+
--kanban-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
60+
}
61+
}
62+
63+
/* Kanban Board Layout */
64+
.kanban-board {
65+
scrollbar-width: thin;
66+
scrollbar-color: theme('colors.gray.300') transparent;
67+
}
68+
69+
.kanban-board::-webkit-scrollbar {
70+
height: 6px;
71+
}
72+
73+
.kanban-board::-webkit-scrollbar-track {
74+
background: transparent;
75+
}
76+
77+
.kanban-board::-webkit-scrollbar-thumb {
78+
background-color: theme('colors.gray.300');
79+
border-radius: 10px;
80+
}
81+
82+
.dark .kanban-board::-webkit-scrollbar-thumb {
83+
background-color: theme('colors.gray.600');
84+
}
85+
86+
/* Column Styles */
87+
.kanban-column {
88+
backdrop-filter: blur(3px);
89+
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
90+
}
91+
92+
.kanban-column-header {
93+
position: relative;
94+
}
95+
96+
.kanban-column-header::after {
97+
content: '';
98+
position: absolute;
99+
height: 3px;
100+
width: 40px;
101+
left: 0.75rem;
102+
bottom: -6px;
103+
background: theme('colors.primary.500');
104+
border-radius: 3px;
105+
opacity: 0.7;
106+
}
107+
108+
/* Card Styles */
109+
.kanban-card {
110+
transition-property: box-shadow, transform, background-color;
111+
transition-duration: 200ms;
112+
transition-timing-function: ease-in-out;
113+
backface-visibility: hidden;
114+
transform: translateZ(0);
115+
border-left: 3px solid transparent;
116+
}
117+
118+
.kanban-card.priority-high {
119+
border-left-color: theme('colors.red.500');
120+
}
121+
122+
.kanban-card.priority-medium {
123+
border-left-color: theme('colors.amber.500');
124+
}
125+
126+
.kanban-card.priority-low {
127+
border-left-color: theme('colors.green.500');
128+
}
129+
130+
/* Card Badge Styles */
131+
.kanban-card-badge {
132+
@apply text-xs font-medium px-2 py-0.5 rounded-full;
133+
}
134+
135+
/* Empty States */
136+
.kanban-empty-column {
137+
opacity: 0.7;
138+
transition: opacity 0.2s ease-in-out;
139+
}
140+
141+
.kanban-empty-column:hover {
142+
opacity: 1;
143+
}
144+
145+
/* Drag Handle */
146+
.kanban-drag-handle {
147+
@apply opacity-0 transition-opacity group-hover:opacity-70 hover:opacity-100;
148+
}
149+
150+
/* Loading State */
151+
.kanban-loading-indicator {
152+
@apply flex items-center justify-center h-full w-full;
153+
}
154+
155+
.kanban-loading-shimmer {
156+
@apply animate-pulse rounded-md bg-gray-200 dark:bg-gray-700;
157+
}

0 commit comments

Comments
 (0)