Style date/datetime/time input picker icon to match design system
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -513,6 +513,25 @@
|
|||||||
.textarea::placeholder {
|
.textarea::placeholder {
|
||||||
color: var(--ink-4);
|
color: var(--ink-4);
|
||||||
}
|
}
|
||||||
|
input.input[type="date"],
|
||||||
|
input.input[type="datetime-local"],
|
||||||
|
input.input[type="time"] {
|
||||||
|
color-scheme: light;
|
||||||
|
}
|
||||||
|
input.input[type="date"]::-webkit-calendar-picker-indicator,
|
||||||
|
input.input[type="datetime-local"]::-webkit-calendar-picker-indicator,
|
||||||
|
input.input[type="time"]::-webkit-calendar-picker-indicator {
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: 6px;
|
||||||
|
filter: invert(36%) sepia(74%) saturate(1879%) hue-rotate(166deg) brightness(93%) contrast(101%);
|
||||||
|
transition: background 0.15s;
|
||||||
|
}
|
||||||
|
input.input[type="date"]::-webkit-calendar-picker-indicator:hover,
|
||||||
|
input.input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
|
||||||
|
input.input[type="time"]::-webkit-calendar-picker-indicator:hover {
|
||||||
|
background: var(--m-blue-soft);
|
||||||
|
}
|
||||||
@media (max-width: 959px) {
|
@media (max-width: 959px) {
|
||||||
.input,
|
.input,
|
||||||
.select,
|
.select,
|
||||||
|
|||||||
Reference in New Issue
Block a user