PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
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.11, at blocks/gradient-hero/style.css

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