Quote:
Originally Posted by JSWolf
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.