srcdev-nuxt-components 9.6.15 → 9.6.16

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.
@@ -209,6 +209,8 @@ All tokens are read via `var(--token, default)` — see the full list in the com
209
209
  | Token | Default | Controls |
210
210
  |---|---|---|
211
211
  | `--responsive-header-link-font-size` | `inherit` | Nav-link font-size. **Set this to a fixed value** — see the measurement-pipeline note above for why leaving it `inherit` from a fluid ancestor is a footgun. |
212
+ | `--responsive-header-link-padding-block` / `--responsive-header-link-padding-inline` | `0.8rem` / `0.2rem` | Padding around each top-bar link and summary. The active underline and hover highlight span this box, so larger inline padding makes them reach past the label. Set fixed values, as with the font size: the overflow-collapse measurement only re-runs when the header resizes. |
213
+ | `--responsive-header-nav-item-gap` | `30px` | Gap between items within each top-bar list. Reduce it when you raise the inline padding to keep the label-to-label spacing. |
212
214
  | `--responsive-header-link-color` | `inherit` | Link/summary text colour. |
213
215
  | `--responsive-header-link-color-hover` / `-active` | the resting colour | Per-state link colour in the top bar (added 2026-10-07). Hover falls back to the item's current state. `--overflow-nav-link-color-hover` / `-active` do the same in the overflow panel. |
214
216
  | `--responsive-header-bg` / `--responsive-header-padding-*` / `--responsive-header-border*` | transparent / `0` / `none` | Root element theming. |
@@ -10,6 +10,8 @@ are documented alongside it since that's where they're consumed.
10
10
  | Token | Default | Controls |
11
11
  |---|---|---|
12
12
  | `--responsive-header-link-font-size` | `inherit` | Nav-link font-size. **Always set this to a fixed value.** Leaving it `inherit` means a fluid ancestor font-size (`clamp()`/`vw`) can drift nav-item text width without ever re-triggering the overflow-collapse measurement — see the component skill doc's "measurement pipeline" section for the full mechanism. |
13
+ | `--responsive-header-link-padding-block` / `--responsive-header-link-padding-inline` | `0.8rem` / `0.2rem` | Padding around each top-bar link and summary. The active underline and hover highlight span this box, so larger inline padding makes them reach past the label. Set fixed values, as with the font size: the overflow-collapse measurement only re-runs when the header resizes. |
14
+ | `--responsive-header-nav-item-gap` | `30px` | Gap between items within each top-bar list. Reduce it when you raise the inline padding to keep the label-to-label spacing. |
13
15
  | `--responsive-header-link-color` | `inherit` | Link/summary text colour. |
14
16
  | `--responsive-header-main-nav-justify-content` | `space-between` | How the main nav's groups are spread along the bar. Use `flex-start`, `safe center` or `safe end`; plain `center`/`end` let items that don't fit spill off the start edge, where they're clipped. (Safari 16 ignores `safe` values and falls back to start alignment.) |
15
17
  | `--responsive-header-color` | `inherit` | Root element text colour. |
@@ -779,6 +779,9 @@ watch(
779
779
  --responsive-nav-decorator-hovered-bg (default: color-mix(in oklch, var(--theme-text) 8%, transparent))
780
780
 
781
781
  --responsive-header-link-font-size (default: inherit)
782
+ --responsive-header-link-padding-block (default: 0.8rem)
783
+ --responsive-header-link-padding-inline (default: 0.2rem)
784
+ --responsive-header-nav-item-gap (default: 30px)
782
785
  --responsive-header-main-nav-justify-content (default: space-between)
783
786
  ──────────────────────────────────────────────────────────────────────── */
784
787
 
@@ -810,8 +813,8 @@ watch(
810
813
 
811
814
  .main-navigation {
812
815
  /* Set up some global vars */
813
- --_link-padding-block: 0.8rem;
814
- --_link-padding-inline: 0.2rem;
816
+ --_link-padding-block: var(--responsive-header-link-padding-block, 0.8rem);
817
+ --_link-padding-inline: var(--responsive-header-link-padding-inline, 0.2rem);
815
818
  --_link-margin-block: 0.1rem;
816
819
  --_link-margin-inline: 0.1rem;
817
820
  --_link-focus-visible-outline-width: 0.2rem;
@@ -835,11 +838,11 @@ watch(
835
838
  flex-wrap: nowrap;
836
839
 
837
840
  &:nth-of-type(1) {
838
- gap: 30px;
841
+ gap: var(--responsive-header-nav-item-gap, 30px);
839
842
  }
840
843
 
841
844
  &:nth-of-type(2) {
842
- gap: 30px;
845
+ gap: var(--responsive-header-nav-item-gap, 30px);
843
846
  }
844
847
 
845
848
  .main-navigation-item {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "9.6.15",
4
+ "version": "9.6.16",
5
5
  "main": "nuxt.config.ts",
6
6
  "types": "types.d.ts",
7
7
  "license": "MIT",