View Single Post
Old 09-09-2020, 08:35 AM   #577
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,254
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by JSWolf View Post
Can a patch be created and added to the standard list of patches to remove the code that makes footnote links a dull gray with KePub? Thanks.
You can't remove the code as such but you can use whatever CSS style you prefer by creating a custom patch for libnickel.so.1.0.0.yaml, e.g.
Code:
beta KePub stylesheet anchor style:
  - Enabled: no
  - Description: Customise style of kepub hyperlinks
  - FindBaseAddressString: "a:link, a:visited, a:hover, a:active {"
  - ReplaceString: 
      Find:    "a:link, a:visited, a:hover, a:active { border-bottom: 1px dotted black !important; color: #696969 !important; }"
      Replace: "a:link, a:visited, a:hover, a:active { border-bottom: 1px dotted black !important; color: inherit !important; }"
      MustMatchLength: yes
The usual caveats about matching Find/Replace lengths apply, but there's no need to stick to having a 1px dotted black underline. This is the Replace statement I use on my own devices because I want footnote links to stand out like a sore thumb, but it might not suit users who do a lot of highlighting (I don't do any):
Code:
Replace: "a { border: none !important; background-color: #ddd !important; color: inherit !important;                    }"
BTW, unless several people register an interest in this patch I'm not going to add it to the standard kobopatch pack. I've been using my custom patch for several fw versions without needing to update it ... but, as usual no guarantees that Kobo won't decide to tinker next time.
jackie_w is offline   Reply With Quote