aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-07-07 15:34:59 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-07-07 15:34:59 +0300
commitf35c9ac9af2448f12ed4062598650053768f7a6e (patch)
treec7963f14f6e67d7601ab8e5cd7ee1a3c839e3903
parent81b5fdedf5da305954ea271a6d14ca996756553b (diff)
downloadcgit-f35c9ac9af2448f12ed4062598650053768f7a6e.tar.gz
cgit-f35c9ac9af2448f12ed4062598650053768f7a6e.zip
fix logo size and add html id to it
-rw-r--r--cgit.css7
-rw-r--r--ui-shared.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/cgit.css b/cgit.css
index f2b6105..a0ecf69 100644
--- a/cgit.css
+++ b/cgit.css
@@ -247,7 +247,12 @@ div#cgit table.list td a:hover {
}
div#cgit img {
- width:100%;
+ width: 100%;
+ border: none;
+}
+
+div#cgit img#logo {
+ width: auto;
border: none;
}
diff --git a/ui-shared.c b/ui-shared.c
index 425b16c..7b9a504 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -989,7 +989,7 @@ static void print_header(void)
html_attr(cgit_rooturl());
html("'><img src='");
html_attr(logo);
- html("' alt='cgit logo'/></a></td>\n");
+ html("' id='logo' alt='cgit logo'/></a></td>\n");
}
html("<td class='main'>");