PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.3
WP Coder – Insert & Manage Code Snippets v4.3
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / assets / scss / _fields.scss

_fields.scss in WP Coder – Insert & Manage Code Snippets 4.3, at assets/scss/_fields.scss

259 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .wowp-field {
2 position: relative;
3 box-sizing: border-box;
4 display: flex;
5
6 &.has-addon {
7 align-items: center;
8
9 label {
10 background-color: transparent;
11 }
12 }
13
14 &.is-column {
15 flex-direction: column;
16 gap: 0.5rem;
17 }
18
19
20 input[type="text"]="text""],
21 input[type="url"]="url""],
22 input[type="time"]="time""],
23 input[type="number"]="number""],
24 input[type="datetime"]="datetime""],
25 input[type="date"]="date""],
26 select {
27 height: 40px;
28 line-height: 40px;
29 width: 100%;
30 max-width: 100%;
31 min-width: 200px;
32 padding-inline-start: 12px;
33 }
34
35 textarea {
36 width: 100%;
37 min-height: 400px;
38 padding: 12px;
39 resize: vertical;
40 font-size: 0.875rem;
41 line-height: 1.25rem;
42 box-shadow: var(--wowp-shadow-sm);
43 border: 1px solid var(--wowp-gray-100);
44 border-radius: 0.5rem;
45
46 &[readonly]] {
47 color: var(--wowp-gray-400);
48 background-color: #ffffff;
49 }
50 }
51
52 .label {
53 position: absolute;
54 top: 0;
55 left: 8px;
56 transform: translateY(-50%);
57 font-size: 12px;
58 font-weight: 700;
59 padding-inline: 4px 5px;
60 color: var(--wowp-gray-900);
61 z-index: 9;
62 background-color: #ffffff;
63 }
64
65 label {
66 width: 100%;
67 }
68
69 &.has-checkbox {
70 align-items: center;
71 gap: 0.5rem;
72 border: 1px solid var(--wowp-gray-100);
73 border-radius: 0.25rem;
74 padding: 0.5rem;
75
76 &.is-reverse {
77 flex-direction: row-reverse;
78 justify-content: left;
79 }
80
81 .label {
82 left: 0;
83 padding-inline: 0;
84 position: static;
85 transform: unset;
86 }
87
88 .switch {
89 position: relative;
90 top: 0;
91 left: auto;
92 display: inline-block;
93 width: 36px;
94 height: 20px;
95 transform: unset;
96 }
97
98 .switch input {
99 opacity: 0;
100 width: 0;
101 height: 0;
102 }
103
104 .slider {
105 position: absolute;
106 cursor: pointer;
107 top: 0;
108 left: 0;
109 right: 0;
110 bottom: 0;
111 background-color: var(--wowp-gray-400);
112 -webkit-transition: .4s;
113 transition: .4s;
114 border-radius: 34px;
115 }
116
117 .slider:before {
118 position: absolute;
119 content: "";
120 height: 16px;
121 width: 16px;
122 left: 2px;
123 bottom: 2px;
124 background-color: white;
125 -webkit-transition: .4s;
126 transition: .4s;
127 border-radius: 50%;
128 }
129
130 input:checked ~ .slider {
131 background-color: var(--wowp-gray-700);
132 }
133
134 input:focus ~ .slider {
135 //box-shadow: 0 0 1px #8a8a8c;
136 box-shadow: var(--wowp-shadow-sm);
137 }
138
139 input:checked ~ .slider:before {
140 transform: translateX(16px);
141 }
142
143 }
144 }
145
146
147 // Publish
148 .wowp-settings__publish {
149 }
150
151 .wowp-field.has-addon {
152 position: relative;
153
154 label {
155 top: 50%;
156 left: 5px;
157 padding: 0;
158 height: 32px;
159 background-color: var(--wowp-gray-200);
160 display: flex;
161 align-items: center;
162 justify-content: center;
163 width: 32px;
164 border-radius: 4px;
165 transform: translateY(-50%);
166 z-index: 2;
167 }
168
169 input[type="text"]="text""],
170 input[type="url"]="url""] {
171 padding-inline-start: 42px;
172 }
173 }
174
175
176 .wowp-settings__publish-template {
177 display: flex;
178 gap: 0.5rem;
179
180 select {
181 width: auto;
182 min-width: 200px;
183 }
184
185 }
186
187 .wowp-field__title {
188 color: var(--wowp-gray-900);
189 font-size: 1rem;
190 font-weight: 600;
191 }
192
193 .wowp-fieldset {
194 border: 1px solid var(--wowp-gray-100);
195 padding: 1rem;
196 border-radius: 0.5rem;
197 box-shadow: var(--wowp-shadow-sm);
198 margin-block: 1.5rem;
199
200 }
201
202 .wowp-fieldset__header {
203 margin-inline: -1rem;
204 padding-inline: 1rem;
205 //padding-block-end: 1rem;
206 //border-bottom: 1px solid var(--wowp-gray-100);
207 display: flex;
208 flex-direction: column;
209 gap: 1rem;
210
211 @media (width >= 48rem) {
212 flex-direction: row;
213 justify-content: space-between;
214 align-items: center;
215 }
216
217 + .wowp-fields__group {
218 margin-top: 1rem;
219 margin-inline: -1rem;
220 padding-inline: 1rem;
221 border-top: 1px solid var(--wowp-gray-100);
222 }
223 }
224
225 .wowp-fieldset__header-title {
226 font-size: 1.125rem;
227 line-height: 1.75;
228 font-weight: 500;
229 color: var(--wowp-gray-700);
230
231 p {
232 font-size: .875rem;
233 line-height: 1.25rem;
234 color: var(--wowp-gray-400);
235 margin: 0;
236 font-weight: 400;
237 }
238 }
239
240
241 .wowp-fields__group {
242 padding-top: 1rem;
243 display: flex;
244 gap: 1rem;
245 align-items: center;
246 flex-wrap: wrap;
247 &.column-3 {
248 & > *:not(.is-full) {
249 flex: 1 1 calc(33.333% - 1rem);
250 min-width: 200px;
251 }
252 }
253 }
254
255 #wp-support-message-wrap {
256 width: 100%;
257 }
258
259