all repos — legit @ c90b2b51931423e8161dabe88c4c5c11ba204872

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