117 lines
1.9 KiB
SCSS
117 lines
1.9 KiB
SCSS
|
|
.toggle-switch {
|
||
|
|
position: relative;
|
||
|
|
display: inline-block;
|
||
|
|
width: 46px;
|
||
|
|
height: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toggle-switch input {
|
||
|
|
opacity: 0;
|
||
|
|
width: 0;
|
||
|
|
height: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.slider {
|
||
|
|
position: absolute;
|
||
|
|
cursor: pointer;
|
||
|
|
background-color: #ccc;
|
||
|
|
border-radius: 24px;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
bottom: 0;
|
||
|
|
transition: 0.4s;
|
||
|
|
}
|
||
|
|
|
||
|
|
.slider:before {
|
||
|
|
position: absolute;
|
||
|
|
content: "";
|
||
|
|
height: 18px;
|
||
|
|
width: 18px;
|
||
|
|
left: 3px;
|
||
|
|
bottom: 3px;
|
||
|
|
background-color: white;
|
||
|
|
border-radius: 50%;
|
||
|
|
transition: 0.4s;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Active (checked) style */
|
||
|
|
.toggle-switch input:checked + .slider {
|
||
|
|
background-color: #28a745;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toggle-switch input:checked + .slider:before {
|
||
|
|
transform: translateX(22px);
|
||
|
|
}
|
||
|
|
.counter-expand-box {
|
||
|
|
max-height: 0;
|
||
|
|
overflow: hidden;
|
||
|
|
opacity: 0;
|
||
|
|
padding: 0;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.counter-expand-box.open {
|
||
|
|
max-height: 300px; // large enough for the content
|
||
|
|
opacity: 1;
|
||
|
|
padding: 12px;
|
||
|
|
border-radius: 6px;
|
||
|
|
border: 1px solid #ccc;
|
||
|
|
background: #f1f1f1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// Another swtich button style code
|
||
|
|
|
||
|
|
.PrinterSettingSwitchBTN {
|
||
|
|
display: inline-flex;
|
||
|
|
gap: 16px;
|
||
|
|
font-family: "Poppins";
|
||
|
|
margin-bottom: 12px;
|
||
|
|
border-bottom: 1px solid #d1d5db;
|
||
|
|
}
|
||
|
|
|
||
|
|
.PrinterSettingSwitchBTN > div {
|
||
|
|
font-size: 22px;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
color: #6b7280;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
position: relative;
|
||
|
|
border: none;
|
||
|
|
background: transparent;
|
||
|
|
font-family: "Gilroy";
|
||
|
|
transition: color 0.2s ease;
|
||
|
|
@media (max-width: 600px) {
|
||
|
|
font-size: 18px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.PrinterSettingSwitchBTN > div:hover {
|
||
|
|
color: #0f172a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.PrinterSettingSwitchBTN > div.selected {
|
||
|
|
color: #0f172a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.PrinterSettingSwitchBTN > div.selected::after {
|
||
|
|
content: "";
|
||
|
|
position: absolute;
|
||
|
|
left: 0;
|
||
|
|
bottom: -1px;
|
||
|
|
width: 100%;
|
||
|
|
height: 2px;
|
||
|
|
background: #2c88ee;
|
||
|
|
border-radius: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.PrinterSettingSwitchBTN > div.selected svg {
|
||
|
|
color: #4765db !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
// End
|