PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / faq-schema / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at blocks/faq-schema/style.css

259 lines 8.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* =============================================
2 FAQ Schema Block — bkbg-faq-schema
3 ============================================= */
4
5 /* ---- Defaults ---- */
6 .bkbg-faq-wrap {
7 --bkbg-faq-spacing: 10px;
8 --bkbg-faq-radius: 8px;
9 --bkbg-faq-q-padding: 18px;
10 --bkbg-faq-a-padding: 16px;
11 --bkbg-faq-speed: 300ms;
12 --bkbg-faq-q-color: #111827;
13 --bkbg-faq-q-bg: #ffffff;
14 --bkbg-faq-q-hover-bg: #f9fafb;
15 --bkbg-faq-q-active-bg: #eff6ff;
16 --bkbg-faq-q-active-color: #1d4ed8;
17 --bkbg-faq-a-color: #374151;
18 --bkbg-faq-a-bg: #ffffff;
19 --bkbg-faq-icon-color: #6b7280;
20 --bkbg-faq-icon-active-color: #2563eb;
21 --bkbg-faq-border-color: #e5e7eb;
22 --bkbg-faq-divider-color: #f3f4f6;
23 display: flex;
24 flex-direction: column;
25 gap: var(--bkbg-faq-spacing);
26 }
27
28 /* ---- Item ---- */
29 .bkbg-faq-item {
30 border: 1px solid var(--bkbg-faq-border-color);
31 border-radius: var(--bkbg-faq-radius);
32 overflow: hidden;
33 background: var(--bkbg-faq-q-bg);
34 }
35
36 /* ---- Question (trigger) ---- */
37 .bkbg-faq-question {
38 width: 100%;
39 display: flex;
40 align-items: center;
41 gap: 10px;
42 padding: var(--bkbg-faq-q-padding);
43 font-family: var(--bkbg-fqs-qt-font-family, inherit);
44 font-size: var(--bkbg-fqs-qt-font-size-d, 16px);
45 font-weight: var(--bkbg-fqs-qt-font-weight, 600);
46 font-style: var(--bkbg-fqs-qt-font-style, normal);
47 text-transform: var(--bkbg-fqs-qt-text-transform, none);
48 text-decoration: var(--bkbg-fqs-qt-text-decoration, none);
49 line-height: var(--bkbg-fqs-qt-line-height-d, 1.4);
50 letter-spacing: var(--bkbg-fqs-qt-letter-spacing-d, normal);
51 word-spacing: var(--bkbg-fqs-qt-word-spacing-d, normal);
52 color: var(--bkbg-faq-q-color);
53 background: var(--bkbg-faq-q-bg);
54 border: none;
55 cursor: pointer;
56 text-align: left;
57 transition: background var(--bkbg-faq-speed) ease, color var(--bkbg-faq-speed) ease;
58 position: relative;
59 }
60
61 .bkbg-faq-question:hover {
62 background: var(--bkbg-faq-q-hover-bg);
63 }
64
65 .bkbg-faq-item.is-active .bkbg-faq-question {
66 background: var(--bkbg-faq-q-active-bg);
67 color: var(--bkbg-faq-q-active-color);
68 }
69
70 .bkbg-faq-q-text {
71 flex: 1;
72 }
73
74 /* ---- Icon ---- */
75 .bkbg-faq-icon {
76 flex-shrink: 0;
77 display: flex;
78 align-items: center;
79 color: var(--bkbg-faq-icon-color);
80 transition: transform var(--bkbg-faq-speed) ease, color var(--bkbg-faq-speed) ease;
81 }
82
83 .bkbg-faq-item.is-active .bkbg-faq-icon {
84 color: var(--bkbg-faq-icon-active-color);
85 }
86
87 /* Chevron rotation */
88 [data-icon="chevron"] .bkbg-faq-item .bkbg-faq-icon,
89 [data-icon="arrow"] .bkbg-faq-item .bkbg-faq-icon {
90 transform: rotate(0deg);
91 }
92
93 [data-icon="chevron"] .bkbg-faq-item.is-active .bkbg-faq-icon,
94 [data-icon="arrow"] .bkbg-faq-item.is-active .bkbg-faq-icon {
95 transform: rotate(180deg);
96 }
97
98 /* Plus to minus */
99 [data-icon="plus"] .bkbg-faq-item .bkbg-faq-icon svg line:last-child {
100 transition: opacity var(--bkbg-faq-speed) ease;
101 }
102
103 [data-icon="plus"] .bkbg-faq-item.is-active .bkbg-faq-icon svg line:last-child {
104 opacity: 0;
105 }
106
107 /* ---- Answer ---- */
108 .bkbg-faq-answer {
109 max-height: 0;
110 overflow: hidden;
111 transition: max-height var(--bkbg-faq-speed) ease;
112 }
113
114 .bkbg-faq-item.is-active .bkbg-faq-answer {
115 max-height: 2000px;
116 }
117
118 .bkbg-faq-answer-inner {
119 padding: 0 var(--bkbg-faq-a-padding) var(--bkbg-faq-a-padding);
120 border-top: 1px solid var(--bkbg-faq-divider-color);
121 background: var(--bkbg-faq-a-bg);
122 padding-top: var(--bkbg-faq-a-padding);
123 }
124
125 .bkbg-faq-answer-body {
126 font-family: var(--bkbg-fqs-an-font-family, inherit);
127 font-size: var(--bkbg-fqs-an-font-size-d, 15px);
128 font-weight: var(--bkbg-fqs-an-font-weight, normal);
129 font-style: var(--bkbg-fqs-an-font-style, normal);
130 text-transform: var(--bkbg-fqs-an-text-transform, none);
131 text-decoration: var(--bkbg-fqs-an-text-decoration, none);
132 line-height: var(--bkbg-fqs-an-line-height-d, 1.7);
133 letter-spacing: var(--bkbg-fqs-an-letter-spacing-d, normal);
134 word-spacing: var(--bkbg-fqs-an-word-spacing-d, normal);
135 color: var(--bkbg-faq-a-color);
136 margin: 0;
137 }
138
139 .bkbg-faq-answer-body > *:last-child {
140 margin-bottom: 0;
141 }
142
143 /* ---- Layout: boxed ---- */
144 .bkbg-faq-wrap[data-layout="boxed"] .bkbg-faq-item {
145 box-shadow: 0 1px 3px rgba(0,0,0,0.07);
146 }
147
148 /* ---- Layout: minimal ---- */
149 .bkbg-faq-wrap[data-layout="minimal"] .bkbg-faq-item {
150 border-left: none;
151 border-right: none;
152 border-top: none;
153 border-radius: 0;
154 border-bottom-color: var(--bkbg-faq-border-color);
155 }
156
157 .bkbg-faq-wrap[data-layout="minimal"] .bkbg-faq-answer-inner {
158 border-top: none;
159 padding-top: 0;
160 }
161
162 /* ---- Layout: bordered-left ---- */
163 .bkbg-faq-wrap[data-layout="bordered-left"] .bkbg-faq-item {
164 border-left: 4px solid var(--bkbg-faq-border-color);
165 border-radius: 0 var(--bkbg-faq-radius) var(--bkbg-faq-radius) 0;
166 }
167
168 .bkbg-faq-wrap[data-layout="bordered-left"] .bkbg-faq-item.is-active {
169 border-left-color: var(--bkbg-faq-icon-active-color);
170 }
171
172 /* =============================================
173 Editor-specific styles
174 ============================================= */
175 .bkbg-faq-editor .bkbg-faq-item {
176 position: relative;
177 }
178
179 .bkbg-faq-editor .bkbg-faq-answer {
180 max-height: none;
181 overflow: visible;
182 display: none;
183 }
184
185 .bkbg-faq-editor .bkbg-faq-item.is-active .bkbg-faq-answer {
186 display: block;
187 }
188
189 .bkbg-faq-item-actions {
190 display: flex;
191 gap: 4px;
192 padding: 4px 8px;
193 background: #f0f0f0;
194 border-bottom: 1px solid #ddd;
195 justify-content: flex-end;
196 }
197
198 .bkbg-faq-q-input {
199 flex: 1;
200 border: none;
201 background: transparent;
202 font-size: inherit;
203 font-weight: inherit;
204 color: inherit;
205 outline: none;
206 cursor: text;
207 min-width: 0;
208 }
209
210 .bkbg-faq-schema-badge {
211 font-size: 11px;
212 color: #059669;
213 background: #ecfdf5;
214 border: 1px solid #a7f3d0;
215 border-radius: 4px;
216 padding: 4px 10px;
217 display: inline-block;
218 margin-bottom: 12px;
219 font-weight: 600;
220 }
221
222 .bkbg-faq-add-wrap {
223 margin-top: 12px;
224 }
225
226 .bkbg-faq-add-btn {
227 width: 100%;
228 }
229
230 /* ---- Responsive typography ---- */
231 @media (max-width: 1024px) {
232 .bkbg-faq-question {
233 font-size: var(--bkbg-fqs-qt-font-size-t, var(--bkbg-fqs-qt-font-size-d, 16px));
234 line-height: var(--bkbg-fqs-qt-line-height-t, var(--bkbg-fqs-qt-line-height-d, 1.4));
235 letter-spacing: var(--bkbg-fqs-qt-letter-spacing-t, var(--bkbg-fqs-qt-letter-spacing-d, normal));
236 word-spacing: var(--bkbg-fqs-qt-word-spacing-t, var(--bkbg-fqs-qt-word-spacing-d, normal));
237 }
238 .bkbg-faq-answer-body {
239 font-size: var(--bkbg-fqs-an-font-size-t, var(--bkbg-fqs-an-font-size-d, 15px));
240 line-height: var(--bkbg-fqs-an-line-height-t, var(--bkbg-fqs-an-line-height-d, 1.7));
241 letter-spacing: var(--bkbg-fqs-an-letter-spacing-t, var(--bkbg-fqs-an-letter-spacing-d, normal));
242 word-spacing: var(--bkbg-fqs-an-word-spacing-t, var(--bkbg-fqs-an-word-spacing-d, normal));
243 }
244 }
245 @media (max-width: 767px) {
246 .bkbg-faq-question {
247 font-size: var(--bkbg-fqs-qt-font-size-m, var(--bkbg-fqs-qt-font-size-t, var(--bkbg-fqs-qt-font-size-d, 16px)));
248 line-height: var(--bkbg-fqs-qt-line-height-m, var(--bkbg-fqs-qt-line-height-t, var(--bkbg-fqs-qt-line-height-d, 1.4)));
249 letter-spacing: var(--bkbg-fqs-qt-letter-spacing-m, var(--bkbg-fqs-qt-letter-spacing-t, var(--bkbg-fqs-qt-letter-spacing-d, normal)));
250 word-spacing: var(--bkbg-fqs-qt-word-spacing-m, var(--bkbg-fqs-qt-word-spacing-t, var(--bkbg-fqs-qt-word-spacing-d, normal)));
251 }
252 .bkbg-faq-answer-body {
253 font-size: var(--bkbg-fqs-an-font-size-m, var(--bkbg-fqs-an-font-size-t, var(--bkbg-fqs-an-font-size-d, 15px)));
254 line-height: var(--bkbg-fqs-an-line-height-m, var(--bkbg-fqs-an-line-height-t, var(--bkbg-fqs-an-line-height-d, 1.7)));
255 letter-spacing: var(--bkbg-fqs-an-letter-spacing-m, var(--bkbg-fqs-an-letter-spacing-t, var(--bkbg-fqs-an-letter-spacing-d, normal)));
256 word-spacing: var(--bkbg-fqs-an-word-spacing-m, var(--bkbg-fqs-an-word-spacing-t, var(--bkbg-fqs-an-word-spacing-d, normal)));
257 }
258 }
259