gitile/assets/css/gitile.css

gitile.css

1
:root {
2
  --blue: #6eaee6;
3
  --darkblue: #176ECB;
4
  --lightblue: #a1d9f4;
5
  --darkwhite: #faf5f0;
6
  --black: #333;
7
  --lighterblack: #777;
8
  --white: #fff;
9
  --darkgreen: #2cae0e;
10
  --gray: #ccc;
11
  --darkerwhite: #eae5e0;
12
  --lighterred: #fbe9eb;
13
  --lightergreen: #ecfdf0;
14
  --lightred: #f9d7dc;
15
  --lightgreen: #ddfbe6;
16
  --bordergreen: #b0eab9;
17
  --borderred: #eac0c9;
18
}
19
20
html, body {
21
  margin: 0;
22
  padding: 0;
23
  min-height: 100%;
24
  background: var(--darkwhite);
25
}
26
27
body {
28
  display: flex;
29
  flex-direction: column;
30
  color: var(--black);
31
  height: 100%;
32
}
33
34
#content {
35
  flex: 1;
36
  width: 1200px;
37
  margin: auto;
38
  text-align: justify;
39
  line-height: 1.5em;
40
  padding: 2em;
41
}
42
43
header {
44
  background: var(--blue);
45
}
46
47
footer {
48
  background: var(--darkerwhite);
49
}
50
51
header, footer {
52
  text-align: center;
53
}
54
55
a {
56
  text-decoration: none;
57
}
58
59
header ul {
60
  list-style: none;
61
  margin: 0;
62
}
63
64
header li {
65
  display: inline-block;
66
}
67
68
header li a {
69
  display: inline-block;
70
  padding: 1em;
71
  color: var(--white);
72
}
73
74
header li a:hover {
75
  background-color: var(--darkblue);
76
}
77
78
header li.first {
79
  margin-right: 2em;
80
}
81
82
footer a {
83
  color: var(--darkgreen);
84
}
85
86
.content {
87
  display: flex;
88
  flex-direction: row;
89
  align-items: center;
90
}
91
92
.content p:first-child {
93
  flex: 1;
94
}
95
96
.content img {
97
  max-height: 1.5em;
98
  max-width: 1.5em;
99
}
100
101
.content p {
102
  margin: 0;
103
}
104
105
.content, thead {
106
  background: var(--darkerwhite);
107
  padding: 0.5em;
108
  margin: 0;
109
  border: 1px solid var(--gray);
110
  border-bottom: none;
111
}
112
113
pre {
114
  border: 1px solid var(--gray);
115
  border-top: none;
116
  padding: 0.5em;
117
  margin: 0;
118
  background: var(--white);
119
  line-height: 1em;
120
  font-size: 0.85em;
121
  font-family: monospace, monospace;
122
}
123
124
table {
125
  background: var(--white);
126
  border-collapse: collapse;
127
  width: 100%;
128
  border: 1px solid var(--gray);
129
}
130
131
tbody tr {
132
  transition-duration: 300ms;
133
}
134
135
tbody tr:hover {
136
  background: var(--lightblue);
137
}
138
139
td {
140
  padding: 0.5em;
141
}
142
143
table.file-diff {
144
  margin-bottom: 1em;
145
  user-select: none;
146
}
147
148
table.file-diff td {
149
  padding: 0;
150
  line-height: 1em;
151
}
152
153
table.file-diff .hunk-delim {
154
  background: #fafafa;
155
  border-bottom: 1px solid var(--darkerwhite);
156
  border-top: 1px solid var(--darkerwhite);
157
  text-align: center;
158
}
159
160
table.file-diff .hunk-delim td {
161
  padding: 0.25em;
162
}
163
164
table.file-diff .diff-no-data {
165
  background: var(--darkerwhite);
166
}
167
168
table.file-diff .diff-no-data td {
169
  padding: 1em;
170
  user-select: text;
171
  text-align: center;
172
}
173
174
table.file-diff td:nth-child(3) {
175
  font-family: monospace;
176
  text-align: center;
177
}
178
179
table.file-diff .diff-line-num {
180
  background: var(--darkerwhite);
181
  color: var(--lighterblack);
182
}
183
184
table.file-diff .diff-line-num {
185
  font-family: monospace;
186
  text-align: center;
187
  border-right: 1px solid var(--gray);
188
  border-left: 1px solid var(--gray);
189
}
190
191
table.file-diff .diff-line {
192
  border-right: 1px solid var(--gray);
193
  user-select: text;
194
}
195
196
table.file-diff pre {
197
  border: none;
198
  background: none;
199
}
200
201
table.file-diff .diff-minus,
202
table.file-diff .diff-minus:hover {
203
  background: var(--lighterred);
204
  border-color: var(--red);
205
}
206
207
table.file-diff .diff-plus,
208
table.file-diff .diff-plus:hover{
209
  background: var(--lightergreen);
210
}
211
212
table.file-diff tr:hover {
213
  background: none;
214
}
215
216
table.file-diff .diff-minus .diff-line-num {
217
  background: var(--lightred);
218
}
219
220
table.file-diff .diff-plus .diff-line-num {
221
  background: var(--lightgreen);
222
}
223
224
table.file-diff .diff-minus td {
225
  border-color: var(--borderred);
226
}
227
228
table.file-diff .diff-plus td {
229
  border-color: var(--bordergreen);
230
}
231
232
p.diff-file-name {
233
  background: #cccac5;
234
  margin: 0;
235
  padding: 0.5em;
236
  border: 1px solid var(--gray);
237
  border-bottom: none;
238
}
239
240
.commit-info {
241
  border: 1px solid var(--gray);
242
  margin-top: 1em;
243
  margin-bottom: 1em;
244
  padding: 1em;
245
  display: flex;
246
  flex-direction: row;
247
  justify-content: center;
248
  align-content: center;
249
  background: var(--white);
250
}
251
252
.commit-info .commit {
253
  flex: 1
254
}
255
256
.commit-info .message {
257
  font-weight: bold;
258
}
259
260
.commit-info .author, .commit-info .date {
261
  display: inline-block;
262
  padding: 0.5em 0;
263
}
264
265
.commit-info img {
266
  max-width: 64px;
267
  max-height: 64px;
268
  margin-right: 1em;
269
}
270
271
.commit-info .commit-id {
272
  margin-left: 1em;
273
  border: 1px solid var(--gray);
274
  border-radius: 10px;
275
  padding: 0;
276
  background: var(--darkerwhite);
277
  height: 2.5em;
278
  display: flex;
279
  flex-direction: row;
280
  align-items: center;
281
}
282
283
.commit-info .commit-id .short-id {
284
  background: var(--darkwhite);
285
  display: inline-block;
286
  padding: 0.5em;
287
  border-bottom-left-radius: 10px;
288
  border-top-left-radius: 10px;
289
  border-right: 1px solid var(--gray);
290
  font-family: monospace, monospace;
291
  font-size: 0.85em;
292
}
293
294
.commit-info p {
295
  margin: 0;
296
}
297
298
.commit-info .commit-id button {
299
  background: none;
300
  border: none;
301
  cursor: pointer;
302
}
303
304
.commit-info .commit-id img {
305
  max-width: 1.5em;
306
  max-height: 1.5em;
307
  margin-right: 0.3em;
308
}
309
310
.commit-info .date {
311
  font-style: italic;
312
  margin-left: 1em;
313
}
314
315
.commit-info .author::before {
316
  content: "Authored by: ";
317
}
318
319
h1 {
320
  text-align: center;
321
}
322
323
code {
324
  background: var(--darkerwhite);
325
  display: inline-block;
326
  padding: 3px;
327
  font-family: monospace, monospace;
328
  font-size: 0.85em;
329
}
330
331
.clone {
332
  text-align: right;
333
}
334
335
.icon-link {
336
  display: flex;
337
  flex-direction: row;
338
  align-content: center;
339
}
340
341
.icon-link img {
342
  height: 1em;
343
  width: 1em;
344
  margin-right: 0.3em;
345
}
346
347
.path-box a {
348
  display: inline-block;
349
  padding: 0.5em;
350
}
351
352
.button-row a {
353
  display: inline-block;
354
  background: var(--white);
355
  padding: 0.5em;
356
  border: 1px solid var(--gray);
357
  margin: 0.5em;
358
}
359
360
361
@media screen and (max-width: 1250px) { 
362
  #content {
363
    width: auto;
364
  }
365
}
366