all repos — legit @ 85d1bf73559536405d4eb22a6249a1e8d9030be3

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: 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 pre {
176  padding-bottom: 1rem;
177  white-space: pre-wrap;
178}
179
180.diff-stat ul li {
181  list-style: none;
182  padding-left: 0.5em;
183}
184
185.diff-add {
186  color: green;
187}
188
189.diff-del {
190  color: red;
191}
192
193.diff-noop {
194  color: var(--gray);
195}
196
197.ref {
198  font-family: var(--display-font);
199  font-size: 14px;
200  color: var(--gray);
201  display: inline-block;
202  padding-top: 0.7em;
203}
204
205.refs {
206  display: grid;
207  grid-template-columns: 1fr 1fr;
208  align-items: center;
209}
210
211.line-numbers {
212  white-space: pre-line;
213  -moz-user-select: -moz-none;
214  -khtml-user-select: none;
215  -webkit-user-select: none;
216  -o-user-select: none;
217  user-select: none;
218}
219
220.file-wrapper {
221  display: flex;
222  flex-direction: row;
223  grid-template-columns: 1rem minmax(0, 1fr);
224  gap: 1rem;
225}
226
227@media (max-width: 600px) {
228  .index {
229    grid-row-gap: 0.8em;
230  }
231
232  .log {
233    grid-template-columns: 1fr;
234    grid-row-gap: 0em;
235  }
236
237  .commit-info:not(:last-child) {
238    padding-bottom: 1.5rem;
239  }
240}