@sofidevo/astro-dynamic-header 5.0.1 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Header.astro +5 -3
package/package.json
CHANGED
package/src/Header.astro
CHANGED
|
@@ -119,7 +119,7 @@ const {
|
|
|
119
119
|
const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
|
|
120
120
|
---
|
|
121
121
|
|
|
122
|
-
<style
|
|
122
|
+
<style >
|
|
123
123
|
@layer theme, base, components, utilities;
|
|
124
124
|
</style>
|
|
125
125
|
|
|
@@ -188,7 +188,7 @@ const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
|
|
|
188
188
|
</header>
|
|
189
189
|
</div>
|
|
190
190
|
|
|
191
|
-
<style>
|
|
191
|
+
<style is:inline>
|
|
192
192
|
/*
|
|
193
193
|
* Cascade layers keep this component overridable:
|
|
194
194
|
* base (resets/preflight) < components (ours) < utilities (your classNames)
|
|
@@ -205,6 +205,7 @@ const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
|
|
|
205
205
|
--text-color: var(--l-text, #1a1a1a);
|
|
206
206
|
--accent-color: var(--l-accent, #3e1c71);
|
|
207
207
|
--backdrop-blur: var(--l-blur, blur(20px));
|
|
208
|
+
|
|
208
209
|
display: flex;
|
|
209
210
|
align-items: center;
|
|
210
211
|
width: 100%;
|
|
@@ -216,6 +217,7 @@ const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
|
|
|
216
217
|
transition:
|
|
217
218
|
background-color 0.3s ease,
|
|
218
219
|
color 0.3s ease;
|
|
220
|
+
z-index: 200;
|
|
219
221
|
|
|
220
222
|
@media (width < 768px) {
|
|
221
223
|
align-self: flex-end;
|
|
@@ -285,7 +287,7 @@ const forcedClass = preset !== "auto" ? `header--force-${preset}` : "";
|
|
|
285
287
|
|
|
286
288
|
.header--fullscreen {
|
|
287
289
|
border-radius: 0;
|
|
288
|
-
padding: 1em
|
|
290
|
+
padding:0.6rem 1em ;
|
|
289
291
|
|
|
290
292
|
@media (width < 768px) {
|
|
291
293
|
max-width: 100%;
|