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 / cta-countdown / style.css

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

249 lines 12.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ============================================================
2 CTA with Countdown — style.css
3 Prefix: bkbg-ctc-
4 ============================================================ */
5
6 .bkbg-ctc-wrap {
7 box-sizing: border-box;
8 width: 100%;
9 background: var(--bkbg-ctc-bg, #0f172a);
10 padding: var(--bkbg-ctc-pt, 80px) 24px var(--bkbg-ctc-pb, 80px);
11 border-radius: var(--bkbg-ctc-r, 0px);
12 }
13
14 .bkbg-ctc-inner { width: 100%; }
15
16 /* ============================================================
17 Layout: Centered (default)
18 ============================================================ */
19 .bkbg-ctc-layout--centered .bkbg-ctc-centered {
20 display: flex;
21 flex-direction: column;
22 align-items: center;
23 gap: 40px;
24 text-align: center;
25 max-width: 800px;
26 margin: 0 auto;
27 }
28 .bkbg-ctc-layout--centered .bkbg-ctc-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
29
30 /* ============================================================
31 Layout: Split
32 ============================================================ */
33 .bkbg-ctc-layout--split .bkbg-ctc-split {
34 display: grid;
35 grid-template-columns: 1fr auto;
36 gap: 64px;
37 align-items: center;
38 max-width: 1100px;
39 margin: 0 auto;
40 }
41 .bkbg-ctc-layout--split .bkbg-ctc-content { display: flex; flex-direction: column; gap: 16px; }
42
43 /* ---- Content elements ---- */
44 .bkbg-ctc-eyebrow {
45 font-size: var(--bkbg-ctc-eye-font-size-d, var(--bkbg-ctc-eyebrow-sz, 12px));
46 font-family: var(--bkbg-ctc-eye-font-family, inherit);
47 font-weight: var(--bkbg-ctc-eye-font-weight, 700);
48 font-style: var(--bkbg-ctc-eye-font-style, normal);
49 letter-spacing: var(--bkbg-ctc-eye-letter-spacing-d, .1em);
50 text-transform: var(--bkbg-ctc-eye-text-transform, uppercase);
51 text-decoration: var(--bkbg-ctc-eye-text-decoration, none);
52 line-height: var(--bkbg-ctc-eye-line-height-d, normal);
53 word-spacing: var(--bkbg-ctc-eye-word-spacing-d, normal);
54 color: var(--bkbg-ctc-eyebrow-c, #a78bfa);
55 }
56
57 .bkbg-ctc-wrap .bkbg-ctc-heading {
58 margin: 0;
59 font-size: var(--bkbg-ctc-hdg-font-size-d, var(--bkbg-ctc-heading-sz, 36px));
60 font-family: var(--bkbg-ctc-hdg-font-family, inherit);
61 font-weight: var(--bkbg-ctc-hdg-font-weight, var(--bkbg-ctc-heading-w, 800));
62 font-style: var(--bkbg-ctc-hdg-font-style, normal);
63 text-transform: var(--bkbg-ctc-hdg-text-transform, none);
64 text-decoration: var(--bkbg-ctc-hdg-text-decoration, none);
65 color: var(--bkbg-ctc-heading-c, #ffffff);
66 letter-spacing: var(--bkbg-ctc-hdg-letter-spacing-d, -.03em);
67 line-height: var(--bkbg-ctc-hdg-line-height-d, 1.15);
68 word-spacing: var(--bkbg-ctc-hdg-word-spacing-d, normal);
69 }
70
71 .bkbg-ctc-sub {
72 margin: 0;
73 font-size: var(--bkbg-ctc-sub-font-size-d, var(--bkbg-ctc-sub-sz, 17px));
74 font-family: var(--bkbg-ctc-sub-font-family, inherit);
75 font-weight: var(--bkbg-ctc-sub-font-weight, normal);
76 font-style: var(--bkbg-ctc-sub-font-style, normal);
77 text-transform: var(--bkbg-ctc-sub-text-transform, none);
78 text-decoration: var(--bkbg-ctc-sub-text-decoration, none);
79 color: var(--bkbg-ctc-sub-c, rgba(255,255,255,0.7));
80 letter-spacing: var(--bkbg-ctc-sub-letter-spacing-d, normal);
81 line-height: var(--bkbg-ctc-sub-line-height-d, 1.65);
82 word-spacing: var(--bkbg-ctc-sub-word-spacing-d, normal);
83 max-width: 560px;
84 }
85
86 /* ---- Buttons ---- */
87 .bkbg-ctc-buttons {
88 display: flex;
89 flex-wrap: wrap;
90 gap: 12px;
91 align-items: center;
92 margin-top: 4px;
93 }
94
95 .bkbg-ctc-layout--centered .bkbg-ctc-buttons { justify-content: center; }
96
97 .bkbg-ctc-btn {
98 display: inline-flex;
99 align-items: center;
100 justify-content: center;
101 padding: 14px 28px;
102 font-size: var(--bkbg-ctc-btn-sz, 16px);
103 font-weight: 700;
104 border-radius: var(--bkbg-ctc-btn-r, 8px);
105 text-decoration: none;
106 cursor: pointer;
107 white-space: nowrap;
108 transition: filter .15s, transform .15s;
109 border: none;
110 }
111 .bkbg-ctc-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
112
113 .bkbg-ctc-btn--primary {
114 background: var(--bkbg-ctc-btn-bg, #6c3fb5);
115 color: var(--bkbg-ctc-btn-text, #ffffff);
116 }
117
118 .bkbg-ctc-btn--secondary {
119 background: var(--bkbg-ctc-btn2-bg, transparent);
120 color: var(--bkbg-ctc-btn2-text, #ffffff);
121 border: 1px solid var(--bkbg-ctc-btn2-border, rgba(255,255,255,0.3));
122 }
123
124 /* ============================================================
125 Timer
126 ============================================================ */
127 .bkbg-ctc-timer {
128 display: flex;
129 gap: var(--bkbg-ctc-timer-gap, 12px);
130 align-items: flex-start;
131 flex-shrink: 0;
132 }
133
134 /* Timer: box */
135 .bkbg-ctc-timer--box .bkbg-ctc-unit {
136 display: flex;
137 flex-direction: column;
138 align-items: center;
139 gap: 6px;
140 min-width: calc(var(--bkbg-ctc-num-sz, 48px) * 1.6);
141 padding: 18px 14px;
142 background: var(--bkbg-ctc-timer-bg, rgba(255,255,255,0.08));
143 border: 1px solid var(--bkbg-ctc-timer-border, rgba(255,255,255,0.12));
144 border-radius: 12px;
145 }
146
147 /* Timer: minimal (no box) */
148 .bkbg-ctc-timer--minimal .bkbg-ctc-unit {
149 display: flex;
150 flex-direction: column;
151 align-items: center;
152 gap: 4px;
153 padding: 0 12px;
154 border-right: 1px solid rgba(255,255,255,.15);
155 }
156 .bkbg-ctc-timer--minimal .bkbg-ctc-unit:last-child { border-right: none; }
157
158 /* Timer: outlined */
159 .bkbg-ctc-timer--outlined .bkbg-ctc-unit {
160 display: flex;
161 flex-direction: column;
162 align-items: center;
163 gap: 6px;
164 min-width: calc(var(--bkbg-ctc-num-sz, 48px) * 1.6);
165 padding: 12px;
166 border: 2px solid var(--bkbg-ctc-timer-border, rgba(255,255,255,0.25));
167 border-radius: 8px;
168 }
169
170 .bkbg-ctc-unit-num {
171 font-size: var(--bkbg-ctc-num-font-size-d, var(--bkbg-ctc-num-sz, 48px));
172 font-family: var(--bkbg-ctc-num-font-family, inherit);
173 font-weight: var(--bkbg-ctc-num-font-weight, var(--bkbg-ctc-num-w, 800));
174 font-style: var(--bkbg-ctc-num-font-style, normal);
175 text-transform: var(--bkbg-ctc-num-text-transform, none);
176 text-decoration: var(--bkbg-ctc-num-text-decoration, none);
177 color: var(--bkbg-ctc-num-c, #ffffff);
178 font-variant-numeric: tabular-nums;
179 letter-spacing: var(--bkbg-ctc-num-letter-spacing-d, -.04em);
180 line-height: var(--bkbg-ctc-num-line-height-d, 1);
181 word-spacing: var(--bkbg-ctc-num-word-spacing-d, normal);
182 }
183
184 .bkbg-ctc-unit-label {
185 font-size: var(--bkbg-ctc-label-sz, 12px);
186 font-weight: 600;
187 letter-spacing: .06em;
188 text-transform: uppercase;
189 color: var(--bkbg-ctc-label-c, rgba(255,255,255,0.5));
190 }
191
192 /* ============================================================
193 Style Variants
194 ============================================================ */
195
196 /* light */
197 .bkbg-ctc-style--light {
198 background: var(--bkbg-ctc-bg, #f8fafc);
199 }
200 .bkbg-ctc-style--light .bkbg-ctc-heading { color: #0f172a; }
201 .bkbg-ctc-style--light .bkbg-ctc-sub { color: #64748b; }
202 .bkbg-ctc-style--light .bkbg-ctc-eyebrow { color: var(--bkbg-ctc-accent, #6c3fb5); }
203 .bkbg-ctc-style--light .bkbg-ctc-unit-num { color: #0f172a; }
204 .bkbg-ctc-style--light .bkbg-ctc-unit-label { color: #64748b; }
205 .bkbg-ctc-style--light .bkbg-ctc-timer--box .bkbg-ctc-unit {
206 background: #ffffff;
207 border: 1px solid #e2e8f0;
208 }
209 .bkbg-ctc-style--light .bkbg-ctc-btn--secondary {
210 color: var(--bkbg-ctc-accent, #6c3fb5);
211 border-color: color-mix(in srgb, var(--bkbg-ctc-accent, #6c3fb5) 30%, transparent);
212 }
213
214 /* gradient */
215 .bkbg-ctc-style--gradient {
216 background: linear-gradient(135deg, var(--bkbg-ctc-accent, #6c3fb5) 0%, color-mix(in srgb, var(--bkbg-ctc-accent, #6c3fb5) 60%, #1e1b4b) 100%);
217 }
218
219 /* banner (wide, less padding, no border-radius) */
220 .bkbg-ctc-style--banner {
221 border-radius: 0;
222 padding-top: 32px;
223 padding-bottom: 32px;
224 }
225 .bkbg-ctc-style--banner .bkbg-ctc-heading { font-size: clamp(22px, 3vw, 32px); }
226
227 /* Responsive */
228 @media (max-width: 768px) {
229 .bkbg-ctc-layout--split .bkbg-ctc-split { grid-template-columns: 1fr; gap: 32px; }
230 .bkbg-ctc-timer { flex-wrap: wrap; justify-content: center; }
231 .bkbg-ctc-wrap .bkbg-ctc-heading { font-size: clamp(24px, 6vw, 40px); }
232 }
233
234 /* Typography responsive — tablet */
235 @media (max-width: 1024px) {
236 .bkbg-ctc-wrap .bkbg-ctc-heading { font-size: var(--bkbg-ctc-hdg-font-size-t, var(--bkbg-ctc-hdg-font-size-d, var(--bkbg-ctc-heading-sz, 36px))); letter-spacing: var(--bkbg-ctc-hdg-letter-spacing-t, var(--bkbg-ctc-hdg-letter-spacing-d, -.03em)); line-height: var(--bkbg-ctc-hdg-line-height-t, var(--bkbg-ctc-hdg-line-height-d, 1.15)); word-spacing: var(--bkbg-ctc-hdg-word-spacing-t, var(--bkbg-ctc-hdg-word-spacing-d, normal)); }
237 .bkbg-ctc-sub { font-size: var(--bkbg-ctc-sub-font-size-t, var(--bkbg-ctc-sub-font-size-d, var(--bkbg-ctc-sub-sz, 17px))); letter-spacing: var(--bkbg-ctc-sub-letter-spacing-t, var(--bkbg-ctc-sub-letter-spacing-d, normal)); line-height: var(--bkbg-ctc-sub-line-height-t, var(--bkbg-ctc-sub-line-height-d, 1.65)); word-spacing: var(--bkbg-ctc-sub-word-spacing-t, var(--bkbg-ctc-sub-word-spacing-d, normal)); }
238 .bkbg-ctc-eyebrow { font-size: var(--bkbg-ctc-eye-font-size-t, var(--bkbg-ctc-eye-font-size-d, var(--bkbg-ctc-eyebrow-sz, 12px))); letter-spacing: var(--bkbg-ctc-eye-letter-spacing-t, var(--bkbg-ctc-eye-letter-spacing-d, .1em)); line-height: var(--bkbg-ctc-eye-line-height-t, var(--bkbg-ctc-eye-line-height-d, normal)); word-spacing: var(--bkbg-ctc-eye-word-spacing-t, var(--bkbg-ctc-eye-word-spacing-d, normal)); }
239 .bkbg-ctc-unit-num { font-size: var(--bkbg-ctc-num-font-size-t, var(--bkbg-ctc-num-font-size-d, var(--bkbg-ctc-num-sz, 48px))); letter-spacing: var(--bkbg-ctc-num-letter-spacing-t, var(--bkbg-ctc-num-letter-spacing-d, -.04em)); line-height: var(--bkbg-ctc-num-line-height-t, var(--bkbg-ctc-num-line-height-d, 1)); word-spacing: var(--bkbg-ctc-num-word-spacing-t, var(--bkbg-ctc-num-word-spacing-d, normal)); }
240 }
241
242 /* Typography responsive — mobile */
243 @media (max-width: 767px) {
244 .bkbg-ctc-wrap .bkbg-ctc-heading { font-size: var(--bkbg-ctc-hdg-font-size-m, var(--bkbg-ctc-hdg-font-size-t, var(--bkbg-ctc-hdg-font-size-d, var(--bkbg-ctc-heading-sz, 36px)))); letter-spacing: var(--bkbg-ctc-hdg-letter-spacing-m, var(--bkbg-ctc-hdg-letter-spacing-t, var(--bkbg-ctc-hdg-letter-spacing-d, -.03em))); line-height: var(--bkbg-ctc-hdg-line-height-m, var(--bkbg-ctc-hdg-line-height-t, var(--bkbg-ctc-hdg-line-height-d, 1.15))); word-spacing: var(--bkbg-ctc-hdg-word-spacing-m, var(--bkbg-ctc-hdg-word-spacing-t, var(--bkbg-ctc-hdg-word-spacing-d, normal))); }
245 .bkbg-ctc-sub { font-size: var(--bkbg-ctc-sub-font-size-m, var(--bkbg-ctc-sub-font-size-t, var(--bkbg-ctc-sub-font-size-d, var(--bkbg-ctc-sub-sz, 17px)))); letter-spacing: var(--bkbg-ctc-sub-letter-spacing-m, var(--bkbg-ctc-sub-letter-spacing-t, var(--bkbg-ctc-sub-letter-spacing-d, normal))); line-height: var(--bkbg-ctc-sub-line-height-m, var(--bkbg-ctc-sub-line-height-t, var(--bkbg-ctc-sub-line-height-d, 1.65))); word-spacing: var(--bkbg-ctc-sub-word-spacing-m, var(--bkbg-ctc-sub-word-spacing-t, var(--bkbg-ctc-sub-word-spacing-d, normal))); }
246 .bkbg-ctc-eyebrow { font-size: var(--bkbg-ctc-eye-font-size-m, var(--bkbg-ctc-eye-font-size-t, var(--bkbg-ctc-eye-font-size-d, var(--bkbg-ctc-eyebrow-sz, 12px)))); letter-spacing: var(--bkbg-ctc-eye-letter-spacing-m, var(--bkbg-ctc-eye-letter-spacing-t, var(--bkbg-ctc-eye-letter-spacing-d, .1em))); line-height: var(--bkbg-ctc-eye-line-height-m, var(--bkbg-ctc-eye-line-height-t, var(--bkbg-ctc-eye-line-height-d, normal))); word-spacing: var(--bkbg-ctc-eye-word-spacing-m, var(--bkbg-ctc-eye-word-spacing-t, var(--bkbg-ctc-eye-word-spacing-d, normal))); }
247 .bkbg-ctc-unit-num { font-size: var(--bkbg-ctc-num-font-size-m, var(--bkbg-ctc-num-font-size-t, var(--bkbg-ctc-num-font-size-d, var(--bkbg-ctc-num-sz, 48px)))); letter-spacing: var(--bkbg-ctc-num-letter-spacing-m, var(--bkbg-ctc-num-letter-spacing-t, var(--bkbg-ctc-num-letter-spacing-d, -.04em))); line-height: var(--bkbg-ctc-num-line-height-m, var(--bkbg-ctc-num-line-height-t, var(--bkbg-ctc-num-line-height-d, 1))); word-spacing: var(--bkbg-ctc-num-word-spacing-m, var(--bkbg-ctc-num-word-spacing-t, var(--bkbg-ctc-num-word-spacing-d, normal))); }
248 }
249