tufte-pandoc-jekyll 0.12.0 → 0.13.0

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: 88518154b1fa42bb4a1a9fe4a814640e25aa1766ae9b363d400c712a906c78fe
4
- data.tar.gz: e92b5b24104425e8d0b44a17bf546dac48e738b2bfed01ef97dc8ca922f07916
3
+ metadata.gz: 2267e30061e1744b364d11ecd243b1d9aa2119327e60c86408c35d617d2424ce
4
+ data.tar.gz: 34e83920a51e5c24e3c390ae4b02ae817cffde2a2913865eefd51d65d37ab274
5
5
  SHA512:
6
- metadata.gz: 550fd6ba0612488d5f37627bc91933256150d498de2e6d812fbb6345069a62eacfb6704ebd80d3a5612d294cce89652f87e63226e4c12b09fb51ff4a9bcac747
7
- data.tar.gz: a7b6ebd8cd4bfd62bf5b514c40a5d890597163c00ef9dc2c33d20a86bf4f7d1930d02561f13174588b599b2f1aaadcfd1fbcb60b193a38790a7464537a553b8a
6
+ metadata.gz: 5dd3b1138f8e4ec27d960d7c390037de44c103e3dd468752cb7757dce260da304c8fe1bc3ba3a3b6083f0a58bd6b90fda977fc2cbb229d1cabe07a7241fd462a
7
+ data.tar.gz: f6d007f6c8b74617e1a622d20f0d2a0bb6680fc1a777c3a694425b2b15988e7c29eb185f1e2456aa8d3bcb4eb5e7144c6e2add237ebc3ac295f7a3927f0c028e
data/_sass/_pandoc.scss CHANGED
@@ -99,3 +99,38 @@ pre:not(.sourceCode) {
99
99
  word-wrap: break-word;
100
100
  overflow-wrap: break-word;
101
101
  }
102
+
103
+ /* To get the pandoc-generated bibliography to match style, define csl classes. */
104
+ div.csl-bib-body {
105
+ width: 55%;
106
+ }
107
+ div.csl-entry {
108
+ clear: both;
109
+ margin-top: .5rem;
110
+ }
111
+ .hanging div.csl-entry {
112
+ margin-left: 2rem;
113
+ text-indent: -2rem;
114
+ }
115
+ div.csl-left-margin {
116
+ min-width: 2rem;
117
+ float: left;
118
+ }
119
+ div.csl-right-inline {
120
+ margin-left: 2rem;
121
+ padding-left: 1rem;
122
+ }
123
+ div.csl-indent {
124
+ margin-left: 2rem;
125
+ }
126
+ div.hanging-indent{
127
+ margin-left: 1.5rem;
128
+ text-indent: -1.5rem;
129
+ }
130
+
131
+ @media (max-width: 760px) {
132
+ div.csl-bib-body {
133
+ width: 100%;
134
+ }
135
+ }
136
+
@@ -2,10 +2,12 @@
2
2
  .marginnote code, .sidenote code {
3
3
  font-size: 0.9rem;
4
4
  }
5
+
5
6
  /* ... and slightly too small in body text */
6
7
  code {
7
8
  font-size: 1.05rem;
8
9
  }
10
+
9
11
  /* Also make the sidenote numbers hang */
10
12
  .sidenote {
11
13
  text-indent: -0.4rem;
@@ -22,35 +24,29 @@ li:not(:first-child) {
22
24
  margin-top: initial;
23
25
  }
24
26
 
25
- /* Make "Home" link small */
26
- p.signoff {
27
- font-size: 1.2rem;
27
+ /* Prevent superscripts and subscripts from affecting line-height */
28
+ sup, sub {
29
+ vertical-align: baseline;
30
+ position: relative;
31
+ top: -0.4em;
28
32
  }
29
-
30
- body {
31
- max-width: 1150px;
32
- }
33
-
34
- /**
35
- * Makes it so that top-level <p> don't need to be wrapped in <section>
36
- */
37
- article > p,
38
- article > li,
39
- article > footer,
40
- article > table {
41
- width: 55%;
33
+ sub {
34
+ top: 0.4em;
42
35
  }
43
36
 
44
- /*
45
- * Enable hyphens on supported platforms
46
- */
47
- article {
48
- -webkit-hyphens: auto;
49
- -ms-hyphens: auto;
50
- hyphens: auto;
51
- }
52
- /* Sidenotes end up with a bunch of hyphens because they're so small */
53
- .sidenote,
54
- .marginnote {
55
- hyphens: none;
37
+ /* Replicate styling from sidenote numbers to footnote numbers */
38
+ a.footnote-ref {
39
+ background: unset;
40
+ text-shadow: unset;
41
+ font-size: 1rem;
42
+ position: relative;
43
+ top: -0.1rem;
44
+ left: 0.1rem;
45
+ display: inline;
46
+ }
47
+ .footnote-ref sup {
48
+ font-family: et-book-roman-old-style;
49
+ font-size: inherit;
50
+ vertical-align: inherit;
51
+ line-height: inherit;
56
52
  }
@@ -0,0 +1,34 @@
1
+ /* --- Styles specific to tufte-pandoc-jekyll --- */
2
+
3
+ /* Make "Home" link small */
4
+ p.signoff {
5
+ font-size: 1.2rem;
6
+ }
7
+
8
+ body {
9
+ max-width: 1150px;
10
+ }
11
+
12
+ /**
13
+ * Makes it so that top-level <p> don't need to be wrapped in <section>
14
+ */
15
+ article > p,
16
+ article > li,
17
+ article > footer,
18
+ article > table {
19
+ width: 55%;
20
+ }
21
+
22
+ /*
23
+ * Enable hyphens on supported platforms
24
+ */
25
+ article {
26
+ -webkit-hyphens: auto;
27
+ -ms-hyphens: auto;
28
+ hyphens: auto;
29
+ }
30
+ /* Sidenotes end up with a bunch of hyphens because they're so small */
31
+ .sidenote,
32
+ .marginnote {
33
+ hyphens: none;
34
+ }
data/assets/css/main.scss CHANGED
@@ -6,6 +6,7 @@
6
6
  @import
7
7
  "tufte",
8
8
  "tufte-extra",
9
+ "tufte-pandoc-jekyll-extra",
9
10
  "pandoc",
10
11
  "pandoc-solarized"
11
12
  ;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tufte-pandoc-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Zimmerman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2022-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-pandoc
@@ -86,6 +86,7 @@ files:
86
86
  - _sass/_pandoc-solarized.scss
87
87
  - _sass/_pandoc.scss
88
88
  - _sass/_tufte-extra.scss
89
+ - _sass/_tufte-pandoc-jekyll-extra.scss
89
90
  - _sass/_tufte.scss
90
91
  - assets/css/main.scss
91
92
  homepage: https://github.com/jez/tufte-pandoc-jekyll
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  requirements: []
110
- rubygems_version: 3.1.4
111
+ rubygems_version: 3.0.3
111
112
  signing_key:
112
113
  specification_version: 4
113
114
  summary: A Jekyll theme based on jez/tufte-pandoc-css