1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:57:44 +00:00

LibWeb: Improve display of input elements

* Display input[type=reset] as a button
* Display allother input elements as text entry boxes
* Set overflow: hidden on input elements
This commit is contained in:
Adam Hodgen 2022-02-17 21:44:50 +00:00 committed by Andreas Kling
parent 8edade071d
commit 240068a48c
2 changed files with 15 additions and 4 deletions

View file

@ -211,10 +211,21 @@ ol ol ul {
}
/* FIXME: This is a temporary hack until we can render a native-looking frame for these. */
input[type=text] {
input {
border: 1px solid black;
min-width: 80px;
min-height: 16px;
width: 120px;
cursor: text;
overflow: hidden;
}
input[type=submit], input[type=button], input[type=reset], input[type=checkbox], input[type=radio] {
border: none;
min-width: unset;
min-height: unset;
width: unset;
cursor: unset;
}
option {