-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxxx.css
192 lines (152 loc) · 3.93 KB
/
xxx.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* -------------------------------------------------------------------------- */
/* body { */
/* background-color: #fdf6e3; */
/* } */
/* body { */
/* text-align: justify; */
/* } */
/* -------------------------------------------------------------------------- */
/* Spacing. */
/* The general idea is that padding should decrease with nesting. */
#body-inner .chroma,
#body-inner ul,
#body-inner .notices,
#body-inner .panel {
margin-top: 1rem;
margin-bottom: 1rem;
}
#body-inner li p,
#body-inner li ul,
#body-inner li .notices,
#body-inner li .chroma,
#body-inner dd p,
#body-inner dd ul,
#body-inner dd .notices,
#body-inner dd .chroma,
#body-inner .notices .chroma {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
/* -------------------------------------------------------------------------- */
/* Inline code. */
/* /\* TODO: Pink *\/ */
/* code { */
/* border: 1px solid #DDD; */
/* border-radius: 4px; */
/* /\* background-color: rgba(27,31,35,.05); *\/ */
/* background-color: #EEE; */
/* } */
/* Fix wrong vertical alignment of inline code (was `bottom`). */
#body-inner code {
vertical-align: baseline;
}
/* Italicized inline code. */
em > code {
background-color: inherit;
border: none;
}
/* -------------------------------------------------------------------------- */
/* Headings. */
h1, h2 {
/* font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; */
/* font-weight: bold; */
text-transform: none;
}
h1 {
font-weight: bold;
}
h2 {
font-size: 2rem;
margin-top: 2rem;
margin-bottom: 1rem;
}
/* -------------------------------------------------------------------------- */
/* Make code highlighting work. */
/* https://discourse.gohugo.io/t/solved-syntax-highlighting-changed-with-hugo-0-29-from-0-27/8678 */
/* https://github.com/alecthomas/chroma/issues/41 */
/* We don't modify syntax.css because we want to treat that entire file as machine-generated. */
.chroma code {
color: inherit;
background-color: inherit;
}
.chroma {
color: #777;
background-color: #EEE;
border: 1px solid #DDD;
box-shadow: 2px 2px 2px #EEE;
}
/* -------------------------------------------------------------------------- */
/* Make top bar sticky. */
/* TODO: Make it sticky only when it's needed to toggle the sidebar. */
#body > .padding {
overflow: visible;
}
#top-bar {
position: sticky;
top: 0;
z-index: 9999;
}
/* -------------------------------------------------------------------------- */
/* Hide copy-to-clipboard button, except for code blocks. */
code + .copy-to-clipboard {
display: none;
}
.chroma .copy-to-clipboard {
display: inline;
}
/* -------------------------------------------------------------------------- */
/* Smaller navigation sidebars. */
#body > .padding {
padding-left: 2rem;
padding-right: 2rem;
}
#navigation .nav {
width: 2rem;
}
#navigation .nav > i.fa {
font-size: 28px;
}
/* -------------------------------------------------------------------------- */
/* Menu sidebar. */
#sidebar ul.topics > li.parent,
#sidebar ul.topics > li.active {
background: inherit;
}
#sidebar ul li li {
border-left: 1px solid transparent;
}
/* #sidebar ul.topics > li.parent li { */
/* background: green; */
/* } */
/* #sidebar ul.topics > li.parent.active li { */
/* background: inherit; */
/* } */
#sidebar ul > li {
text-indent: 0.15rem;
}
/* #sidebar ul > li > a { */
/* width: 100%; */
/* } */
#sidebar ul > li.active > a {
/* background-color: #fdf6e3 !important; */
background-color: white !important;
color: black !important;
}
#sidebar li.alwaysopen i.fa {
display: none;
}
#sidebar ul.topics ul {
padding-bottom: 0;
}
/* -------------------------------------------------------------------------- */
/* XXX: Either docdock's styling is bad, or ox-hugo's rendering of shortcodes is broken. */
div.notices {
padding-bottom: 1px;
padding-left: 1.1rem;
padding-right: 1.1rem;
}
div.notices p {
padding: 0;
margin-top: 0.6rem;
margin-bottom: 0.6rem;
}