07-05-2019, 12:18 PM | #241 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Jul 2019
Device: None
|
Ducks, thanks so much for your response! I apologize for wording that question so poorly. I'm actually looking for the the javascript code to display the total book count via the content server html pages. When I access the mobile version, it will show the total book count on the top and bottom of the book list with the context "Books # of #". I'd like to be able to include that number on the main topbar of the cover grid viewer. Thanks again for any information!
|
07-05-2019, 10:12 PM | #242 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There is no facility for adding JS code to the content server interface. You can of course edit the JS calibre itself uses to do whatever you want, and replace it in the file index-generated.html, but this is very fragile and likely to break.
|
Advert | |
|
07-07-2019, 10:13 PM | #243 | |
Enthusiast
Posts: 25
Karma: 10
Join Date: Jul 2019
Device: None
|
Quote:
I'm still trying to reverse engineer the way the HTML is being constructed. I would like to provide an interface much like the one that is utilized in Plex, with the main libraries on the left, sorting and filtering features on a top bar and content in the main frame. If there are any tools that would help with repositioning the dynamic content, this would also be very useful to me. Thank you so much again for your amazing work! |
|
07-31-2019, 12:06 PM | #244 | ||
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2019
Device: none
|
Hello All,
Is there a way to change background color of that white frame from the attached picture? I don't know what is the proper name of that element, but it seems that in HTML it's called the "aside tag". Here's that element's code taken from the ebook editor: Quote:
Quote:
|
||
07-31-2019, 09:18 PM | #245 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
Advert | |
|
07-31-2019, 09:19 PM | #246 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Code:
.sidebar { background-color: yellow !important } |
08-01-2019, 03:35 AM | #247 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jul 2019
Device: none
|
Yes, @davidfor, you were right about that sidebar class. My CSS level is even below a noob...
And thank you @kovidgoyal for delivering a working solution! But first of all that you for creating that outstanding piece of software! |
08-02-2019, 04:43 AM | #248 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2019
Device: Kindle
|
Hello guys, is there a way to implement syntax highlighting via themes, i mean things like quotes or dialogues.
ex.: And Case said - I believe you. - Can we make the text between hyphens another color/style? |
10-09-2019, 01:31 PM | #249 | |
Fat Guy
Posts: 408
Karma: 24165
Join Date: Jun 2010
Device: Kindle Voyage
|
Quote:
|
|
10-10-2019, 01:03 AM | #250 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Viewer 4.20
With the viewer changed to version 4+ my css for the viewer and the background changed. I now use the below CSS and the attached background (also attached final result). In landscape mode, 2 pages per screen for reading on my computer. I use the sections in the viewer preferences to set margins, colors, fonts etc. Since I do set a margin in preferences, I set my color scheme to #dbcba7 and set my background image fade to about 10-30%. Code:
P { margin-left: 1.25em !important; margin-right: 1.15em !important; } body { margin-top: 0.15em !important; } Code:
div { margin-left: 1.25em !important; margin-right: 1.15em !important; } body { margin-top: 0.15em !important; } Page Layout Colors Styles Headers and Footers Scrolling Behavior (option to show scroll bar, which I don't use) On the font page I also set the minimum font size to 20px. This combined with the top and bottom margins seem to set the size of the information in the Headers and Footers. If there isn't enough room (top & bottom margins) in the header and footers you may not see the information you choose to see in those areas. Common Shortcut Keys F11 key toggle full screen mode just like it does in any browser. Ctrl T toggle the Table of contents Ctrl + increase font size Ctrl - Decrease font size Last edited by DoctorOhh; 10-29-2019 at 08:38 PM. |
10-11-2019, 04:33 AM | #251 | |
Enthusiast
Posts: 48
Karma: 103592
Join Date: Jan 2013
Device: Sony PSR-1
|
Any way to remove spaces between paragraphs?
Thanks for your post. Question:
Is there any way to remove spaces between paragraphs (which Calibre news downloads always have)? Quote:
|
|
10-30-2019, 03:56 AM | #252 |
Enthusiast
Posts: 47
Karma: 10
Join Date: Sep 2012
Device: kindle
|
@DoctorOhh Thanks, for the guide! Is there a way to get page flipping effect or this is not possible with css?
Last edited by rockster; 10-30-2019 at 01:29 PM. |
10-30-2019, 01:37 PM | #253 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
10-31-2019, 12:04 PM | #254 |
Groupie
Posts: 183
Karma: 266070
Join Date: Dec 2010
Device: Win7,Win10,Lubuntu,smartphone
|
Hello! Is there some way to make the viewer show tt, pre and code larger, without increasing the font-size of normal text?
I have tried adding tt {font-size: 120% important!;} but... no soap! The css of the epub already has tt {font-size: 120%;} which has worked in sigil, but not in the viewer... Thanks! |
11-11-2019, 01:41 PM | #255 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2019
Device: pc
|
Hi, I found this image to use as a background. I don't know CSS but I tried to figure out how it works and how to make the text fit into this background searching on the forum and on the internet in vain.
When i try to add body margin on top for example, i lose a part of the text at the bottom. The only thing that worked is margin left and right on paragraphs but i have no idea how to proceed with the top and bottom part. If someone could help me on this, it would save me |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM |
ePub with custom .css on a 505 | dicknskip | Sony Reader Dev Corner | 3 | 06-09-2010 11:34 PM |
User stylesheets for ePub files | salty-horse | Sony Reader Dev Corner | 12 | 02-23-2010 07:44 AM |
ePub conversion: override existing css with a custom one | sbin | Calibre | 1 | 01-09-2010 04:03 AM |
Calibre's generated css for epub | brewt | Calibre | 7 | 12-29-2008 09:59 AM |