]> Sergey Matveev's repositories - public-inbox.git/commitdiff
contrib/css: limit <a> coloring to links, only
authorEric Wong <e@80x24.org>
Wed, 9 Sep 2020 20:24:55 +0000 (20:24 +0000)
committerEric Wong <e@80x24.org>
Wed, 9 Sep 2020 20:56:37 +0000 (20:56 +0000)
We don't want <a> tags without href= attributes to be colored,
since the `<a id=mirror>' tag in the HTML footer is intended
as an anchor destination for `<a href=#mirror>' link at the
top.

contrib/css/216dark.css
contrib/css/216light.css
lib/PublicInbox/UserContent.pm

index 6fc6cfe77e349d9029cde8b2f22eab9c6dc016d2..02804cbdd03e4764211b35a7ee884cb4017fa313 100644 (file)
@@ -11,7 +11,7 @@
  * Underlined links add visual noise which make them hard-to-read.
  * Use colors to make them stand out, instead.
  */
-a { color:#69f; text-decoration:none }
+a:link { color:#69f; text-decoration:none }
 a:visited { color:#96f }
 
 /* quoted text in emails gets a different color */
index 559a6b7404989e04b8bca3bb3f12ad437a912b1a..c66cfdfe89ff5a85ebaca2adfb9b744ef3b1b80e 100644 (file)
@@ -10,7 +10,7 @@
  * Underlined links add visual noise which make them hard-to-read.
  * Use colors to make them stand out, instead.
  */
-a { color:#00f; text-decoration:none }
+a:link { color:#00f; text-decoration:none }
 a:visited { color:#808 }
 
 /* quoted text gets a different color */
index b6b439004cba4b4b6ec639ef3741d37433a22318..789da2f12b6698f33f0ec0d8d0d145c0ff8a6d39 100644 (file)
@@ -23,7 +23,7 @@ sub CSS () {
         * Underlined links add visual noise which make them hard-to-read.
         * Use colors to make them stand out, instead.
         */
-       a { color:#69f !important; text-decoration:none !important }
+       a:link { color:#69f !important; text-decoration:none !important }
        a:visited { color:#96f !important }
 
        /* quoted text in emails gets a different color */