12-01-2018, 11:51 AM | #1 |
Member
Posts: 17
Karma: 10
Join Date: Jan 2012
Location: UK
Device: Kindle 4, Kobo Glo, Apple devices, Android devices, PC
|
Skeleton CSS
One would think that, somewhere out there, somebody would have posted an elegant barebones ePub CSS file for novice book designers to base their work on. Try as I might, though, I haven't been able to find one.
Can anyone point me to such a thing? I'm looking for a minimal approach - maybe a hundred lines of code, max. I don't care if not every eventuality is catered for, in fact I'd see working under the constraints of something so simple to be a good discipline. I would be looking for something that worked pretty much universally across platforms. TIA |
12-01-2018, 01:11 PM | #2 | |
Grand Sorcerer
Posts: 27,926
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Every ebook designer seems to eventually come up with something that works reasonably well for most of their own needs, but as a result, the same css doesn't often lend itself well to anyone else's personal ebook coding/naming practices. |
|
Advert | |
|
12-01-2018, 01:18 PM | #3 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Well you might look in our wiki along with 19,000 other people. CSS template. There are several articles such as CSS and it point to others.
Dale |
12-01-2018, 01:37 PM | #4 |
Klak
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
or google "github epub template"?
|
12-01-2018, 02:08 PM | #5 | |
Member
Posts: 17
Karma: 10
Join Date: Jan 2012
Location: UK
Device: Kindle 4, Kobo Glo, Apple devices, Android devices, PC
|
Quote:
|
|
Advert | |
|
12-01-2018, 03:07 PM | #6 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Also check out:
|
12-01-2018, 11:52 PM | #7 |
Bibliophagist
Posts: 39,636
Karma: 154147704
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Or you end with the stylesheets used by some publishing houses with so many special case entries that the file becomes unreadable and difficult to maintain.
|
12-02-2018, 12:16 AM | #8 | ||||
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Quote:
Quote:
Unasked-for-comment: if you plan to use your ePUB for Kindle-building, don't use the Blitz CSS. You need a lot more experience under your belt to understand what's happening with all the inheritance functionality in that, and a lot of it will not work for MOBI and it certainly won't for KF7. Paul (BBeBooks) does a very nice job, and his is likely the closest to what you'll want. I've worked with him and respect his work. Hitch |
||||
12-03-2018, 09:05 AM | #9 |
Evangelist
Posts: 495
Karma: 2267928
Join Date: Nov 2015
Device: none
|
EPUB is not a semantic format, so it is unlikely it could be created. For example, it doesn't even require you to make a book of paragraphs: DIVs can be used instead just fine. The format doesn't allow for book-specific metadata, footnotes, chapter headers (!!), proper illustrations, etc.
If there were a sematic XML-based format, we would have dozens of such templates/themes, like some proprietary book readers have. |
12-03-2018, 12:27 PM | #10 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
12-03-2018, 03:37 PM | #11 | |
Member
Posts: 17
Karma: 10
Join Date: Jan 2012
Location: UK
Device: Kindle 4, Kobo Glo, Apple devices, Android devices, PC
|
Quote:
|
|
12-13-2018, 05:17 PM | #12 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
I'm glad it was useful. Note that my top-level heading is H2. It works just fine in Sigil, but you can of course call it H1 if you want.
The history of course is that I once had an H1 heading that I used for the book title, H2 for the sub-title, etc. But then I was informed that this was Bad Code, so I substituted paragraph styles for that purpose, p class="large", p class="medium", and so on. |
12-13-2018, 09:08 PM | #13 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
12-16-2018, 04:00 PM | #14 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
08-11-2019, 08:38 AM | #15 |
Wannabe Connoisseur
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
I'm certainly guilty of using headers for choosing font sizes for subtitles, etc. I'm curious to see a discussion about this. At the possible risk of dragging up unpleasant memories, do you have pointer to said discussion? I had a quick look and couldn't find it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM |
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 | crutledge | Kindle Books (offline) | 0 | 02-22-2011 06:05 AM |
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 | crutledge | ePub Books (offline) | 0 | 02-22-2011 06:03 AM |
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 | crutledge | BBeB/LRF Books (offline) | 0 | 02-22-2011 06:01 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |