Initial Commit, minimal viable version. Buggy but does work 'most' of the time :-)

This commit is contained in:
Frank Weggelaar 2025-04-08 14:26:56 +02:00
parent 963e202fa7
commit a71c043202
7 changed files with 158 additions and 0 deletions

View file

@ -0,0 +1,62 @@
body {
background-color: #2e2e2e;
}
h1 {
color: #fff;
font-size: 0.9em;
font-family: Verdana;
}
.switch {
position: relative;
display: inline-block;
width: 120px;
height: 34px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #1a1a1a;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 54px;
left: 4px;
bottom: 4px;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(54px);
-ms-transform: translateX(54px);
transform: translateX(54px);
}