PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.65
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.65
1.2.76 1.2.75 1.2.74 1.2.73 1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 All 176 releases
userswp / vendor / ayecode / wp-ayecode-ui / assets / scss / partials / _switch.scss

_switch.scss in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.2.65, at vendor/ayecode/wp-ayecode-ui/assets/scss/partials/_switch.scss

55 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @mixin switch($res: 'sm') {
2 $index: 1rem;
3 $mainVal: 1rem;
4
5 @if $res == 'md' {
6 $index: 1.6rem;
7 $mainVal: 1.3rem;
8 } @else if $res == 'lg' {
9 $index: 2rem;
10 $mainVal: 1.5rem;
11 } @else if $res == 'xl' {
12 $index: 3rem;
13 $mainVal: 2rem;
14 }
15
16 .custom-control-label {
17 padding-left: 1rem;
18 //padding-bottom: #{$mainVal};
19 line-height: 1.8rem;
20 }
21
22 .custom-control-label::before {
23 height: $mainVal;
24 width: calc(#{$index} + 0.75rem);
25 border-radius: $mainVal * 2;
26 }
27
28 .custom-control-label::after {
29 width: calc(#{$mainVal} - 4px);
30 height: calc(#{$mainVal} - 4px);
31 border-radius: calc(#{$index} - (#{$mainVal} / 2));
32 }
33
34 .custom-control-input:checked ~ .custom-control-label::after {
35 transform: translateX(calc(#{$mainVal} - 0.25rem));
36 }
37 }
38
39 // YOU CAN PUT ALL RESOLUTION HERE
40 // sm - DEFAULT, md, lg, xl
41 .custom-switch.custom-switch-sm {
42 @include switch();
43 }
44
45 .custom-switch.custom-switch-md {
46 @include switch('md');
47 }
48
49 .custom-switch.custom-switch-lg {
50 @include switch('lg');
51 }
52
53 .custom-switch.custom-switch-xl {
54 @include switch('xl');
55 }