mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
[enh] make checkboxes in preferences accessible using keyboard - #350
This commit is contained in:
parent
2ff6214a4d
commit
a984afd6a3
6 changed files with 82 additions and 8 deletions
|
@ -9,7 +9,21 @@
|
|||
-ms-user-select: none;
|
||||
}
|
||||
.onoffswitch-checkbox {
|
||||
display: none;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
}
|
||||
.onoffswitch-checkbox:before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin-right: 10px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 1px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 0px;
|
||||
}
|
||||
.onoffswitch-label {
|
||||
display: block;
|
||||
|
@ -44,7 +58,7 @@
|
|||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0px;
|
||||
border: 2px solid #FFFFFF !important;
|
||||
border: 2px solid #FFFFFF;
|
||||
border-radius: 50px !important;
|
||||
transition: all 0.3s ease-in 0s;
|
||||
}
|
||||
|
@ -55,3 +69,6 @@
|
|||
right: 71px;
|
||||
background-color: #A1A1A1;
|
||||
}
|
||||
.onoffswitch-checkbox:focus + .onoffswitch-label .onoffswitch-switch {
|
||||
border: 3px solid #444444;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue