Browse Source

whatsnew: Correct CSS selectors.

Need to use "a[href]" to prevent the rules from matching "a name" elements. Doesn't matter here currently, but it is a problem in the help file.
Jordan Russell 1 year ago
parent
commit
c1c96e2fc4
1 changed files with 3 additions and 4 deletions
  1. 3 4
      whatsnew.htm

+ 3 - 4
whatsnew.htm

@@ -6,11 +6,10 @@
 <base href="https://jrsoftware.org/" />
 <style type="text/css">
     body         { font: calc(14rem/16)/1.5 "Segoe UI", sans-serif; color: #282828; background-color: white }
-    a            { text-decoration: none }
-    a:hover      { text-decoration: underline }
+    a[href]      { text-decoration: none }
+    a[href]:hover { text-decoration: underline }
     a:link       { color: hsl(206 100 40); background-color: transparent }
-    a:visited    { color: hsl(206 100 55); background-color: transparent }
-    a:active     { color: hsl(206 100 55); background-color: transparent }
+    a:visited, a[href]:active { color: hsl(206 100 55); background-color: transparent }
     tt, pre      { font: calc(13rem/16)/calc(21rem/16) monospace; color: inherit; background-color: #f0f0f0; padding: 2px 4px; border-radius: 4px }
     pre          { line-height: normal; padding: 10px; border-radius: 6px }
     li, div.limargins { margin-top: 5px; margin-bottom: 5px }