-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtoc.css
79 lines (69 loc) · 1.37 KB
/
toc.css
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
74
75
76
77
78
79
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600&display=swap');
body {
padding-bottom:20%;
}
fieldset {
border: 1em solid #eee;
background: #fff;
/* font-size: 0.5em; */
}
::marker {
color: red;
}
/* similar to the bootstrap */
.fixed-top {
position: fixed;
/* top: 0; */
/* right: 50vw; */
height: 30%;
z-index: 1000;
overflow-y: overlay;
bottom: 0;
left: 0;
right: 0;
scroll-padding: 50px;
font-family: 'DM Sans', sans-serif;
/* padding: 10px; */
/* display: grid; */
/* gap: 2rem; */
/* grid-template-columns: 3fr 1fr; */
}
legend {
font-weight: bold;
/* color: red: */
}
aside {
padding: 16px;
background-color: rgba(1, 1, 1, 0.2);
align-self: start;
position: sticky;
top: 10px;
border-radius: 0.2em;
ul {
margin: 0;
padding: 0;
list-style: none;
li {
padding: 0.15em;
a {
color: inherit;
text-transform: none;
display: inline-block;
transform-origin: left;
transition: transform 0.1s linear;
&.active {
font-weight: 600;
transform: scale(1.1);
}
}
}
}
}
@media (max-width: 767px) {
main {
grid-template-columns: 1fr;
}
aside {
display: none;
}
}