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