[static-web] Fix the header covering targets
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [static-web] Fix the header covering targets
- Date: Thu, 15 Feb 2018 22:35:01 +0000 (UTC)
commit 388001a50435b3a3f8aa69e046a043ff045ac786
Author: Alexandre Franke <alexandre franke gmail com>
Date: Thu Feb 15 23:32:19 2018 +0100
Fix the header covering targets
When following a link with an anchor (to a line number) the header was
covering the piece of code linked to. Padding slightly higher than the
header fixes it.
Closes https://bugzilla.gnome.org/show_bug.cgi?id=792440
cgit/cgit-gnome.css | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/cgit/cgit-gnome.css b/cgit/cgit-gnome.css
index c7e0b25..c28c352 100644
--- a/cgit/cgit-gnome.css
+++ b/cgit/cgit-gnome.css
@@ -37,6 +37,11 @@ table#header td.right {
padding-right: 4px;
}
+/* Fix for the header covering the line linked to when using anchors */
+table.blob td.linenumbers a {
+ padding-top: 55px;
+}
+
/* kill some more vertical space in the cgit header */
table.tabs {
margin-top: 0em;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]