tufte-crossref-jekyll 0.12.0 → 0.12.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12dfb0410f7820c1a3b4511e12b8c5aa56acdea27facf1d12a5b646e9aef34c8
4
- data.tar.gz: 1d6a962f7a3664f5b0dd02b0e01d51df8b0511bc74023c1307d5c786745974a1
3
+ metadata.gz: d271ed7ffeeffa2fd252733e3ccb1ff7cc8b313d0ce81348faf4678c6f2c4296
4
+ data.tar.gz: 144a3fb04709020efcf89405ff80015d12135e6d89877e7e8075ecf17c6853ec
5
5
  SHA512:
6
- metadata.gz: 95333b18d8a18b2a31004d4e54874d7cd1063e59683d97e3d036492a5c76c3c8fb0a94afd9e759aa3d9c8aa99de1c5f160a3880874ee5e7c6a1d7916739825d1
7
- data.tar.gz: 415c3fdf098d8345e605769537fa39fa790611e839fc305c45f739850935363533db437a7ad422d0d0323b2a5f802b5ebad9ea7f55fa84d5b4b3f2e1e45b8641
6
+ metadata.gz: 5f5e3545e7908ee6e56e0d645b5e93cd1b087f8eec484a23045dc0be5fdb7c48f5f38d5e57279c7d677648f80b270840e51bfeb769bf73ce6224860c1c13ddaf
7
+ data.tar.gz: 591ac3df7210f2ee60b10e170c0439b6b5826c5dfad2618737b425f605311b0ed62b6922d970ee0344d965370028ca51b79dc430f95d85278ab48a89145cf729
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # tufte-crossref-jekyll
1
+ # tufte-pandoc-jekyll
2
2
 
3
3
  This is a Jekyll theme for using Tufte CSS alongside `pandoc-sidenote`. It's
4
4
  based off of
@@ -16,17 +16,17 @@ and can instead just use `[^1]` like normal Pandoc markdown.
16
16
 
17
17
  For a demo, see <https://jez.io/talks/>.
18
18
 
19
- ## Features specific to tufte-crossref-jekyll
19
+ ## Features
20
20
 
21
21
  This fork introduces some changes to the style sheets that are meant to
22
22
  provide support for using **tufte-pandoc-jekyll** alongside
23
- [Pandoc-crossref]. Otherwise, this project attempts to
23
+ [Pandoc-crossref] and [Reveal.js]. Otherwise, this project attempts to
24
24
  match the style, features, and version numbering of
25
25
  **tufte-pandoc-jekyll**. In short what it does is to:
26
26
 
27
27
  [Pandoc-crossref]: https://lierdakil.github.io/pandoc-crossref/
28
28
 
29
- <!--[Reveal.js]: https://revealjs.com-->
29
+ [Reveal.js]: https://revealjs.com
30
30
 
31
31
  ### Figures, captions, and borders ###
32
32
 
@@ -86,9 +86,9 @@ line.
86
86
 
87
87
  :warning: The Reveal.js support does *not* affect slide output in any
88
88
  way and you should *not* point your slide presentation to the styles in
89
- the **tufte-crossref-jekyll** theme. These features are meant to
90
- normalize the appearance of the *text* version of your page when it
91
- contains markup that will *also* be used for slide output.
89
+ the **tufte-pandoc-jekyll** theme. These features are meant to normalize
90
+ the appearance of the *text* version of your page when it contains
91
+ markup that will *also* be used for slide output.
92
92
 
93
93
  ## Installation
94
94
 
@@ -105,13 +105,13 @@ brew install jez/formulae/pandoc-sidenote
105
105
  Next, add this line to your Jekyll site's Gemfile:
106
106
 
107
107
  ```ruby
108
- gem "tufte-crossref-jekyll"
108
+ gem "tufte-pandoc-jekyll"
109
109
  ```
110
110
 
111
111
  And add these lines to your Jekyll site's `_config.yml`:
112
112
 
113
113
  ```yaml
114
- theme: tufte-crossref-jekyll
114
+ theme: tufte-pandoc-jekyll
115
115
 
116
116
  gems:
117
117
  - jekyll-pandoc
@@ -123,12 +123,12 @@ And then execute:
123
123
 
124
124
  Or install it yourself as:
125
125
 
126
- $ gem install tufte-crossref-jekyll
126
+ $ gem install tufte-pandoc-jekyll
127
127
 
128
128
 
129
129
  ## Usage
130
130
 
131
- > Note: while `tufte-pandoc-css` optionally includes the Solarized Light
131
+ > Note: while `tufte-pandoc-css` optionally includes the Solarized Light/Dark
132
132
  > colorscheme, it's enabled by default here, with no easy way to opt-out. This is
133
133
  > probably fine for you, but if it's not, feel free to make a PR that allows
134
134
  > opting out.
@@ -1,32 +1,65 @@
1
- div.sourceCode, pre:not(.sourceCode) { background: #FDF6E3; }
2
- pre code { color: #657B83; }
3
- code span.kw { color: #859900; font-weight: normal; font-style: normal; } /* Keyword */
4
- code span.dt { color: #B58900; font-weight: normal; font-style: normal; } /* DataType */
5
- code span.dv { color: #2AA198; font-weight: normal; font-style: normal; } /* DecVal */
6
- code span.bn { color: #2AA198; font-weight: normal; font-style: normal; } /* BaseN */
7
- code span.fl { color: #2AA198; font-weight: normal; font-style: normal; } /* Float */
8
- code span.ch { color: #2AA198; font-weight: normal; font-style: normal; } /* Char */
9
- code span.st { color: #2AA198; font-weight: normal; font-style: normal; } /* String */
10
- code span.co { color: #93A1A1; font-weight: normal; font-style: italic; } /* Comment */
11
- code span.ot { color: #268BD2; font-weight: normal; font-style: normal; } /* Other */
12
- code span.al { color: #DC322F; font-weight: normal; font-style: normal; } /* Alert */
13
- code span.fu { color: #268BD2; font-weight: normal; font-style: normal; } /* Function */
14
- code span.er { color: #DC322F; font-weight: normal; font-style: normal; } /* Error */
15
- code span.wa { color: #CB4B16; font-weight: normal; font-style: italic; } /* Warning */
16
- code span.cn { color: #2AA198; font-weight: normal; font-style: normal; } /* Constant */
17
- code span.sc { color: #DC322F; font-weight: normal; font-style: normal; } /* SpecialChar */
18
- code span.vs { color: #657B83; font-weight: normal; font-style: normal; } /* VerbatimString */
19
- code span.ss { color: #DC322F; font-weight: normal; font-style: normal; } /* SpecialString */
20
- code span.im { color: #657B83; font-weight: normal; font-style: normal; } /* Import */
21
- code span.va { color: #268BD2; font-weight: normal; font-style: normal; } /* Variable */
22
- code span.cf { color: #859900; font-weight: normal; font-style: normal; } /* ControlFlow */
23
- code span.op { color: #859900; font-weight: normal; font-style: normal; } /* Operator */
24
- code span.bu { color: #657B83; font-weight: normal; font-style: normal; } /* BuiltIn */
25
- code span.ex { color: #657B83; font-weight: normal; font-style: normal; } /* Extension */
26
- code span.pp { color: #CB4B16; font-weight: normal; font-style: normal; } /* Preprocessor */
27
- code span.at { color: #657B83; font-weight: normal; font-style: normal; } /* Attribute */
28
- code span.do { color: #93A1A1; font-weight: normal; font-style: italic; } /* Documentation */
29
- code span.an { color: #93A1A1; font-weight: normal; font-style: italic; } /* Annotation */
30
- code span.cv { color: #93A1A1; font-weight: normal; font-style: italic; } /* CommentVar */
31
- code span.in { color: #93A1A1; font-weight: normal; font-style: italic; } /* Information */
32
- a.sourceLine::before { text-decoration: none; }
1
+ // From https://ethanschoonover.com/solarized/
2
+ $base03: #002b36;
3
+ $base02: #073642;
4
+ $base01: #586e75;
5
+ $base00: #657b83;
6
+ $base0: #839496;
7
+ $base1: #93a1a1;
8
+ $base2: #eee8d5;
9
+ $base3: #fdf6e3;
10
+ $yellow: #b58900;
11
+ $orange: #cb4b16;
12
+ $red: #dc322f;
13
+ $magenta: #d33682;
14
+ $violet: #6c71c4;
15
+ $blue: #268bd2;
16
+ $cyan: #2aa198;
17
+ $green: #859900;
18
+
19
+ @mixin rebase($rebase03,$rebase02,$rebase01,$rebase00,$rebase0,$rebase1,$rebase2,$rebase3)
20
+ {
21
+ div.sourceCode, pre:not(.sourceCode) { background: $rebase03; }
22
+ pre code { color: $rebase0; }
23
+ code span.kw { color: $green; font-weight: normal; font-style: normal; } /* Keyword */
24
+ code span.dt { color: $yellow; font-weight: normal; font-style: normal; } /* DataType */
25
+ code span.dv { color: $cyan; font-weight: normal; font-style: normal; } /* DecVal */
26
+ code span.bn { color: $cyan; font-weight: normal; font-style: normal; } /* BaseN */
27
+ code span.fl { color: $cyan; font-weight: normal; font-style: normal; } /* Float */
28
+ code span.ch { color: $cyan; font-weight: normal; font-style: normal; } /* Char */
29
+ code span.st { color: $cyan; font-weight: normal; font-style: normal; } /* String */
30
+ code span.co { color: $rebase01; font-weight: normal; font-style: italic; } /* Comment */
31
+ code span.ot { color: $blue; font-weight: normal; font-style: normal; } /* Other */
32
+ code span.al { color: $red; font-weight: normal; font-style: normal; } /* Alert */
33
+ code span.fu { color: $blue; font-weight: normal; font-style: normal; } /* Function */
34
+ code span.er { color: $red; font-weight: normal; font-style: normal; } /* Error */
35
+ code span.wa { color: $orange; font-weight: normal; font-style: italic; } /* Warning */
36
+ code span.cn { color: $cyan; font-weight: normal; font-style: normal; } /* Constant */
37
+ code span.sc { color: $red; font-weight: normal; font-style: normal; } /* SpecialChar */
38
+ code span.vs { color: $rebase0; font-weight: normal; font-style: normal; } /* VerbatimString */
39
+ code span.ss { color: $red; font-weight: normal; font-style: normal; } /* SpecialString */
40
+ code span.im { color: $rebase0; font-weight: normal; font-style: normal; } /* Import */
41
+ code span.va { color: $blue; font-weight: normal; font-style: normal; } /* Variable */
42
+ code span.cf { color: $green; font-weight: normal; font-style: normal; } /* ControlFlow */
43
+ code span.op { color: $green; font-weight: normal; font-style: normal; } /* Operator */
44
+ code span.bu { color: $rebase0; font-weight: normal; font-style: normal; } /* BuiltIn */
45
+ code span.ex { color: $rebase0; font-weight: normal; font-style: normal; } /* Extension */
46
+ code span.pp { color: $orange; font-weight: normal; font-style: normal; } /* Preprocessor */
47
+ code span.at { color: $rebase0; font-weight: normal; font-style: normal; } /* Attribute */
48
+ code span.do { color: $rebase01; font-weight: normal; font-style: italic; } /* Documentation */
49
+ code span.an { color: $rebase01; font-weight: normal; font-style: italic; } /* Annotation */
50
+ code span.cv { color: $rebase01; font-weight: normal; font-style: italic; } /* CommentVar */
51
+ code span.in { color: $rebase01; font-weight: normal; font-style: italic; } /* Information */
52
+ a.sourceLine::before { text-decoration: none; }
53
+ }
54
+
55
+ @media (prefers-color-scheme: no-preference),
56
+ (prefers-color-scheme: light) {
57
+ @include rebase($base3,$base2,$base1,$base0,$base00,$base01,$base02,$base03)
58
+ }
59
+ @media (prefers-color-scheme: dark) {
60
+ @include rebase($base03,$base02,$base01,$base00,$base0,$base1,$base2,$base3)
61
+ }
62
+ html * {
63
+ color-profile: sRGB;
64
+ rendering-intent: auto;
65
+ }
@@ -13,30 +13,42 @@ h3.unlisted { display: none; }
13
13
  // Uncomment this line if you want to suppress it.
14
14
  // hr { display: none; }
15
15
 
16
+ // Fix width of incremental Reveal.js sections
16
17
  // Align Reveal.js presenter notes as regular paragraphs.
17
18
  // Alternatively, uncomment the second line to hide them completely.
18
- div.notes { @extend section;
19
- //display: none !important;
20
- }
19
+ div.incremental,
20
+ div.notes {
21
+ @extend section;
22
+ // &.notes { display: none !important; }
23
+ }
21
24
 
22
25
  // Right now .r-stack figures are hard-coded to show up
23
26
  // in two equal columns.
24
- div.r-stack > figure { float: left;
25
- max-width: 50%;
26
- & > figcaption { float: none;
27
- max-width: 100%;
28
- width: 100%; }
29
- }
27
+ div.r-stack > figure {
28
+ float: left;
29
+ max-width: 50%;
30
+ & > figcaption {
31
+ float: none;
32
+ max-width: 100%;
33
+ width: 100%;
34
+ }
35
+ }
30
36
 
31
37
  // Support Pandoc columns for reveal.js
32
- .columns { @extend .fullwidth;
33
- width: 100%;
34
- &.subfigures > p:last-of-type { max-width: 33%;
35
- margin-bottom: 1.1rem; }
36
- }
37
- .column { float: left;
38
- figure { margin-bottom: 1em;
39
- max-width: 90%;
40
- figcaption { float: right; }
41
- }
42
- }
38
+ .columns {
39
+ @extend .fullwidth;
40
+ width: 100%;
41
+ &.subfigures > p:last-of-type {
42
+ max-width: 33%;
43
+ margin-bottom: 1.1rem;
44
+ }
45
+ }
46
+
47
+ .column {
48
+ float: left;
49
+ figure {
50
+ margin-bottom: 1em;
51
+ max-width: 90%;
52
+ figcaption { float: right; }
53
+ }
54
+ }
@@ -54,3 +54,173 @@ article {
54
54
  .marginnote {
55
55
  hyphens: none;
56
56
  }
57
+
58
+ /* <details> is a little used collapsible block. */
59
+ details {
60
+ @extend section;
61
+ summary > p { display: inline; }
62
+ }
63
+
64
+ /* Tabular numbers for list items, small-caps Roman numerals */
65
+ article ol,
66
+ article ul {
67
+ & > li::marker {
68
+ font-variant: tabular-nums oldstyle-nums all-small-caps;
69
+ }
70
+ }
71
+
72
+ /* Typographically correct small caps. */
73
+ .smallcaps { font-variant: all-small-caps; }
74
+
75
+ /* The alignment in l.311 of _tufte.scss results in sidenotes
76
+ * for blockquotes that do not align with other sidenotes and
77
+ * marginnotes. Here we correct this discrepancy. */
78
+ blockquote .sidenote,
79
+ blockquote .marginnote {
80
+ margin-right: -60%;
81
+ min-width: 50%;
82
+ }
83
+
84
+ /* Semantic emulation of NEWTHOUGHT
85
+ *
86
+ * .newthought provides no semantic cues in the markup.
87
+ * However, we can style semantic elements so that they
88
+ * look just like Tufte's emphasized paragraph openings.
89
+ * We do this to <h5> and <h6> by analogy with the LaTeX
90
+ * \paragraph and \subparagraph features. We have also
91
+ * thrown in <dt> because what else are we going to use
92
+ * definition lists for? */
93
+
94
+ // First, we make sure line heights and font sizes match.
95
+ article > dl,
96
+ section > dl {
97
+ clear: left;
98
+ font-size: 1.4rem;
99
+ line-height: 2rem;
100
+ }
101
+
102
+ // ...second, we float the headings so they run in with
103
+ // the following paragraph...
104
+ dt,
105
+ h5,
106
+ h6 {
107
+ float: left;
108
+ font-size: 1.4rem;
109
+ margin: 0 1.4rem 0 0;
110
+ padding: 0;
111
+ }
112
+
113
+ // ...third, we take care of the styling...
114
+ dt,
115
+ dt > a,
116
+ h5,
117
+ h6 {
118
+ @extend .newthought;
119
+ clear: left;
120
+ font-style: normal;
121
+ font-weight: 400;
122
+ }
123
+
124
+ // Finally, we flush the <dt> inline with the <dd>.
125
+ // This reverses the margin setting on l.160 of _tufte.scss
126
+ dt:not(:first-child),
127
+ li:not(:first-child) {
128
+ margin-top: 0;
129
+ }
130
+
131
+ // Bonus: fix width of <dl> inside <li>
132
+ li > dl {
133
+ &, & > p {
134
+ width: 100%;
135
+ }
136
+ }
137
+ /* Here there ends the semantic emulation of .newthought */
138
+
139
+ /* Pandoc and Pandoc-crossref have strict and peculiar ways
140
+ * of generating HTML figures. Notably, Pandoc applies classes
141
+ * not to the <figure> tag, but to the <img> within it.
142
+ * Pandoc-crossref has a .subfigures class used for complex
143
+ * figures containing several related images. The caption of a
144
+ * .subfigures is not a <figcaption> but a simple <p>. Here we
145
+ * try to account for all these cases and make sure everything
146
+ * lines up. */
147
+
148
+ // Subfigures need to share width and margin features of regular
149
+ // figures, but zero-padding them leads to unexpected results.
150
+ div.subfigures {
151
+ max-width: 55%;
152
+ -webkit-margin-start: 0;
153
+ -webkit-margin-end: 0;
154
+ margin: 0 0 3em 0;
155
+ & > p:last-of-type { // Subfigure captions
156
+ float: right;
157
+ clear: right;
158
+ margin-top: 0;
159
+ margin-bottom: 0;
160
+ font-size: 1.1rem;
161
+ line-height: 1.6;
162
+ vertical-align: baseline;
163
+ position: relative;
164
+ max-width: 40%;
165
+ }
166
+ }
167
+
168
+ // Fullwidth images within Pandoc-crossref figures and subfigures
169
+ div.fullwidth {
170
+ & > figure {
171
+ max-width: 100%;
172
+ }
173
+ &.subfigures {
174
+ max-width: 90%;
175
+ & > p:last-of-type { // Subfigure captions
176
+ max-width: 33%;
177
+ }
178
+ }
179
+ figcaption {
180
+ max-width: 33%; // Correctly align Pandoc-crossref figcaptions in full-width figures
181
+ }
182
+ }
183
+
184
+ /* Pandoc will not generate figures with captions if the
185
+ * image is within a <span>, so the .marginnote class needs
186
+ * to be applied to a freestanding image. This makes sure its
187
+ * caption is properly aligned. */
188
+ img.marginnote~figcaption {
189
+ margin-right: -60%;
190
+ max-width: 50%;
191
+ }
192
+
193
+ // Fixes an edge case of figure~figure.marginnote alignment.
194
+ p~figure > img.marginnote, div.notes~figure > img.marginnote { margin-top: 1.6rem; }
195
+
196
+ // Finally, make sure marginnote image captions are shown
197
+ // inline on small screens.
198
+ @media (max-width: 760px) {
199
+ img.marginnote~figcaption {
200
+ margin-right: 0%;
201
+ max-width: none;
202
+ }
203
+ }
204
+ /* Here there ends the styling of Pandoc and Pandoc-crossref figures */
205
+
206
+ // Dark colorscheme with a softer background
207
+ // TODO: use variables and a rebase mixin instead of
208
+ // hard-coding every color twice.
209
+ @media (prefers-color-scheme: dark) {
210
+ body { color: #fffff8;
211
+ background-color: lighten(#111, 10%); }
212
+ a:link { text-decoration: none;
213
+ background: -webkit-linear-gradient(#111, #111), -webkit-linear-gradient(#111, #111), -webkit-linear-gradient(lighten(#fffff8, 10%), lighten(#fffff8, 10%));
214
+ background: linear-gradient(#111, #111), linear-gradient(#111, #111), linear-gradient(lighten(#fffff8, 10%), lighten(#fffff8, 10%));
215
+ -webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
216
+ -moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
217
+ background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
218
+ background-repeat: no-repeat, no-repeat, repeat-x;
219
+ text-shadow: 0.03em 0 #111, -0.03em 0 #111, 0 0.03em #111, 0 -0.03em #111, 0.06em 0 #111, -0.06em 0 #111, 0.09em 0 #111, -0.09em 0 #111, 0.12em 0 #111, -0.12em 0 #111, 0.15em 0 #111, -0.15em 0 #111;
220
+ background-position: 0% 93%, 100% 93%, 0% 93%; }
221
+ img { background-color: darken(#fffff8, 10%); } // Prevents transparent PNGs from becoming unreadable
222
+ table { border-top: 2px solid #fffff8;
223
+ border-bottom: 2px solid #fffff8; }
224
+ td { border-top: 1px solid #fffff8; }
225
+ th { border-bottom: 1px solid #fffff8; }
226
+ }
data/_sass/_tufte.scss CHANGED
@@ -157,12 +157,10 @@ section > ul {
157
157
  -webkit-padding-start: 5%;
158
158
  }
159
159
 
160
- /* Causes problems with run-in <dt>
161
- *dt:not(:first-child),
162
- *li:not(:first-child) {
163
- * margin-top: 0.25rem;
164
- *}
165
- */
160
+ dt:not(:first-child),
161
+ li:not(:first-child) {
162
+ margin-top: 0.25rem;
163
+ }
166
164
 
167
165
  figure {
168
166
  padding: 0;
@@ -176,12 +174,6 @@ figure {
176
174
  margin: 0 0 3em 0;
177
175
  }
178
176
 
179
- // Fix for fullwidth images within Pandoc figures
180
- div.fullwidth > figure {
181
- max-width: 100%;
182
- }
183
-
184
- .subfigures > p:last-of-type, // Support Pandoc-crossref subfigures
185
177
  figcaption {
186
178
  float: right;
187
179
  clear: right;
@@ -198,9 +190,6 @@ figure.fullwidth figcaption {
198
190
  margin-right: 24%;
199
191
  }
200
192
 
201
- // Fix for Pandoc-crossref figcaptions in full-width figures
202
- div.fullwidth figcaption { max-width: 33%; }
203
-
204
193
  /* Links: replicate underline that clears descenders */
205
194
  a:link,
206
195
  a:visited {
@@ -275,12 +264,12 @@ div.hanging-indent{
275
264
  text-indent: -1.5rem;
276
265
  }
277
266
 
267
+ /* Sidenotes, margin notes, figures, captions */
278
268
  video,
279
269
  img {
280
270
  max-width: 100%;
281
271
  }
282
272
 
283
- /* Sidenotes, margin notes, figures, captions */
284
273
  .sidenote,
285
274
  .marginnote {
286
275
  float: right;
@@ -295,12 +284,6 @@ img {
295
284
  position: relative;
296
285
  }
297
286
 
298
- // Fix for Pandoc-generated figcaption in margin images
299
- img.marginnote~figcaption {
300
- margin-right: -60%;
301
- max-width: 50%;
302
- }
303
-
304
287
  .sidenote-number {
305
288
  counter-increment: sidenote-counter;
306
289
  }
data/assets/css/main.scss CHANGED
@@ -7,8 +7,7 @@
7
7
  "tufte",
8
8
  "tufte-extra",
9
9
  "pandoc",
10
- "pandoc-solarized",
11
- "custom"
10
+ "pandoc-solarized"
12
11
  ;
13
12
 
14
13
  // Reveal.js support is not enabled by default.
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tufte-crossref-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - Pedro P. Palazzo
7
+ - Jake Zimmerman
8
+ - Pedro Palazzo
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
@@ -68,6 +69,7 @@ dependencies:
68
69
  version: '10.0'
69
70
  description:
70
71
  email:
72
+ - zimmerman.jake@gmail.com
71
73
  - pedro.palazzo@gmail.com
72
74
  executables: []
73
75
  extensions: []
@@ -83,7 +85,6 @@ files:
83
85
  - _layouts/index.html
84
86
  - _layouts/page.html
85
87
  - _layouts/post.html
86
- - _sass/_custom.scss
87
88
  - _sass/_local.scss
88
89
  - _sass/_pandoc-solarized.scss
89
90
  - _sass/_pandoc.scss
@@ -113,5 +114,5 @@ requirements: []
113
114
  rubygems_version: 3.2.22
114
115
  signing_key:
115
116
  specification_version: 4
116
- summary: A Jekyll theme based on jez/tufte-pandoc-jekyll
117
+ summary: A Jekyll theme based on jez/tufte-pandoc-jekyll with support for Pandoc-Crossref
117
118
  test_files: []
data/_sass/_custom.scss DELETED
@@ -1,53 +0,0 @@
1
- details { @extend section;
2
- summary > p { display: inline; }
3
- }
4
-
5
- dt, dt > a, h5, h6 { @extend .newthought;
6
- clear: left;
7
- font-style: normal;
8
- font-weight: 400; }
9
-
10
- // Run-in definition lists and headings
11
- article > dl, section > dl { clear: left;
12
- font-size: 1.4rem;
13
- line-height: 2rem; }
14
-
15
- dt, h5, h6 { float: left;
16
- margin: 0 1.4rem 0 0;
17
- padding: 0; }
18
-
19
- // Tabular numbers for list items, small-caps Roman numerals
20
- article ol, article ul {
21
- & > li::marker { font-variant: tabular-nums oldstyle-nums all-small-caps; }
22
- }
23
-
24
- // Fix width of dl inside li
25
- li > dl {
26
- &, & > p { width: 100%; }
27
- }
28
-
29
- .smallcaps { font-variant: all-small-caps; }
30
-
31
- // Fixes an edge case of figure~figure.marginnote alignment.
32
- p~figure > img.marginnote, div.notes~figure > img.marginnote { margin-top: 1.6rem; }
33
-
34
- // Dark colorscheme with a softer background
35
- // TODO: switch code to Solarized-dark when in dark mode
36
- @media (prefers-color-scheme: dark) {
37
- body { color: #fffff8;
38
- background-color: lighten(#111, 10%); }
39
- a:link { text-decoration: none;
40
- background: -webkit-linear-gradient(#111, #111), -webkit-linear-gradient(#111, #111), -webkit-linear-gradient(lighten(#fffff8, 10%), lighten(#fffff8, 10%));
41
- background: linear-gradient(#111, #111), linear-gradient(#111, #111), linear-gradient(lighten(#fffff8, 10%), lighten(#fffff8, 10%));
42
- -webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
43
- -moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
44
- background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
45
- background-repeat: no-repeat, no-repeat, repeat-x;
46
- text-shadow: 0.03em 0 #111, -0.03em 0 #111, 0 0.03em #111, 0 -0.03em #111, 0.06em 0 #111, -0.06em 0 #111, 0.09em 0 #111, -0.09em 0 #111, 0.12em 0 #111, -0.12em 0 #111, 0.15em 0 #111, -0.15em 0 #111;
47
- background-position: 0% 93%, 100% 93%, 0% 93%; }
48
- img { background-color: darken(#fffff8, 10%); } // Prevents transparent PNGs from becoming unreadable
49
- table { border-top: 2px solid #fffff8;
50
- border-bottom: 2px solid #fffff8; }
51
- td { border-top: 1px solid #fffff8; }
52
- th { border-bottom: 1px solid #fffff8; }
53
- }