-
Notifications
You must be signed in to change notification settings - Fork 297
/
_sidebar-secondary.scss
73 lines (63 loc) · 1.57 KB
/
_sidebar-secondary.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* Secondary sidebar on the right.
* e.g., in-page table of contents.
*/
.bd-sidebar-secondary {
display: flex;
order: 2;
flex-shrink: 0;
flex-direction: column;
position: sticky;
top: var(--pst-header-height);
max-height: calc(100vh - var(--pst-header-height));
font-size: var(--pst-sidebar-font-size-mobile);
@include media-breakpoint-up($breakpoint-sidebar-secondary) {
font-size: var(--pst-sidebar-secondary-font-size);
}
padding: 2rem 1rem 1rem 1rem;
width: var(--pst-sidebar-secondary);
// Color and border
background-color: var(--pst-color-background);
overflow-y: auto;
.onthispage {
color: var(--pst-color-text-base);
font-weight: var(--pst-sidebar-header-font-weight);
}
@include scrollbar-style();
}
// Each TOC item is wrapped in this
.toc-item {
padding: 0.5rem 0.5rem;
@include media-breakpoint-up($breakpoint-sidebar-secondary) {
border-left: 1px solid var(--pst-color-border);
padding-left: 1rem;
}
i {
padding-right: 0.5rem;
}
}
// The list of in-page TOC
.section-nav {
padding-left: 0;
border-bottom: none;
ul {
padding-left: 1rem;
}
}
// The 'Hide Search Matches' link
div#searchbox {
p.highlight-link {
// remove excess margin from p tag
margin-bottom: 0px;
a {
// add icon via CSS because the link is created by javascript
// match padding to .toc-item > i above
// f010 is magnifying glass minus
&:before {
content: var(--pst-icon-search-minus);
font-family: "Font Awesome 6 Free";
padding-right: 0.5rem;
}
}
}
}