PluginProbe
WPIDE – File Manager & Code Editor / 3.5.9
WPIDE – File Manager & Code Editor v3.5.9
3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 All 55 releases
wpide / freemius / assets / scss / admin / _switch.scss

_switch.scss in WPIDE – File Manager & Code Editor 3.5.9, at freemius/assets/scss/admin/_switch.scss

107 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use "sass:math";
2
3 $switch-size: 24px;
4 $switch-small-size: 0.75 * $switch-size;
5 $switch-on-color: $wp-button-primary-background-color;
6
7 .fs-switch
8 {
9 position: relative;
10 display: inline-block;
11 //font-size: 1.6em;
12 //font-weight: bold;
13 color: #ccc;
14 text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
15 height: 18px;
16 padding: 6px 6px 5px 6px;
17 border: 1px solid #ccc;
18 border: 1px solid rgba(0, 0, 0, 0.2);
19 //border-radius: 4px;
20 background: #ececec;
21 box-shadow: 0 0 4px rgba(0, 0, 0, 0.1), inset 0 1px 3px 0 rgba(0, 0, 0, 0.1);
22 cursor: pointer;
23
24 span
25 {
26 display: inline-block;
27 width: 35px;
28 text-transform: uppercase;
29 }
30
31 .fs-toggle
32 {
33 position: absolute;
34 top: 1px;
35 width: 37px;
36 height: $switch-size + 1px;
37 border: 1px solid rgba(0, 0, 0, 0.3);
38 border-radius: 4px;
39 background-color: #fff;
40 background-image: linear-gradient(to bottom, #ececec, #fff);
41 box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
42 z-index: 999;
43 transition: 0.40s cubic-bezier(0.54, 1.6, 0.5, 1);
44 }
45
46 &.fs-off .fs-toggle
47 {
48 left: 2%;
49 }
50 &.fs-on .fs-toggle
51 {
52 left: 54%;
53 }
54
55 /* Round switch */
56 &.fs-round
57 {
58 top: math.div($switch-size, 3);
59 padding: 4px ($switch-size + 1px);
60 border-radius: $switch-size;
61
62 .fs-toggle
63 {
64 top: 0;
65 width: $switch-size;
66 height: $switch-size;
67 border-radius: $switch-size;
68 }
69
70 &.fs-off .fs-toggle
71 {
72 left: -1px;
73 }
74
75 &.fs-on
76 {
77 background: $switch-on-color;
78
79 .fs-toggle
80 {
81 left: $switch-size + 1px;
82 }
83 }
84 }
85
86 &.fs-small
87 {
88 &.fs-round
89 {
90 padding: 1px ($switch-small-size + 1px);
91
92 .fs-toggle
93 {
94 top: 0;
95 width: $switch-small-size;
96 height: $switch-small-size;
97 border-radius: $switch-small-size;
98 }
99
100 &.fs-on .fs-toggle
101 {
102 left: $switch-small-size + 1px;
103 }
104 }
105 }
106 }
107