Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-03-2021, 09:49 PM   #1
morty92222
Enthusiast
morty92222 began at the beginning.
 
morty92222's Avatar
 
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
How do you determine what the text will be during nightmare in Sigil?

My stylesheet has css for the text to be red. This is the only color property I have on my css stylesheet and this is the only css sheet I got.

When it's daytime, Apple Books shows the text red, however, during nightmare, the text (which is a link) turns blue. I understand that links by default are blue, but doesn't my color rule change that?

Thank you.
morty92222 is offline   Reply With Quote
Old 04-03-2021, 10:28 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
readers built in css can and will overrule the book's css. This really has nothing to do with Sigil. My guess is Books has a dark and light theme which are taking orecedence.
KevinH is offline   Reply With Quote
Advert
Old 04-04-2021, 12:07 AM   #3
morty92222
Enthusiast
morty92222 began at the beginning.
 
morty92222's Avatar
 
Posts: 38
Karma: 10
Join Date: Dec 2019
Device: Kindle Paperwhite
Quote:
Originally Posted by KevinH View Post
readers built in css can and will overrule the book's css. This really has nothing to do with Sigil. My guess is Books has a dark and light theme which are taking orecedence.
Thank you. But why does my CSS work for day mode if the reader got its own already?
morty92222 is offline   Reply With Quote
Old 04-04-2021, 05:59 AM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by morty92222 View Post
Thank you. But why does my CSS work for day mode if the reader got its own already?
Users can choose whatever background colors they want. When you force colors, this may lead to a serious readability problem.

The most common of these is tools/programs/people accidentally setting the text as "black":

Code:
p {
color: #000000;
}
And people don't notice it, because "white background is the default" (see Word, LibreOffice, InDesign, etc. etc.).

So when Apple flips over to Night Mode, they probably specifically override font colors to make sure that "black-on-black" (or another unreadable combination) doesn't happen.

A lot of this was discussed in:

2020: "Colored Text, EPUB, Android Dark Mode"

or I explained a similar situation with images of music notes and changing background/font colors:

2016: "Problem with inline image" (Posts #14 + #22)

Last edited by Tex2002ans; 04-04-2021 at 06:05 AM.
Tex2002ans is offline   Reply With Quote
Old 04-05-2021, 10:39 AM   #5
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
It might just be inverting it rather than falling back to initial blue, even if the end result seems similar. I could see them doing that to avoid combos that aren’t very dark mode friendly. Red text on black might actually be one such.
phillipgessert is offline   Reply With Quote
Advert
Reply

Tags
css, night mode, night mode colors, sigil


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing text in Sigil Davvy123 Sigil 4 10-03-2018 01:53 PM
Diagnosing a Sigil ID nightmare curiousgeorge Sigil 26 05-24-2013 02:58 PM
Text alignment in Sigil wdaly Sigil 34 01-24-2013 03:45 PM
Sigil: How to highlight text ? Frank's Sigil 65 12-27-2012 08:37 PM
text problems Sigil? ralphiedee Sigil 14 08-09-2012 05:30 AM


All times are GMT -4. The time now is 11:44 AM.


MobileRead.com is a privately owned, operated and funded community.