all repos — legit @ e108c4e924105ef88e73f0fe45069454b66ccd12

web frontend for git, written in go

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