__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
%toggle {
display: inline-block;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
position: relative;
vertical-align: middle;
@include transition (background-color 0.3s ease-in-out);
}
%knob {
position: absolute;
background: $white;
box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
@include transition (all 0.3s ease-in-out);
}
@mixin toggle-ui($size: 18px, $round: false){
@extend %toggle;
border-radius: $size;
@if $round == false { @include size(($size * 2) $size); }
@else { @include size($size $size); }
.knob {
@extend %knob;
@if $round == false { @include size(($size + 2) ($size - 2)); }
@else { @include size(($size - 6) ($size - 6)); }
border-radius: $size + 2;
}
}
@mixin enabler($on: $black, $off: $white, $size: 18px){
outline: transparent;
.toggle {
background-color: $off;
.knob {
top: 1px;
left: 1px;
}
}
& [type="hidden"] + .toggle {
@include toggle-ui($size, false);
}
& [type="radio"] {
display: none;
}
& [type="radio"] + .toggle {
@include toggle-ui($size, true);
.knob {
left: 3px;
top: 3px;
opacity: 0;
}
}
& [type="hidden"][value="1"] + .toggle {
background-color: $on;
.knob {
left: $size - 2 - 1;
}
}
& [type="radio"]:checked + .toggle {
background-color: $on;
.knob {
opacity: 1;
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| _base.scss | File | 40 B | 0664 |
|
| _buttons.scss | File | 662 B | 0664 |
|
| _modal.scss | File | 886 B | 0664 |
|
| _toggle-ui.scss | File | 1.55 KB | 0664 |
|