blob: 79f24ab9ec6d124edb363cf13725a00dd5eaaafb (
plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
/* custom css here */
html,
body {
height: 100%;
}
.h-100 {
height: 100%;
}
#holy {
display: grid;
/* auto: as wide as its content
* fr: all available space */
grid-template-columns: 1fr auto;
grid-template-rows: auto 1fr auto;
grid-template-areas:
"header header"
"main side"
"footer side";
}
#header {
grid-area: header;
}
#main {
grid-area: main;
max-width: 782px;
}
#side {
grid-area: side;
width: 230px;
}
#footer {
grid-area: footer;
}
aside {
position: -webkit-sticky;
position: sticky;
top: 0;
max-height: 100vh;
display: block;
overflow-y: auto;
}
/* Menu */
.flex-column {
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.dropdown:hover .dropdown-content {
visibility: visible;
opacity: 1;
}
.dropdown-content:hover {
visibility: visible;
opacity: 1;
}
.dropdown-content {
visibility: hidden;
opacity: 0;
transition: all 0.2s ease;
top: 55px;
right: 0;
white-space: nowrap;
min-width: 160px;
z-index: 1;
}
/* TOC */
#toc {
margin-top: 1.5rem;
padding: 0.7rem;
}
#toc * {
list-style: none;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#toc ul {
padding-left: 0.8rem;
}
#toc li {
margin-top: 0.3rem;
}
@media screen and (max-width: 1012px) {
#holy {
display: block;
}
#header {
}
#main {
max-width: 1012px;
}
#side {
display: none;
}
}
|