all repos — legit @ e4d12fc667c9830dd5f08f827b2a70adff58a09b

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: 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  padding-top: 1rem;
151}
152
153.diff pre {
154  overflow: scroll;
155}
156
157.diff-stat {
158  padding: 1rem 0 1rem 0;
159}
160
161.commit-email {
162  color: var(--gray);
163}
164
165.commit pre {
166  padding-bottom: 1rem;
167  white-space: pre-wrap;
168}
169
170.diff-stat ul li {
171  list-style: none;
172  padding-left: 0.5em;
173}
174
175.diff-add {
176  color: green;
177}
178
179.diff-del {
180  color: red;
181}
182
183.diff-noop {
184  color: var(--gray);
185}
186
187@media (max-width: 600px) {
188  .index {
189    grid-row-gap: 0.8em;
190  }
191
192  .log {
193    grid-template-columns: 1fr;
194    grid-row-gap: 0em;
195  }
196
197  .commit-info:not(:last-child) {
198    padding-bottom: 1.5rem;
199  }
200}