all repos — legit @ 2b57b6e0b1b936f45aa4ed8fd0ed2f57b7d370f3

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