[Git][NTPsec/ntpsec][master] ntpviz: nicer section self-link style.

Gary E. Miller gitlab at mg.gitlab.com
Wed Jan 11 21:15:55 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
457f2d20 by Gary E. Miller at 2017-01-11T13:15:45-08:00
ntpviz: nicer section self-link style.

- - - - -


1 changed file:

- ntpclients/ntpviz


Changes:

=====================================
ntpclients/ntpviz
=====================================
--- a/ntpclients/ntpviz
+++ b/ntpclients/ntpviz
@@ -1559,6 +1559,13 @@ dd {
     margin-top: 4px;
     margin-bottom: 10px;
 }
+.section {
+    color: #000000;
+    text-decoration: none;
+    .site-title:visited {
+        color: #000000; }
+        text-decoration: none;
+}
 </style>
 </head>
 <body>
@@ -1736,7 +1743,7 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
             id = image['title'].lower()
             id = id.replace(' ', '_').replace(':', '_')
             index_buffer += """\
-<div id="%s">\n<h2><a href="#%s">%s</a></h2>
+<div id="%s">\n<h2><a class="section" href="#%s">%s</a></h2>
 """ % (id, id, image['title'])
 
             div_name = imagename.replace('-', ' ')
@@ -1752,8 +1759,8 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
     # dump stats
     csvs = []
     if True:
-        index_buffer += \
-            '<div id="Summary"><h2><a href="#Summary">Summary</a></h2>\n'
+        index_buffer += '<div id="Summary">\n' \
+            '<h2><a class="section" href="#Summary">Summary</a></h2>\n'
         index_buffer += VizStats.table_head
         for stat in stats:
             if [] == stat:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/457f2d209bf3127130eb7db2a90f0e88de4eb86f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170111/bcc3ab06/attachment.html>


More information about the vc mailing list