I've used Sigil to place the below CSS rules at the end of the stylesheet.css file created by Calibre in the epub file. That overrides all the styles with the same names earlier in the stylesheet.css, which works fine.
My problem is that extra_css (which is supposed to place an entry in the Styles section in each html file) doesn't add those styles. Calibre seems to ignore my extra_css or there's something not right with how I'm specifying the option. It follows pretty much what the manual says.
The same problem occurs with the author and publisher option. So I'm thinking there's something else not right? Everything is indented (with spaces) as required by python.
If I can get extra_css to work, I'm sure I'll get the styles working the way I want too.
Any ideas? Cheers!
.calibrenavbar {
display: block;
font-family: monospace;
font-size: 1.0em;
text-align: center;
padding: 4px;
}
.article {
color: blue;
cursor: pointer;
font-size: 1.2em;
font-weight: bold;
line-height: 1.2;
text-align: left;
text-decoration: underline;
}
.articledate {
color: gray;
font-family: monospace;
font-size: 0.9em;
}
.articledescription {
display: block;
font-size: 0.8em;
text-indent: 0;
}
:link:active { background-color:blue; color: white;}
:link:hover { background-color:blue; color: white;}
.calibrenavbar.a {
color: blue;
cursor: pointer;
text-decoration: none;
}
a {padding: 4px; }
|