LibWeb: Also apply default button styles to <button>, not just <input>

This commit is contained in:
Linus Groh 2022-02-28 23:12:37 +00:00
commit 4170fcb777
Notes: sideshowbarker 2024-07-17 18:06:20 +09:00

View file

@ -237,12 +237,13 @@ input[type=submit], input[type=button], input[type=reset], input[type=checkbox],
cursor: unset;
}
input[type=submit], input[type=button], input[type=reset] {
button, 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 {
button:hover, input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover {
background-color: -libweb-palette-hover-highlight;
}