mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:47:44 +00:00
LibWeb: Allow <input type="button/submit/reset"> to be styled
Previously we used a native ui button to draw the buttons. These buttons can however not be styled with css. To allow these to be styled with css, we create a button with the UA stylesheet that resembles the system ui button.
This commit is contained in:
parent
c8f6a20c02
commit
a8cfb34551
3 changed files with 16 additions and 9 deletions
|
@ -237,6 +237,15 @@ input[type=submit], input[type=button], input[type=reset], input[type=checkbox],
|
|||
cursor: unset;
|
||||
}
|
||||
|
||||
input[type=submit], input[type=button], input[type=reset] {
|
||||
padding: 4px 8px;
|
||||
background-color: -libweb-palette-button;
|
||||
border: 1px solid -libweb-palette-threed-shadow1;
|
||||
}
|
||||
input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover {
|
||||
background-color: -libweb-palette-hover-highlight;
|
||||
}
|
||||
|
||||
option {
|
||||
display: none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue