mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-29 13:42:38 +00:00
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:
parent
83b576eb19
commit
aa6a752e38
@ -196,6 +196,16 @@ input[type="color"], input[type="password"], select, textarea {
|
|||||||
@extend .input-base;
|
@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] {
|
input[type=date] {
|
||||||
width: 190px;
|
width: 190px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user