diff --git a/image.png b/img/default_logo.png similarity index 100% rename from image.png rename to img/default_logo.png diff --git a/manage3.html b/manage3.html index c19305a..beda07d 100644 --- a/manage3.html +++ b/manage3.html @@ -63,6 +63,16 @@ padding: 0 10px; } + .vpn-item { + display: flex; + align-items: center; + gap: 10px; + padding: 10px 20px; + cursor: pointer; + color: white; + transition: color 0.3s; + } + .menu-item { display: flex; align-items: center; @@ -101,6 +111,73 @@ color: black; } +/* Switch container */ +.switch { + position: relative; + display: inline-block; + width: 60px; + height: 26px; +} + +/* Hide native checkbox */ +.switch input { + opacity: 0; + width: 0; + height: 0; +} + +/* Slider background */ +.slider-text { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; + border-radius: 26px; + transition: background-color 0.3s; + display: flex !important; + align-items: center; + justify-content: flex-end; /* default: OFF on the right */ + padding: 0 8px; + font-size: 12px; + font-weight: bold; + color: #fff; +} + +/* Circle */ +.slider-text::before { + content: ""; + position: absolute; + height: 22px; + width: 22px; + left: 2px; + top: 2px; + background-color: white; + border-radius: 50%; + transition: transform 0.3s; +} + +/* Checked: move dot, change background and text alignment */ +.switch input:checked + .slider-text { + background-color: #4CAF50; + justify-content: flex-start; +} + +/* Dot animation */ +.switch input:checked + .slider-text::before { + transform: translateX(34px); +} + + +/* Status label */ +.status-label { + font-size: 12px; + color: #888; + min-width: 28px; + text-align: left; +} + .details { color: white; text-decoration: none; @@ -553,6 +630,17 @@ Safebox