Book style tweak: revamp sample tweak

reviewable/pr8739/r4
poire-z 1 year ago
parent b9950597e0
commit 2f0954fa71

@ -747,13 +747,22 @@ function ReaderStyleTweak:onDispatcherRegisterActions()
end
local BOOK_TWEAK_SAMPLE_CSS = [[
p.someTitleClassName { text-indent: 0; }
DIV.advertisement { display: none !important; }
/* Remove indent from some P used as titles */
p.someTitleClassName {
text-indent: 0;
}
/* Get in-page footnotes when no tweak works */
.footnoteContainerClassName {
-cr-hint: footnote-inpage;
margin: 0 !important;
}
/* Help getting some alternative ToC when no headings */
.someSeparatorClassName {
-cr-hint: toc-level1;
break-before: always;
}
/* Hide annoying content */
DIV.someAdvertisement {
display: none !important;
}
]]

Loading…
Cancel
Save