Align fixed sidebar card hover with topic headings |
Unify fixed sidebar links with collapsed topic heading component |
||
| 第354行: | 第354行: | ||
} | } | ||
.tyzx-sidebar-fixed a { | .tyzx-sidebar-fixed a, | ||
.tyzx-sidebar-topic .tyzx-sidebar-toggle { | |||
display: flex; | |||
box-sizing: border-box; | |||
align-items: center; | |||
width: 100%; | width: 100%; | ||
min-height: 2.25rem; | min-height: 2.25rem; | ||
margin: 0; | |||
padding: 0.4rem 0.45rem; | padding: 0.4rem 0.45rem; | ||
border: 0; | |||
border-inline-start: 3px solid #d97706; | border-inline-start: 3px solid #d97706; | ||
background: | border-radius: 2px; | ||
background: transparent; | |||
color: #9a4d00; | color: #9a4d00; | ||
font: inherit; | font: inherit; | ||
font-weight: 650; | font-weight: 650; | ||
line-height: 1.25; | line-height: 1.25; | ||
text-align: start; | |||
text-decoration: none; | |||
cursor: pointer; | |||
} | } | ||
| 第371行: | 第381行: | ||
} | } | ||
.tyzx-sidebar-fixed a:hover { | .tyzx-sidebar-fixed a:link, | ||
.tyzx-sidebar-fixed a:visited, | |||
.tyzx-sidebar-fixed a:focus-visible { | |||
color: #9a4d00; | |||
} | |||
.tyzx-sidebar-fixed a:hover, | |||
.tyzx-sidebar-topic .tyzx-sidebar-toggle:hover { | |||
background: var(--background-color-interactive-subtle, #f8f9fa); | background: var(--background-color-interactive-subtle, #f8f9fa); | ||
color: #7a3d00; | |||
text-decoration: none; | |||
} | |||
.tyzx-sidebar-fixed a:active, | |||
.tyzx-sidebar-topic .tyzx-sidebar-toggle:active { | |||
background: var(--background-color-interactive, #eaecf0); | |||
color: #7a3d00; | color: #7a3d00; | ||
text-decoration: none; | text-decoration: none; | ||
| 第386行: | 第410行: | ||
.tyzx-sidebar-topic + .tyzx-sidebar-topic { | .tyzx-sidebar-topic + .tyzx-sidebar-topic { | ||
margin-block-start: 0.3rem; | margin-block-start: 0.3rem; | ||
} | } | ||
| 第428行: | 第432行: | ||
.tyzx-sidebar-topic .tyzx-sidebar-toggle[aria-expanded="true"]::before { | .tyzx-sidebar-topic .tyzx-sidebar-toggle[aria-expanded="true"]::before { | ||
transform: rotate(90deg); | transform: rotate(90deg); | ||
} | } | ||