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 / sticky-header / style.css

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

268 lines 10.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* ============================================================
2 Sticky Header — style.css
3 Prefix: bkbg-sth-
4 ============================================================ */
5
6 .bkbg-sth-wrap {
7 box-sizing: border-box;
8 width: 100%;
9 }
10
11 /* ---- Header base ---- */
12 .bkbg-sth-header {
13 width: 100%;
14 background: var(--bkbg-sth-bg, #ffffff);
15 height: var(--bkbg-sth-h, 70px);
16 display: flex;
17 align-items: center;
18 transition: height .25s, box-shadow .25s, background .25s;
19 }
20
21 /* Border bottom */
22 .bkbg-sth-border-bottom { border-bottom: 1px solid var(--bkbg-sth-border, #e2e8f0); }
23
24 /* Drop shadow state (added by JS on scroll) */
25 .bkbg-sth-header.bkbg-sth-is-scrolled {
26 box-shadow: 0 2px 16px rgba(0,0,0,.08);
27 }
28 .bkbg-sth-header.bkbg-sth-is-scrolled.bkbg-sth-shrink {
29 height: var(--bkbg-sth-h-shrunk, 56px);
30 }
31
32 /* Sticky */
33 .bkbg-sth-sticky {
34 position: sticky;
35 top: 0;
36 z-index: var(--bkbg-sth-z, 1000);
37 }
38
39 /* ---- Inner ---- */
40 .bkbg-sth-inner {
41 max-width: var(--bkbg-sth-max-w, 1200px);
42 margin: 0 auto;
43 padding: 0 24px;
44 width: 100%;
45 display: flex;
46 align-items: center;
47 gap: 24px;
48 }
49
50 /* ---- Logo ---- */
51 .bkbg-sth-logo {
52 display: flex;
53 align-items: center;
54 gap: 8px;
55 text-decoration: none;
56 flex-shrink: 0;
57 }
58 .bkbg-sth-logo-text {
59 font-family: var(--bksth-lg-font-family, inherit);
60 font-size: var(--bksth-lg-font-size-d, var(--bkbg-sth-logo-sz, 22px));
61 font-weight: var(--bksth-lg-font-weight, var(--bkbg-sth-logo-w, 800));
62 font-style: var(--bksth-lg-font-style, normal);
63 text-decoration: var(--bksth-lg-text-decoration, none);
64 text-transform: var(--bksth-lg-text-transform, none);
65 line-height: var(--bksth-lg-line-height-d, var(--bkbg-sth-logo-lh, 1.0));
66 letter-spacing: var(--bksth-lg-letter-spacing-d, -.02em);
67 word-spacing: var(--bksth-lg-word-spacing-d, normal);
68 color: var(--bkbg-sth-text, #0f172a);
69 white-space: nowrap;
70 }
71 .bkbg-sth-logo-img {
72 height: calc(var(--bkbg-sth-h, 70px) * 0.44);
73 width: auto;
74 display: block;
75 transition: height .25s;
76 object-fit: contain;
77 }
78 .bkbg-sth-is-scrolled.bkbg-sth-shrink .bkbg-sth-logo-img {
79 height: calc(var(--bkbg-sth-h-shrunk, 56px) * 0.42);
80 }
81
82 /* ---- Nav ---- */
83 .bkbg-sth-nav {
84 display: flex;
85 align-items: center;
86 gap: var(--bkbg-sth-link-gap, 32px);
87 flex: 1;
88 justify-content: center;
89 }
90
91 .bkbg-sth-nav-link {
92 font-family: var(--bksth-lk-font-family, inherit);
93 font-size: var(--bksth-lk-font-size-d, var(--bkbg-sth-link-sz, 15px));
94 font-weight: var(--bksth-lk-font-weight, var(--bkbg-sth-link-w, 500));
95 font-style: var(--bksth-lk-font-style, normal);
96 text-decoration: var(--bksth-lk-text-decoration, none);
97 text-transform: var(--bksth-lk-text-transform, none);
98 line-height: var(--bksth-lk-line-height-d, var(--bkbg-sth-link-lh, 1.0));
99 letter-spacing: var(--bksth-lk-letter-spacing-d, normal);
100 word-spacing: var(--bksth-lk-word-spacing-d, normal);
101 color: var(--bkbg-sth-link, #374151);
102 transition: color .14s;
103 white-space: nowrap;
104 }
105 .bkbg-sth-nav-link:hover { color: var(--bkbg-sth-link-hover, #6c3fb5); }
106
107 /* ---- Actions ---- */
108 .bkbg-sth-actions {
109 display: flex;
110 align-items: center;
111 gap: 12px;
112 flex-shrink: 0;
113 }
114
115 .bkbg-sth-cta {
116 display: inline-flex;
117 align-items: center;
118 gap: 6px;
119 padding: 9px 20px;
120 background: var(--bkbg-sth-cta-bg, #6c3fb5);
121 color: var(--bkbg-sth-cta-text, #ffffff);
122 font-family: var(--bksth-ct-font-family, inherit);
123 font-size: var(--bksth-ct-font-size-d, var(--bkbg-sth-cta-sz, 14px));
124 font-weight: var(--bksth-ct-font-weight, var(--bkbg-sth-cta-w, 600));
125 font-style: var(--bksth-ct-font-style, normal);
126 text-decoration: var(--bksth-ct-text-decoration, none);
127 text-transform: var(--bksth-ct-text-transform, none);
128 line-height: var(--bksth-ct-line-height-d, 1.0);
129 letter-spacing: var(--bksth-ct-letter-spacing-d, normal);
130 word-spacing: var(--bksth-ct-word-spacing-d, normal);
131 border-radius: var(--bkbg-sth-cta-r, 8px);
132 white-space: nowrap;
133 transition: filter .15s, transform .15s;
134 }
135 .bkbg-sth-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--bkbg-sth-cta-text, #ffffff); }
136
137 /* ---- Hamburger ---- */
138 .bkbg-sth-hamburger {
139 display: none;
140 flex-direction: column;
141 gap: 5px;
142 background: none;
143 border: none;
144 cursor: pointer;
145 padding: 6px;
146 border-radius: 6px;
147 }
148 .bkbg-sth-hamburger span {
149 display: block;
150 width: 22px;
151 height: 2px;
152 background: var(--bkbg-sth-link, #374151);
153 border-radius: 2px;
154 transition: transform .2s, opacity .2s;
155 }
156 .bkbg-sth-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
157 .bkbg-sth-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
158 .bkbg-sth-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
159
160 /* ---- Mobile nav drawer ---- */
161 .bkbg-sth-mobile-nav {
162 background: var(--bkbg-sth-bg, #ffffff);
163 border-top: 1px solid var(--bkbg-sth-border, #e2e8f0);
164 display: flex;
165 flex-direction: column;
166 padding: 16px 24px 20px;
167 gap: 4px;
168 }
169 .bkbg-sth-mobile-nav[aria-hidden="true"] { display: none; }
170
171 .bkbg-sth-mobile-link {
172 font-size: 16px;
173 font-weight: 500;
174 color: var(--bkbg-sth-link, #374151);
175 text-decoration: none;
176 padding: 10px 0;
177 border-bottom: 1px solid var(--bkbg-sth-border, #e2e8f0);
178 }
179 .bkbg-sth-mobile-link:hover { color: var(--bkbg-sth-link-hover, #6c3fb5); }
180
181 .bkbg-sth-mobile-cta {
182 margin-top: 12px;
183 text-align: center;
184 justify-content: center;
185 border-bottom: none;
186 padding: 12px 20px;
187 }
188
189 /* ============================================================
190 Style Variants
191 ============================================================ */
192
193 /* dark */
194 .bkbg-sth-style--dark {
195 background: var(--bkbg-sth-bg, #0f172a);
196 border-color: rgba(255,255,255,.08);
197 }
198 .bkbg-sth-style--dark .bkbg-sth-logo-text { color: #ffffff; }
199 .bkbg-sth-style--dark .bkbg-sth-nav-link { color: rgba(255,255,255,.75); }
200 .bkbg-sth-style--dark .bkbg-sth-nav-link:hover { color: #ffffff; }
201 .bkbg-sth-style--dark .bkbg-sth-hamburger span { background: rgba(255,255,255,.7); }
202 .bkbg-sth-style--dark .bkbg-sth-mobile-nav { background: #0f172a; border-top-color: rgba(255,255,255,.08); }
203 .bkbg-sth-style--dark .bkbg-sth-mobile-link { color: rgba(255,255,255,.75); border-bottom-color: rgba(255,255,255,.06); }
204
205 /* glass */
206 .bkbg-sth-style--glass {
207 background: rgba(255,255,255,0.75);
208 backdrop-filter: blur(16px) saturate(180%);
209 -webkit-backdrop-filter: blur(16px) saturate(180%);
210 border-bottom-color: rgba(255,255,255,.4);
211 }
212
213 /* gradient */
214 .bkbg-sth-style--gradient {
215 background: linear-gradient(90deg, var(--bkbg-sth-bg, #0f172a), color-mix(in srgb, var(--bkbg-sth-bg, #0f172a) 70%, var(--bkbg-sth-accent, #6c3fb5)));
216 }
217 .bkbg-sth-style--gradient .bkbg-sth-logo-text { color: #ffffff; }
218 .bkbg-sth-style--gradient .bkbg-sth-nav-link { color: rgba(255,255,255,.8); }
219 .bkbg-sth-style--gradient .bkbg-sth-nav-link:hover { color: #ffffff; }
220
221 /* ── Responsive Typography ── */
222 @media (max-width: 1024px) {
223 .bkbg-sth-logo-text {
224 font-size: var(--bksth-lg-font-size-t, var(--bksth-lg-font-size-d, var(--bkbg-sth-logo-sz, 22px)));
225 line-height: var(--bksth-lg-line-height-t, var(--bksth-lg-line-height-d, var(--bkbg-sth-logo-lh, 1.0)));
226 letter-spacing: var(--bksth-lg-letter-spacing-t, var(--bksth-lg-letter-spacing-d, -.02em));
227 word-spacing: var(--bksth-lg-word-spacing-t, var(--bksth-lg-word-spacing-d, normal));
228 }
229 .bkbg-sth-nav-link {
230 font-size: var(--bksth-lk-font-size-t, var(--bksth-lk-font-size-d, var(--bkbg-sth-link-sz, 15px)));
231 line-height: var(--bksth-lk-line-height-t, var(--bksth-lk-line-height-d, var(--bkbg-sth-link-lh, 1.0)));
232 letter-spacing: var(--bksth-lk-letter-spacing-t, var(--bksth-lk-letter-spacing-d, normal));
233 word-spacing: var(--bksth-lk-word-spacing-t, var(--bksth-lk-word-spacing-d, normal));
234 }
235 .bkbg-sth-cta {
236 font-size: var(--bksth-ct-font-size-t, var(--bksth-ct-font-size-d, var(--bkbg-sth-cta-sz, 14px)));
237 line-height: var(--bksth-ct-line-height-t, var(--bksth-ct-line-height-d, 1.0));
238 letter-spacing: var(--bksth-ct-letter-spacing-t, var(--bksth-ct-letter-spacing-d, normal));
239 word-spacing: var(--bksth-ct-word-spacing-t, var(--bksth-ct-word-spacing-d, normal));
240 }
241 }
242 @media (max-width: 767px) {
243 .bkbg-sth-logo-text {
244 font-size: var(--bksth-lg-font-size-m, var(--bksth-lg-font-size-t, var(--bksth-lg-font-size-d, var(--bkbg-sth-logo-sz, 22px))));
245 line-height: var(--bksth-lg-line-height-m, var(--bksth-lg-line-height-t, var(--bksth-lg-line-height-d, var(--bkbg-sth-logo-lh, 1.0))));
246 letter-spacing: var(--bksth-lg-letter-spacing-m, var(--bksth-lg-letter-spacing-t, var(--bksth-lg-letter-spacing-d, -.02em)));
247 word-spacing: var(--bksth-lg-word-spacing-m, var(--bksth-lg-word-spacing-t, var(--bksth-lg-word-spacing-d, normal)));
248 }
249 .bkbg-sth-nav-link {
250 font-size: var(--bksth-lk-font-size-m, var(--bksth-lk-font-size-t, var(--bksth-lk-font-size-d, var(--bkbg-sth-link-sz, 15px))));
251 line-height: var(--bksth-lk-line-height-m, var(--bksth-lk-line-height-t, var(--bksth-lk-line-height-d, var(--bkbg-sth-link-lh, 1.0))));
252 letter-spacing: var(--bksth-lk-letter-spacing-m, var(--bksth-lk-letter-spacing-t, var(--bksth-lk-letter-spacing-d, normal)));
253 word-spacing: var(--bksth-lk-word-spacing-m, var(--bksth-lk-word-spacing-t, var(--bksth-lk-word-spacing-d, normal)));
254 }
255 .bkbg-sth-cta {
256 font-size: var(--bksth-ct-font-size-m, var(--bksth-ct-font-size-t, var(--bksth-ct-font-size-d, var(--bkbg-sth-cta-sz, 14px))));
257 line-height: var(--bksth-ct-line-height-m, var(--bksth-ct-line-height-t, var(--bksth-ct-line-height-d, 1.0)));
258 letter-spacing: var(--bksth-ct-letter-spacing-m, var(--bksth-ct-letter-spacing-t, var(--bksth-ct-letter-spacing-d, normal)));
259 word-spacing: var(--bksth-ct-word-spacing-m, var(--bksth-ct-word-spacing-t, var(--bksth-ct-word-spacing-d, normal)));
260 }
261 }
262
263 /* Responsive Layout */
264 @media (max-width: 768px) {
265 .bkbg-sth-nav { display: none; }
266 .bkbg-sth-hamburger { display: flex; }
267 }
268