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: 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, .small-heading {
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-top: 1rem;
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 display: grid;
101 grid-template-columns: 6em 1fr minmax(0, 7em);
102 grid-row-gap: 0.5em;
103 min-width: 0;
104}
105
106.index-headings {
107 display: grid;
108 grid-template-columns: 6em 1fr minmax(0, 7em);
109 padding-bottom: 1.2em;
110 padding-top: 1.2em;
111 min-width: 0;
112}
113
114.clone-url {
115 padding-top: 2rem;
116}
117
118.clone-url pre {
119 color: var(--dark);
120}
121
122.desc {
123 color: var(--gray);
124 font-style: italic;
125}
126
127.tree {
128 display: grid;
129 grid-template-columns: 8em minmax(0, 1fr);
130 grid-row-gap: 0.5em;
131 grid-column-gap: 1em;
132 min-width: 0;
133}
134
135.log {
136 display: grid;
137 grid-template-columns: 20rem minmax(0, 1fr);
138 grid-row-gap: 0.8em;
139 grid-column-gap: 8rem;
140 margin-bottom: 2em;
141 padding-bottom: 1em;
142 border-bottom: 1.5px solid var(--medium-gray);
143}
144
145.log pre {
146 white-space: pre-wrap;
147}
148
149.mode {
150 font-family: var(--mono-font);
151}
152
153.readme pre {
154 white-space: pre-wrap;
155}
156
157.readme {
158 padding-bottom: 2rem;
159 border-bottom: 1.5px solid var(--medium-gray);
160}
161
162.diff {
163 margin: 1rem 0 1rem 0;
164 padding: 1rem 0 1rem 0;
165 border-bottom: 1.5px solid var(--medium-gray);
166}
167
168.diff pre {
169 overflow: scroll;
170}
171
172.diff-stat {
173 padding: 1rem 0 1rem 0;
174}
175
176.commit-email:before {
177 content: '<';
178}
179
180.commit-email:after {
181 content: '>';
182}
183
184.commit {
185 margin-bottom: 1rem;
186}
187
188.commit pre {
189 padding-bottom: 1rem;
190 white-space: pre-wrap;
191}
192
193.diff-stat ul li {
194 list-style: none;
195 padding-left: 0.5em;
196}
197
198.diff-add {
199 color: green;
200}
201
202.diff-del {
203 color: red;
204}
205
206.diff-noop {
207 color: var(--gray);
208}
209
210.ref {
211 font-family: var(--display-font);
212 font-size: 14px;
213 color: var(--gray);
214 display: inline-block;
215 padding-top: 0.7em;
216}
217
218.refs {
219 display: grid;
220 grid-template-columns: 1fr 1fr;
221 align-items: center;
222}
223
224.line-numbers {
225 white-space: pre-line;
226 -moz-user-select: -moz-none;
227 -khtml-user-select: none;
228 -webkit-user-select: none;
229 -o-user-select: none;
230 user-select: none;
231}
232
233.file-wrapper {
234 display: flex;
235 flex-direction: row;
236 grid-template-columns: 1rem minmax(0, 1fr);
237 gap: 1rem;
238}
239
240.commit-info {
241 color: var(--gray);
242 padding-bottom: 1.5rem;
243}
244
245@media (max-width: 600px) {
246 .index {
247 grid-row-gap: 0.8em;
248 }
249
250 .log {
251 grid-template-columns: 1fr;
252 grid-row-gap: 0em;
253 }
254
255 .commit-info:not(:last-child) {
256 padding-bottom: 1.5rem;
257 }
258}