|
27 | 27 | display: none; |
28 | 28 | } |
29 | 29 |
|
30 | | - #todo-list > *:first-child { |
31 | | - |
32 | | - .prpl-suggested-task { |
33 | | - border: 1px solid #796da2; |
34 | | - background-color: #f6f7f9; |
35 | | - |
36 | | - .prpl-suggested-task-points-wrapper { |
37 | | - |
38 | | - &::after { |
39 | | - content: ""; |
40 | | - display: inline-block; |
41 | | - width: 24px; |
42 | | - height: 24px; |
43 | | - background-image: url("../../images/icon_progress_planner.svg"); |
44 | | - background-size: contain; |
45 | | - background-repeat: no-repeat; |
46 | | - } |
| 30 | + #todo-list > .prpl-suggested-task:first-child { |
| 31 | + |
| 32 | + border: 1px solid #796da2; |
| 33 | + background-color: #f6f7f9; |
| 34 | + |
| 35 | + .prpl-suggested-task-points-wrapper { |
| 36 | + |
| 37 | + &::after { |
| 38 | + content: ""; |
| 39 | + display: inline-block; |
| 40 | + width: 24px; |
| 41 | + height: 24px; |
| 42 | + background-image: url("../../images/icon_progress_planner.svg"); |
| 43 | + background-size: contain; |
| 44 | + background-repeat: no-repeat; |
47 | 45 | } |
48 | 46 | } |
49 | 47 | } |
|
155 | 153 | text-decoration: line-through; |
156 | 154 | } |
157 | 155 |
|
158 | | - .prpl-move-buttons, |
| 156 | + .prpl-suggested-task-actions-wrapper, |
| 157 | + .prpl-move-buttons-wrapper, |
159 | 158 | button[data-action="complete"] { |
160 | 159 | display: none; |
161 | 160 | } |
|
192 | 191 | &:not(:has(.prpl-suggested-task)) { |
193 | 192 | display: none; |
194 | 193 | } |
| 194 | + |
| 195 | + #todo-list-completed-delete-all-wrapper { |
| 196 | + margin: 0.25rem 0.5rem 0.75rem 0.5rem; |
| 197 | + border-top: 1px solid var(--prpl-color-gray-2); |
| 198 | + display: none; |
| 199 | + |
| 200 | + #todo-list-completed-delete-all { |
| 201 | + display: flex; |
| 202 | + align-items: center; |
| 203 | + gap: 0.5rem; |
| 204 | + background-color: transparent; |
| 205 | + border: none; |
| 206 | + padding: 0; |
| 207 | + margin: 0.5rem 0 0 0; |
| 208 | + cursor: pointer; |
| 209 | + color: var(--prpl-color-link); |
| 210 | + font-size: var(--prpl-font-size-small); |
| 211 | + |
| 212 | + &:hover { |
| 213 | + |
| 214 | + svg path { |
| 215 | + fill: var(--prpl-color-accent-red); |
| 216 | + } |
| 217 | + } |
| 218 | + |
| 219 | + } |
| 220 | + } |
| 221 | + |
| 222 | + /* Show the delete all button if there are at least 3 completed tasks */ |
| 223 | + &:has(.prpl-suggested-task:nth-of-type(3)) #todo-list-completed-delete-all-wrapper { |
| 224 | + display: block; |
| 225 | + } |
| 226 | + |
| 227 | + .prpl-suggested-task-points-wrapper { |
| 228 | + position: relative; |
| 229 | + } |
| 230 | + |
| 231 | + .prpl-suggested-task-points { |
| 232 | + position: absolute; |
| 233 | + right: 0; |
| 234 | + transition: all 0.3s ease-in-out; |
| 235 | + color: #38296d; |
| 236 | + background-color: #d1d5db; |
| 237 | + } |
| 238 | + |
| 239 | + .prpl-suggested-task-button { |
| 240 | + |
| 241 | + &.trash { |
| 242 | + display: none; |
| 243 | + margin-left: auto; |
| 244 | + flex-shrink: 0; |
| 245 | + width: 1.25rem; |
| 246 | + height: 1.25rem; |
| 247 | + opacity: 0; |
| 248 | + transition: opacity 0.3s ease-in-out; |
| 249 | + |
| 250 | + &:hover { |
| 251 | + |
| 252 | + svg path { |
| 253 | + fill: var(--prpl-color-accent-red); |
| 254 | + } |
| 255 | + } |
| 256 | + } |
| 257 | + } |
| 258 | + |
| 259 | + .prpl-suggested-task:hover { |
| 260 | + |
| 261 | + .prpl-suggested-task-points { |
| 262 | + right: 100%; |
| 263 | + transform: translateX(100%); |
| 264 | + } |
| 265 | + |
| 266 | + .prpl-suggested-task-button { |
| 267 | + display: inline-block; |
| 268 | + opacity: 1; |
| 269 | + } |
| 270 | + } |
195 | 271 | } |
196 | 272 |
|
197 | 273 | #todo-list { |
|
212 | 288 | } |
213 | 289 | } |
214 | 290 | } |
| 291 | + |
| 292 | + |
| 293 | +#todo-list-completed-delete-all-popover { |
| 294 | + max-width: 600px; |
| 295 | + |
| 296 | + .prpl-note { |
| 297 | + margin-bottom: 1rem; |
| 298 | + display: flex; |
| 299 | + align-items: flex-start; |
| 300 | + gap: 0.5rem; |
| 301 | + padding: 0.75rem; |
| 302 | + color: #854d0e; |
| 303 | + font-size: var(--prpl-font-size-small); |
| 304 | + border-radius: 6px; |
| 305 | + background-color: #fefce8; |
| 306 | + |
| 307 | + .prpl-note-icon { |
| 308 | + display: flex; |
| 309 | + flex-shrink: 0; |
| 310 | + align-items: center; |
| 311 | + justify-content: center; |
| 312 | + width: 20px; |
| 313 | + height: 20px; |
| 314 | + color: #eab308; |
| 315 | + |
| 316 | + svg { |
| 317 | + width: 100%; |
| 318 | + height: 100%; |
| 319 | + } |
| 320 | + } |
| 321 | + |
| 322 | + &.prpl-note-error { |
| 323 | + color: #9f0712; |
| 324 | + background-color: var(--prpl-background-red); |
| 325 | + |
| 326 | + .prpl-note-icon { |
| 327 | + color: var(--prpl-color-notification-red); |
| 328 | + } |
| 329 | + |
| 330 | + } |
| 331 | + } |
| 332 | + |
| 333 | + .prpl-buttons-wrapper { |
| 334 | + display: flex; |
| 335 | + gap: 2rem; |
| 336 | + |
| 337 | + button { |
| 338 | + background-color: transparent; |
| 339 | + border: none; |
| 340 | + color: var(--prpl-color-link); |
| 341 | + font-size: var(--prpl-font-size-small); |
| 342 | + padding: 0; |
| 343 | + margin: 0; |
| 344 | + cursor: pointer; |
| 345 | + text-decoration: underline; |
| 346 | + } |
| 347 | + } |
| 348 | +} |
0 commit comments