![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 277
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Ctrl-click for style not working
I have an epub with the CSS file directly in the OEBPS folder along with the xhtml files rather than in a separate Style folder.
Ctrl-click to open the first matching CSS style is not working - I get "no style rules that match the class xyz were found". The CSS file is linked correctly and everything else works properly (other than Live CSS). Is this is a bug? Fixing it in this ebook so that ctrl-click works would seem to require creating a Styles folder, moving the CSS file there and search/replace on all the links in the xhtml files. Or is there another way? Or I could just leave it, since the book can be viewed without issue, just editing is a touch harder. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,293
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Sometimes that happens. I've noticed two causes...
1. You have declearations at the top of the css file. Something like the following. For some reason, this interferes with the ctrl-click link which is a know issue in Calibre. @charset "utf-8"; @namespace h "http://www.w3.org/1999/xhtml"; 2. If you run the CheckBook and EpubCheck functions, there will be errors. One of those errors is breaking the ctrl-click link. Once the errors are fixed, it will work again. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 277
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
2. CheckBook says no problems found. I don't have EpubCheck installed, as it requires Java which I don't want to install. It sounds like my guess about the CSS file not being in a Styles folder is incorrect. Last edited by foosion; Today at 03:28 PM. |
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,293
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Why are you hesitant installing Java? |
|
![]() |
![]() |
![]() |
#5 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 277
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
FWIW, the CSS is Oxford University Press CSS version 1.2. Java: I have a possibly irrational aversion to cluttering my computer with such files I rarely if ever use. Plus I'm not a fan of a language which forces you to put everything in a class. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 277
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
I just edited another CSS file. It had @namespace epub "http://www.idpf.org/2007/ops"; at the top, but behaved normally.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug: CSS Ctrl+Click Not Matching | Foozle | Editor | 10 | 07-21-2023 07:59 AM |
[Feature request] - Ctrl+Click on classes | thiago.eec | Editor | 20 | 05-20-2021 07:41 AM |
new feature 5.11 ctrl-click class behavior | rjwse@aol.com | Editor | 1 | 02-13-2021 11:58 AM |
Ctrl-R not working? | mbovenka | Calibre | 70 | 10-20-2020 08:34 AM |
Calibre 0.7.22 Ctrl D not working as well as 0.7.21 | logs | Calibre | 2 | 10-08-2010 01:33 PM |