|
4 | 4 | height: 100%; |
5 | 5 | display: flex; |
6 | 6 | flex-direction: column; |
7 | | - align-items: stretch; /* stretch title and list to full width */ |
| 7 | + align-items: stretch; /* stretch title and list to full width */ |
8 | 8 | justify-content: flex-start; |
9 | 9 | padding: 12px; |
10 | 10 | box-sizing: border-box; |
11 | 11 | overflow: hidden; |
12 | | - |
13 | | - /* Card style */ |
14 | | - background-color: #ffffff; /* white card */ |
15 | | - border-radius: 12px; /* rounded corners */ |
16 | | - box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* subtle shadow */ |
17 | | - border: 1px solid #e0e0e0; /* light border for card separation */ |
18 | 12 | } |
19 | 13 |
|
20 | 14 | /* Title at the top */ |
21 | 15 | .title { |
22 | 16 | font-size: 1.2rem; |
23 | 17 | font-weight: 700; |
24 | 18 | margin-bottom: 10px; |
25 | | - color: #000; |
| 19 | + color: #fffc; |
26 | 20 | text-align: center; |
27 | 21 | } |
28 | 22 |
|
29 | 23 | /* Task list */ |
30 | 24 | .todo-list { |
31 | | - list-style: none; /* remove default bullets */ |
| 25 | + list-style: none; /* remove default bullets */ |
32 | 26 | padding: 0; |
33 | 27 | margin: 0 0 10px 0; |
34 | | - flex: 1; /* fill available space */ |
35 | | - overflow-y: auto; /* scroll if too many tasks */ |
| 28 | + flex: 1; /* fill available space */ |
| 29 | + overflow-y: auto; /* scroll if too many tasks */ |
36 | 30 | } |
37 | 31 |
|
38 | 32 | /* Each task item */ |
|
41 | 35 | justify-content: space-between; |
42 | 36 | align-items: center; |
43 | 37 | padding: 6px 8px; |
44 | | - border-bottom: 1px solid #f0f0f0; |
| 38 | + border-bottom: 1px solid #fff4; |
| 39 | + border-radius: 4px; |
45 | 40 | cursor: pointer; |
46 | 41 | transition: background 0.2s; |
47 | 42 | } |
48 | 43 |
|
49 | 44 | .todo-list li:hover { |
50 | | - background-color: #f9f9f9; /* subtle hover effect */ |
| 45 | + background-color: #fff2; /* subtle hover effect */ |
51 | 46 | } |
52 | 47 |
|
53 | 48 | /* Bullet point before task */ |
54 | 49 | .todo-list li span::before { |
55 | 50 | content: "•"; |
56 | | - color: #4CAF50; |
| 51 | + color: #fff8; |
57 | 52 | display: inline-block; |
58 | 53 | width: 1em; |
59 | 54 | margin-right: 6px; |
60 | | - font-size: 1.3rem; /* bigger bullet */ |
| 55 | + font-size: 1.3rem; /* bigger bullet */ |
61 | 56 | line-height: 1; |
62 | 57 | vertical-align: middle; |
63 | 58 | } |
64 | 59 |
|
65 | 60 | /* Task text */ |
66 | 61 | .todo-list li span { |
67 | | - color: #000; /* black text */ |
68 | | - flex: 1; /* fill available width */ |
| 62 | + color: #fffc; /* black text */ |
| 63 | + flex: 1; /* fill available width */ |
69 | 64 | } |
70 | 65 |
|
71 | 66 | /* Completed task style */ |
|
76 | 71 |
|
77 | 72 | /* Checkmark delete button */ |
78 | 73 | .delete-task { |
79 | | - background: transparent; /* empty square */ |
80 | | - border: 2px solid #4CAF50; /* green border */ |
81 | | - color: #4CAF50; /* green checkmark */ |
| 74 | + background: transparent; /* empty square */ |
| 75 | + border: 2px solid #fff4; /* green border */ |
| 76 | + color: #fff8; /* green checkmark */ |
82 | 77 | border-radius: 4px; |
83 | 78 | width: 22px; |
84 | 79 | height: 22px; |
|
90 | 85 | justify-content: center; |
91 | 86 | padding: 0; |
92 | 87 | line-height: 1; |
93 | | - transition: background 0.2s, color 0.2s; |
| 88 | + transition: |
| 89 | + background 0.2s, |
| 90 | + color 0.2s; |
94 | 91 | } |
95 | 92 |
|
96 | 93 | .delete-task:hover { |
97 | | - background: #e6f4ea; /* light green background on hover */ |
| 94 | + background: #fff4; /* light green background on hover */ |
98 | 95 | } |
99 | 96 |
|
100 | 97 | /* Input container */ |
|
107 | 104 | .todo-input-container input { |
108 | 105 | flex: 1; |
109 | 106 | padding: 6px 8px; |
110 | | - border: 1px solid #ccc; |
111 | 107 | border-radius: 6px; |
112 | 108 | font-size: 0.95rem; |
| 109 | + color: #fffc; |
113 | 110 | outline: none; |
114 | 111 | transition: border-color 0.2s; |
115 | 112 | } |
116 | 113 |
|
117 | 114 | .todo-input-container input:focus { |
118 | | - border-color: #4CAF50; /* green accent on focus */ |
| 115 | + border-color: #fff4; /* green accent on focus */ |
119 | 116 | } |
120 | 117 |
|
121 | 118 | .todo-input-container button { |
122 | 119 | padding: 6px 12px; |
123 | | - border: none; |
| 120 | + border: 1px solid #fff2; |
124 | 121 | border-radius: 6px; |
125 | | - background-color: #4CAF50; |
| 122 | + background-color: #fff4; |
126 | 123 | color: #fff; |
127 | 124 | font-weight: 600; |
128 | 125 | cursor: pointer; |
129 | 126 | transition: background 0.2s; |
130 | 127 | } |
131 | 128 |
|
132 | 129 | .todo-input-container button:hover { |
133 | | - background-color: #43a047; |
| 130 | + background-color: #fff6; |
134 | 131 | } |
0 commit comments