static/style.css (view raw)
1:root {
2 --light: #f4f4f4;
3 --cyan: #509c93;
4 --light-gray: #eee;
5 --medium-gray: #ddd;
6 --gray: #6a6a6a;
7 --dark: #444;
8 --darker: #222;
9
10 --sans-font: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
11 --display-font: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif;
12 --mono-font: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', 'Roboto Mono', Menlo, Consolas, monospace;
13}
14
15html {
16 background: var(--light);
17 -webkit-text-size-adjust: none;
18 font-family: var(--sans-font);
19}
20
21pre {
22 font-family: var(--mono-font);
23}
24
25::selection {
26 background: var(--medium-gray);
27 opacity: 0.3;
28}
29
30* {
31 box-sizing: border-box;
32 padding: 0;
33 margin: 0;
34}
35
36body {
37 max-width: 750px;
38 padding: 0 13px;
39 margin: 40px auto;
40}
41
42main, footer {
43 font-size: 1rem;
44 padding: 0;
45 line-height: 160%;
46}
47
48main h1, h2, h3, strong {
49 font-family: var(--display-font);
50 font-weight: 500;
51}
52
53strong {
54 font-weight: 500;
55}
56
57main h1 {
58 font-size: 20px;
59 padding: 10px 0 10px 0;
60}
61
62main h2 {
63 font-size: 18px;
64}
65
66main h2, h3 {
67 padding: 20px 0 15px 0;
68}
69
70nav {
71 padding: 0.4rem 0 1.5rem 0;
72}
73
74nav ul {
75 padding: 0;
76 margin: 0;
77 list-style: none;
78 padding-bottom: 20px;
79}
80
81nav ul li {
82 padding-right: 10px;
83 display: inline-block;
84}
85
86a {
87 margin: 0;
88 padding: 0;
89 box-sizing: border-box;
90 text-decoration: none;
91 word-wrap: break-word;
92}
93
94a {
95 color: var(--darker);
96 border-bottom: 1.5px solid var(--medium-gray);
97}
98
99a:hover {
100 border-bottom: 1.5px solid var(--gray);
101}
102
103.index {
104 padding-top: 2em;
105 display: grid;
106 grid-template-columns: 6em 1fr minmax(0, 7em);
107 grid-row-gap: 0.5em;
108 min-width: 0;
109}
110
111.clone-url {
112 padding-top: 2rem;
113}
114
115.clone-url pre {
116 color: var(--dark);
117 white-space: pre-wrap;
118}
119
120.desc {
121 font-weight: normal;
122 color: var(--gray);
123 font-style: italic;
124}
125
126.tree {
127 display: grid;
128 grid-template-columns: 8em minmax(0, 1fr);
129 grid-row-gap: 0.5em;
130 grid-column-gap: 1em;
131 min-width: 0;
132}
133
134.log {
135 display: grid;
136 grid-template-columns: 20rem minmax(0, 1fr);
137 grid-row-gap: 0.8em;
138 grid-column-gap: 8rem;
139 margin-bottom: 2em;
140 padding-bottom: 1em;
141 border-bottom: 1.5px solid var(--medium-gray);
142}
143
144.log pre {
145 white-space: pre-wrap;
146}
147
148.mode {
149 font-family: var(--mono-font);
150}
151
152.readme pre {
153 white-space: pre-wrap;
154}
155
156.readme {
157 background: var(--light-gray);
158 padding: 0.5rem;
159}
160
161.readme ul {
162 padding: revert;
163}
164
165.readme img {
166 max-width: 100%;
167}
168
169.diff {
170 margin: 1rem 0 1rem 0;
171 padding: 1rem 0 1rem 0;
172 border-bottom: 1.5px solid var(--medium-gray);
173}
174
175.diff pre {
176 overflow: scroll;
177}
178
179.diff-stat {
180 padding: 1rem 0 1rem 0;
181}
182
183.commit-email:before {
184 content: '<';
185}
186
187.commit-email:after {
188 content: '>';
189}
190
191.commit {
192 margin-bottom: 1rem;
193}
194
195.commit pre {
196 padding-bottom: 1rem;
197 white-space: pre-wrap;
198}
199
200.diff-stat ul li {
201 list-style: none;
202 padding-left: 0.5em;
203}
204
205.diff-add {
206 color: green;
207}
208
209.diff-del {
210 color: red;
211}
212
213.diff-noop {
214 color: var(--gray);
215}
216
217.ref {
218 font-family: var(--display-font);
219 font-size: 14px;
220 color: var(--gray);
221 display: inline-block;
222 padding-top: 0.7em;
223}
224
225.refs pre {
226 white-space: pre-wrap;
227 padding-bottom: 0.5rem;
228}
229
230.refs strong {
231 padding-right: 1em;
232}
233
234.line-numbers {
235 white-space: pre-line;
236 -moz-user-select: -moz-none;
237 -khtml-user-select: none;
238 -webkit-user-select: none;
239 -o-user-select: none;
240 user-select: none;
241}
242
243.file-wrapper {
244 display: flex;
245 flex-direction: row;
246 grid-template-columns: 1rem minmax(0, 1fr);
247 gap: 1rem;
248 padding: 0.5rem;
249 background: var(--light-gray);
250}
251
252.file-content {
253 background: var(--light-gray);
254 overflow-y: hidden;
255 overflow-x: auto;
256}
257
258.diff-type {
259 color: var(--gray);
260}
261
262.commit-info {
263 color: var(--gray);
264 padding-bottom: 1.5rem;
265 font-size: 0.85rem;
266}
267
268@media (max-width: 600px) {
269 .index {
270 grid-row-gap: 0.8em;
271 }
272
273 .log {
274 grid-template-columns: 1fr;
275 grid-row-gap: 0em;
276 }
277
278 .index {
279 grid-template-columns: 1fr;
280 grid-row-gap: 0em;
281 }
282
283 .index-name:not(:first-child) {
284 padding-top: 1.5rem;
285 }
286
287 .commit-info:not(:last-child) {
288 padding-bottom: 1.5rem;
289 }
290
291 pre {
292 font-size: 0.8rem;
293 }
294}