View Single Post
Old 10-17-2019, 05:32 AM   #3
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
2. See the option under Page Layout
There is this: Preserve cover aspect ratio (checked).

I indeed want to keep the aspect ratio. And I want the cover (if small) to fill the width of my phone screen (portrait). It looks like the cover can be REDUCED to the screen width if it is bigger.


Quote:
Originally Posted by kovidgoyal View Post
4. Add !important and use the inspector to check
This is the footnote test file. I set [epub|type~="footnote"] { display: none;} in the css. As a result, the popup footnote is blank/hidden.


I use the Inspector and locate the source. It was replaced by Calibre to role="doc-footnote", the value is still display: none; I change this "none" to anything else in the Inspector, and it works. The popup container now shows the content.





However, when I copy the [role~="doc-footnote"] { display: block; } to user-defined css window, it forces even the hidden footnote to show on the body.



I tried to use

Code:
#content-iframe-1 > [role~="doc-footnote"] {
    display: block !important;
    }
or

Code:
.book-content-popup-container > [role~="doc-footnote"] {
    display: block !important;
    }
or
Code:
.book-content-popup-container * {
    display: block !important;
    }
but it came back to the original state where the footnote popup is blank.
nqk is offline   Reply With Quote