Third attempt of fixing radio and checkbox styling

This commit is contained in:
tijsklaren 2023-02-05 17:32:42 +01:00
parent 24e5350ba0
commit 28f482f728
1 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ form{
flex-direction: column;
}
input:not(input[type="radio"], input[type="checkbox"]), button, textarea, select, .button{
input, button, textarea, select, .button{
/* We don't want the stupid browser appearance */
appearance: none;
@ -30,6 +30,12 @@ input:not(input[type="radio"], input[type="checkbox"]), button, textarea, select
background: white;
}
input[type="radio"], input[type="checkbox"]{
appearance: auto;
width: unset;
margin: unset;
}
/* If it is a button */
button, input[type='submit'], input[type='button'], .button{
/* Align text in the center */