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