| 1 |
/* -------------------------------------------------------------------------- |
| 2 |
Tabs |
| 3 |
-------------------------------------------------------------------------- */ |
| 4 |
.wpsubs-tabs__list { |
| 5 |
display: flex; |
| 6 |
gap: 4px; |
| 7 |
border-bottom: 1px solid var(--wpsubs-border, #e5e7eb); |
| 8 |
margin-bottom: 20px; |
| 9 |
} |
| 10 |
|
| 11 |
/* `display: flex` outweighs the bare `hidden` attribute, so restate it. */ |
| 12 |
.wpsubs-tabs__list[hidden] { |
| 13 |
display: none !important; |
| 14 |
} |
| 15 |
|
| 16 |
.wpsubs-tabs__tab { |
| 17 |
appearance: none; |
| 18 |
display: inline-flex; |
| 19 |
align-items: center; |
| 20 |
gap: 6px; |
| 21 |
border: none; |
| 22 |
background: none; |
| 23 |
margin: 0; |
| 24 |
padding: 10px 16px; |
| 25 |
font-size: 14px; |
| 26 |
font-weight: 500; |
| 27 |
color: var(--wpsubs-text-muted, #6b7280); |
| 28 |
text-decoration: none; |
| 29 |
cursor: pointer; |
| 30 |
border-bottom: 2px solid var(--wpsubs-border-strong, #d1d5db); |
| 31 |
margin-bottom: -1px; |
| 32 |
transition: |
| 33 |
color 0.12s, |
| 34 |
border-color 0.12s; |
| 35 |
} |
| 36 |
|
| 37 |
/* Used as a link in the settings tabs; keep it un-underlined in every state. */ |
| 38 |
.wpsubs-tabs__tab:hover, |
| 39 |
.wpsubs-tabs__tab:focus { |
| 40 |
text-decoration: none; |
| 41 |
box-shadow: none; |
| 42 |
} |
| 43 |
|
| 44 |
.wpsubs-tabs__tab:hover { |
| 45 |
color: var(--wpsubs-text, #374151); |
| 46 |
border-bottom-color: var(--wpsubs-text-subtle, #9ca3af); |
| 47 |
} |
| 48 |
|
| 49 |
.wpsubs-tabs__tab[aria-selected="true"] { |
| 50 |
color: var(--wpsubs-brand, #ff4d00); |
| 51 |
border-bottom-color: var(--wpsubs-brand, #ff4d00); |
| 52 |
} |
| 53 |
|
| 54 |
.wpsubs-tabs__tab:focus-visible { |
| 55 |
outline: 2px solid var(--wpsubs-brand-ring, rgba(255, 77, 0, 0.2)); |
| 56 |
outline-offset: 2px; |
| 57 |
border-radius: var(--wpsubs-radius-sm, 5px); |
| 58 |
} |
| 59 |
|
| 60 |
.wpsubs-tab-panel[hidden] { |
| 61 |
display: none; |
| 62 |
} |
| 63 |
|