-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
397 lines (358 loc) · 11.4 KB
/
style.css
File metadata and controls
397 lines (358 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
max-width: 100%;
overflow-x: hidden;
touch-action: pan-y;
margin: 0;
}
/* Header styles */
#app-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
margin-bottom: 15px;
background-color: #f8f9fa;
border-bottom: 1px solid #dee2e6;
position: sticky;
top: 0;
z-index: 100;
}
#settings-btn, .column-selector-btn {
padding: 10px 15px;
font-size: 1.2rem;
cursor: pointer;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 150px;
}
/* Special styling for board selector button */
#board-selector-btn {
padding: 5px 10px;
font-size: 0.8rem;
line-height: 1.2;
cursor: pointer;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
white-space: normal; /* Allow text to wrap */
overflow: hidden;
max-width: 100px;
height: auto;
min-height: 40px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
/* Column selector styles */
.column-selector-btn {
position: relative;
white-space: nowrap;
transition: all 0.2s ease;
}
/* Dropzone states */
.column-selector-btn.drop-active {
border-color: #aaa;
background-color: #f8f8f8;
}
.column-selector-btn.highlight,
.column-selector-btn.drop-target {
background-color: #e7f3ff;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.column-selector-dropdown {
display: none;
position: absolute;
background-color: white;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
width: max-content;
min-width: 150px;
max-height: 300px;
overflow-y: auto;
}
.column-selector-dropdown.active {
display: block;
}
.column-selector-item {
padding: 10px 15px;
cursor: pointer;
border-bottom: 1px solid #eee;
transition: background-color 0.2s;
user-select: none;
}
.column-selector-item:last-child {
border-bottom: none;
}
.column-selector-item:hover {
background-color: #e7f3ff;
}
.column-selector-item.drop-target {
background-color: #cce5ff;
border: 2px dashed #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
transform: scale(1.03);
transition: all 0.2s ease;
}
.column-selector-item.drop-active {
background-color: #f0f0f0;
}
/* Board selector dropdown styles */
.board-selector-dropdown {
display: none;
position: absolute;
background-color: white;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
width: max-content;
min-width: 150px;
max-height: 300px;
overflow-y: auto;
}
.board-selector-dropdown.active {
display: block;
}
.board-selector-item {
padding: 10px 15px;
cursor: pointer;
border-bottom: 1px solid #eee;
transition: background-color 0.2s;
user-select: none;
}
.board-selector-item:last-child {
border-bottom: none;
}
.board-selector-item:hover {
background-color: #e7f3ff;
}
.board-selector-item.current {
background-color: #e7f3ff;
font-weight: bold;
position: relative;
}
.board-selector-item.current::after {
content: '✓';
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
color: #007bff;
}
/* Mobile board container */
#board-container {
display: flex;
align-items: stretch;
width: 100%;
position: relative;
min-height: 70vh;
touch-action: pan-x pan-y; /* Allow both horizontal and vertical scrolling */
box-sizing: border-box;
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
#current-column {
flex: 1;
display: flex;
flex-direction: column;
width: 100%;
}
.column-nav-btn {
background-color: rgba(108, 117, 125, 0.8);
color: white;
border: none;
width: 40px;
height: 40px;
font-size: 1.5rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
transition: background-color 0.2s;
}
.column-nav-btn:hover {
background-color: rgba(90, 98, 104, 0.9);
}
/* Board indicator dots */
.indicator-dots {
display: flex;
justify-content: center;
margin-top: 15px;
gap: 8px;
}
.indicator-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #ced4da;
transition: background-color 0.3s;
}
.indicator-dot.active {
background-color: #007bff;
}
#column-message { width: 100%; text-align: center; color: #6c757d; font-size: 1.1rem; padding: 40px 20px; background-color: #e9ecef; border-radius: 8px; }
.list-column {
flex: 1;
background-color: #e9ecef;
border-radius: 8px;
padding: 15px;
min-height: 300px;
width: 100%;
margin: 0;
box-sizing: border-box;
overflow-y: auto; /* Allow vertical scrolling */
touch-action: pan-y; /* Enable vertical touch scrolling */
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.list-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 2px solid #ced4da; }
.list-column h2 { margin: 0; font-size: 1.2rem; color: #495057; }
.add-item-btn { background-color: #6c757d; color: white; border: none; border-radius: 50%; width: 28px; height: 28px; font-size: 1.2rem; line-height: 28px; text-align: center; cursor: pointer; padding: 0; transition: background-color 0.2s ease; }
.add-item-btn:hover { background-color: #5a6268; }
.sortable-list {
list-style: none;
padding: 0;
margin: 0;
min-height: 100px;
border-radius: 4px;
touch-action: pan-y; /* Enable vertical touch scrolling */
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
overflow-y: auto; /* Allow vertical scrolling */
}
.sortable-item {
padding: 0; /* No padding as content is in the content wrapper */
margin-bottom: 10px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
cursor: default;
user-select: none;
-webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
position: relative; /* Needed for absolute positioning of the drag handle */
min-height: 50px; /* Ensure minimum height */
display: flex; /* Use flexbox for layout */
flex-direction: column; /* Stack children vertically */
overflow: visible; /* Allow content to be visible and scrollable */
touch-action: auto; /* Enable all touch actions by default */
}
.sortable-item.dragging {
cursor: grabbing;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
z-index: 1000;
/* No opacity change needed since we're using a placeholder */
}
/* Drag handle styles - invisible but functional */
.drag-handle {
position: absolute;
top: 0;
left: 0;
width: 30%; /* Takes up only 30% of the item width */
height: 100%;
cursor: grab; /* Show grab cursor on the handle */
touch-action: none; /* Disable touch actions on the handle */
z-index: 1; /* Ensure it's above the content but below dragging items */
border-top-left-radius: 5px; /* Match the item's border radius */
border-bottom-left-radius: 5px; /* Match the item's border radius */
}
/* We're not using scroll-area anymore */
.scroll-area {
display: none;
}
/* Content wrapper styles */
.content-wrapper {
width: 100%;
padding: 15px 20px 15px 40px; /* Extra left padding to avoid text under the drag handle */
box-sizing: border-box;
word-wrap: break-word;
overflow-wrap: break-word;
min-height: 50px;
display: flex;
flex-direction: column;
justify-content: center;
touch-action: auto; /* Enable all touch actions */
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
overflow: auto; /* Allow scrolling when content overflows */
max-height: none; /* No max height restriction */
}
/* Ensure content in wrapper uses full width */
.content-wrapper * {
width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
margin: 0; /* Reset margins to avoid extra space */
}
.drop-placeholder {
margin-bottom: 10px;
background-color: rgba(0, 123, 255, 0.1);
border: 2px dashed #007bff;
border-radius: 5px;
box-sizing: border-box;
pointer-events: none;
}
/* --- Dialog Modal Styles --- */
.modal { padding: 15px; border: none; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); width: 90%; max-width: 450px; max-height: 90vh; overflow-y: auto; }
.modal::backdrop { background-color: rgba(0, 0, 0, 0.6); }
.modal h2 { margin-top: 0; }
.modal-field { margin-bottom: 10px; }
.modal-field label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; }
.modal-field input, .modal-field textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; box-sizing: border-box; }
.modal-field textarea { min-height: 80px; max-height: 30vh; resize: vertical; }
.modal-actions { text-align: right; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.modal-actions-hidden, .modal-content-hidden { display: none; }
.modal-actions button { padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; margin: 0; flex: 0 1 auto; min-width: 80px; }
.modal-note { font-size: 0.8rem; color: #6c757d; margin-top: 20px; border-top: 1px solid #eee; padding-top: 10px; }
/* --- Edit Dialog Specific Styles --- */
#edit-modal { max-width: 95%; }
#edit-modal:modal { display: flex; flex-direction: column; }
#modal-save-btn { background-color: #007bff; color: white; }
#modal-save-btn:hover { background-color: #0069d9; }
#modal-delete-btn { background-color: #dc3545; color: white; margin-right: auto; }
#modal-delete-btn:hover { background-color: #c82333; }
/* NEW: Styles for the formatted content display */
#modal-content-display {
width: 100%;
min-height: 100px;
max-height: 30vh;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: #f0f0f0;
font-family: inherit;
font-size: 1rem;
box-sizing: border-box;
overflow-y: auto;
}
#edit-modal #modal-content-textarea { min-height: 100px; max-height: 30vh; }
/* NEW: Styles for generated markdown elements */
#modal-content-display h1, #modal-content-display h2, #modal-content-display h3, #modal-content-display h4, #modal-content-display h5, #modal-content-display h6 {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
#modal-content-display p { margin: 0 0 1em 0; }
#modal-content-display p:last-child { margin-bottom: 0; }
#modal-content-display ul {
margin: 0 0 1em 0;
padding-left: 20px;
}
/* Responsive styles for small screens */
@media screen and (max-width: 480px) {
.modal { padding: 12px; width: 95%; }
.modal h2 { font-size: 1.2rem; margin-bottom: 10px; }
.modal-field label { font-size: 0.9rem; margin-bottom: 3px; }
.modal-field input, .modal-field textarea { padding: 8px; font-size: 0.95rem; }
.modal-actions button { padding: 8px 12px; font-size: 0.95rem; }
#modal-content-display, #edit-modal #modal-content-textarea { max-height: 25vh; }
}