Spaces:
Running on Zero
Running on Zero
Per-position accent borders on the use-case pills
Browse files- static/style.css +14 -0
static/style.css
CHANGED
|
@@ -234,6 +234,20 @@ textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
|
|
| 234 |
.uc-pill.active .pic { color: var(--accent); }
|
| 235 |
.uc-cat .ic { font-size: 14px; color: var(--text-muted); }
|
| 236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
/* Disclosure (advanced / accordions) */
|
| 238 |
details.disc {
|
| 239 |
border: 1px solid var(--border); border-radius: var(--r-md);
|
|
|
|
| 234 |
.uc-pill.active .pic { color: var(--accent); }
|
| 235 |
.uc-cat .ic { font-size: 14px; color: var(--text-muted); }
|
| 236 |
|
| 237 |
+
/* Same coloured-boundary treatment as the segmented rows: each position in a
|
| 238 |
+
group gets its own accent when selected (palette cycles past 6 items). */
|
| 239 |
+
.uc-grid .uc-pill:nth-child(6n+1) { --segc: #60A5FA; }
|
| 240 |
+
.uc-grid .uc-pill:nth-child(6n+2) { --segc: #4ADE80; }
|
| 241 |
+
.uc-grid .uc-pill:nth-child(6n+3) { --segc: #F472B6; }
|
| 242 |
+
.uc-grid .uc-pill:nth-child(6n+4) { --segc: #FBBF24; }
|
| 243 |
+
.uc-grid .uc-pill:nth-child(6n+5) { --segc: #2DD4BF; }
|
| 244 |
+
.uc-grid .uc-pill:nth-child(6n) { --segc: #C084FC; }
|
| 245 |
+
.uc-pill.active {
|
| 246 |
+
border-color: var(--segc, var(--accent));
|
| 247 |
+
background: color-mix(in srgb, var(--segc, var(--accent)) 13%, transparent);
|
| 248 |
+
}
|
| 249 |
+
.uc-pill.active .pic { color: var(--segc, var(--accent)); }
|
| 250 |
+
|
| 251 |
/* Disclosure (advanced / accordions) */
|
| 252 |
details.disc {
|
| 253 |
border: 1px solid var(--border); border-radius: var(--r-md);
|