Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 12-17-2022, 08:17 PM   #1
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
CCS (Calibre Content Server) Userstyles

Hi everyone,

Userstyles provide a way to customise web pages layout.
In trying to apply them to CCS (Calibre Content Server) pages, I was able to style the FTS results page, by using this code:



PHP Code:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix(http://127.0.0.1:8080/#fts_panel)

{
div{background-color:#e8e5ed !important;}
body{background-color:#504e8b !important;max-width:1000px!important;margin-left:200px!important;}

By using that userstyle, I managed to get a results page that meets quite nicely my preferences:

Click image for larger version

Name:	MWSnap0997 2022-12-17, 22_02_22.png
Views:	174
Size:	102.9 KB
ID:	198475


However, achieving the same on the main CCS pages didn't seem that easy...

So I thought I'd ask, has anyone else fiddled with styling CCS pages, or willing to? If so, may we use this thread to share ideas about CCS user-styling?

The result I'm interested in, at the moment, would look similar to the old layout, particularly concerning the visibility of scrollbars in the book comments, as shown below:

Click image for larger version

Name:	MWSnap0996 2022-12-17, 21_50_52.png
Views:	156
Size:	99.6 KB
ID:	198476

Last edited by Comfy.n; 12-19-2022 at 11:20 PM.
Comfy.n is offline   Reply With Quote
Old 12-19-2022, 04:25 AM   #2
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
I came up with this custom userstyle for CCS pages other than FTS ones, sharing it in case someone is interested:

PHP Code:
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix(http://127.0.0.1:8080/#library_id), url-prefix(http://127.0.0.1:8080/#book_id)

{
.
book-list-custom-list, .book-details-panel{background-color:#e8e5ed !important;}

body{background-color:#5A57A5 !important;max-width:1000px!important;margin-left:200px!important;}

.book-search-panel, .generic-items-list, #panel-16, .edit-metadata-panel, .convert-book-panel{background-color:#e8e5ed!important;}

.book-list-container [data-component="top_message"]{color:white!important;}
/*.book-list-container {color:blue!important;}*/

/*.blue-link{color:#6cb4ee!important;font-weight:bold!important;}*/
.blue-link{font-weight:bold!important;}

#panel-14{color:#f8f8f8!important;}


Last edited by Comfy.n; 12-19-2022 at 11:27 PM.
Comfy.n is offline   Reply With Quote
Advert
Old 12-19-2022, 04:32 AM   #3
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
as for the scrollbar visibility in comments, I've fiddled a bit with these elements, but had no success in mimicking the classic layout

PHP Code:
.book-list-custom-list, .book-list-custom-list-item 
{overflow:scroll!importantmax-height50%!important;} 

Last edited by Comfy.n; 12-19-2022 at 11:28 PM.
Comfy.n is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What web server software is used for Calibre content server? hollowpoint Server 2 06-02-2021 05:23 PM
Best device for accessing Calibre as a content server only / Best way to add content yelt Calibre 1 10-01-2020 09:53 PM
installing Calibre content server 3 on ubuntu server 16_04 khyox Calibre 22 01-06-2018 11:34 PM
Calibre Content Server and Windows Home Server 2011 HughMcC Calibre 8 10-01-2014 07:26 AM
500 Internal Server Error accessing content server Calibre 0.8.8 DaddyO57 Calibre 1 07-20-2012 06:08 PM


All times are GMT -4. The time now is 05:02 PM.


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