/* Custom Take Control CSS styles for Leanpub EPUB and Mobi */ /* This CSS file is for a PURPLE look, for "Take Control of Slack Basics" */ /* Last edited on 2016-04-07. */ /* Change List * 2013-07-05: Converted most px values to em (everything but borders). -ace * 2013-09-25: Fixed a variety of margin-related issues in iBooks, which doesn't like certain margin settings. Also set the H3 horizontal rules to 1px and colored. -ace * 2013-10-05: Expanded the outdent for notes nested in lists from 0.85em to 1.65em since the former wasn't enough. Also reduced space below H1/H2 to .5em from 1em. -ace * 2013-10-20: Tweaked the code outdenting images in lists - they needed a .center after the div.image-with-caption to match properly. -ace * 2014-02-11: Added page-break-inside: avoid to headings, screenshots, and sidebar elements to keep them from breaking across pages. Also added widows and orphans controls for non-iBooks EPUB readers that do support them. Tried to add page-break-after: avoid to headings but it didn't seem to take in iBooks. -ace * 2014-03-07: Added code necessary to indent images, which required using box-sizing, setting a width:100% and then a padding-left:1.5em, along with various cleanup to get other usages of images to indent comparably. We can't identify 2-bullet-list images, so those aren't indented more. -ace * 2014-04-26: Changed the padding-left in "ul,ol" and "div.image-with-caption" from 1.5em to 2em to avoid cutting off two-digit list item numbers. First saw this in "Take Control of 1Password" v1.2. * 2014-06-25: Added "margin-top: 0.7em;" to the li element to make sure there was enough space before on the first item of nested lists. Also added "pre" to the "code" element so code blocks manually formatted with {lang=text} in the Leanpub Markdown will look like the rest of the code. Also added div.code-block {font-size: 100%;} so code blocks wouldn't look smaller than normal code. * 2014-07-28: Added italic to H5 and H6; check to see if better spacing is needed too. * 2014-09-23: Removed the max-width: 75% from caption text to see if that fixed an issue with iBooks in Yosemite. * 2015-01-13: Changed link color from "blue" to darker blue #333399, and reduced the size of div.sidebarish p.caption from 100% to 90% so the sidebar caption text was the same size as normal caption text. * 2015-07-08: Changed a number of directives to match new Leanpub CSS. Notably, watch