| 1 |
/* -------------------------------------------------------------------------- |
| 2 |
Vertical nav (wpsubs-vnav) |
| 3 |
|
| 4 |
Section rail for settings-style pages. Borderless and minimal: the active |
| 5 |
item is marked by a left accent bar and brand-coloured text, not a filled |
| 6 |
pill. It is the only level of navigation on a page that uses it. |
| 7 |
-------------------------------------------------------------------------- */ |
| 8 |
.wpsubs-vnav { |
| 9 |
display: flex; |
| 10 |
flex-direction: column; |
| 11 |
gap: 1px; |
| 12 |
} |
| 13 |
|
| 14 |
.wpsubs-vnav__title { |
| 15 |
margin: 0 0 8px; |
| 16 |
padding: 0 12px; |
| 17 |
font-size: 11px; |
| 18 |
font-weight: 600; |
| 19 |
text-transform: uppercase; |
| 20 |
letter-spacing: 0.06em; |
| 21 |
color: var(--wpsubs-text-subtle, #9ca3af); |
| 22 |
} |
| 23 |
|
| 24 |
.wpsubs-vnav__item { |
| 25 |
display: flex; |
| 26 |
align-items: center; |
| 27 |
justify-content: space-between; |
| 28 |
gap: 8px; |
| 29 |
/* Reset so a <button> can be an item too, not only an <a>. */ |
| 30 |
appearance: none; |
| 31 |
box-sizing: border-box; |
| 32 |
width: 100%; |
| 33 |
background: transparent; |
| 34 |
border: 0; |
| 35 |
padding: 7px 12px; |
| 36 |
border-left: 2px solid transparent; |
| 37 |
border-radius: var(--wpsubs-radius-sm, 5px); |
| 38 |
font-family: inherit; |
| 39 |
font-size: 13px; |
| 40 |
font-weight: 500; |
| 41 |
line-height: 1.4; |
| 42 |
text-align: left; |
| 43 |
color: var(--wpsubs-text, #374151); |
| 44 |
text-decoration: none; |
| 45 |
cursor: pointer; |
| 46 |
transition: |
| 47 |
color 0.12s ease, |
| 48 |
background-color 0.12s ease, |
| 49 |
border-color 0.12s ease; |
| 50 |
} |
| 51 |
|
| 52 |
.wpsubs-vnav__item:hover, |
| 53 |
.wpsubs-vnav__item:focus { |
| 54 |
background: var(--wpsubs-surface-muted, #f9fafb); |
| 55 |
color: var(--wpsubs-text, #374151); |
| 56 |
} |
| 57 |
|
| 58 |
/* WP admin puts a blue box-shadow ring on any focused link; drop it here. */ |
| 59 |
.wpsubs-vnav__item:focus { |
| 60 |
box-shadow: none; |
| 61 |
outline: none; |
| 62 |
} |
| 63 |
|
| 64 |
.wpsubs-vnav__item:focus-visible { |
| 65 |
outline: 2px solid var(--wpsubs-brand-ring, rgba(255, 77, 0, 0.2)); |
| 66 |
outline-offset: -2px; |
| 67 |
} |
| 68 |
|
| 69 |
.wpsubs-vnav__item.is-active { |
| 70 |
border-left-color: var(--wpsubs-brand, #ff4d00); |
| 71 |
/* Keep the accent bar edge square; only the right corners stay rounded. */ |
| 72 |
border-top-left-radius: 0; |
| 73 |
border-bottom-left-radius: 0; |
| 74 |
color: var(--wpsubs-brand, #ff4d00); |
| 75 |
font-weight: 600; |
| 76 |
} |
| 77 |
|
| 78 |
.wpsubs-vnav__item.is-active:hover, |
| 79 |
.wpsubs-vnav__item.is-active:focus { |
| 80 |
color: var(--wpsubs-brand, #ff4d00); |
| 81 |
} |
| 82 |
|
| 83 |
.wpsubs-vnav__label { |
| 84 |
min-width: 0; |
| 85 |
} |
| 86 |
|
| 87 |
/* Splits the rail into sections. Follow with a `wpsubs-vnav__title` to name the |
| 88 |
next group, or use it alone as a plain rule between blocks of items. */ |
| 89 |
.wpsubs-vnav__divider { |
| 90 |
height: 1px; |
| 91 |
margin: 8px 12px; |
| 92 |
background: var(--wpsubs-border, #e5e7eb); |
| 93 |
} |
| 94 |
|