Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2017, 09:59 PM   #1
reader1167
Junior Member
reader1167 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: none
Can't customize link colors for ebooks displayed in calibre

Hello, first-time calibre user here. I'm looking for some help customizing the colors for ebooks displayed in calibre.

I want to make a darker theme for easier-on-the-eyes reading. I find the default link colors to be jarringly bright, but changing the link colors doesn't appear to be working. I searched around for a little while and found other discussions of this, but didn't find a clear solution. I could probably do more thorough searching and problem-solving on my own attempting to get this to work, but I thought at this point it'd be worth asking for help in case there is a simple solution.

If it matters, I'm using a macbook running OSX.

Here's my user stylesheet:

Code:
body {
	text-align:justify;
	line-spacing:1.8;
	margin-top:0px;
	margin-bottom:4px;
	margin-right:50px;
	margin-left:50px;
	text-indent:3em;
}

a:link, span a:link, a[href] {
	color: #2758a5;
}
a:visited {	
	color: #935bb2;
}
a:hover {	
	color: #2ae0ed;
}
a:active {	
	color: #e01f1f;
}
I'm also using a custom background and foreground color in the preferences:



Here's a screenshot of how the Quick Start Guide that comes with calibre looks using this stylesheet:



Here's a (larger) screenshot of the "inspect element" page.
reader1167 is offline   Reply With Quote
Old 11-15-2017, 10:12 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,744
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Add !important to the CSS rules.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-15-2017, 11:14 PM   #3
reader1167
Junior Member
reader1167 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2017
Device: none
Thank you so much, it works!

For the sake of completeness, here's the relevant parts of the updated user stylesheet:

Code:
a:link, a:visited {
	color: #5d718c !important;
}
a:hover {	
	color: #7a97ba !important;
}
a:active {	
	color: #1151a0 !important;
}
And this is what it looks like now:

reader1167 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre: customize advanced search dialog Hasso Library Management 4 03-05-2016 03:22 AM
How can you Customize Calibre's Look? chilady1 Calibre 8 12-26-2012 10:50 PM
Ability to customize recipes in Calibre GUI? t3d Recipes 7 05-06-2011 03:59 PM
how to customize viewer for calibre tanyeun Calibre 9 05-28-2010 03:06 AM
Customize Calibre Navbars marcot Calibre 1 05-14-2010 11:49 PM


All times are GMT -4. The time now is 12:09 AM.


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