switch hoch schieben

This commit is contained in:
troy 2022-11-14 17:48:27 +01:00
parent 0d3289a900
commit f62b83cb1a
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ input.switch[type="checkbox"] + label {
float: left; float: left;
margin-right: 5px; margin-right: 5px;
transition: background-color 0.5s linear; transition: background-color 0.5s linear;
margin-top: 15px; margin-bottom: 15px;
} }
input.switch[type="checkbox"] + label:hover { input.switch[type="checkbox"] + label:hover {
cursor: pointer; cursor: pointer;

2
switch.min.css vendored
View File

@ -1 +1 @@
input.switch[type=checkbox]{display:none}input.switch[type=checkbox]+label{width:60px;height:30px;border-radius:30px;border:2px solid #ddd;background-color:#eee;display:inline-block;content:"";float:left;margin-right:5px;transition:background-color .5s linear;margin-top:15px}input.switch[type=checkbox]+label:hover{cursor:pointer}input.switch[type=checkbox]+label::before{width:30px;height:30px;border-radius:30px;background-color:#fff;display:block;content:"";float:left;margin-right:5px;transition:margin .1s linear;box-shadow:0 0 5px #aaa}input.switch[type=checkbox]:checked+label{background-color:#2b8718}input.switch[type=checkbox]:checked+label::before{margin:0 0 0 30px} input.switch[type=checkbox]{display:none}input.switch[type=checkbox]+label{width:60px;height:30px;border-radius:30px;border:2px solid #ddd;background-color:#eee;display:inline-block;content:"";float:left;margin-right:5px;transition:background-color .5s linear;margin-bottom:15px}input.switch[type=checkbox]+label:hover{cursor:pointer}input.switch[type=checkbox]+label::before{width:30px;height:30px;border-radius:30px;background-color:#fff;display:block;content:"";float:left;margin-right:5px;transition:margin .1s linear;box-shadow:0 0 5px #aaa}input.switch[type=checkbox]:checked+label{background-color:#2b8718}input.switch[type=checkbox]:checked+label::before{margin:0 0 0 30px}