Skip to content

Commit 28b070c

Browse files
committed
Improved visual cues for selected presets (issue #235, thanks @unsungNovelty for report).
1 parent d7e785c commit 28b070c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ui/ui.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,12 @@ html:not(.mobile) .sites > tr.site:not(.customizing):is(:focus-within, :hover) {
208208

209209
.sites > tr.site:nth-of-type(even):not(.customizing) {
210210
background-color: var(--bg-even-row);
211+
--bg-preset-color: var(--bg-odd-row);
211212
}
212213

213214
.sites > tr.site:nth-of-type(odd):not(.customizing) {
214215
background-color: var(--bg-odd-row);
216+
--bg-preset-color: var(--bg-even-row);
215217
}
216218

217219

@@ -338,6 +340,7 @@ span.preset {
338340
opacity: 1;
339341
transform: none;
340342
min-width: calc(var(--preset-label-width) + var(--line-size) + var(--extra-preset-width));
343+
filter: drop-shadow(0px 0px 1px var(--fg-color2));
341344
}
342345

343346
.presets input.preset:focus {
@@ -448,6 +451,7 @@ input.preset:checked ~ input.temp {
448451
.customizing input.preset:checked, #presets input.preset:checked {
449452
background-color: var(--form-color2);
450453
height: calc(var(--line-size) + 0.2em);
454+
filter: none;
451455
}
452456

453457
.customizer fieldset {
@@ -469,13 +473,15 @@ input.preset:checked ~ input.temp {
469473
border-radius: 1em 1em 0 0;
470474
background-position: 0.5em 0;
471475
--extra-preset-width: 0px;
476+
filter: none;
472477
}
473478

474479
#presets .customizing input.preset:not(:checked) {
475480
margin-bottom: 0;
481+
box-shadow: 0 0 1px var(--form-color2);
476482
}
477483

478-
.sites .customizing, .customizer {
484+
:not(#presets) > .sites .customizing, .customizer {
479485
background-color: var(--tab-color2) !important;
480486
}
481487

0 commit comments

Comments
 (0)