| 1 |
/** |
| 2 |
* Secondary sidebar on the right. |
| 3 |
* e.g., in-page table of contents. |
| 4 |
*/ |
| 5 |
.bd-sidebar-secondary { |
| 6 |
display: flex; |
| 7 |
order: 2; |
| 8 |
flex-shrink: 0; |
| 9 |
flex-direction: column; |
| 10 |
position: sticky; |
| 11 |
top: var(--pst-header-height); |
| 12 |
max-height: calc(100vh - var(--pst-header-height)); |
| 13 |
padding: 2rem 1rem 1rem; |
| 14 |
width: var(--pst-sidebar-secondary); |
| 15 |
font-size: var(--pst-sidebar-font-size-mobile); |
| 16 |
|
| 17 |
@include media-breakpoint-up($breakpoint-sidebar-secondary) { |
| 18 |
font-size: var(--pst-sidebar-font-size); |
| 19 |
} |
| 20 |
|
| 21 |
// Color and border |
| 22 |
background-color: var(--pst-color-background); |
| 23 |
overflow-y: auto; |
| 24 |
} |
| 25 |
|
| 26 |
.sidebar-secondary-item { |
| 27 |
padding: 0.5rem; |
| 28 |
|
| 29 |
@include media-breakpoint-up($breakpoint-sidebar-secondary) { |
| 30 |
border-left: 1px solid var(--pst-color-border); |
| 31 |
padding-left: 1rem; |
| 32 |
} |
| 33 |
|
| 34 |
i { |
| 35 |
padding-right: 0.5rem; |
| 36 |
} |
| 37 |
} |