PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / trunk
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI vtrunk
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 / css / sass / partials / _main_wrap.scss

_main_wrap.scss in AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI trunk, at libraries/cmb2/css/sass/partials/_main_wrap.scss

530 lines 8.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*--------------------------------------------------------------
2 * Main Wrap
3 --------------------------------------------------------------*/
4
5 .cmb2-wrap {
6 margin: 0;
7
8 input,
9 textarea {
10 max-width: 100%;
11 }
12
13 input[type="text"]="text""] {
14
15 &.cmb2-oembed {
16 width: 100%;
17 }
18 }
19
20 textarea {
21 width: 500px;
22 padding: 8px;
23
24 &.cmb2-textarea-code {
25 font-family: $font-mono;
26 line-height: 16px;
27 }
28 }
29
30 input {
31
32 &.cmb2-text-small,
33 &.cmb2-timepicker {
34 width: 100px;
35 // margin-right: 15px
36 }
37
38 &.cmb2-text-money {
39 width: 90px;
40 // margin-right: 15px
41 }
42
43 &.cmb2-text-medium {
44 width: 230px;
45 // margin-right: 15px
46 }
47
48 &.cmb2-upload-file {
49 width: 65%;
50 }
51
52 &.ed_button {
53 padding: 2px 4px;
54 }
55
56 &:not([type="hidden"]) {
57 + input,
58 + .button-secondary,
59 + select {
60 margin-left: 20px;
61 }
62 }
63 }
64
65 ul {
66 margin: 0;
67 }
68
69 li {
70 font-size: $font-size;
71 line-height: 16px;
72 margin: 1px 0 5px 0;
73 }
74
75 // .cmb-field-list .cmb-field-list {
76 // padding-top:5px;
77 // margin: 0;
78 // }
79
80 select {
81 font-size: $font-size;
82 margin-top: 3px;
83 }
84
85 input[type="radio"]="radio""] {
86 margin: 0 5px 0 0;
87 padding: 0;
88 }
89
90 input[type="checkbox"]="checkbox""] {
91 margin: 0 5px 0 0;
92 padding: 0;
93 }
94
95 button,
96 .button-secondary {
97 white-space: nowrap;
98 }
99
100 .mceLayout {
101 border: 1px solid $light-gray !important;
102 }
103
104 .mceIframeContainer {
105 background: $white;
106 }
107
108 .meta_mce {
109 width: 97%;
110
111 textarea {
112 width: 100%;
113 }
114 }
115
116 // Multicheck toggle
117 .cmb-multicheck-toggle {
118 margin-top: -1em;
119 }
120
121 // Color picker
122 .wp-picker-clear.button,
123 .wp-picker-default.button {
124 margin-left: 6px;
125 padding: 2px 8px;
126 }
127
128 .cmb-row {
129 margin: 0;
130
131 &:after {
132 content: '';
133 clear: both;
134 display: block;
135 width: 100%;
136 }
137
138 &.cmb-repeat .cmb2-metabox-description {
139 padding-top: 0;
140 padding-bottom: 1em;
141 }
142 }
143
144 }
145
146 // Fixes bug created by 5.3+ block editor-specific styling
147 // Over-specific selector to override WordPress's over-specific selector without !important
148 // @todo - Remove when `body.branch-5-3` targeting 5.3+ is widely used
149 body.block-editor-page.branch-5-3 .cmb2-wrap .cmb-row .cmb2-radio-list input[type="radio"]="radio""]::before {
150 margin: .1875rem;
151
152 @media screen and (max-width: 782px) {
153 margin: .4375rem;
154 }
155 }
156
157 .cmb2-metabox {
158 clear: both;
159 margin: 0;
160
161 > .cmb-row:first-of-type >,
162 .cmb-field-list > .cmb-row:first-of-type > {
163 .cmb-td,
164 .cmb-th {
165 border: 0;
166 }
167 }
168 }
169
170 .cmb-add-row {
171 margin: 1.8em 0 0;
172 }
173
174 .cmb-nested .cmb-td,
175 .cmb-repeatable-group .cmb-th,
176 .cmb-repeatable-group:first-of-type {
177 border: 0;
178 }
179
180 .cmb-row:last-of-type,
181 .cmb2-wrap .cmb-row:last-of-type,
182 .cmb-repeatable-group:last-of-type {
183 border-bottom: 0;
184 }
185
186 .cmb-repeatable-grouping {
187 border: 1px solid $light-gray;
188 padding: 0 1em;
189
190 &.cmb-row {
191 margin: 0 0 0.8em;
192 }
193
194 + .cmb-repeatable-grouping {
195 }
196 }
197
198 .cmb-th {
199 color: $dark-gray;
200 float: left;
201 font-weight: 600;
202 padding: 20px 10px 20px 0;
203 vertical-align: top;
204 width: 200px;
205
206 @media (max-width: $mobile-break) {
207 @include fullth;
208 }
209 }
210
211 .cmb-td {
212 line-height: 1.3;
213 max-width: 100%;
214 padding: 15px 10px;
215 vertical-align: middle;
216 }
217
218 .cmb-type-title {
219
220 .cmb-td {
221 padding: 0;
222 }
223 }
224
225 .cmb-th label {
226 display: block;
227 padding: 5px 0;
228 }
229
230 .cmb-th + .cmb-td {
231 float: left;
232 }
233
234 .cmb-td .cmb-td {
235 padding-bottom: 1em;
236 }
237
238 .cmb-remove-row {
239 text-align: right;
240 }
241
242 .empty-row.hidden {
243 display: none;
244 }
245
246 // Repeatable fields styles
247 .cmb-repeat-table {
248 background-color: $almostwhite;
249 border: 1px solid darken($light-gray, 3%);
250
251 .cmb-row.cmb-repeat-row {
252 position: relative;
253 counter-increment: el;
254
255 margin: 0;
256 padding: 10px 10px 10px 50px;
257 border-bottom: none !important; // Sometime, we need !important :).
258
259 & + .cmb-repeat-row {
260 border-top: solid 1px $light-gray;
261 }
262
263 &.ui-sortable-helper {
264 outline: dashed 2px $light-gray !important; // Sometime, we need !important :).
265 }
266
267 &:before {
268 content: counter(el);
269 display: block;
270
271 top: 0;
272 left: 0;
273 position: absolute;
274
275 width: 35px;
276 height: 100%;
277 line-height: 35px;
278 cursor: move;
279 color: $gray;
280 text-align: center;
281 border-right: solid 1px $light-gray;
282 }
283
284 .cmb-td {
285 margin: 0;
286 padding: 0;
287 }
288
289 }
290
291 + .cmb-add-row {
292 margin: 0;
293
294 &:before {
295 content: '';
296 width: 1px;
297 height: 1.6em;
298 display: block;
299 margin-left: 17px;
300 background-color: darken($light-gray, 5%);
301 }
302 }
303
304 .cmb-remove-row {
305 top: 7px;
306 right: 7px;
307 position: absolute;
308
309 width: auto;
310 margin-left: 0;
311 padding: 0 !important; // Sometime, we need !important :).
312
313 display: none;
314
315 > .cmb-remove-row-button {
316 font-size: 20px;
317 text-indent: -1000px;
318
319 overflow: hidden;
320 position: relative;
321
322 height: auto;
323 line-height: 1;
324 padding: 0 10px 0;
325
326 &:before {
327 @include pseudo-dashicons("\f335");
328 line-height: 1.3;
329 }
330 }
331 }
332
333 .cmb-repeat-row:hover .cmb-remove-row {
334 display: block;
335 }
336
337 }
338
339 .cmb-repeatable-group {
340
341 .cmb-th {
342 padding: 5px;
343 }
344
345 .cmb-group-title {
346 background-color: $light-gray;
347 padding: 8px 12px 8px 2.2em;
348 margin: 0 -1em;
349 min-height: 1.5em;
350 font-size: 14px;
351 line-height: 1.4;
352
353 h4 {
354 border: 0;
355 margin: 0;
356 font-size: 1.2em;
357 font-weight: 500;
358 padding: 0.5em 0.75em;
359 }
360
361 .cmb-th {
362 display: block;
363 width: 100%;
364 }
365 }
366
367 .cmb-group-description .cmb-th {
368 @include fullth;
369 }
370
371 .cmb-shift-rows {
372 margin-right: 1em;
373
374 .dashicons-arrow-up-alt2 {
375 margin-top: .15em;
376 }
377
378 .dashicons-arrow-down-alt2 {
379 margin-top: .2em;
380 }
381 }
382
383 .cmb2-upload-button {
384 float: right;
385 }
386
387 }
388
389 p.cmb2-metabox-description {
390 color: $medium-gray;
391 letter-spacing: 0.01em;
392 margin: 0;
393 padding-top: .5em;
394 }
395
396 span.cmb2-metabox-description {
397 color: $medium-gray;
398 letter-spacing: 0.01em;
399 }
400
401 .cmb2-metabox-title {
402 margin: 0 0 5px 0;
403 padding: 5px 0 0 0;
404 font-size: 14px;
405 }
406
407 .cmb-inline ul {
408 padding: 4px 0 0 0;
409 }
410
411 .cmb-inline li {
412 display: inline-block;
413 padding-right: 18px;
414 }
415
416 .cmb-type-textarea-code pre {
417 margin: 0;
418 }
419
420 .cmb2-media-status {
421
422 .img-status {
423 clear: none;
424 display: inline-block;
425 vertical-align: middle;
426 margin-right: 10px;
427 width: auto;
428
429 img {
430 max-width: 350px;
431 height: auto;
432 }
433 }
434
435 .img-status img,
436 .embed-status {
437 background: $lightchecker;
438 border: 5px solid $white;
439 outline: 1px solid $light-gray;
440 box-shadow: inset 0 0 15px rgba( 0, 0, 0, 0.3 ), inset 0 0 0 1px rgba( 0, 0, 0, 0.05 );
441 background-image: linear-gradient(45deg, $darkchecker 25%, transparent 25%, transparent 75%, $darkchecker 75%, $darkchecker), linear-gradient(45deg, $darkchecker 25%, transparent 25%, transparent 75%, $darkchecker 75%, $darkchecker);
442 background-position: 0 0, 10px 10px;
443 background-size: 20px 20px;
444 border-radius: 2px;
445 -moz-border-radius: 2px;
446 margin: 15px 0 0 0;
447 }
448
449 .embed-status {
450 float: left;
451 max-width: 800px;
452 }
453
454 .img-status, .embed-status {
455 position: relative;
456
457 .cmb2-remove-file-button {
458 background: url(../images/ico-delete.png);
459 height: 16px;
460 left: -5px;
461 position: absolute;
462 text-indent: -9999px;
463 top: -5px;
464 width: 16px;
465 }
466
467 }
468
469 .img-status {
470
471 .cmb2-remove-file-button {
472 top: 10px;
473 }
474 }
475
476 .img-status img, .file-status > span {
477 cursor: pointer;
478 }
479
480 &.cmb-attach-list {
481 .img-status img, .file-status > span {
482 cursor: move;
483 }
484 }
485
486 }
487
488 .cmb-type-file-list .cmb2-media-status .img-status {
489 clear: none;
490 vertical-align: middle;
491 width: auto;
492 margin-right: 10px;
493 margin-bottom: 10px;
494 margin-top: 0;
495 }
496
497 .cmb-attach-list li {
498 clear: both;
499 display: inline-block;
500 width: 100%;
501 margin-top: 5px;
502 margin-bottom: 10px;
503 img {
504 float: left;
505 margin-right: 10px;
506 }
507 }
508
509 .cmb2-remove-wrapper {
510 margin: 0;
511 }
512
513 .child-cmb2 .cmb-th {
514 text-align: left;
515 }
516
517 .cmb2-indented-hierarchy {
518 padding-left: 1.5em;
519 }
520
521 @media (max-width: $mobile-break) {
522 .cmb-th,
523 .cmb-td,
524 .cmb-th + .cmb-td {
525 display: block;
526 float: none;
527 width: 100%;
528 }
529 }
530