|
40 | 40 | display: flex; |
41 | 41 | flex-wrap: wrap; |
42 | 42 | justify-content: space-between; |
43 | | - align-items: center; |
| 43 | + align-items: end; |
44 | 44 | gap: 1.5rem; |
45 | 45 | row-gap: 0.75rem; |
46 | 46 | } |
47 | 47 |
|
48 | | -#platform-filters { |
49 | | - display: flex; /* Flexbox does not work with <fieldset> due to a bug */ |
50 | | - flex-wrap: wrap; |
51 | | - gap: 0.8rem; |
52 | | - row-gap: 0.2rem; |
53 | | -} |
54 | | - |
55 | | -#platform-filters .legend { |
| 48 | +#table-actions legend { |
56 | 49 | font-weight: 600; |
57 | 50 | } |
58 | 51 |
|
59 | | -#platform-filter-options { |
60 | | - display: flex; |
61 | | - flex-wrap: wrap; |
62 | | - gap: 1rem; |
63 | | - row-gap: 0.2rem; |
64 | | -} |
65 | | - |
66 | | -/* Threshold should be revised when categories change. */ |
67 | | -@media (max-width: 24em) { |
68 | | - #platform-filter-options { |
69 | | - flex-direction: column; |
70 | | - } |
| 52 | +#platform-filters { |
| 53 | + display: flex; /* Flexbox does not work with <fieldset> due to a bug */ |
| 54 | + flex-direction: column; |
| 55 | + gap: 0.2rem; |
| 56 | + margin-top: 0.2rem; |
71 | 57 | } |
72 | 58 |
|
73 | 59 | .platform-filter { |
74 | 60 | flex: 1 1 auto; |
75 | 61 | display: flex; |
76 | 62 | align-items: center; |
77 | | - gap: 4px; |
| 63 | + gap: 6px; |
78 | 64 | user-select: none; |
79 | 65 | } |
80 | 66 |
|
|
86 | 72 | margin-top: 2px; /* Align checkbox with label */ |
87 | 73 | } |
88 | 74 |
|
| 75 | +/* Style as button groups on desktop. Threshold should be revised when categories change. */ |
| 76 | +@media (min-width: 50rem) { |
| 77 | + #table-actions { |
| 78 | + align-items: center; |
| 79 | + } |
| 80 | + |
| 81 | + #table-actions legend { |
| 82 | + /* Visually hidden */ |
| 83 | + position: absolute; |
| 84 | + width: 1px; |
| 85 | + height: 1px; |
| 86 | + padding: 0; |
| 87 | + margin: -1px; |
| 88 | + border: none; |
| 89 | + white-space: nowrap; |
| 90 | + overflow: hidden; |
| 91 | + clip: rect(0, 0, 0, 0); |
| 92 | + } |
| 93 | + |
| 94 | + #platform-filters { |
| 95 | + flex-direction: row; |
| 96 | + gap: 0; |
| 97 | + max-width: 95vw; |
| 98 | + overflow: auto visible; |
| 99 | + background-color: var(--color-bg-secondary); |
| 100 | + } |
| 101 | + |
| 102 | + .platform-filter { |
| 103 | + font-size: 0.95rem; |
| 104 | + padding: 0.3rem 0.75rem; |
| 105 | + padding-inline-start: 0.6rem; |
| 106 | + gap: 0.6rem; |
| 107 | + min-width: max-content; |
| 108 | + |
| 109 | + --border: 1px solid var(--color-border); |
| 110 | + border: var(--border); |
| 111 | + } |
| 112 | + |
| 113 | + .platform-filter:first-of-type { |
| 114 | + border-top-left-radius: 4px; |
| 115 | + border-bottom-left-radius: 4px; |
| 116 | + } |
| 117 | + |
| 118 | + .platform-filter:last-of-type { |
| 119 | + border-top-right-radius: 4px; |
| 120 | + border-bottom-right-radius: 4px; |
| 121 | + } |
| 122 | + |
| 123 | + .platform-filter > input { |
| 124 | + transform: scale(1.05); |
| 125 | + } |
| 126 | + |
| 127 | + .platform-filter:has(input:checked) { |
| 128 | + --color-border: var(--color-border-primary); |
| 129 | + } |
| 130 | + |
| 131 | + /* Combo 1: checked|R| + |L|checked => hide |L| border */ |
| 132 | + /* Combo 2: any|R| + |L|unchecked => hide |L| border */ |
| 133 | + .platform-filter:has(input:checked) + .platform-filter:has(input:checked), |
| 134 | + .platform-filter + .platform-filter:has(input:not(:checked)) { |
| 135 | + border-left: none; |
| 136 | + } |
| 137 | + |
| 138 | + /* Combo 3: unchecked|R| + |L|checked => hide |R| border */ |
| 139 | + .platform-filter:has(input:not(:checked)):has( |
| 140 | + + .platform-filter > input:checked |
| 141 | + ) { |
| 142 | + border-right: none; |
| 143 | + } |
| 144 | + |
| 145 | + .platform-filter:has(input:focus-visible) { |
| 146 | + box-shadow: inset 0 0 0 0.25rem rgb(57 177 255 / 50%); |
| 147 | + } |
| 148 | +} |
| 149 | + |
89 | 150 | #feature-scroll { |
90 | 151 | width: max-content; |
91 | 152 | min-width: 100%; |
92 | 153 | max-width: 95vw; |
93 | 154 | margin: 0 50%; |
94 | | - margin-top: 0.75rem; |
| 155 | + margin-top: 0.85rem; |
95 | 156 | transform: translateX(-50%); |
96 | 157 | overflow-x: auto; |
97 | 158 | } |
@@ -197,7 +258,7 @@ button.cell { |
197 | 258 | } |
198 | 259 |
|
199 | 260 | button.cell:hover { |
200 | | - background: var(--color-highlight-bg); |
| 261 | + background: var(--color-bg-highlight); |
201 | 262 | } |
202 | 263 |
|
203 | 264 | button.cell[aria-expanded='true'] { |
|
0 commit comments