PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 5.8.6
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v5.8.6
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 5.8.6, at libraries/cmb2-field-switch/switch.css

180 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 }
103
104 .cmb2-options-page .cmb2-switch.cmb-type-checkbox input + label:before,
105 .cmb2-options-page .cmb2-switch.cmb-type-checkbox input + label:after {
106 left: 14px;
107 }
108
109 /* Multicheck */
110 .cmb2-switch .cmb2-list li {
111 position: relative;
112 }
113
114 .cmb2-switch .cmb2-list li label {
115 display: inline-block;
116 margin-left: 53px;
117 margin-top: 3px;
118 margin-bottom: 3px;
119 }
120
121 /* Block */
122 .cmb2-switch-block label .cmb2-metabox-description {
123 display: inline-block;
124 margin-left: 0;
125 margin-top: 28px;
126 }
127
128 /* CT Edit Screen */
129 #ct_edit_form #postbox-container-2 .cmb2-switch.cmb-type-checkbox input {
130 top: 23px;
131 }
132
133 #ct_edit_form #postbox-container-2 .cmb2-switch.cmb-type-checkbox input + label:before,
134 #ct_edit_form #postbox-container-2 .cmb2-switch.cmb-type-checkbox input + label:after {
135 top: 25px;
136 }
137
138 /* RTL */
139 body.rtl .cmb2-switch input {
140 left: auto;
141 right: -1px;
142 }
143
144 body.rtl .cmb2-switch input:before {
145 margin-left: 8px;
146 }
147
148 body.rtl .cmb2-switch input + label:before,
149 body.rtl .cmb2-switch input + label:after {
150 left: auto;
151 right: 1px;
152 }
153
154 body.rtl .cmb2-switch input + label:before {
155 left: auto;
156 right: 1px;
157 }
158
159 body.rtl .cmb2-switch input + label:after {
160 margin-left: 0;
161 margin-right: 4px;
162 }
163
164 body.rtl .cmb2-switch input:checked:after {
165 margin-left: 34px;
166 }
167
168 body.rtl .cmb2-switch input:checked + label:after {
169 margin-left: 0;
170 margin-right: 26px;
171 }
172
173 body.rtl .cmb2-switch label .cmb2-metabox-description {
174 margin-left: 0;
175 margin-right: 53px;
176 }
177
178 body.rtl .cmb2-switch-block label .cmb2-metabox-description {
179 margin-right: 0;
180 }