| 1 | body { |
| 2 | font-family: system-ui; |
| 3 | color-scheme: light dark; |
| 4 | } |
| 5 | |
| 6 | form { |
| 7 | display: grid; |
| 8 | grid-template-columns: auto 1fr; |
| 9 | flex-direction: column; |
| 10 | max-width: 400px; |
| 11 | gap: 8px; |
| 12 | } |
| 13 | |
| 14 | label { |
| 15 | display: contents; |
| 16 | } |
| 17 | |
| 18 | main { |
| 19 | display: flex; |
| 20 | gap: 32px; |
| 21 | } |
| 22 | |
| 23 | .todo-column { |
| 24 | width: 250px; |
| 25 | } |
| 26 | |
| 27 | header { |
| 28 | display: flex; |
| 29 | align-items: center; |
| 30 | justify-content: space-between; |
| 31 | max-width: 250px; |
| 32 | padding: 8px; |
| 33 | padding-right: 40px; |
| 34 | box-sizing: border-box; |
| 35 | } |
| 36 | |
| 37 | .todo-list { |
| 38 | max-width: 250px; |
| 39 | padding: 0; |
| 40 | list-style: none; |
| 41 | padding-right: 32px; |
| 42 | border-right: 1px solid gray; |
| 43 | |
| 44 | li { |
| 45 | display: flex; |
| 46 | gap: 8px; |
| 47 | padding: 8px; |
| 48 | border-radius: 8px; |
| 49 | accent-color: light-dark(black, white); |
| 50 | |
| 51 | a { |
| 52 | color: inherit; |
| 53 | text-decoration: none; |
| 54 | width: 100%; |
| 55 | } |
| 56 | |
| 57 | &[data-selected] { |
| 58 | background-color: light-dark(#222, #ddd); |
| 59 | color: light-dark(#ddd, #222); |
| 60 | accent-color: light-dark(white, black); |
| 61 | } |
| 62 | } |
| 63 | } |