PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
← All changes | backend/src/Services/Shortcode/InlineStyleHelper.php +103 -0 0.6.1 → 1.5.1 View file →
@@ -1,0 +1,103 @@
1 +<?php
2 +
3 +/**
4 + * Helper for IvyForms frontend inline styles
5 + * @copyright © Melograno Venture Studio. All rights reserved.
6 + * @licence See LICENCE.md for license details.
7 + */
8 +
9 +namespace IvyForms\Services\Shortcode;
10 +
11 +class InlineStyleHelper
12 +{
13 + /**
14 + * Returns the inline CSS for IvyForms frontend
15 + * @return string
16 + */
17 + public static function getFrontendInlineCss(): string
18 + {
19 + return '.ivyforms-skeleton {
20 + width: 100%;
21 + max-width: 720px;
22 + margin: 0 auto;
23 + }
24 +
25 + .ivyforms-skeleton-title {
26 + height: 28px;
27 + width: 40%;
28 + background: #dbdee3;
29 + margin-bottom: 12px;
30 + }
31 +
32 + .ivyforms-skeleton-field {
33 + margin-bottom: 16px;
34 + }
35 +
36 + .ivyforms-skeleton-label {
37 + height: 22px;
38 + width: 20%;
39 + background: #dbdee3;
40 + font-size: 14px;
41 + border-radius: 4px;
42 + margin-bottom: 4px;
43 + }
44 +
45 + .ivyforms-skeleton-input {
46 + line-height: 22px;
47 + font-size: 16px;
48 + background: #dbdee3;
49 + border-radius: 8px;
50 + width: 100%;
51 + }
52 +
53 + .ivyforms-skeleton-email,
54 + .ivyforms-skeleton-textarea,
55 + .ivyforms-skeleton-text,
56 + .ivyforms-skeleton-number,
57 + .ivyforms-skeleton-phone {
58 + height: 40px;
59 + }
60 +
61 + .ivyforms-skeleton-textarea {
62 + height: 60px;
63 + }
64 +
65 + .ivyforms-skeleton-button {
66 + height: 40px;
67 + width: 100px;
68 + background: #c0c5cb;
69 + border-radius: 6px;
70 + margin-top: 12px;
71 + }
72 +
73 + .ivyforms-skeleton-animate {
74 + animation: pulse 1.5s infinite ease-in-out;
75 + }
76 +
77 + @keyframes pulse {
78 + 0%, 100% {
79 + opacity: 1;
80 + }
81 + 50% {
82 + opacity: 0.4;
83 + }
84 + }
85 +
86 + .ivyforms-preview {
87 + width: 100%;
88 + max-width: 720px;
89 + margin: 0 auto;
90 + background: #fff;
91 + padding: 40px;
92 + }
93 +
94 + .ivyforms-preview h1 {
95 + font-size: 50px !important;
96 + font-weight: normal !important;
97 + margin-top: 0 !important;
98 + margin-left: 0 !important;
99 + margin-bottom: 20px !important;
100 + padding: 0 !important;
101 + }';
102 + }
103 +}