[OCaml] Mobile-friendly clone of cgit.
style use rem units for commit pills to ensure consistent size
lib/static/styles.css
@@ -426,17 +426,18 @@
426
426
display: inline-flex;
427
427
align-items: center;
428
428
flex-shrink: 0;
429
Removed:
padding: 0.4em 0.9em;
430
Removed:
margin: 0.3em 0;
429
Added:
padding: 0.15rem 0.5rem;
430
Added:
margin: 0;
431
431
border-radius: 9999px;
432
Removed:
font-size: 0.8em;
432
Added:
font-size: 0.7rem;
433
433
font-weight: 600;
434
434
text-transform: uppercase;
435
435
vertical-align: middle;
436
Added:
line-height: normal;
436
437
}
437
438
438
439
.commit-pill a {
439
Removed:
padding: 0.1em 0;
440
Added:
padding: 0.1rem 0;
440
441
}
441
442
442
443
.commit-pill a:hover {
@@ -454,7 +455,7 @@
454
455
align-self: stretch;
455
456
}
456
457
457
Removed:
.commit-title a {
458
Added:
.commit-title > a {
458
459
display: block;
459
460
flex: 1;
460
461
min-width: 0;