PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 5.6.1 All 34 releases
automatorwp / libraries / cmb2-field-switch / switch.css

switch.css in AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI 6.0.3, at libraries/cmb2-field-switch/switch.css

182 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .cmb2-switch .cmb-td {
2 position: relative;
3 min-height: 14px;
4 }
5
6 .cmb2-switch input {
7 position: absolute;
8 top: -2px;
9 left: -1px;
10 width: 48px;
11 height: 26px;
12 margin: 0;
13 padding: 0;
14 z-index: 1;
15 border: none !important;
16 box-shadow: none !important;
17 background: transparent !important;
18 border-radius: 60px;
19 }
20
21 .cmb2-switch input:before,
22 .cmb2-switch input:after {
23 display: block;
24 position: absolute;
25 content: "" !important;
26 left: 0;
27 top: 0;
28 }
29
30 .cmb2-switch input:before {
31 border: 2px solid #6c7781;
32 border-radius: 100%;
33 width: 4px;
34 height: 4px;
35 margin-top: 9px;
36 margin-left: 32px;
37 }
38
39 .cmb2-switch input:checked:before {
40 border-color: transparent;
41 background-color: transparent;
42 }
43
44 .cmb2-switch input:before {
45 background: transparent;
46 }
47
48 .cmb2-switch input:checked:after {
49 background: #fff;
50 width: 2px;
51 height: 8px;
52 margin-top: 9px;
53 margin-left: 12px;
54 }
55
56 .cmb2-switch label .cmb2-metabox-description {
57 margin-left: 53px;
58 }
59
60 .cmb2-switch input + label:before,
61 .cmb2-switch input + label:after {
62 display: block;
63 position: absolute;
64 top: 0;
65 bottom: 0;
66 left: 1px;
67 content: "";
68 width: 40px;
69 height: 18px;
70 }
71
72 .cmb2-switch input + label:before {
73 right: 1px;
74 background-color: transparent;
75 border: 2px solid #6c7781;
76 border-radius: 60px;
77 transition: all 0.2s ease;
78 }
79
80 .cmb2-switch input + label:after {
81 width: 14px;
82 height: 14px;
83 margin-left: 4px;
84 margin-top: 4px;
85 background-color: #6c7781;
86 border-radius: 100%;
87 transition: all 0.2s ease;
88 }
89 .cmb2-switch input:checked + label:before {
90 background-color: var(--wp-admin-theme-color, #11a0d2);
91 border-color: transparent;
92 }
93
94 .cmb2-switch input:checked + label:after {
95 margin-left: 26px;
96 background-color: #fff;
97 }
98
99 /* Options Page */
100 .cmb2-options-page .cmb2-switch.cmb-type-checkbox input {
101 left: 12px;
102 top: 2px;
103 }
104
105 .cmb2-options-page .cmb2-switch.cmb-type-checkbox input + label:before,
106 .cmb2-options-page .cmb2-switch.cmb-type-checkbox input + label:after {
107 left: 14px;
108 top: 4px;
109 }
110
111 /* Multicheck */
112 .cmb2-switch .cmb2-list li {
113 position: relative;
114 }
115
116 .cmb2-switch .cmb2-list li label {
117 display: inline-block;
118 margin-left: 53px;
119 margin-top: 3px;
120 margin-bottom: 3px;
121 }
122
123 /* Block */
124 .cmb2-switch-block label .cmb2-metabox-description {
125 display: inline-block;
126 margin-left: 0;
127 margin-top: 28px;
128 }
129
130 /* CT Edit Screen */
131 #ct_edit_form #postbox-container-2 .cmb2-switch.cmb-type-checkbox input {
132 top: 23px;
133 }
134
135 #ct_edit_form #postbox-container-2 .cmb2-switch.cmb-type-checkbox input + label:before,
136 #ct_edit_form #postbox-container-2 .cmb2-switch.cmb-type-checkbox input + label:after {
137 top: 25px;
138 }
139
140 /* RTL */
141 body.rtl .cmb2-switch input {
142 left: auto;
143 right: -1px;
144 }
145
146 body.rtl .cmb2-switch input:before {
147 margin-left: 8px;
148 }
149
150 body.rtl .cmb2-switch input + label:before,
151 body.rtl .cmb2-switch input + label:after {
152 left: auto;
153 right: 1px;
154 }
155
156 body.rtl .cmb2-switch input + label:before {
157 left: auto;
158 right: 1px;
159 }
160
161 body.rtl .cmb2-switch input + label:after {
162 margin-left: 0;
163 margin-right: 4px;
164 }
165
166 body.rtl .cmb2-switch input:checked:after {
167 margin-left: 34px;
168 }
169
170 body.rtl .cmb2-switch input:checked + label:after {
171 margin-left: 0;
172 margin-right: 26px;
173 }
174
175 body.rtl .cmb2-switch label .cmb2-metabox-description {
176 margin-left: 0;
177 margin-right: 53px;
178 }
179
180 body.rtl .cmb2-switch-block label .cmb2-metabox-description {
181 margin-right: 0;
182 }