libreria-astro-lefebvre 0.2.33 → 0.2.34

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": "libreria-astro-lefebvre",
3
- "version": "0.2.33",
3
+ "version": "0.2.34",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
@@ -100,7 +100,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
100
100
  ---
101
101
 
102
102
  <header class="sticky top-0 w-full font-body bg-[rgba(250,250,245,0.80)] backdrop-blur-lg z-50 flex flex-col justify-center align-center items-center p-0">
103
- <div class="px-4 min-[992px]:px-8 py-3 min-[992px]:py-1 w-full">
103
+ <div class="px-4 [@media(min-width:992px)]:px-8 py-3 [@media(min-width:992px)]:py-1 w-full">
104
104
 
105
105
  <div class="max-w-[1376px] flex items-center justify-between gap-2 mx-auto">
106
106
  <div class="flex items-center gap-3 min-w-0">
@@ -108,10 +108,10 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
108
108
  <img src="https://assets.lefebvre.es/media/logos-2/svg/lefebvre.svg" class="h-7 w-auto" alt="Lefebvre" width="104" height="28" loading={loading}>
109
109
  </a>
110
110
  {firstItem && (
111
- <a href={firstItem.link} target={firstItem.target ?? '_self'} class={`${firstItemClass} min-w-0 truncate min-[992px]:hidden`}>{firstItem.name}</a>
111
+ <a href={firstItem.link} target={firstItem.target ?? '_self'} class={`${firstItemClass} min-w-0 truncate [@media(min-width:992px)]:hidden`}>{firstItem.name}</a>
112
112
  )}
113
113
  </div>
114
- <div class="flex items-center gap-2 shrink-0 min-[992px]:hidden">
114
+ <div class="flex items-center gap-2 shrink-0 [@media(min-width:992px)]:hidden">
115
115
  {label && (
116
116
  <div class="flex items-center gap-4">
117
117
  <a href={url} class={ctaClass}>{label}</a>
@@ -131,7 +131,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
131
131
 
132
132
  </div>
133
133
  </div>
134
- <nav class="hidden min-[992px]:block w-full px-8">
134
+ <nav class="hidden [@media(min-width:992px)]:block w-full px-8">
135
135
  <div class="max-w-[1376px] flex items-center gap-6 mx-auto">
136
136
  <ul class="flex items-center justify-start">
137
137
  {categories.map((category, index) => {
@@ -183,7 +183,7 @@ const categories: MenuItem[] = (categoriesProp && categoriesProp.length > 0)
183
183
  </div>
184
184
  </nav>
185
185
 
186
- <nav class="hidden min-[992px]:hidden w-full bg-white border-[#e1c8b4]" id="navbar-default">
186
+ <nav class="hidden [@media(min-width:992px)]:hidden w-full bg-white border-[#e1c8b4]" id="navbar-default">
187
187
  <div class="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto">
188
188
 
189
189
  <div class="w-full">