@sofidevo/astro-dynamic-header 1.0.23 → 1.0.25

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofidevo/astro-dynamic-header",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "A dynamic Astro header component that switches between floating and fullscreen styles",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/Header.astro CHANGED
@@ -115,7 +115,7 @@ const {
115
115
 
116
116
  /* Floating header container styles */
117
117
  .header__container--floating {
118
- padding: 16px;
118
+ padding: 1rem;
119
119
  }
120
120
 
121
121
  /* Fullscreen header container styles */
@@ -123,8 +123,7 @@ const pagePathname = Astro.url.pathname;
123
123
  width: 104vw;
124
124
  height: 100dvh;
125
125
  position: fixed;
126
- top: 0;
127
- gap: 1rem;
126
+ /* top: -16px; */
128
127
  left: 0;
129
128
  background: #151515;
130
129
  z-index: 20;
package/src/NavMenu.astro CHANGED
@@ -190,7 +190,6 @@ const pagePathname = Astro.url.pathname;
190
190
  }
191
191
 
192
192
  .menu {
193
- padding: 1rem;
194
193
  list-style: none;
195
194
  display: flex;
196
195
  align-items: center;
@@ -203,7 +202,7 @@ const pagePathname = Astro.url.pathname;
203
202
 
204
203
  .menu__link {
205
204
  text-decoration: none;
206
- padding: 0.5rem 1rem;
205
+ padding: 0.5rem ;
207
206
  display: flex;
208
207
  align-items: center;
209
208
  gap: 0.8rem;
@@ -214,7 +213,7 @@ const pagePathname = Astro.url.pathname;
214
213
  @media screen and (min-width: 768px) {
215
214
  .menu__link::after {
216
215
  position: absolute;
217
- top: 25px;
216
+ top: 33px;
218
217
  left: 0;
219
218
  content: "";
220
219
  width: 100%;
@@ -265,7 +264,7 @@ const pagePathname = Astro.url.pathname;
265
264
  justify-content: space-between;
266
265
  align-items: center;
267
266
  width: 100%;
268
- height: 4rem;
267
+ height: 1rem;
269
268
  border-radius: 0.4rem;
270
269
  color: #fff;
271
270
  color: var(--color-tertiary, #fff);
@@ -278,7 +277,7 @@ const pagePathname = Astro.url.pathname;
278
277
 
279
278
  .submenu__item--secondary a,
280
279
  .submenu__item--tertiary a {
281
- padding: 2rem;
280
+ padding: 1rem;
282
281
  }
283
282
 
284
283
  .submenu__item--secondary a:hover,
@@ -288,7 +287,7 @@ const pagePathname = Astro.url.pathname;
288
287
  }
289
288
 
290
289
  .submenu {
291
- padding: 1rem;
290
+ padding: .5rem;
292
291
  right: -23px;
293
292
  }
294
293