Skip to content

Commit 863fdc6

Browse files
committed
fix: improve comparison form controls in dark mode
1 parent 0ab2427 commit 863fdc6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

app/modules/comparison/static/style.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,37 @@
4343
font-family: inherit;
4444
width: 100%;
4545
box-sizing: border-box;
46+
min-height: 44px;
47+
}
48+
49+
.comparison-select {
50+
appearance: none;
51+
padding-right: 38px;
52+
cursor: pointer;
53+
color-scheme: dark;
54+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
55+
background-repeat: no-repeat;
56+
background-position: right 12px center;
57+
}
58+
59+
.comparison-select option {
60+
background: var(--surface, #111827);
61+
color: var(--text, #e5e7eb);
62+
}
63+
64+
.comparison-input[type="datetime-local"] {
65+
padding-right: 44px;
66+
color-scheme: dark;
67+
}
68+
69+
[data-theme="light"] .comparison-select,
70+
[data-theme="light"] .comparison-input[type="datetime-local"] {
71+
color-scheme: light;
72+
}
73+
74+
.comparison-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
75+
cursor: pointer;
76+
opacity: 0.85;
4677
}
4778

4879
.comparison-select:focus,

0 commit comments

Comments
 (0)