Implemented custom select controls because apple hates web developers

They'd rather keep pushing their 2007 era strange form control styles
even though they're horribly outdated, ugly and hard to style. The
only way to override is a full nuking of the default styles, which means
we have to then implement the frigging arrow icon using hacks which would
then conflict with all other sensible browsers so we have to nuke their
styles aswell to ensure some stupid backgroud hack is used everywhere.

I bet apple don't even use their shite default control styles and nuke
them also, Lets see. Yup, First thing I see on the top of their homepage
is a locale select dropdown custom built from about 10 HTML elements. FML

For #2709
This commit is contained in:
Dan Brown 2021-04-27 21:35:42 +01:00
parent 83b576eb19
commit aa6a752e38
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -196,6 +196,16 @@ input[type="color"], input[type="password"], select, textarea {
@extend .input-base;
}
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23666666'><polygon points='0,0 100,0 50,50'/></svg>");
background-size: 12px;
background-position: calc(100% - 20px) 70%;
background-repeat: no-repeat;
}
input[type=date] {
width: 190px;
}