PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.14
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.14
2.0.14 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 / gradient-hero / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.14, at blocks/gradient-hero/style.css

256 lines 9.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ============================================================
2 Gradient Hero — style.css
3 Prefix: bkbg-gh-
4 ============================================================ */
5
6 .bkbg-gh-wrap {
7 box-sizing: border-box;
8 position: relative;
9 width: 100%;
10 overflow: hidden;
11 padding: var(--bkbg-gh-pt, 100px) 24px var(--bkbg-gh-pb, 100px);
12 background: var(--bkbg-gh-bg, #0f172a);
13 }
14
15 /* Block themes expand alignfull using negative side margins. A fixed 100%
16 width only fills the padded content box and leaves a gap on the right. */
17 .has-global-padding > .bkbg-gh-wrap.alignfull {
18 width: auto;
19 }
20
21 /* ---- Background layer (mesh / gradient / aurora) ---- */
22 .bkbg-gh-bg-layer {
23 position: absolute;
24 inset: 0;
25 z-index: 0;
26 pointer-events: none;
27 }
28
29 /* Mesh gradient */
30 .bkbg-gh-style--mesh .bkbg-gh-bg-layer {
31 background-image:
32 radial-gradient(ellipse 80% 60% at 20% 30%, color-mix(in srgb, var(--bkbg-gh-color-a, #6c3fb5) 35%, transparent), transparent),
33 radial-gradient(ellipse 60% 60% at 80% 70%, color-mix(in srgb, var(--bkbg-gh-color-b, #3b82f6) 25%, transparent), transparent),
34 radial-gradient(ellipse 50% 40% at 50% 10%, color-mix(in srgb, var(--bkbg-gh-color-c, #ec4899) 20%, transparent), transparent);
35 }
36
37 /* Linear gradient */
38 .bkbg-gh-style--gradient .bkbg-gh-bg-layer {
39 background: linear-gradient(135deg, var(--bkbg-gh-color-a, #6c3fb5) 0%, var(--bkbg-gh-color-b, #3b82f6) 50%, var(--bkbg-gh-color-c, #ec4899) 100%);
40 opacity: .6;
41 }
42
43 /* Aurora */
44 .bkbg-gh-style--aurora .bkbg-gh-bg-layer {
45 background-image:
46 radial-gradient(ellipse 120% 80% at 50% -10%, color-mix(in srgb, var(--bkbg-gh-color-a, #6c3fb5) 40%, transparent), transparent),
47 radial-gradient(ellipse 80% 60% at 80% 50%, color-mix(in srgb, var(--bkbg-gh-color-b, #3b82f6) 25%, transparent), transparent);
48 animation: bkbg-aurora 8s ease-in-out infinite alternate;
49 }
50 @keyframes bkbg-aurora {
51 0% { opacity: .7; }
52 100% { opacity: 1; }
53 }
54
55 /* Solid: no extra layer */
56 .bkbg-gh-style--solid .bkbg-gh-bg-layer { display: none; }
57
58 /* ---- Content container ---- */
59 .bkbg-gh-content {
60 position: relative;
61 z-index: 1;
62 max-width: var(--bkbg-gh-max-w, 760px);
63 display: flex;
64 flex-direction: column;
65 align-items: center;
66 gap: 24px;
67 }
68
69 .bkbg-gh-align--center .bkbg-gh-content {
70 margin: 0 auto;
71 text-align: center;
72 align-items: center;
73 }
74
75 .bkbg-gh-align--left .bkbg-gh-content {
76 margin: 0;
77 text-align: left;
78 align-items: flex-start;
79 }
80
81 /* ---- Badge ---- */
82 .bkbg-gh-badge {
83 display: inline-flex;
84 align-items: center;
85 gap: 6px;
86 padding: 6px 14px;
87 border-radius: 999px;
88 background: var(--bkbg-gh-badge-bg, rgba(108,63,181,0.18));
89 border: 1px solid color-mix(in srgb, var(--bkbg-gh-badge-color, #c4b5fd) 30%, transparent);
90 }
91
92 .bkbg-gh-badge-text {
93 font-family: var(--bkbg-gh-bg-font-family, inherit);
94 font-size: var(--bkbg-gh-bg-font-size-d, 13px);
95 font-weight: var(--bkbg-gh-bg-font-weight, 600);
96 font-style: var(--bkbg-gh-bg-font-style, normal);
97 text-decoration: var(--bkbg-gh-bg-text-decoration, none);
98 text-transform: var(--bkbg-gh-bg-text-transform, none);
99 line-height: var(--bkbg-gh-bg-line-height-d, 1.4);
100 letter-spacing: var(--bkbg-gh-bg-letter-spacing-d, .02em);
101 word-spacing: var(--bkbg-gh-bg-word-spacing-d, normal);
102 color: var(--bkbg-gh-badge-color, #c4b5fd);
103 }
104
105 /* ---- Heading — specificity (0,2,0) beats editor theme h1 rules ---- */
106 .bkbg-gh-content h1.bkbg-gh-heading {
107 margin: 0;
108 font-family: var(--bkbg-gh-hl-font-family, inherit);
109 font-size: var(--bkbg-gh-hl-font-size-d, 64px);
110 font-weight: var(--bkbg-gh-hl-font-weight, 800);
111 font-style: var(--bkbg-gh-hl-font-style, normal);
112 text-decoration: var(--bkbg-gh-hl-text-decoration, none);
113 text-transform: var(--bkbg-gh-hl-text-transform, none);
114 line-height: var(--bkbg-gh-hl-line-height-d, 1.08);
115 letter-spacing: var(--bkbg-gh-hl-letter-spacing-d, -.04em);
116 word-spacing: var(--bkbg-gh-hl-word-spacing-d, normal);
117 color: var(--bkbg-gh-text, #ffffff);
118 }
119
120 /* ---- Subheading ---- */
121 .bkbg-gh-sub {
122 margin: 0;
123 font-family: var(--bkbg-gh-sub-font-family, inherit);
124 font-size: var(--bkbg-gh-sub-font-size-d, 20px);
125 font-weight: var(--bkbg-gh-sub-font-weight, 400);
126 font-style: var(--bkbg-gh-sub-font-style, normal);
127 text-decoration: var(--bkbg-gh-sub-text-decoration, none);
128 text-transform: var(--bkbg-gh-sub-text-transform, none);
129 line-height: var(--bkbg-gh-sub-line-height-d, 1.65);
130 letter-spacing: var(--bkbg-gh-sub-letter-spacing-d, normal);
131 word-spacing: var(--bkbg-gh-sub-word-spacing-d, normal);
132 color: var(--bkbg-gh-sub-c, rgba(255,255,255,0.65));
133 max-width: 600px;
134 }
135
136 /* ---- CTA row ---- */
137 .bkbg-gh-ctas {
138 display: flex;
139 flex-wrap: wrap;
140 gap: 12px;
141 align-items: center;
142 }
143
144 .bkbg-gh-align--center .bkbg-gh-ctas { justify-content: center; }
145
146 .bkbg-gh-btn {
147 display: inline-flex;
148 align-items: center;
149 gap: 8px;
150 padding: 14px 28px;
151 font-size: var(--bkbg-gh-cta-sz, 16px);
152 font-weight: 700;
153 border-radius: var(--bkbg-gh-cta-r, 10px);
154 text-decoration: none;
155 cursor: pointer;
156 white-space: nowrap;
157 transition: filter .15s, transform .15s;
158 border: none;
159 }
160 .bkbg-gh-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
161
162 .bkbg-gh-btn--primary {
163 background: var(--bkbg-gh-btn-bg, #6c3fb5);
164 color: var(--bkbg-gh-btn-text, #ffffff);
165 }
166
167 .bkbg-gh-btn--secondary {
168 background: var(--bkbg-gh-btn2-bg, rgba(255,255,255,0.08));
169 color: var(--bkbg-gh-btn2-text, #ffffff);
170 border: 1px solid rgba(255,255,255,0.15);
171 backdrop-filter: blur(8px);
172 }
173
174 .bkbg-gh-play-icon { font-size: .85em; }
175
176 /* ---- Social proof ---- */
177 .bkbg-gh-proof {
178 display: flex;
179 align-items: center;
180 gap: 12px;
181 }
182 .bkbg-gh-align--center .bkbg-gh-proof { justify-content: center; }
183
184 .bkbg-gh-avatars {
185 display: flex;
186 align-items: center;
187 }
188
189 .bkbg-gh-avatar {
190 width: 36px;
191 height: 36px;
192 border-radius: 50%;
193 border: 2px solid var(--bkbg-gh-bg, #0f172a);
194 flex-shrink: 0;
195 object-fit: cover;
196 display: block;
197 }
198 .bkbg-gh-avatar--empty {
199 background: rgba(255,255,255,0.15);
200 }
201
202 .bkbg-gh-proof-text {
203 font-size: 13px;
204 color: var(--bkbg-gh-proof, rgba(255,255,255,0.5));
205 }
206
207 /* Responsive */
208 @media (max-width: 640px) {
209 .bkbg-gh-ctas { flex-direction: column; align-items: stretch; }
210 .bkbg-gh-btn { justify-content: center; }
211 }
212
213 /* Typography responsive – tablet */
214 @media (max-width: 1024px) {
215 .bkbg-gh-content h1.bkbg-gh-heading {
216 font-size: var(--bkbg-gh-hl-font-size-t, var(--bkbg-gh-hl-font-size-d, 64px));
217 line-height: var(--bkbg-gh-hl-line-height-t, var(--bkbg-gh-hl-line-height-d, 1.08));
218 letter-spacing: var(--bkbg-gh-hl-letter-spacing-t, var(--bkbg-gh-hl-letter-spacing-d, -.04em));
219 word-spacing: var(--bkbg-gh-hl-word-spacing-t, var(--bkbg-gh-hl-word-spacing-d, normal));
220 }
221 .bkbg-gh-sub {
222 font-size: var(--bkbg-gh-sub-font-size-t, var(--bkbg-gh-sub-font-size-d, 20px));
223 line-height: var(--bkbg-gh-sub-line-height-t, var(--bkbg-gh-sub-line-height-d, 1.65));
224 letter-spacing: var(--bkbg-gh-sub-letter-spacing-t, var(--bkbg-gh-sub-letter-spacing-d, normal));
225 word-spacing: var(--bkbg-gh-sub-word-spacing-t, var(--bkbg-gh-sub-word-spacing-d, normal));
226 }
227 .bkbg-gh-badge-text {
228 font-size: var(--bkbg-gh-bg-font-size-t, var(--bkbg-gh-bg-font-size-d, 13px));
229 line-height: var(--bkbg-gh-bg-line-height-t, var(--bkbg-gh-bg-line-height-d, 1.4));
230 letter-spacing: var(--bkbg-gh-bg-letter-spacing-t, var(--bkbg-gh-bg-letter-spacing-d, .02em));
231 word-spacing: var(--bkbg-gh-bg-word-spacing-t, var(--bkbg-gh-bg-word-spacing-d, normal));
232 }
233 }
234
235 /* Typography responsive – mobile */
236 @media (max-width: 767px) {
237 .bkbg-gh-content h1.bkbg-gh-heading {
238 font-size: var(--bkbg-gh-hl-font-size-m, var(--bkbg-gh-hl-font-size-t, var(--bkbg-gh-hl-font-size-d, 64px)));
239 line-height: var(--bkbg-gh-hl-line-height-m, var(--bkbg-gh-hl-line-height-t, var(--bkbg-gh-hl-line-height-d, 1.08)));
240 letter-spacing: var(--bkbg-gh-hl-letter-spacing-m, var(--bkbg-gh-hl-letter-spacing-t, var(--bkbg-gh-hl-letter-spacing-d, -.04em)));
241 word-spacing: var(--bkbg-gh-hl-word-spacing-m, var(--bkbg-gh-hl-word-spacing-t, var(--bkbg-gh-hl-word-spacing-d, normal)));
242 }
243 .bkbg-gh-sub {
244 font-size: var(--bkbg-gh-sub-font-size-m, var(--bkbg-gh-sub-font-size-t, var(--bkbg-gh-sub-font-size-d, 20px)));
245 line-height: var(--bkbg-gh-sub-line-height-m, var(--bkbg-gh-sub-line-height-t, var(--bkbg-gh-sub-line-height-d, 1.65)));
246 letter-spacing: var(--bkbg-gh-sub-letter-spacing-m, var(--bkbg-gh-sub-letter-spacing-t, var(--bkbg-gh-sub-letter-spacing-d, normal)));
247 word-spacing: var(--bkbg-gh-sub-word-spacing-m, var(--bkbg-gh-sub-word-spacing-t, var(--bkbg-gh-sub-word-spacing-d, normal)));
248 }
249 .bkbg-gh-badge-text {
250 font-size: var(--bkbg-gh-bg-font-size-m, var(--bkbg-gh-bg-font-size-t, var(--bkbg-gh-bg-font-size-d, 13px)));
251 line-height: var(--bkbg-gh-bg-line-height-m, var(--bkbg-gh-bg-line-height-t, var(--bkbg-gh-bg-line-height-d, 1.4)));
252 letter-spacing: var(--bkbg-gh-bg-letter-spacing-m, var(--bkbg-gh-bg-letter-spacing-t, var(--bkbg-gh-bg-letter-spacing-d, .02em)));
253 word-spacing: var(--bkbg-gh-bg-word-spacing-m, var(--bkbg-gh-bg-word-spacing-t, var(--bkbg-gh-bg-word-spacing-d, normal)));
254 }
255 }
256