PluginProbe
Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe / trunk
Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe vtrunk
4.17.3 trunk 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 4.10.0 4.11.1 4.12.2 4.14.1 4.14.2 4.14.3 4.15.0 4.16.0 All 59 releases
stripe / src / Admin / FormBuilder / FormStyle / assets / css / admin.css

admin.css in Stripe Payment Forms by WP Simple Pay – Accept Credit Card Payments + Subscriptions with Stripe trunk, at src/Admin/FormBuilder/FormStyle/assets/css/admin.css

663 lines 13.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Main Container */
2 .wpsp-admin-tabs-container {
3 background: #fff;
4 border-radius: 0px;
5 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
6 margin: 0px 0;
7 /* No overflow:hidden to ensure color picker dropdown is visible */
8
9 position: relative;
10 }
11
12 /* Tabs Navigation */
13 .wpsp-admin-tabs-nav {
14 display: flex;
15 background: #f9f9f9;
16 border-bottom: 1px solid #e2e4e7;
17 position: sticky;
18 top: 32px; /* WP Admin bar height */
19 z-index: 10;
20 }
21
22 .wpsp-admin-tab-button {
23 padding: 12px 20px;
24 border: none;
25 background: none;
26 cursor: pointer;
27 font-weight: 500;
28 color: #555;
29 position: relative;
30 transition: all 0.2s ease;
31 display: flex;
32 align-items: center;
33 gap: 5px;
34 border-right: 1px solid #e2e4e7;
35 }
36
37 .wpsp-admin-tab-button:hover {
38 background: #f1f1f1;
39 color: #000;
40 }
41
42 .wpsp-admin-tab-button.active {
43 background: #fff;
44 color: #0073aa;
45 border-bottom: 2px solid #0073aa;
46 margin-bottom: -1px;
47 }
48
49 .wpsp-admin-tab-button .dashicons {
50 font-size: 16px;
51 height: 16px;
52 width: 16px;
53 }
54
55 /* Tab Content */
56 .wpsp-admin-tabs-content {
57 padding: 25px;
58 }
59
60 .wpsp-admin-tab-panel {
61 display: none;
62 }
63
64 .wpsp-admin-tab-panel.active {
65 display: block;
66 }
67
68 /* Color Sections */
69 .wpsp-admin-color-section {
70 margin-bottom: 40px;
71 padding: 0 0 18px;
72 background: transparent;
73 border: none;
74 border-bottom: 1px solid #dddddd;
75 border-radius: 0;
76 }
77
78 .wpsp-admin-color-section:last-child {
79 margin-bottom: 0;
80 }
81
82 .wpsp-admin-section-title {
83 margin: 0 0 20px;
84 font-size: 13px;
85 font-weight: 600;
86 color: #3C434B;
87 display: flex;
88 align-items: center;
89 gap: 8px;
90 padding-bottom: 10px;
91 border-bottom: 1px solid #e2e8f0;
92 }
93
94 .wpsp-admin-section-title .dashicons {
95 font-size: 16px;
96 width: 16px;
97 height: 16px;
98 color: #3C434B;
99 }
100
101 /* Form Grid */
102 .wpsp-admin-form-grid {
103 display: grid;
104 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
105 gap: 25px;
106 }
107
108 /* Form Fields */
109 .wpsp-admin-form-field {
110 margin-bottom: 0px;
111 }
112
113 .wpsp-admin-form-field label {
114 display: block;
115 margin-bottom: 8px;
116 font-weight: 500;
117 color: #23282d;
118 }
119
120 .wpsp-admin-field-description {
121 margin-top: 6px;
122 color: #757575;
123 font-style: italic;
124 font-size: 12px;
125 }
126
127 /* Color Picker Customizations */
128 .wpsp-admin-color-preview-wrap {
129 position: relative;
130 }
131
132 .wpsp-admin-color-preview-label {
133 position: absolute;
134 top: 0;
135 right: 0;
136 background: #f1f1f1;
137 padding: 3px 6px;
138 border-radius: 3px;
139 font-size: 10px;
140 color: #23282d;
141 opacity: 0.8;
142 z-index: 1;
143 }
144
145 .wp-picker-container {
146 position: relative;
147 z-index: 2;
148 }
149
150 .wp-picker-container.wp-picker-active {
151 z-index: 10;
152 }
153
154 /* Input with unit */
155 .wpsp-admin-input-with-unit {
156 position: relative;
157 max-width: 100px;
158 display: flex;
159 align-items: center;
160 }
161
162 .wpsp-admin-input-with-unit input {
163 width: 70px;
164 padding-right: 14px;
165 }
166
167 .wpsp-admin-unit {
168 margin-left: 5px;
169 color: #757575;
170 }
171
172 /* Border Radius Preview */
173 .wpsp-admin-radius-preview {
174 margin-top: 10px;
175 width: 100px;
176 height: 100px;
177 padding: 10px;
178 background: #f9f9f9;
179 display: flex;
180 align-items: center;
181 justify-content: center;
182 border: 1px solid #ddd;
183 }
184
185 .wpsp-admin-form-radius-box {
186 width: 80px;
187 height: 80px;
188 background: #0f8569;
189 transition: border-radius 0.2s ease;
190 }
191
192 .wpsp-admin-radius-preview--inline {
193 display: flex;
194 flex-direction: column;
195 gap: 6px;
196 width: 220px;
197 }
198
199 .wpsp-admin-radius-input-preview {
200 max-width: 180px;
201 width: 100%;
202 height: 32px;
203 border: 1px solid #8c8f94;
204 background: #fff;
205 transition: border-radius 0.2s ease;
206 display: flex;
207 align-items: center;
208 padding: 0 8px;
209 box-sizing: border-box;
210 }
211
212 .wpsp-admin-radius-input-preview span {
213 color: #8c8f94;
214 font-size: 13px;
215 white-space: nowrap;
216 overflow: hidden;
217 text-overflow: ellipsis;
218 }
219
220 .wpsp-admin-radius-button-preview {
221 max-width: 180px;
222 width: 100%;
223 height: 32px;
224 padding: 0 16px;
225 background: #0f8569;
226 color: #fff;
227 font-size: 13px;
228 line-height: 32px;
229 text-align: center;
230 box-sizing: border-box;
231 transition: border-radius 0.2s ease;
232 }
233
234 /* Button Previews */
235 .wpsp-admin-button-preview {
236 display: flex;
237 align-items: center;
238 justify-content: center;
239 padding: 8px 16px;
240 margin-top: 8px;
241 border-radius: 4px;
242 font-size: 14px;
243 font-weight: 500;
244 transition: all 0.2s ease;
245 background: #2271b1;
246 color: #fff;
247 cursor: default;
248 }
249
250 .wpsp-admin-button-hover:hover {
251 opacity: 0.9;
252 }
253
254 /* Reset Button and Actions */
255 .wpsp-admin-actions {
256 margin-top: 20px;
257 padding: 15px 25px;
258 background: #f9f9f9;
259 border-top: 1px solid #e2e4e7;
260 display: flex;
261 flex-wrap: wrap;
262 align-items: center;
263 gap: 15px;
264 }
265
266 #wpsp-admin-reset-styles {
267 display: flex;
268 align-items: center;
269 gap: 5px;
270 }
271
272 .wpsp-admin-reset-description {
273 margin: 0;
274 color: #757575;
275 font-style: italic;
276 font-size: 13px;
277 }
278
279 /* Select Field */
280 .wpsp-admin-select {
281 min-width: 200px;
282 padding: 5px;
283 }
284
285 /* Responsive styles */
286 @media screen and (max-width: 782px) {
287 .wpsp-admin-form-grid {
288 display: block;
289 }
290
291 .wpsp-admin-tabs-nav {
292 flex-wrap: wrap;
293 }
294
295 .wpsp-admin-tab-button {
296 flex: 1;
297 text-align: center;
298 justify-content: center;
299 }
300
301 .wpsp-admin-theme-grid {
302 grid-template-columns: 1fr;
303 gap: 16px;
304 }
305 }
306
307 @media screen and (max-width: 1200px) and (min-width: 783px) {
308 .wpsp-admin-theme-grid {
309 grid-template-columns: repeat(2, 1fr);
310 gap: 20px;
311 }
312 }
313
314 /* Theme instructions */
315
316 /* Preview styling to match actual form */
317 .wpsp-admin-preview-wrapper {
318 padding: 16px;
319 border-radius: 8px;
320 margin-top: 8px;
321 }
322
323 .wpsp-admin-preview-label {
324 display: block;
325 margin-bottom: 4px;
326 font-size: 12px;
327 font-weight: 500;
328 line-height: 1.4;
329 }
330
331 .wpsp-admin-preview-input {
332 width: 100%;
333 padding: 8px 12px;
334 border: 1px solid;
335 border-radius: 4px;
336 font-size: 14px;
337 line-height: 1.4;
338 transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
339 }
340
341 .wpsp-admin-preview-input:focus {
342 outline: none;
343 border-color: var(--theme-primary, #0f8569);
344 box-shadow: 0 0 0 1px var(--theme-primary, #0f8569), 0 0 0 3px rgba(15, 133, 105, 0.15);
345 }
346
347 .wpsp-admin-preview-btn {
348 width: 100%;
349 padding: 10px 16px;
350 border: none;
351 border-radius: 4px;
352 font-size: 14px;
353 font-weight: 500;
354 line-height: 1.4;
355 cursor: pointer;
356 transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
357 }
358
359 .wpsp-admin-preview-btn:hover {
360 transform: translateY(-1px);
361 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
362 }
363
364 .wpsp-admin-preview-btn:active {
365 transform: translateY(0);
366 }
367
368 /* Theme selection grid */
369 .wpsp-admin-theme-grid {
370 display: grid;
371 grid-template-columns: repeat(2, 1fr);
372 gap: 24px;
373 margin-bottom: 24px;
374 }
375
376 .wpsp-admin-theme-card {
377 border: 1px solid #e1e5e9;
378 border-radius: 12px;
379 overflow: hidden;
380 cursor: pointer;
381 background: #fff;
382 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
383 position: relative;
384 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
385 z-index: 1;
386 }
387
388 .wpsp-admin-theme-card:hover {
389 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
390 transform: translateY(-4px);
391 border-color: #d1d5db;
392 }
393
394 .wpsp-admin-theme-card.selected {
395 border: none;
396 box-shadow: 0 8px 25px rgba(15, 133, 105, 0.15);
397 transform: translateY(-2px);
398 position: relative;
399 }
400
401 .wpsp-admin-theme-card.selected::before {
402 content: '';
403 position: absolute;
404 top: 0;
405 left: 0;
406 right: 0;
407 bottom: 0;
408 border: 2px solid #0f8569;
409 border-radius: 12px;
410 pointer-events: none;
411 z-index: 2;
412 }
413
414 .wpsp-admin-theme-card.selected::after {
415 content: '';
416 position: absolute;
417 top: 8px;
418 right: 8px;
419 width: 24px;
420 height: 24px;
421 background: #0f8569;
422 color: white;
423 border-radius: 50%;
424 display: flex;
425 align-items: center;
426 justify-content: center;
427 font-size: 14px;
428 font-weight: bold;
429 z-index: 3;
430 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
431 }
432
433 /* Fade other themes when one is selected */
434 .wpsp-admin-theme-grid:has(.wpsp-admin-theme-card.selected) .wpsp-admin-theme-card:not(.selected) {
435 opacity: 0.4;
436 filter: grayscale(0.3);
437 transform: scale(0.98);
438 transition: all 0.3s ease;
439 }
440
441 .wpsp-admin-theme-grid:has(.wpsp-admin-theme-card.selected) .wpsp-admin-theme-card:not(.selected):hover {
442 opacity: 0.6;
443 filter: grayscale(0.2);
444 transform: scale(0.99);
445 }
446
447 /* Fade effect for non-selected themes (JavaScript fallback) */
448 .wpsp-admin-theme-card.faded {
449 opacity: 0.4;
450 filter: grayscale(0.3);
451 transform: scale(0.98);
452 transition: all 0.3s ease;
453 }
454
455 .wpsp-admin-theme-card.faded:hover {
456 opacity: 0.6;
457 filter: grayscale(0.2);
458 transform: scale(0.99);
459 }
460
461 .wpsp-admin-theme-preview {
462 padding: 12px;
463 background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
464 border-bottom: 1px solid #e2e8f0;
465 position: relative;
466 overflow: visible;
467 }
468
469
470 .wpsp-admin-theme-colors {
471 display: flex;
472 gap: 6px;
473 margin-bottom: 12px;
474 justify-content: flex-start;
475 position: relative;
476 z-index: 1;
477 }
478
479 .wpsp-admin-theme-color {
480 width: 28px;
481 height: 28px;
482 border-radius: 50%;
483 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
484 position: relative;
485 transition: transform 0.2s ease;
486 }
487
488 .wpsp-admin-theme-color:hover {
489 transform: scale(1.1);
490 }
491
492 .wpsp-admin-theme-color::after {
493 content: attr(data-color-name);
494 position: absolute;
495 bottom: -25px;
496 left: -5px;
497 font-size: 10px;
498 color: #64748b;
499 font-weight: 500;
500 white-space: nowrap;
501 opacity: 0;
502 transition: opacity 0.2s ease;
503 background: rgba(255, 255, 255, 0.95);
504 padding: 4px 8px;
505 border-radius: 4px;
506 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
507 z-index: 9999;
508 pointer-events: none;
509 border: 1px solid rgba(0, 0, 0, 0.1);
510 }
511
512 .wpsp-admin-theme-color:hover::after {
513 opacity: 1;
514 }
515
516 /* Mini form preview */
517 .wpsp-admin-theme-form-preview {
518 background: var(--theme-background, #ffffff);
519 border: 1px solid var(--theme-border, #e6e6e6);
520 border-radius: 6px;
521 padding: 10px;
522 margin-bottom: 10px;
523 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
524 pointer-events: none;
525 }
526
527 .wpsp-admin-theme-form-preview .preview-field {
528 margin-bottom: 8px;
529 }
530
531 .wpsp-admin-theme-form-preview .preview-label {
532 display: block;
533 font-size: 12px;
534 font-weight: 500;
535 color: var(--theme-text, #32325d);
536 margin-bottom: 4px;
537 }
538
539 .wpsp-admin-theme-form-preview .preview-input {
540 width: 100%;
541 height: 28px;
542 padding: 4px 8px;
543 border: 1px solid var(--theme-border, #e6e6e6);
544 border-radius: 3px;
545 background: var(--theme-input-bg, #ffffff);
546 color: var(--theme-text, #32325d);
547 font-size: 11px;
548 transition: border-color 0.2s ease;
549 }
550
551 .wpsp-admin-theme-form-preview .preview-input:focus {
552 outline: none;
553 border-color: var(--theme-primary, #0f8569);
554 box-shadow: 0 0 0 2px rgba(15, 133, 105, 0.1);
555 }
556
557 .wpsp-admin-theme-form-preview .wpsp-admin-theme-button {
558 width: 100%;
559 padding: 6px 10px;
560 border-radius: 3px;
561 font-size: 11px;
562 font-weight: 600;
563 cursor: default;
564 transition: all 0.2s ease;
565 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
566 border: none;
567 margin-top: 2px;
568 }
569
570 .wpsp-admin-theme-form-preview .wpsp-admin-theme-button:hover {
571 transform: translateY(-1px);
572 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
573 }
574
575 .wpsp-admin-preview-button {
576 cursor: not-allowed;
577 pointer-events: none;
578 user-select: none;
579 }
580
581 .wpsp-admin-preview-button:hover {
582 transform: none !important;
583 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
584 }
585
586 .wpsp-admin-theme-button {
587 text-align: center;
588 padding: 10px 16px;
589 border-radius: 6px;
590 font-size: 13px;
591 font-weight: 600;
592 cursor: default;
593 transition: all 0.2s ease;
594 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
595 border: none;
596 width: 100%;
597 }
598
599 .wpsp-admin-theme-button:hover {
600 transform: translateY(-1px);
601 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
602 }
603
604 .wpsp-admin-theme-info {
605 padding: 12px;
606 background: #fff;
607 }
608
609 .wpsp-admin-theme-info h4 {
610 margin: 0 0 6px 0;
611 font-size: 14px;
612 font-weight: 600;
613 color: #1e293b;
614 }
615
616 .wpsp-admin-theme-info p {
617 margin: 0 0 10px 0;
618 font-size: 12px;
619 color: #64748b;
620 line-height: 1.4;
621 }
622
623 .wpsp-admin-theme-radio {
624 position: absolute;
625 opacity: 0;
626 }
627
628
629 .wpsp-admin-theme-instructions {
630 background: #fff;
631 border: 1px solid #c3c4c7;
632 border-left-width: 4px;
633 border-left-color: #0f8569;
634 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
635 padding: 12px 18px;
636 margin-bottom: 24px;
637 border-radius: 0;
638 }
639
640 .wpsp-admin-theme-instructions p {
641 margin: 0;
642 color: #50575e;
643 font-size: 13px;
644 line-height: 1.5;
645 }
646
647 /* Color name labels */
648 .wpsp-admin-theme-color[data-color-name="Primary"]::after {
649 content: "Primary";
650 }
651
652 .wpsp-admin-theme-color[data-color-name="Secondary"]::after {
653 content: "Secondary";
654 }
655
656 .wpsp-admin-theme-color[data-color-name="Text"]::after {
657 content: "Text";
658 }
659
660 .wpspwpsps-theme-color[data-color-name="Background"]::after {
661 content: "Background";
662 }
663