electric-book-classic-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/Gemfile +2 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +66 -0
  6. data/_includes/close-body.html +3 -0
  7. data/_includes/close-wrapper.html +2 -0
  8. data/_includes/footer.html +10 -0
  9. data/_includes/head.html +109 -0
  10. data/_includes/nav.html +27 -0
  11. data/_includes/start-wrapper.html +1 -0
  12. data/_layouts/default.html +26 -0
  13. data/_layouts/min.html +7 -0
  14. data/_sass/epub.scss +76 -0
  15. data/_sass/js/index.js +8 -0
  16. data/_sass/mods/print-no-bleed.css +7 -0
  17. data/_sass/mods/print-no-crop-marks.css +6 -0
  18. data/_sass/mods/print-page-setup-lightning-source-colour.css +31 -0
  19. data/_sass/partials/_epub-base-typography.scss +118 -0
  20. data/_sass/partials/_epub-bibliographies.scss +20 -0
  21. data/_sass/partials/_epub-boxes.scss +24 -0
  22. data/_sass/partials/_epub-buttons.scss +21 -0
  23. data/_sass/partials/_epub-copyright-page.scss +14 -0
  24. data/_sass/partials/_epub-cover.scss +24 -0
  25. data/_sass/partials/_epub-dedications.scss +17 -0
  26. data/_sass/partials/_epub-epigraphs.scss +30 -0
  27. data/_sass/partials/_epub-figures.scss +40 -0
  28. data/_sass/partials/_epub-fitting.scss +16 -0
  29. data/_sass/partials/_epub-glossary.scss +15 -0
  30. data/_sass/partials/_epub-index.scss +21 -0
  31. data/_sass/partials/_epub-maths.scss +9 -0
  32. data/_sass/partials/_epub-notes.scss +33 -0
  33. data/_sass/partials/_epub-openers.scss +8 -0
  34. data/_sass/partials/_epub-pullquotes.scss +16 -0
  35. data/_sass/partials/_epub-quotations.scss +5 -0
  36. data/_sass/partials/_epub-reset-sequences.scss +31 -0
  37. data/_sass/partials/_epub-smallcaps.scss +21 -0
  38. data/_sass/partials/_epub-tables.scss +45 -0
  39. data/_sass/partials/_epub-title-page.scss +34 -0
  40. data/_sass/partials/_epub-toc.scss +41 -0
  41. data/_sass/partials/_epub-valedictions.scss +8 -0
  42. data/_sass/partials/_epub-verse.scss +138 -0
  43. data/_sass/partials/_epub-wrappers.scss +12 -0
  44. data/_sass/partials/_hide-footer.scss +7 -0
  45. data/_sass/partials/_hide-nav-bar.scss +7 -0
  46. data/_sass/partials/_print-base-typography.scss +153 -0
  47. data/_sass/partials/_print-bibliographies.scss +20 -0
  48. data/_sass/partials/_print-boxes.scss +39 -0
  49. data/_sass/partials/_print-code.scss +19 -0
  50. data/_sass/partials/_print-copyright-page.scss +23 -0
  51. data/_sass/partials/_print-dedications.scss +11 -0
  52. data/_sass/partials/_print-definition-lists.scss +13 -0
  53. data/_sass/partials/_print-epigraphs.scss +24 -0
  54. data/_sass/partials/_print-figures.scss +97 -0
  55. data/_sass/partials/_print-fitting.scss +38 -0
  56. data/_sass/partials/_print-front-cover.scss +26 -0
  57. data/_sass/partials/_print-hide-non-printing.scss +8 -0
  58. data/_sass/partials/_print-hide-video.scss +7 -0
  59. data/_sass/partials/_print-hyphenation.scss +18 -0
  60. data/_sass/partials/_print-index.scss +30 -0
  61. data/_sass/partials/_print-maths.scss +5 -0
  62. data/_sass/partials/_print-notes.scss +40 -0
  63. data/_sass/partials/_print-openers.scss +14 -0
  64. data/_sass/partials/_print-page-break-tools.scss +46 -0
  65. data/_sass/partials/_print-page-headers-footers-content.scss +236 -0
  66. data/_sass/partials/_print-page-headers-footers-style.scss +150 -0
  67. data/_sass/partials/_print-page-setup.scss +43 -0
  68. data/_sass/partials/_print-page-start-depth.scss +4 -0
  69. data/_sass/partials/_print-pdf-view.scss +42 -0
  70. data/_sass/partials/_print-pullquotes.scss +13 -0
  71. data/_sass/partials/_print-quotations.scss +6 -0
  72. data/_sass/partials/_print-reset-sequences.scss +27 -0
  73. data/_sass/partials/_print-smallcaps.scss +29 -0
  74. data/_sass/partials/_print-start-on-recto-or-verso.scss +28 -0
  75. data/_sass/partials/_print-tables.scss +48 -0
  76. data/_sass/partials/_print-title-pages.scss +59 -0
  77. data/_sass/partials/_print-toc.scss +57 -0
  78. data/_sass/partials/_print-valedictions.scss +9 -0
  79. data/_sass/partials/_print-verse.scss +141 -0
  80. data/_sass/partials/_web-base-typography.scss +106 -0
  81. data/_sass/partials/_web-bibliographies.scss +20 -0
  82. data/_sass/partials/_web-boxes.scss +30 -0
  83. data/_sass/partials/_web-buttons.scss +21 -0
  84. data/_sass/partials/_web-code.scss +19 -0
  85. data/_sass/partials/_web-copyright-page.scss +14 -0
  86. data/_sass/partials/_web-cover.scss +33 -0
  87. data/_sass/partials/_web-dedications.scss +17 -0
  88. data/_sass/partials/_web-definition-lists.scss +12 -0
  89. data/_sass/partials/_web-epigraphs.scss +31 -0
  90. data/_sass/partials/_web-figures.scss +55 -0
  91. data/_sass/partials/_web-fitting.scss +16 -0
  92. data/_sass/partials/_web-footer.scss +38 -0
  93. data/_sass/partials/_web-index.scss +21 -0
  94. data/_sass/partials/_web-maths.scss +9 -0
  95. data/_sass/partials/_web-nav-bar.scss +70 -0
  96. data/_sass/partials/_web-notes.scss +58 -0
  97. data/_sass/partials/_web-openers.scss +5 -0
  98. data/_sass/partials/_web-pullquotes.scss +9 -0
  99. data/_sass/partials/_web-quotations.scss +6 -0
  100. data/_sass/partials/_web-reset-sequences.scss +27 -0
  101. data/_sass/partials/_web-smallcaps.scss +21 -0
  102. data/_sass/partials/_web-tables.scss +45 -0
  103. data/_sass/partials/_web-title-page.scss +35 -0
  104. data/_sass/partials/_web-toc.scss +41 -0
  105. data/_sass/partials/_web-valedictions.scss +9 -0
  106. data/_sass/partials/_web-verse.scss +138 -0
  107. data/_sass/partials/_web-video.scss +24 -0
  108. data/_sass/partials/_web-wrappers.scss +14 -0
  109. data/_sass/print-pdf.scss +194 -0
  110. data/_sass/screen-pdf.scss +216 -0
  111. data/_sass/web.scss +98 -0
  112. data/electric-book-classic-theme.gemspec +19 -0
  113. data/index.md +7 -0
  114. data/screenshot.png +0 -0
  115. metadata +208 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a3ae36c46825c7dc319229dc04bf9c5aa38aadc6
4
+ data.tar.gz: 5783b561d4074102b53213f8c33c08cbde4e679d
5
+ SHA512:
6
+ metadata.gz: 1e99a722c1a0bfa3bd872b3e269633a9912b0c8fe09dc0d3a6caa8d0be6bda6e3fff75e5cf1e8e68a5b0bc255a66c7c5b596eb3475f63883d6c8d5c2aa87357a
7
+ data.tar.gz: 32d0287899860673e74a2204480a8c583c8c8541a79f9ef7e7701cd318dfcd21b8abde4ba30392b6ba7d286e2333ae5dec641ad6dd7430aaf20b4a1dccedb684
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ .sass-cache
3
+ _site
4
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source "https://rubygems.org"
2
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Arthur Attwell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,66 @@
1
+ # Electric Book Classic Theme
2
+
3
+ This is a theme for use with the Electric Book, a Jekyll template for making books, ebooks and book-like websites.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's Gemfile:
8
+
9
+ ```ruby
10
+ gem "electric-book-classic-theme"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: electric-book-classic-theme
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install electric-book-classic-theme
26
+
27
+ To see the files inside the theme (e.g. if you want to override them):
28
+
29
+ $ bundle show electric-book-classic-theme
30
+
31
+ ### Theme stability
32
+
33
+ This will install the current, latest version of the theme from [rubygems.org](http://rubygems.org). But! If that theme is updated, and you update your gems later, your book's layout may change or even break. So, if you want to ensure that your book always uses the same version of the theme you set it up with: in your Jekyll site's Gemfile, specify the version of the theme you're working with, e.g.:
34
+
35
+ ```ruby
36
+ gem "electric-book-classic-theme", "0.1.0"
37
+ ```
38
+
39
+ The default Electric Book Jekyll template's Gemfile does specify the current version of the Classic theme like this. So you only need to change it if you need a different version.
40
+
41
+ It's also a good idea to keep a local copy of the theme gem in your Jekyll site directory, so that you or others don't have to rely on rubygems.org. To do this, before you run `gem install electric-book-classic-theme`:
42
+
43
+ 1. [Download the gem file](https://rubygems.org/gems/electric-book-classic-theme) and save it to your Jekyll root directory.
44
+ 2. Run `gem install electric-book-classic-theme-0.1.0.gem` (replacing the version number in the file name for the version you've downloaded). Ruby will install that local version of the gem. And Bundler should use it before downloading it from [rubygems.org](http://rubygems.org).
45
+
46
+ ## Usage
47
+
48
+ This theme is intended for use with the [Electric Book Jekyll template](https://github.com/electricbookworks/electric-book). For documentation on using the theme, visit [electricbook.io](http://electricbook.io).
49
+
50
+ ## Contributing
51
+
52
+ Bug reports and pull requests are welcome on GitHub at https://github.com/electricbookworks/electric-book-classic-theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
53
+
54
+ ## Development
55
+
56
+ See the latest documentation on Jekyll themes at [jekyllrb.com/docs/themes/](https://jekyllrb.com/docs/themes/).
57
+
58
+ To set up your environment to develop this theme, run `bundle install`.
59
+
60
+ You theme is setup just like a normal Jekyll site. To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
61
+
62
+ When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
63
+
64
+ ## License
65
+
66
+ The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,3 @@
1
+
2
+ </body>
3
+ </html>
@@ -0,0 +1,2 @@
1
+ </div><!--#wrapper-->
2
+
@@ -0,0 +1,10 @@
1
+ {% include get-metadata %}
2
+
3
+
4
+ <div id="footer" class="non-printing">
5
+ <div class="footer-content">
6
+ <p>
7
+ {{ web-footer }}
8
+ </p>
9
+ </div><!--.footer-content-->
10
+ </div><!--#footer-->
@@ -0,0 +1,109 @@
1
+ {% include get-metadata %}
2
+ {% if site.output == 'epub' %}
3
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ language }}">
5
+ <head>
6
+ <title>
7
+ {% if title %}
8
+ {{ title }}{% if page.title %}: {{ page.title }}{% endif %}
9
+ {% else %}
10
+ {{ series-name }}{% if page.title %}: {{ page.title }}{% endif %}
11
+ {% endif %}
12
+ </title>
13
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
14
+ <link rel="stylesheet" type="text/css" href="../Styles/{{ page.stylesheet-epub }}" />
15
+
16
+ <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
17
+ <meta name="DC.Title" content="{{ title }}" />
18
+ <meta name="DC.Language" content="{{ language }}" />
19
+ <meta name="DC.Creator" content="{{ creator }}" />
20
+ <meta name="DC.Publisher" content="{{ publisher }}" />
21
+ <meta name="DC.Date" content="{{ date }}" />
22
+ <meta name="DC.Identifier" content="{{ epub-identifier }}" scheme="ISBN" />
23
+ <meta name="DC.Relation" content="{{ print-pdf-identifier }}" />
24
+ <meta name="DC.Description" CONTENT="{{ description }}" />
25
+
26
+ </head>
27
+ <body class="{{ directory }} {{ page.style }}">
28
+
29
+ {% elsif site.output == 'screen-pdf' %}
30
+ <!doctype html>
31
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ language }}" xml:lang="{{ language }}">
32
+ <head>
33
+ <title>
34
+ {% if title %}
35
+ {{ title }}{% if page.title %}: {{ page.title }}{% endif %}
36
+ {% else %}
37
+ {{ series-name }}{% if page.title %}: {{ page.title }}{% endif %}
38
+ {% endif %}
39
+ </title>
40
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
41
+ <meta name="viewport" content="width=device-width, initial-scale=1">
42
+ <link rel="stylesheet" type="text/css" media="print" href="../styles/{{ page.stylesheet-screen-pdf }}" />
43
+ </head>
44
+ <body class="{{ directory }} {{ page.style }}">
45
+
46
+
47
+ {% elsif site.output == 'print-pdf' %}
48
+ <!doctype html>
49
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ language }}" xml:lang="{{ language }}">
50
+ <head>
51
+ <title>
52
+ {% if title %}
53
+ {{ title }}{% if page.title %}: {{ page.title }}{% endif %}
54
+ {% else %}
55
+ {{ series-name }}{% if page.title %}: {{ page.title }}{% endif %}
56
+ {% endif %}
57
+ </title>
58
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
59
+ <meta name="viewport" content="width=device-width, initial-scale=1">
60
+ <link rel="stylesheet" type="text/css" media="print" href="../styles/{{ page.stylesheet-print-pdf }}" />
61
+
62
+ <!-- Google Analytics, runs unless this is running through PrinceXML -->
63
+ <script>
64
+ if (typeof Prince === "undefined") {
65
+ <!--Paste any Google Analytics code here. The surrounding if statement stops the script slowing down PrinceXML-->
66
+ }
67
+ </script>
68
+
69
+ </head>
70
+ <!--ontouchstart="" onmouseover="" required for iOS devices-->
71
+ <body class="{{ directory }} {{ page.style }}" ontouchstart="" onmouseover="">
72
+
73
+
74
+ {% else %}
75
+ <!doctype html>
76
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ language }}" xml:lang="{{ language }}">
77
+ <head>
78
+ <title>
79
+ {% if title %}
80
+ {{ title }}{% if page.title %}: {{ page.title }}{% endif %}
81
+ {% else %}
82
+ {{ series-name }}{% if page.title %}: {{ page.title }}{% endif %}
83
+ {% endif %}
84
+ </title>
85
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
86
+ <meta name="viewport" content="width=device-width, initial-scale=1">
87
+
88
+ {% if page.style == 'home' %}
89
+ {% for book in site.data.meta.works %}
90
+ <link rel="stylesheet" type="text/css" media="screen" href="{{ book.directory }}/styles/{{ page.stylesheet-web }}" />
91
+ <link rel="stylesheet" type="text/css" media="print" href="{{ book.directory }}/styles/{{ page.stylesheet-screen-pdf }}" />
92
+ {% endfor %}
93
+ {% else %}
94
+ <link rel="stylesheet" type="text/css" media="screen" href="../styles/{{ page.stylesheet-web }}" />
95
+ <link rel="stylesheet" type="text/css" media="print" href="../styles/{{ page.stylesheet-screen-pdf }}" />
96
+ {% endif %}
97
+
98
+ <!-- Google Analytics, runs unless this is running through PrinceXML -->
99
+ <script>
100
+ if (typeof Prince === "undefined") {
101
+ <!--Paste any Google Analytics code here. The surrounding if statement stops the script slowing down PrinceXML-->
102
+ }
103
+ </script>
104
+
105
+ </head>
106
+ <!--ontouchstart="" onmouseover="" required for iOS devices-->
107
+ <body class="{{ directory }} {{ page.style }}" ontouchstart="" onmouseover="">
108
+
109
+ {% endif %}
@@ -0,0 +1,27 @@
1
+ {% include get-metadata %}
2
+
3
+ <div id="nav" class="non-printing">
4
+ <ul>
5
+ <li class="nav-series-home"><a href="{{ site.baseurl }}/" title="Home: {{ series-name }}" class="nav-series-home-link">{{ series-name }}</a></li>
6
+ <li class="nav-book"><a href="{{ web-contents-page }}" title="Contents: {{ title }}" class="nav-book-link">{{ title }}</a></li>
7
+ <ul>
8
+ {% comment %}
9
+ - Get the file-list
10
+ - Pull out file-titles in the file-list
11
+ - If the file key has a value, that's a file-title
12
+ - Put it in a list item, with a hyperlink pointing to the file
13
+ - And if the current page.url contains the file name, this must be the active page
14
+ - So add the class `nav-page-active` to the list item.
15
+ {% endcomment %}
16
+ {% for file in web-file-list %}
17
+ {% for file-title in file %}
18
+ {% if file-title[1] %}
19
+ <li class="nav-page{% if page.url contains file-title[0] %} nav-page-active{% endif %}">
20
+ <a href="{{ site.baseurl }}/{{ directory }}/text/{{ file-title[0] }}.html" title="{{ file-title[1] }}" class="nav-page-link">{{ file-title[1] }}</a>
21
+ </li>
22
+ {% endif %}
23
+ {% endfor %}
24
+ {% endfor %}
25
+ </ul>
26
+ </ul>
27
+ </div><!--#nav-->
@@ -0,0 +1 @@
1
+ <div id="wrapper">
@@ -0,0 +1,26 @@
1
+ {% if page.type == 'file-list' %}
2
+
3
+ {{ content }}
4
+
5
+
6
+ {% elsif site.output == 'epub' or site.output == 'print-pdf' or site.output == 'screen-pdf' %}
7
+
8
+ {% include head.html %}
9
+ {% include start-wrapper.html %}
10
+ {{ content }}
11
+ {% include close-wrapper.html %}
12
+ {% include close-body.html %}
13
+
14
+
15
+ {% else %}
16
+
17
+ {% include head.html %}
18
+ {% include nav.html %}
19
+ {% include start-wrapper.html %}
20
+ {{ content }}
21
+ {% include close-wrapper.html %}
22
+ {% include footer.html %}
23
+ {% include close-body.html %}
24
+
25
+
26
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ {% include head.html %}
2
+ {% include start-wrapper.html %}
3
+
4
+ {{ content }}
5
+
6
+ {% include close-wrapper.html %}
7
+ {% include close-body.html %}
@@ -0,0 +1,76 @@
1
+ // WHAT IS THIS?
2
+ // This is typography for the Electric Book Classic theme (http://electricbook.io).
3
+ // It is built with Sass. (See http://sass-lang.com, and http://jekyllrb.com/docs/assets for how Jekyll implements Sass.)
4
+ // Jekyll will compile the finished CSS for your books in _site/_themes/classic/css.
5
+ //
6
+ // HOW TO USE IT
7
+ //
8
+ // Edit the default variables below.
9
+ // Comment/uncomment or add font imports below.
10
+ // Add your own custom CSS at the bottom.
11
+
12
+ // First, let's set character encoding. Don't change this.
13
+ @charset "utf-8";
14
+
15
+ // -------------
16
+ // Set variables
17
+ // -------------
18
+
19
+ // Edition suffix: identifies this edition in certain classes (e.g. in _epub-fitting.scss).
20
+ $edition-suffix: null !default;
21
+
22
+ $font-text-main: "Linux Libertine", serif !default;
23
+ $font-text-secondary: "Source Sans Pro", sans-serif !default;
24
+ $font-display-main: "Source Sans Pro", sans-serif !default;
25
+ $font-display-secondary: "Linux Libertine", serif !default;
26
+ $font-code: "Inconsolata", monospace !default;
27
+
28
+ $font-size-default: 1.2em !default;
29
+ $line-height-default: 1.5em !default;
30
+
31
+ // ----------------------------------------------------
32
+ // Import font files (@font-face) for fonts you specify
33
+ // ----------------------------------------------------
34
+
35
+ // Import fonts from book-specific CSS.
36
+
37
+ // ---------------------
38
+ // Classic-theme modules
39
+ // ---------------------
40
+
41
+ // Structural HTML components
42
+ @import "partials/epub-wrappers.scss"; //
43
+
44
+ // Default typography
45
+ @import "partials/epub-base-typography.scss"; //
46
+
47
+ // Book parts
48
+ @import "partials/epub-cover"; //
49
+ @import "partials/epub-title-page"; //
50
+ @import "partials/epub-copyright-page"; //
51
+ @import "partials/epub-dedications"; //
52
+ @import "partials/epub-epigraphs"; //
53
+ @import "partials/epub-toc"; //
54
+
55
+ // Book-feature classes
56
+ @import "partials/epub-bibliographies"; //
57
+ @import "partials/epub-boxes"; //
58
+ @import "partials/epub-buttons"; //
59
+ @import "partials/epub-figures"; //
60
+ @import "partials/epub-glossary"; //
61
+ @import "partials/epub-index"; //
62
+ @import "partials/epub-maths"; //
63
+ @import "partials/epub-notes"; //
64
+ @import "partials/epub-openers"; //
65
+ @import "partials/epub-pullquotes"; //
66
+ @import "partials/epub-quotations"; //
67
+ @import "partials/epub-tables"; //
68
+ @import "partials/epub-valedictions"; //
69
+ @import "partials/epub-verse"; //
70
+
71
+ // Type-control classes
72
+ @import "partials/epub-smallcaps"; //
73
+ @import "partials/epub-fitting"; //
74
+
75
+ // Logic (if this then that)
76
+ @import "partials/epub-reset-sequences.scss"; //
@@ -0,0 +1,8 @@
1
+ // Use a Node.js core library
2
+ var url = require('url');
3
+
4
+ // Parse the URL of the current location
5
+ var parts = url.parse(window.location);
6
+
7
+ // Log the parts object to our browser's console
8
+ console.log(parts);
@@ -0,0 +1,7 @@
1
+ @charset "utf-8";
2
+
3
+ /* Remove bleed */
4
+ @page {
5
+ prince-bleed: 0 !important;
6
+ prince-trim: 0 !important;
7
+ }
@@ -0,0 +1,6 @@
1
+ @charset "utf-8";
2
+
3
+ /* Remove crop marks */
4
+ @page {
5
+ marks: none !important;
6
+ }
@@ -0,0 +1,31 @@
1
+ @charset "utf-8";
2
+
3
+ /* Page setup for Lightning Source colour pages
4
+ * --------------------------------------------
5
+ *
6
+ * Removes bleed on inside edges
7
+ * Adjusts trim accordingly
8
+ * Removes crop marks as required by LS
9
+ * Uses the @left and @right margin boxes to obscure elements (e.g. full-bleed images)
10
+ * that otherwise bleed into the margin area.
11
+ * YMMV
12
+ */
13
+
14
+ @page:left {
15
+ prince-bleed: 3mm 0 3mm 3mm !important;
16
+ prince-trim: 0 3mm 0 0 !important;
17
+ marks: none !important;
18
+ @right {
19
+ background-color: white;
20
+ content: " ";
21
+ }
22
+ }
23
+ @page:right {
24
+ prince-bleed: 3mm 3mm 3mm 0 !important;
25
+ prince-trim: 0 0 0 3mm !important;
26
+ marks: none !important;
27
+ @left {
28
+ background-color: white;
29
+ content: " ";
30
+ }
31
+ }
@@ -0,0 +1,118 @@
1
+ /* General typography */
2
+
3
+ body {
4
+ font-family: $font-text-main;
5
+ font-size: $font-size-default;
6
+ line-height: $line-height-default;
7
+ -moz-font-feature-settings: "liga", "kern";
8
+ -ms-font-feature-settings: "liga", "kern";
9
+ -o-font-feature-settings: "liga", "kern";
10
+ -webkit-font-feature-settings: "liga", "kern";
11
+ font-feature-settings: "liga", "kern";
12
+ }
13
+ h1, h2, h3, h4, h5, h6 {
14
+ font-weight: 600;
15
+ line-height: 120%;
16
+ page-break-after: avoid;
17
+ margin: 2em 0 1em 0;
18
+ }
19
+ h1:target, h2:target, h3:target, h4:target, h5:target, h6:target {
20
+ padding-top: 3.5em; /* Prevents #-linked headings from disappearing below the fixed nav bar. */
21
+ }
22
+ h1 {
23
+ line-height: 100%;
24
+ }
25
+ h1 strong:first-of-type { /* Useful for chapter numbers: make the number first and bold in the h1 */
26
+ display: block;
27
+ margin: 0 0 0.5em 0;
28
+ }
29
+ h2 {
30
+ margin: 1.5em 0 0.5em 0;
31
+ padding-top: 0.5em;
32
+ }
33
+ h3 {
34
+ margin: 1.5em 0 0.5em 0;
35
+ padding-top: 0.5em;
36
+ }
37
+ h4 {
38
+ font-style: italic;
39
+ }
40
+ p, ul, ol {
41
+ line-height: $line-height-default;
42
+ -moz-font-feature-settings: "onum";
43
+ -ms-font-feature-settings: "onum";
44
+ -o-font-feature-settings: "onum";
45
+ -webkit-font-feature-settings: "onum";
46
+ font-feature-settings: "onum";
47
+ }
48
+ p {
49
+ margin: 0;
50
+ text-indent: 1em;
51
+ }
52
+ sup, sub {
53
+ line-height: 100%;
54
+ }
55
+
56
+ /* Blockquotes */
57
+
58
+ blockquote {
59
+ margin: 1em 0 0.5em 0;
60
+ padding: 0 1em;
61
+ line-height: 120%;
62
+ color: #444444;
63
+ }
64
+ blockquote p {
65
+ line-height: $line-height-default;
66
+ }
67
+ blockquote p:first-of-type {
68
+ text-indent: 0;
69
+ }
70
+ blockquote p:last-of-type, blockquote ol, blockquote ul {
71
+ margin: 0 0 1em 0;
72
+ }
73
+
74
+ /* Definition lists */
75
+
76
+ dl {
77
+ color: #666;
78
+ }
79
+ dt {
80
+ margin: 0 0 0.25em 0;
81
+ font-weight: 600;
82
+ }
83
+ dd {
84
+ margin: 0 0 1em 1em;
85
+ }
86
+
87
+ /* Code */
88
+
89
+ pre, code {
90
+ font-family: $font-code;
91
+ white-space: pre-wrap;
92
+ background-color: #f9f9f9;
93
+ padding: 0.1em 0.3em;
94
+ border-radius: 0.2em;
95
+ font-weight: 200;
96
+ font-size: 0.9em;
97
+ }
98
+ pre code {
99
+ padding: 0;
100
+ }
101
+
102
+ /* Links */
103
+
104
+ a {
105
+ text-decoration: none;
106
+ color: #5f738c;
107
+ }
108
+
109
+ /* Horizontal rules */
110
+
111
+ // Used in text as dividers (*** in markdown)
112
+ hr {
113
+ content: "***";
114
+ border: 0;
115
+ font-family: $font-display-main;
116
+ text-align: center;
117
+ margin: 1em 0;
118
+ }