Update templates/menu.html
Browse files- templates/menu.html +12 -10
templates/menu.html
CHANGED
@@ -334,39 +334,41 @@ form-check-input addon-option{
|
|
334 |
border-color: #388E3C;
|
335 |
}
|
336 |
/* Custom Toggle Switch Styling */
|
|
|
337 |
.custom-toggle {
|
338 |
-webkit-appearance: none;
|
339 |
-moz-appearance: none;
|
340 |
appearance: none;
|
341 |
position: relative;
|
342 |
-
width:
|
343 |
-
height:
|
344 |
background: #ccc;
|
345 |
-
border-radius:
|
346 |
cursor: pointer;
|
347 |
transition: background 0.3s;
|
348 |
}
|
349 |
|
350 |
.custom-toggle:checked {
|
351 |
-
background: #4caf50;
|
352 |
}
|
353 |
|
354 |
.custom-toggle:before {
|
355 |
content: "";
|
356 |
position: absolute;
|
357 |
-
top:
|
358 |
-
left:
|
359 |
-
width:
|
360 |
-
height:
|
361 |
background: white;
|
362 |
-
border-radius:
|
363 |
transition: transform 0.3s;
|
364 |
}
|
365 |
|
366 |
.custom-toggle:checked:before {
|
367 |
-
transform: translateX(
|
368 |
}
|
369 |
|
|
|
370 |
/* Optional: Style the labels */
|
371 |
.form-check-label {
|
372 |
font-size: 16px;
|
|
|
334 |
border-color: #388E3C;
|
335 |
}
|
336 |
/* Custom Toggle Switch Styling */
|
337 |
+
/* Custom Square Toggle Switch Styling */
|
338 |
.custom-toggle {
|
339 |
-webkit-appearance: none;
|
340 |
-moz-appearance: none;
|
341 |
appearance: none;
|
342 |
position: relative;
|
343 |
+
width: 40px; /* Smaller size */
|
344 |
+
height: 20px; /* Smaller size */
|
345 |
background: #ccc;
|
346 |
+
border-radius: 4px; /* Square or slightly rounded */
|
347 |
cursor: pointer;
|
348 |
transition: background 0.3s;
|
349 |
}
|
350 |
|
351 |
.custom-toggle:checked {
|
352 |
+
background: #4caf50; /* Green when checked */
|
353 |
}
|
354 |
|
355 |
.custom-toggle:before {
|
356 |
content: "";
|
357 |
position: absolute;
|
358 |
+
top: 2px; /* Small space from top */
|
359 |
+
left: 2px; /* Small space from left */
|
360 |
+
width: 16px; /* Smaller width */
|
361 |
+
height: 16px; /* Smaller height */
|
362 |
background: white;
|
363 |
+
border-radius: 3px; /* Square shape, with rounded corners */
|
364 |
transition: transform 0.3s;
|
365 |
}
|
366 |
|
367 |
.custom-toggle:checked:before {
|
368 |
+
transform: translateX(20px); /* Moves the toggle to the right */
|
369 |
}
|
370 |
|
371 |
+
|
372 |
/* Optional: Style the labels */
|
373 |
.form-check-label {
|
374 |
font-size: 16px;
|