Skip to content

Instantly share code, notes, and snippets.

View JayPanoz's full-sized avatar

Jiminy Panoz JayPanoz

View GitHub Profile
@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 / eBookColors.less
Last active March 30, 2016 10:33
Colors used in eBook’s RS (background, text, link)
/* CSS filters may be used for some modes
e.g. sepia in iBooks for instance.
Note the eyedropper has been used here,
which could explain unusual text color
for some modes.
In this case, find the filter value
for background and you’ll find the
real value for text + links.
*/
@JayPanoz
JayPanoz / all_iBooks.css
Last active May 26, 2016 10:47
Setting "all : keyword" in iBooks
/* Testing initial and unset in iBooks
All those styles are applied.
Comments in .unset if different value */
/* all : initial */
.initial {
-webkit-animation-delay: 0s;
-webkit-animation-direction: normal;
-webkit-animation-duration: 0s;