View Single Post
Old 10-21-2013, 08:05 AM   #1
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
iBook css and Calibre

Not sure if this is the right place so please feel free to move if needed

I was rummaging around in the internals of iBook, trying to extract the fixed-layout view (book background/frame) when I found that iBook has css hacks included for things done by Calibre

notably I encountered this in the basic style sheet

Code:
.calibre > div, .calibre1 > div {
  position: static !important;
}

/* centering hack to support Calibre-generated vertical centered documents */
:root:not([__ibooks_has_multiple_pages]) *[__ibooks_centering_hack^="horizontal-"] {
  min-width: {{.pageWidth}}px;
}
:root:not([__ibooks_has_multiple_pages]) *[__ibooks_centering_hack^="vertical-"] {
  min-height: {{.pageHeight}}px;
}
The latter two likely will not thwart you but the first one might.

anyways, found it curious enough to share
At_Libitum is offline   Reply With Quote