diff --git a/dip3.css b/dip3.css index bac4418..b80137e 100755 --- a/dip3.css +++ b/dip3.css @@ -185,7 +185,7 @@ a:visited { .c a { color: inherit; } -a.hl:link,a.hl:visited { +a.hl:link, a.hl:visited { color: #fff; padding-left: 0.2em; text-decoration: none; diff --git a/util/lesscss.py b/util/lesscss.py index 1f56469..e1c8bc2 100755 --- a/util/lesscss.py +++ b/util/lesscss.py @@ -7,12 +7,12 @@ import sys # These selectors are kept regardless of whether this script thinks they are used. # Most of these match nodes that are dynamically inserted or manipulated by script # after the page has loaded, which is why a static analysis thinks they're unused. -SELECTOR_EXCEPTIONS = ('.w', '.b', '.str', '.kwd', '.com', '.typ', '.lit', '.pun', '.tag', '.atn', '.atv', '.dec', 'pre .u', 'pre .u span', 'li ol', '.hl') +SELECTOR_EXCEPTIONS = ('.w', '.b', '.str', '.kwd', '.com', '.typ', '.lit', '.pun', '.tag', '.atn', '.atv', '.dec', 'pre .u', 'pre .u span', 'li ol', 'a.hl:link', 'a.hl:visited', 'a.hl:hover', 'h2[id]:hover a.hl', 'h3[id]:hover a.hl') filename = sys.argv[1] pqd = pq(filename=filename) raw_data = open(filename, 'rb').read() -if raw_data.count('
'):
+if raw_data.count('