aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-16 13:12:51 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-08-16 13:12:51 +0200
commit73466f1c66f918e5ce285172c69bd682ae25f78b (patch)
tree4d078450b8597c9787a4ccec22714b6adaa5856f /cgit.css
parent21601449d12ce20f9a72836995150eba772eb58b (diff)
downloadcgit-73466f1c66f918e5ce285172c69bd682ae25f78b.tar.gz
cgit-73466f1c66f918e5ce285172c69bd682ae25f78b.tar.bz2
cgit-73466f1c66f918e5ce285172c69bd682ae25f78b.zip
fix: Fixed code and linenumbers not lining up for code on safari. Also added minor fixes to improve the scrolling experience on mobile phones.
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 45471a1..1db3571 100644
--- a/cgit.css
+++ b/cgit.css
@@ -77,6 +77,7 @@ div#cgit table#header td.subem {
color: #777;
padding-top: 1em;
padding-right: 10px;
+ font-size: 80%;
text-align: right;
}
div#cgit table#header td.sub {
@@ -400,6 +401,7 @@ div#cgit table.blob {
margin-top: 0.5em;
border-top: solid 1px #777;
overflow-x: scroll;
+ overflow-y: hidden;
display: block;
}
@@ -408,6 +410,7 @@ div#cgit table.blob td.lines {
margin: 0; padding: 0 0 0 0.5em;
vertical-align: top;
color: #eee;
+ -webkit-text-size-adjust: 100%;
}
div#cgit table.blob td.linenumbers {
@@ -588,6 +591,7 @@ div#cgit table.diffstat {
display: block;
width: 100%;
overflow-x: scroll;
+ overflow-y: hidden;
border-collapse: collapse;
border: solid 1px #aaa;
background-color: #333;