feat: add "input type=color" style (#3789)

This commit is contained in:
Domenico Tenace 2024-08-31 19:05:09 +02:00
parent 5c09f18f5f
commit 15cc6625c3

View File

@ -169,6 +169,25 @@ $input-radius: cv.getVar("radius") !default;
color: cv.getVar("input-disabled-placeholder-color"); color: cv.getVar("input-disabled-placeholder-color");
} }
} }
&[type="color"] {
width: cv.getVar("input-height");
min-width: cv.getVar("input-height");
max-width: cv.getVar("input-height");
margin: 0;
padding: 0;
overflow: hidden;
&::-webkit-color-swatch-wrapper {
margin: 0;
padding: 0;
}
&::-webkit-color-swatch {
margin: 0;
padding: 0;
border: none;
}
}
} }
%input { %input {