Add styling for color pickers

Note that no color picker elements are currently in use, this is for
completeness.
This commit is contained in:
Samuel Mannehed 2025-01-13 00:28:10 +01:00
parent 54e76817df
commit 2bc505741f

View File

@ -209,6 +209,28 @@ input[type=submit] {
overflow: clip;
}
/* ------- COLOR PICKERS ------- */
input[type=color] {
min-width: unset;
box-sizing: content-box;
width: 1.4em;
height: 1.4em;
}
input[type=color]::-webkit-color-swatch-wrapper {
padding: 0;
}
/* -webkit-color-swatch & -moz-color-swatch cant be in a selector list:
https://bugs.chromium.org/p/chromium/issues/detail?id=1154623 */
input[type=color]::-webkit-color-swatch {
border: none;
border-radius: 6px;
}
input[type=color]::-moz-color-swatch {
border: none;
border-radius: 6px;
}
/* -- SHARED BETWEEN CHECKBOXES AND RADIOBUTTONS -- */
input[type=radio],