Skip to content

Instantly share code, notes, and snippets.

View JayPanoz's full-sized avatar

Jiminy Panoz JayPanoz

View GitHub Profile
@JayPanoz
JayPanoz / user_stylesheet_base.css.tmpl
Created November 25, 2015 17:44
iBooks's default CSS
@namespace epub "http://www.idpf.org/2007/ops";
@namespace svg "http://www.w3.org/2000/svg";
/* Hide soundtrack <audio> tags from ever showing up */
audio[epub|type~="ibooks:soundtrack"] {
display: none !important;
/* display: none; doesn't seem to actually work for some reason, so hide it another way */
height: 0 !important;
}
@JayPanoz
JayPanoz / sdk.css
Created November 25, 2015 17:46
ADE's SDK CSS
html {
height: 100%;
margin: 0;
}
body {
height: 100%;
width: 100%;
margin: 0;
/*padding: 10px;*/ /* USE_ADOBE_DRM. Dont add any margin, padding etc here. This will cause problems in highlight hit testing(iOS)*/
@JayPanoz
JayPanoz / kobo.css
Created November 25, 2015 17:48
Kobo's default CSS
/* This is added in <head></head> of every xhtml file
<!-- kobo-style -->
<link href="css/kobo.css" rel="stylesheet" type="text/css"/>
<script src="js/kobo.js" type="text/javascript"/>
<style id="kobostylehacks" type="text/css">div#book-inner p, div#book-inner div { font-size: 1.0em; } a { color: black; } a:link, a:visited, a:hover, a:active { color: blue; } div#book-inner * { margin-top: 0 !important; margin-bottom: 0 !important;}</style>
*/
/VERSION:1/
@JayPanoz
JayPanoz / FontPresets.plist
Created November 25, 2015 18:12
List and settings of iBooks' default fonts
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fonts</key>
<array>
<dict>
<key>fontFamily</key>
<string></string>
<key>settings</key>
@JayPanoz
JayPanoz / bnTypeahead.css
Created November 25, 2015 18:15
B&N's OS X app styles
.typeahead-container {
position: absolute;
z-index: 1000000;
}
.typeahead {
background-color: white;
border: 1px solid #dbdad6;
-webkit-border-bottom-left-radius: 2px;
-webkit-border-bottom-right-radius: 2px;
font-size: 12px;
@JayPanoz
JayPanoz / GPB iframe style.css
Last active February 28, 2016 12:12 — forked from Crash--/GPB iframe style.css
Google Play Books default CSSs, prettified
body {
font-size: 18px;
line-height: 1.5;
}
@page {
margin: 0px; padding: 0px;
}
.gb-segment {
@JayPanoz
JayPanoz / kobo.css
Created February 28, 2016 17:54
Kobo iOS Default CSS (contains Kobo-nightreading.css)
html
{
height: 100% !important;
margin: 0 !important;
}
body
{
line-height: 1.575em;
margin: 0 !important;
height: 100% !important;
@JayPanoz
JayPanoz / gpb.css
Created February 28, 2016 17:55
Google Play Books iOS CSSs (default, no_publisher, fonts, extra)
/* Google iOS */
/* default.css */
.flow {
margin: 0em;
}
.flow .pagebreak {
page-break-before: always;
}
@JayPanoz
JayPanoz / gdocs.css
Last active March 8, 2016 16:29
Example of GoogleDocs ePub CSS output
/* Output in `head` of the doc. Prettified for clarity */
/* FYI, `&gt;` is really exported `&gt;` instead of `>`.
This error prevents failure of list-style-type in legacy devices and apps that don't support `:before` though… */
/* Notes:
- font-size in pt = user won't be able to change font-size in a shitload of RS -> switch to em
- #000 -> #999 color for el = black/gray text on black/gray background (night modes) in a shitload of RS (background-color is overriden)
- font-family on el instead of body = user can't change typeface in a shitload of RS
- em and strong as span = lost in a shitload of apps once user drops publisher's styles */
@JayPanoz
JayPanoz / content.css
Last active October 9, 2016 08:11
Example of iBooks Author ePub3 CSS export
/* Spoiler: undocumented -iBooks- prefixed props in there! */
/* For tab-stops and tab-interval, please refer to https://www.w3.org/People/howcome/t/970224HTMLERB-CSS/WD-tabs-970117.html */
@font-face{
font-family: "Adelle-Bold";
font-weight: bold;
font-style: normal;
font-stretch: normal;
src: url("../Fonts/2001.otf");
}