all repos — legit @ df0962a39ebef3853cbe90b3f7b07f7d2fce96d6

web frontend for git

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