Summary Files Commits Branches @commit @diff @stats
path: root / cgit.css
diff options
context:
space:
mode:
Commita4308df1b4112dc61d25d1fe39c9bf9c48c796bb (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-10-03 13:56:47 +0300
Committer
 Syndamia <kamen@syndamia.com>
2026-10-03 13:58:23 +0300
Files2ece3fb7b0823f52f04e3795ba3a075c115be70e /cgit.css
cgit_theme-a4308df1b4112dc61d25d1fe39c9bf9c48c796bb.tar
cgit_theme-a4308df1b4112dc61d25d1fe39c9bf9c48c796bb.tar.gz
cgit_theme-a4308df1b4112dc61d25d1fe39c9bf9c48c796bb.zip
Parente1f929a3ef42445a45a8d15fbaea96e4cc50bdd7 (diff)
fix(cgit.css): Better handling of non-square logos
1 files changed, 9 insertions, 4 deletions
-rw-r--r--cgit.css13
diff --git a/cgit.css b/cgit.css
index 33c8562..3390f27 100644
--- a/cgit.css
+++ b/cgit.css
@@ -78,11 +78,15 @@ div#cgit table#header tr:last-child td {
padding-bottom: 2em;
}
-
-div#cgit table#header td.logo, div#cgit table#header td.logo img {
+div#cgit table#header td.logo {
width: 96px;
height: 96px;
- vertical-align: top;
+ vertical-align: middle;
+}
+
+div#cgit table#header td.logo img {
+ width: 95px;
+ max-height: 96px;
}
div#cgit table#header td.main {
@@ -1375,6 +1379,7 @@ span.signature.verified {
}
td.sublevel-repo img {
- height: 1em;
+ width: 1em;
+ max-height: 1em;
vertical-align: center;
}