PluginProbe ʕ •ᴥ•ʔ
FrontBlocks for Gutenberg/GeneratePress / trunk
FrontBlocks for Gutenberg/GeneratePress vtrunk
trunk 0.2.0 0.2.1 0.2.2 0.2.3 0.2.4 0.2.5 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 ci-artifacts
frontblocks / assets / gravityforms-inline / frontblocks-gf-inline.css
frontblocks / assets / gravityforms-inline Last commit date
frontblocks-gf-inline-option.js 7 months ago frontblocks-gf-inline-option.jsx 1 month ago frontblocks-gf-inline.css 4 months ago frontblocks-gf-inline.js 7 months ago
frontblocks-gf-inline.css
199 lines
1 /**
2 * FrontBlocks - Gravity Forms Inline Layout Styles
3 *
4 * @package FrontBlocks
5 * @author Closemarketing
6 * @copyright 2025 Closemarketing
7 */
8
9 /* Inline Layout for Gravity Forms */
10 .frontblocks-gf-inline .gform_wrapper form,
11 .frontblocks-gf-inline-preview .gform_wrapper form,
12 .frontblocks-gf-inline-wrapper .gform_wrapper form {
13 display: flex;
14 flex-wrap: wrap;
15 align-items: flex-start;
16 gap: var(--gf-inline-gap, 10px);
17 }
18
19 .frontblocks-gf-inline .gform_wrapper .gform_body,
20 .frontblocks-gf-inline-preview .gform_wrapper .gform_body,
21 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_body {
22 flex: 1 1 auto;
23 min-width: 0;
24 }
25
26 .frontblocks-gf-inline .gform_wrapper .gform_footer,
27 .frontblocks-gf-inline-preview .gform_wrapper .gform_footer,
28 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_footer {
29 flex: 0 0 auto;
30 margin: 0 !important;
31 padding: 0 !important;
32 }
33
34 /* Make form fields display inline */
35 .frontblocks-gf-inline .gform_wrapper .gform_fields,
36 .frontblocks-gf-inline-preview .gform_wrapper .gform_fields,
37 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_fields {
38 display: flex;
39 flex-wrap: wrap;
40 align-items: flex-start;
41 gap: var(--gf-inline-gap, 10px);
42 margin: 0 !important;
43 }
44
45 .frontblocks-gf-inline .gform_wrapper .gfield,
46 .frontblocks-gf-inline-preview .gform_wrapper .gfield,
47 .frontblocks-gf-inline-wrapper .gform_wrapper .gfield {
48 flex: 1 1 auto;
49 min-width: 200px;
50 margin: 0 !important;
51 padding: 0 !important;
52 }
53
54 /* Hide labels for cleaner inline appearance (optional - can be customized) */
55 .frontblocks-gf-inline .gform_wrapper .gfield_label,
56 .frontblocks-gf-inline-preview .gform_wrapper .gfield_label,
57 .frontblocks-gf-inline-wrapper .gform_wrapper .gfield_label {
58 position: absolute;
59 width: 1px;
60 height: 1px;
61 padding: 0;
62 margin: -1px;
63 overflow: hidden;
64 clip: rect(0, 0, 0, 0);
65 white-space: nowrap;
66 border-width: 0;
67 }
68
69 /* Keep label visible for screen readers but show placeholder */
70 .frontblocks-gf-inline .gform_wrapper .ginput_container input,
71 .frontblocks-gf-inline .gform_wrapper .ginput_container select,
72 .frontblocks-gf-inline .gform_wrapper .ginput_container textarea,
73 .frontblocks-gf-inline-preview .gform_wrapper .ginput_container input,
74 .frontblocks-gf-inline-preview .gform_wrapper .ginput_container select,
75 .frontblocks-gf-inline-preview .gform_wrapper .ginput_container textarea,
76 .frontblocks-gf-inline-wrapper .gform_wrapper .ginput_container input,
77 .frontblocks-gf-inline-wrapper .gform_wrapper .ginput_container select,
78 .frontblocks-gf-inline-wrapper .gform_wrapper .ginput_container textarea {
79 width: 100%;
80 margin: 0;
81 }
82
83 /* Button alignment */
84 .frontblocks-gf-inline .gform_wrapper .gform_footer input[type="submit"],
85 .frontblocks-gf-inline .gform_wrapper .gform_footer button,
86 .frontblocks-gf-inline-preview .gform_wrapper .gform_footer input[type="submit"],
87 .frontblocks-gf-inline-preview .gform_wrapper .gform_footer button,
88 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_footer input[type="submit"],
89 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_footer button {
90 margin: 0;
91 white-space: nowrap;
92 }
93
94 /* Validation errors */
95 .frontblocks-gf-inline .gform_wrapper .gfield_error,
96 .frontblocks-gf-inline-preview .gform_wrapper .gfield_error,
97 .frontblocks-gf-inline-wrapper .gform_wrapper .gfield_error {
98 flex-basis: 100%;
99 }
100
101 .frontblocks-gf-inline .gform_wrapper .validation_message,
102 .frontblocks-gf-inline-preview .gform_wrapper .validation_message,
103 .frontblocks-gf-inline-wrapper .gform_wrapper .validation_message {
104 margin-top: 5px;
105 }
106
107 /* Responsive: Stack on mobile */
108 @media (max-width: 768px) {
109 .frontblocks-gf-inline .gform_wrapper form,
110 .frontblocks-gf-inline-preview .gform_wrapper form,
111 .frontblocks-gf-inline-wrapper .gform_wrapper form {
112 flex-direction: column;
113 }
114
115 .frontblocks-gf-inline .gform_wrapper .gform_fields,
116 .frontblocks-gf-inline-preview .gform_wrapper .gform_fields,
117 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_fields {
118 flex-direction: column;
119 }
120
121 .frontblocks-gf-inline .gform_wrapper .gfield,
122 .frontblocks-gf-inline-preview .gform_wrapper .gfield,
123 .frontblocks-gf-inline-wrapper .gform_wrapper .gfield {
124 width: 100%;
125 }
126
127 .frontblocks-gf-inline .gform_wrapper .gform_footer,
128 .frontblocks-gf-inline-preview .gform_wrapper .gform_footer,
129 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_footer {
130 width: 100%;
131 }
132
133 .frontblocks-gf-inline .gform_wrapper .gform_footer input[type="submit"],
134 .frontblocks-gf-inline .gform_wrapper .gform_footer button,
135 .frontblocks-gf-inline-preview .gform_wrapper .gform_footer input[type="submit"],
136 .frontblocks-gf-inline-preview .gform_wrapper .gform_footer button,
137 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_footer input[type="submit"],
138 .frontblocks-gf-inline-wrapper .gform_wrapper .gform_footer button {
139 width: 100%;
140 }
141 }
142
143 /* Support for specific form types */
144
145 /* Newsletter signup (email + button) */
146 .frontblocks-gf-inline .gform_wrapper .gfield--type-email {
147 flex: 1 1 auto;
148 min-width: 250px;
149 }
150
151 /* Search form (text + button) */
152 .frontblocks-gf-inline .gform_wrapper .gfield--type-text {
153 flex: 1 1 auto;
154 min-width: 250px;
155 }
156
157 /* Honeypot and hidden fields */
158 .frontblocks-gf-inline .gform_wrapper .gform_validation_container,
159 .frontblocks-gf-inline .gform_wrapper .gfield_visibility_hidden {
160 display: none !important;
161 }
162
163 /* AJAX Spinner alignment */
164 .frontblocks-gf-inline .gform_wrapper .gform_ajax_spinner {
165 display: inline-block;
166 margin-left: 10px;
167 vertical-align: middle;
168 }
169
170 /* RTL Support */
171 [dir="rtl"] .frontblocks-gf-inline .gform_wrapper .gform_ajax_spinner {
172 margin-left: 0;
173 margin-right: 10px;
174 }
175
176 /* -------------------------------------------------------------------------
177 GenerateBlocks Accordion + Gravity Form: remove blank space when closed
178 When a Gravity Form is inside a GB accordion and the accordion is above
179 the footer, the closed content can still reserve space. Force it to none.
180 ------------------------------------------------------------------------- */
181 .gb-accordion__item:not(.gb-accordion__item-open):not([data-accordion-is-open="true"]) > .gb-accordion__content {
182 display: none;
183 overflow: hidden;
184 max-height: 0;
185 min-height: 0 ;
186 margin: 0 ;
187 padding: 0 ;
188 visibility: hidden;
189 }
190
191 /* Prevent Gravity Form wrapper from forcing height when inside closed accordion. */
192 .gb-accordion__item:not(.gb-accordion__item-open):not([data-accordion-is-open="true"]) > .gb-accordion__content .gform_wrapper {
193 min-height: 0;
194 height: 0;
195 overflow: hidden;
196 visibility: hidden;
197 }
198
199