aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgit.css5
-rw-r--r--ui-shared.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/cgit.css b/cgit.css
index 1b848cf..129006d 100644
--- a/cgit.css
+++ b/cgit.css
@@ -661,11 +661,12 @@ div#cgit div.footer {
margin-top: 0.5em;
text-align: center;
font-size: 80%;
- color: #ccc;
+ color: black;
+ opacity: 0.3;
}
div#cgit div.footer a {
- color: #ccc;
+ color: black;
text-decoration: none;
}
diff --git a/ui-shared.c b/ui-shared.c
index 1bac276..d319a8d 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -770,6 +770,10 @@ static void print_rel_vcs_link(const char *url)
static int emit_css_link(struct string_list_item *s, void *arg)
{
+ /* Do not emit anything if css= is specified. */
+ if (s && *s->string == '\0')
+ return 0;
+
html("<link rel='stylesheet' type='text/css' href='");
if (s)
html_attr(s->string);
@@ -782,6 +786,10 @@ static int emit_css_link(struct string_list_item *s, void *arg)
static int emit_js_link(struct string_list_item *s, void *arg)
{
+ /* Do not emit anything if js= is specified. */
+ if (s && *s->string == '\0')
+ return 0;
+
html("<script type='text/javascript' src='");
if (s)
html_attr(s->string);