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 / product-tour / style.css

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

294 lines 9.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ====================================================
2 Product Tour Block — style.css
3 Block: blockenberg/product-tour
4 ==================================================== */
5
6 /* Wrapper */
7 .bkbg-ptour-wrap {
8 padding-top: var(--bkbg-ptour-pt, 72px);
9 padding-bottom: var(--bkbg-ptour-pb, 72px);
10 box-sizing: border-box;
11 }
12
13 /* ---- Section Header ---- */
14 .bkbg-ptour-header {
15 margin-bottom: var(--bkbg-ptour-h-gap, 56px);
16 }
17
18 .bkbg-ptour-eyebrow {
19 display: inline-block;
20 padding: 5px 14px;
21 border-radius: 50px;
22 font-size: 12px;
23 font-weight: 600;
24 letter-spacing: .06em;
25 text-transform: uppercase;
26 background: var(--bkbg-ptour-ey-bg, #f0ebff);
27 color: var(--bkbg-ptour-ey-c, #6c3fb5);
28 margin-bottom: 16px;
29 }
30
31 .bkbg-ptour-wrap h2.bkbg-ptour-section-title,
32 .bkbg-ptour-wrap .bkbg-ptour-section-title {
33 font-family: var(--bkbg-ptour-stt-font-family);
34 font-size: var(--bkbg-ptour-stt-font-size-d, 28px);
35 font-weight: var(--bkbg-ptour-stt-font-weight, 700);
36 font-style: var(--bkbg-ptour-stt-font-style, normal);
37 text-decoration: var(--bkbg-ptour-stt-text-decoration, none);
38 text-transform: var(--bkbg-ptour-stt-text-transform, none);
39 line-height: var(--bkbg-ptour-stt-line-height-d, 1.18);
40 letter-spacing: var(--bkbg-ptour-stt-letter-spacing-d, normal);
41 word-spacing: var(--bkbg-ptour-stt-word-spacing-d, normal);
42 color: var(--bkbg-ptour-sec-title-c, #0f172a);
43 margin: 0 0 14px;
44 }
45
46 .bkbg-ptour-section-sub {
47 font-family: var(--bkbg-ptour-ssb-font-family, inherit);
48 font-size: var(--bkbg-ptour-ssb-font-size-d, 17px);
49 font-weight: var(--bkbg-ptour-ssb-font-weight, 400);
50 font-style: var(--bkbg-ptour-ssb-font-style, normal);
51 text-decoration: var(--bkbg-ptour-ssb-text-decoration, none);
52 text-transform: var(--bkbg-ptour-ssb-text-transform, none);
53 line-height: var(--bkbg-ptour-ssb-line-height-d, 1.6);
54 letter-spacing: var(--bkbg-ptour-ssb-letter-spacing-d, normal);
55 word-spacing: var(--bkbg-ptour-ssb-word-spacing-d, normal);
56 color: var(--bkbg-ptour-sec-sub-c, #475569);
57 margin: 0;
58 }
59
60 /* ---- Body split layout ---- */
61 .bkbg-ptour-body {
62 display: flex;
63 gap: 48px;
64 align-items: flex-start;
65 }
66
67 /* ---- Tabs sidebar ---- */
68 .bkbg-ptour-tabs {
69 flex: 0 0 340px;
70 display: flex;
71 flex-direction: column;
72 gap: 6px;
73 }
74
75 /* layout: tabs-right flips order */
76 .bkbg-ptour-layout--tabs-right .bkbg-ptour-body {
77 flex-direction: row-reverse;
78 }
79
80 /* layout: tabs-top stacks vertically */
81 .bkbg-ptour-layout--tabs-top .bkbg-ptour-body {
82 flex-direction: column;
83 }
84 .bkbg-ptour-layout--tabs-top .bkbg-ptour-tabs {
85 flex: none;
86 flex-direction: row;
87 flex-wrap: wrap;
88 gap: 8px;
89 }
90 .bkbg-ptour-layout--tabs-top .bkbg-ptour-panels {
91 width: 100%;
92 }
93
94 /* Tab items */
95 .bkbg-ptour-tab {
96 display: flex;
97 align-items: flex-start;
98 gap: 14px;
99 width: 100%;
100 padding: 16px 18px;
101 border: 2px solid transparent;
102 border-radius: 12px;
103 background: transparent;
104 cursor: pointer;
105 text-align: left;
106 transition: background .2s, border-color .2s, box-shadow .2s;
107 line-height: 1.4;
108 }
109
110 .bkbg-ptour-tab:hover {
111 background: var(--bkbg-ptour-tab-act-bg, #f5f3ff);
112 }
113
114 .bkbg-ptour-tab--active {
115 background: var(--bkbg-ptour-tab-act-bg, #f5f3ff);
116 border-color: var(--bkbg-ptour-tab-brd, #6c3fb5);
117 box-shadow: 0 2px 10px rgba(108,63,181,.10);
118 }
119
120 /* Number badge */
121 .bkbg-ptour-num {
122 flex-shrink: 0;
123 display: flex;
124 align-items: center;
125 justify-content: center;
126 width: 36px;
127 height: 36px;
128 border-radius: 50%;
129 font-size: 14px;
130 font-weight: 700;
131 background: var(--bkbg-ptour-num-bg, #e8e0f9);
132 color: var(--bkbg-ptour-num-c, #6c3fb5);
133 transition: background .2s, color .2s;
134 margin-top: 1px;
135 }
136
137 .bkbg-ptour-tab--active .bkbg-ptour-num {
138 background: var(--bkbg-ptour-tab-brd, #6c3fb5);
139 color: #fff;
140 }
141
142 /* Icon badge */
143 .bkbg-ptour-tab-icon {
144 font-size: 24px;
145 flex-shrink: 0;
146 line-height: 1;
147 margin-top: 3px;
148 }
149 .bkbg-ptour-tab-icon svg { width: 1em; height: 1em; fill: currentColor; }
150 .bkbg-ptour-tab-icon .dashicons { font-size: inherit; width: 1em; height: 1em; line-height: 1; }
151 .bkbg-ptour-tab-icon .bkbg-icon-img { width: 1em; height: 1em; object-fit: contain; }
152
153 /* Tab text */
154 .bkbg-ptour-tab-text {
155 flex: 1;
156 min-width: 0;
157 }
158
159 .bkbg-ptour-tab-title {
160 display: block;
161 font-family: var(--bkbg-ptour-stp-font-family, inherit);
162 font-size: var(--bkbg-ptour-stp-font-size-d, 15px);
163 font-weight: var(--bkbg-ptour-stp-font-weight, 600);
164 font-style: var(--bkbg-ptour-stp-font-style, normal);
165 text-decoration: var(--bkbg-ptour-stp-text-decoration, none);
166 text-transform: var(--bkbg-ptour-stp-text-transform, none);
167 line-height: var(--bkbg-ptour-stp-line-height-d, 1.4);
168 letter-spacing: var(--bkbg-ptour-stp-letter-spacing-d, normal);
169 word-spacing: var(--bkbg-ptour-stp-word-spacing-d, normal);
170 color: var(--bkbg-ptour-title-c, #0f172a);
171 }
172
173 .bkbg-ptour-tab-desc {
174 margin: 6px 0 0;
175 font-size: 13px;
176 color: var(--bkbg-ptour-desc-c, #64748b);
177 line-height: 1.5;
178 /* collapsed by default, shown via .is-active or editor open state */
179 display: none;
180 }
181
182 .bkbg-ptour-tab--active .bkbg-ptour-tab-desc {
183 display: block;
184 }
185
186 /* ---- Panels (image area) ---- */
187 .bkbg-ptour-panels {
188 flex: 1;
189 position: relative;
190 min-width: 0;
191 }
192
193 .bkbg-ptour-panel {
194 display: none;
195 }
196
197 .bkbg-ptour-panel--active {
198 display: block;
199 }
200
201 /* ---- Screenshot image ---- */
202 .bkbg-ptour-img {
203 display: block;
204 width: 100%;
205 height: auto;
206 border-radius: var(--bkbg-ptour-img-r, 16px);
207 object-fit: cover;
208 }
209
210 .bkbg-ptour-img--shadow {
211 box-shadow: 0 24px 60px rgba(0,0,0,.16), 0 4px 16px rgba(0,0,0,.08);
212 }
213
214 /* Placeholder */
215 .bkbg-ptour-img-placeholder {
216 display: flex;
217 flex-direction: column;
218 align-items: center;
219 justify-content: center;
220 aspect-ratio: 16/9;
221 border-radius: var(--bkbg-ptour-img-r, 16px);
222 background: linear-gradient(135deg, #f0ebff 0%, #ede9fe 100%);
223 color: #94a3b8;
224 font-size: 13px;
225 border: 2px dashed #c4b5fd;
226 }
227
228 /* ---- Editor: preview shows current active step ---- */
229 .bkbg-ptour-preview {
230 width: 100%;
231 }
232
233 /* ---- Responsive Typography ---- */
234 @media (max-width: 1024px) {
235 .bkbg-ptour-wrap h2.bkbg-ptour-section-title,
236 .bkbg-ptour-wrap .bkbg-ptour-section-title {
237 font-size: var(--bkbg-ptour-stt-font-size-t, var(--bkbg-ptour-stt-font-size-d, 28px));
238 line-height: var(--bkbg-ptour-stt-line-height-t, var(--bkbg-ptour-stt-line-height-d, 1.18));
239 letter-spacing: var(--bkbg-ptour-stt-letter-spacing-t, var(--bkbg-ptour-stt-letter-spacing-d, normal));
240 word-spacing: var(--bkbg-ptour-stt-word-spacing-t, var(--bkbg-ptour-stt-word-spacing-d, normal));
241 }
242 .bkbg-ptour-section-sub {
243 font-size: var(--bkbg-ptour-ssb-font-size-t, var(--bkbg-ptour-ssb-font-size-d, 17px));
244 line-height: var(--bkbg-ptour-ssb-line-height-t, var(--bkbg-ptour-ssb-line-height-d, 1.6));
245 letter-spacing: var(--bkbg-ptour-ssb-letter-spacing-t, var(--bkbg-ptour-ssb-letter-spacing-d, normal));
246 word-spacing: var(--bkbg-ptour-ssb-word-spacing-t, var(--bkbg-ptour-ssb-word-spacing-d, normal));
247 }
248 .bkbg-ptour-tab-title {
249 font-size: var(--bkbg-ptour-stp-font-size-t, var(--bkbg-ptour-stp-font-size-d, 15px));
250 line-height: var(--bkbg-ptour-stp-line-height-t, var(--bkbg-ptour-stp-line-height-d, 1.4));
251 letter-spacing: var(--bkbg-ptour-stp-letter-spacing-t, var(--bkbg-ptour-stp-letter-spacing-d, normal));
252 word-spacing: var(--bkbg-ptour-stp-word-spacing-t, var(--bkbg-ptour-stp-word-spacing-d, normal));
253 }
254 }
255
256 @media (max-width: 767px) {
257 .bkbg-ptour-wrap h2.bkbg-ptour-section-title,
258 .bkbg-ptour-wrap .bkbg-ptour-section-title {
259 font-size: var(--bkbg-ptour-stt-font-size-m, var(--bkbg-ptour-stt-font-size-t, var(--bkbg-ptour-stt-font-size-d, 28px)));
260 line-height: var(--bkbg-ptour-stt-line-height-m, var(--bkbg-ptour-stt-line-height-t, var(--bkbg-ptour-stt-line-height-d, 1.18)));
261 letter-spacing: var(--bkbg-ptour-stt-letter-spacing-m, var(--bkbg-ptour-stt-letter-spacing-t, var(--bkbg-ptour-stt-letter-spacing-d, normal)));
262 word-spacing: var(--bkbg-ptour-stt-word-spacing-m, var(--bkbg-ptour-stt-word-spacing-t, var(--bkbg-ptour-stt-word-spacing-d, normal)));
263 }
264 .bkbg-ptour-section-sub {
265 font-size: var(--bkbg-ptour-ssb-font-size-m, var(--bkbg-ptour-ssb-font-size-t, var(--bkbg-ptour-ssb-font-size-d, 17px)));
266 line-height: var(--bkbg-ptour-ssb-line-height-m, var(--bkbg-ptour-ssb-line-height-t, var(--bkbg-ptour-ssb-line-height-d, 1.6)));
267 letter-spacing: var(--bkbg-ptour-ssb-letter-spacing-m, var(--bkbg-ptour-ssb-letter-spacing-t, var(--bkbg-ptour-ssb-letter-spacing-d, normal)));
268 word-spacing: var(--bkbg-ptour-ssb-word-spacing-m, var(--bkbg-ptour-ssb-word-spacing-t, var(--bkbg-ptour-ssb-word-spacing-d, normal)));
269 }
270 .bkbg-ptour-tab-title {
271 font-size: var(--bkbg-ptour-stp-font-size-m, var(--bkbg-ptour-stp-font-size-t, var(--bkbg-ptour-stp-font-size-d, 15px)));
272 line-height: var(--bkbg-ptour-stp-line-height-m, var(--bkbg-ptour-stp-line-height-t, var(--bkbg-ptour-stp-line-height-d, 1.4)));
273 letter-spacing: var(--bkbg-ptour-stp-letter-spacing-m, var(--bkbg-ptour-stp-letter-spacing-t, var(--bkbg-ptour-stp-letter-spacing-d, normal)));
274 word-spacing: var(--bkbg-ptour-stp-word-spacing-m, var(--bkbg-ptour-stp-word-spacing-t, var(--bkbg-ptour-stp-word-spacing-d, normal)));
275 }
276 }
277
278 /* ---- Responsive Layout ---- */
279 @media (max-width: 768px) {
280 .bkbg-ptour-body {
281 flex-direction: column !important;
282 gap: 24px;
283 }
284
285 .bkbg-ptour-tabs {
286 flex: none;
287 width: 100%;
288 }
289
290 .bkbg-ptour-panels {
291 width: 100%;
292 }
293 }
294