buckram 1.7.3 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/buckram.iml +11 -0
- package/.idea/modules.xml +8 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +6 -0
- package/CHANGELOG.md +26 -0
- package/README.md +4 -4
- package/assets/styles/buckram.scss +1 -1
- package/assets/styles/components/_colors.scss +5 -5
- package/assets/styles/components/_utilities.scss +49 -125
- package/assets/styles/components/elements/_blockquotes.scss +3 -2
- package/assets/styles/components/elements/_body.scss +2 -2
- package/assets/styles/components/elements/_headings.scss +16 -15
- package/assets/styles/components/elements/_links.scss +3 -5
- package/assets/styles/components/elements/_lists.scss +22 -22
- package/assets/styles/components/elements/_miscellaneous.scss +7 -5
- package/assets/styles/components/elements/_paragraphs.scss +4 -20
- package/assets/styles/components/elements/_tables.scss +8 -5
- package/assets/styles/components/media/_audio.scss +1 -1
- package/assets/styles/components/media/_images.scss +5 -9
- package/assets/styles/components/media/_interactive-content.scss +2 -1
- package/assets/styles/components/media/_video.scss +1 -1
- package/assets/styles/components/pages/_back-matter.scss +1 -0
- package/assets/styles/components/pages/_chapters.scss +1 -0
- package/assets/styles/components/pages/_front-matter.scss +2 -0
- package/assets/styles/components/pages/_titles.scss +3 -1
- package/assets/styles/components/section-titles/_back-matter.scss +3 -1
- package/assets/styles/components/section-titles/_chapters.scss +8 -2
- package/assets/styles/components/section-titles/_front-matter.scss +5 -2
- package/assets/styles/components/section-titles/_generic.scss +3 -2
- package/assets/styles/components/section-titles/_parts.scss +2 -1
- package/assets/styles/components/specials/_columns.scss +4 -0
- package/assets/styles/components/specials/_contributors.scss +4 -3
- package/assets/styles/components/specials/_dropcaps.scss +5 -7
- package/assets/styles/components/specials/_floats.scss +2 -2
- package/assets/styles/components/specials/_footnotes.scss +9 -16
- package/assets/styles/components/specials/_glossaryterms.scss +2 -2
- package/assets/styles/components/specials/_miscellaneous.scss +4 -8
- package/assets/styles/components/specials/_pullquotes.scss +7 -2
- package/assets/styles/components/specials/_separators.scss +3 -2
- package/assets/styles/components/specials/_textboxes.scss +6 -8
- package/assets/styles/components/structure/_blank.scss +18 -18
- package/assets/styles/components/structure/_content-strings.scss +2 -2
- package/assets/styles/components/structure/_general.scss +2 -2
- package/assets/styles/components/structure/_mixins.scss +168 -136
- package/assets/styles/components/structure/_numbering.scss +2 -2
- package/assets/styles/components/structure/_recto-verso.scss +2 -2
- package/assets/styles/components/structure/_running-content.scss +5 -10
- package/assets/styles/components/toc/_generic.scss +124 -6
- package/assets/styles/variables/_colors.scss +65 -16
- package/assets/styles/variables/_elements.scss +20 -35
- package/assets/styles/variables/_media.scss +1 -1
- package/assets/styles/variables/_pages.scss +7 -7
- package/assets/styles/variables/_section-titles.scss +8 -8
- package/assets/styles/variables/_specials.scss +3 -2
- package/assets/styles/variables/_structure.scss +18 -13
- package/assets/styles/variables/_toc.scss +4 -4
- package/package.json +5 -4
- package/assets/styles/components/toc/_mobi.scss +0 -109
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Miscellaneous //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
@import "../utilities";
|
|
9
9
|
|
|
10
10
|
@if $type != 'web' {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
@if $type == 'prince' {
|
|
30
30
|
line-height: if-map-get($code-line-height, $type);
|
|
31
31
|
}
|
|
32
|
+
|
|
32
33
|
margin: if-map-get($code-margin-top, $type) if-map-get($code-margin-right, $type) if-map-get($code-margin-bottom, $type) if-map-get($code-margin-left, $type);
|
|
33
34
|
padding: if-map-get($code-padding-top, $type) if-map-get($code-padding-right, $type) if-map-get($code-padding-bottom, $type) if-map-get($code-padding-left, $type);
|
|
34
35
|
}
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
@if $type == 'prince' {
|
|
43
44
|
line-height: if-map-get($pre-line-height, $type);
|
|
44
45
|
}
|
|
46
|
+
|
|
45
47
|
margin: if-map-get($pre-margin-top, $type) if-map-get($pre-margin-right, $type) if-map-get($pre-margin-bottom, $type) if-map-get($pre-margin-left, $type);
|
|
46
48
|
padding: if-map-get($pre-padding-top, $type) if-map-get($pre-padding-right, $type) if-map-get($pre-padding-bottom, $type) if-map-get($pre-padding-left, $type);
|
|
47
49
|
}
|
|
@@ -53,6 +55,7 @@
|
|
|
53
55
|
@if $type == 'prince' {
|
|
54
56
|
line-height: if-map-get($sub-line-height, $type);
|
|
55
57
|
}
|
|
58
|
+
|
|
56
59
|
text-transform: $sub-text-transform;
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -62,11 +65,10 @@
|
|
|
62
65
|
@if $type == 'prince' {
|
|
63
66
|
line-height: if-map-get($sup-line-height, $type);
|
|
64
67
|
}
|
|
68
|
+
|
|
65
69
|
text-transform: $sup-text-transform;
|
|
66
70
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@else {
|
|
71
|
+
} @else {
|
|
70
72
|
.front-matter,
|
|
71
73
|
.part,
|
|
72
74
|
.chapter,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Paragraphs //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
@import '../utilities';
|
|
10
10
|
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
.pullquote--outside + p,
|
|
63
63
|
.pullquote-inside + p,
|
|
64
64
|
.pullquote--inside + p,
|
|
65
|
-
.sidebar + p
|
|
65
|
+
.sidebar + p,
|
|
66
|
+
.textbox--sidebar + p {
|
|
66
67
|
margin-top: $para-margin-top;
|
|
67
68
|
text-indent: $para-indent;
|
|
68
69
|
}
|
|
@@ -199,23 +200,6 @@
|
|
|
199
200
|
hyphens: none;
|
|
200
201
|
}
|
|
201
202
|
|
|
202
|
-
// When paragraphs follow a floated element, make sure indents work as expected.
|
|
203
|
-
// NOTE: this should only happen when paragraph separators = indent.
|
|
204
|
-
|
|
205
|
-
.wp-caption.alignleft + p,
|
|
206
|
-
.wp-nocaption.alignleft + p,
|
|
207
|
-
.wp-caption.alignright + p,
|
|
208
|
-
.wp-nocaption.alignright + p,
|
|
209
|
-
.float-top + p,
|
|
210
|
-
.float-bottom + p,
|
|
211
|
-
.pullquote + p,
|
|
212
|
-
.pullquote-right + p,
|
|
213
|
-
.pullquote-left + p,
|
|
214
|
-
.pullquote-outside + p,
|
|
215
|
-
.sidebar + p {
|
|
216
|
-
margin-top: $para-margin-top;
|
|
217
|
-
text-indent: $para-indent;
|
|
218
|
-
}
|
|
219
203
|
|
|
220
204
|
// Hanging Indents
|
|
221
205
|
.hanging-indent {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Tables //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
@import '../utilities';
|
|
10
10
|
|
|
@@ -24,12 +24,14 @@
|
|
|
24
24
|
@if $type != 'prince' {
|
|
25
25
|
overflow-x: scroll;
|
|
26
26
|
}
|
|
27
|
+
|
|
27
28
|
font-family: $table-font-family;
|
|
28
29
|
font-size: $table-font-size;
|
|
29
30
|
hyphens: $table-hyphens;
|
|
30
31
|
@if $type == 'prince' {
|
|
31
32
|
line-height: $table-line-height;
|
|
32
33
|
}
|
|
34
|
+
|
|
33
35
|
text-align: $table-align;
|
|
34
36
|
border-collapse: collapse;
|
|
35
37
|
border-top: $table-border-width solid if-map-get($line-color-1, $type);
|
|
@@ -48,6 +50,7 @@
|
|
|
48
50
|
line-height: $table-caption-line-height;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
53
|
+
|
|
51
54
|
&.lines {
|
|
52
55
|
border-color: if-map-get($line-color-1, $type);
|
|
53
56
|
}
|
|
@@ -152,6 +155,7 @@
|
|
|
152
155
|
@if $type == 'prince' {
|
|
153
156
|
line-height: $table-th-line-height;
|
|
154
157
|
}
|
|
158
|
+
|
|
155
159
|
text-align: $table-th-align;
|
|
156
160
|
vertical-align: $table-th-vertical-align;
|
|
157
161
|
border-top: if-map-get($table-th-border-top-width, $type) if-map-get($table-th-border-top-style, $type) if-map-get($line-color-1, $type);
|
|
@@ -167,6 +171,7 @@
|
|
|
167
171
|
@if $type == 'prince' {
|
|
168
172
|
line-height: $table-td-line-height;
|
|
169
173
|
}
|
|
174
|
+
|
|
170
175
|
text-align: $table-td-align;
|
|
171
176
|
vertical-align: $table-td-vertical-align;
|
|
172
177
|
}
|
|
@@ -175,9 +180,7 @@
|
|
|
175
180
|
border-top: if-map-get($table-tr-border-top-width, $type) if-map-get($table-tr-border-top-style, $type) if-map-get($line-color-1, $type);
|
|
176
181
|
border-bottom: if-map-get($table-tr-border-bottom-width, $type) if-map-get($table-tr-border-bottom-style, $type) if-map-get($line-color-1, $type);
|
|
177
182
|
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@else {
|
|
183
|
+
} @else {
|
|
181
184
|
.front-matter,
|
|
182
185
|
.part,
|
|
183
186
|
.chapter,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
@mixin caption-text-align($align) {
|
|
6
6
|
figcaption,
|
|
7
7
|
.wp-caption-text {
|
|
8
|
-
text-align: map-get($
|
|
8
|
+
text-align: map-get($image-caption-text-align-map, $align);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -146,15 +146,13 @@ p {
|
|
|
146
146
|
width: 100% !important;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
&::after {
|
|
150
150
|
content: "";
|
|
151
151
|
display: table;
|
|
152
152
|
clear: both;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@else if $type == 'prince' {
|
|
155
|
+
} @else if $type == 'prince' {
|
|
158
156
|
figcaption,
|
|
159
157
|
.wp-caption-text {
|
|
160
158
|
font-family: $image-caption-font-family;
|
|
@@ -248,15 +246,13 @@ p {
|
|
|
248
246
|
width: if-map-get($image-alignnone-caption-width, $type) !important;
|
|
249
247
|
}
|
|
250
248
|
|
|
251
|
-
|
|
249
|
+
&::after {
|
|
252
250
|
content: "";
|
|
253
251
|
display: table;
|
|
254
252
|
clear: both;
|
|
255
253
|
}
|
|
256
254
|
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
@else if $type == 'web' {
|
|
255
|
+
} @else if $type == 'web' {
|
|
260
256
|
.front-matter,
|
|
261
257
|
.part,
|
|
262
258
|
.chapter,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
@if $type != 'epub' {
|
|
10
10
|
line-height: if-map-get($interactive-content-line-height, $type);
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
margin-bottom: if-map-get($interactive-content-margin-bottom, $type);
|
|
13
14
|
padding: if-map-get($interactive-content-padding-top, $type) if-map-get($interactive-content-padding-right, $type) if-map-get($interactive-content-padding-bottom, $type) if-map-get($interactive-content-padding-left, $type);
|
|
14
15
|
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
if-map-get($interactive-icon-margin-right, $type)
|
|
23
24
|
if-map-get($interactive-icon-margin-bottom, $type)
|
|
24
25
|
if-map-get($interactive-icon-margin-left, $type);
|
|
25
|
-
background-image: url(if-map-get($interactive-icon-url, $type));
|
|
26
|
+
background-image: url('#{if-map-get($interactive-icon-url, $type)}');
|
|
26
27
|
background-repeat: no-repeat;
|
|
27
28
|
background-size: if-map-get($interactive-icon-background-size, $type);
|
|
28
29
|
}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
margin-top: if-map-get($copyright-margin-top, $type);
|
|
18
18
|
margin-right: if-map-get($copyright-margin-right, $type);
|
|
19
19
|
margin-left: if-map-get($copyright-margin-left, $type);
|
|
20
|
+
|
|
20
21
|
.ugc {
|
|
21
22
|
float: $copyright-float;
|
|
22
23
|
|
|
@@ -81,6 +82,7 @@ section.epigraph
|
|
|
81
82
|
@if $type != 'epub' {
|
|
82
83
|
line-height: $section-license-line-height;
|
|
83
84
|
}
|
|
85
|
+
|
|
84
86
|
font-size: $section-license-font-size;
|
|
85
87
|
font-style: $section-license-font-style;
|
|
86
88
|
margin-top: $section-license-margin-top;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
line-height: if-map-get($title-title-line-height, $type);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
@if
|
|
51
|
+
@if $title-title-decoration-content != "" or $title-title-decoration-display != none {
|
|
52
52
|
&::after {
|
|
53
53
|
font-family: $title-title-decoration-font-family;
|
|
54
54
|
content: $title-title-decoration-content;
|
|
@@ -127,6 +127,7 @@ div.publisher-logo {
|
|
|
127
127
|
@if $type != 'epub' {
|
|
128
128
|
line-height: $title-publisher-line-height;
|
|
129
129
|
}
|
|
130
|
+
|
|
130
131
|
letter-spacing: $title-publisher-letter-spacing;
|
|
131
132
|
word-spacing: $title-publisher-word-spacing;
|
|
132
133
|
text-align: $title-publisher-align;
|
|
@@ -149,6 +150,7 @@ div.publisher-logo {
|
|
|
149
150
|
@if $type != 'epub' {
|
|
150
151
|
line-height: $title-publisher-city-line-height;
|
|
151
152
|
}
|
|
153
|
+
|
|
152
154
|
letter-spacing: $title-publisher-city-letter-spacing;
|
|
153
155
|
word-spacing: $title-publisher-city-word-spacing;
|
|
154
156
|
text-align: $title-publisher-city-align;
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
@if $type != 'epub' {
|
|
28
28
|
line-height: if-map-get($back-matter-title-line-height, $type);
|
|
29
29
|
}
|
|
30
|
+
|
|
30
31
|
text-align: $back-matter-title-align;
|
|
31
32
|
text-transform: $back-matter-title-text-transform;
|
|
32
33
|
border-bottom: if-map-get($back-matter-title-border-bottom-width, $type) $back-matter-title-border-bottom-style if-map-get($back-matter-title-border-bottom-color, $type);
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
letter-spacing: if-map-get($back-matter-title-letter-spacing, $type);
|
|
35
36
|
word-spacing: if-map-get($back-matter-title-word-spacing, $type);
|
|
36
37
|
|
|
37
|
-
@if
|
|
38
|
+
@if $back-matter-title-decoration-content != "" or $back-matter-title-decoration-display != none {
|
|
38
39
|
&::after {
|
|
39
40
|
font-family: $back-matter-title-decoration-font-family;
|
|
40
41
|
content: $back-matter-title-decoration-content;
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
@if $type != 'epub' {
|
|
63
64
|
column-span: all;
|
|
64
65
|
}
|
|
66
|
+
|
|
65
67
|
letter-spacing: if-map-get($section-subtitle-letter-spacing, $type);
|
|
66
68
|
word-spacing: if-map-get($section-subtitle-word-spacing, $type);
|
|
67
69
|
}
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
@if $type != 'epub' {
|
|
22
22
|
line-height: if-map-get($chapter-title-line-height, $type);
|
|
23
23
|
}
|
|
24
|
+
|
|
24
25
|
text-align: $chapter-title-align;
|
|
25
26
|
text-transform: $chapter-title-text-transform;
|
|
26
27
|
letter-spacing: if-map-get($chapter-title-letter-spacing, $type);
|
|
27
28
|
word-spacing: if-map-get($chapter-title-word-spacing, $type);
|
|
28
29
|
|
|
29
|
-
@if
|
|
30
|
+
@if $chapter-title-decoration-content != "" or $chapter-title-decoration-display != none {
|
|
30
31
|
&::after {
|
|
31
32
|
font-family: $chapter-title-decoration-font-family;
|
|
32
33
|
content: $chapter-title-decoration-content;
|
|
@@ -53,12 +54,13 @@
|
|
|
53
54
|
@if $type != 'epub' {
|
|
54
55
|
line-height: if-map-get($chapter-number-line-height, $type);
|
|
55
56
|
}
|
|
57
|
+
|
|
56
58
|
text-align: $chapter-number-align;
|
|
57
59
|
text-transform: $chapter-number-text-transform;
|
|
58
60
|
letter-spacing: if-map-get($chapter-number-letter-spacing, $type);
|
|
59
61
|
word-spacing: if-map-get($chapter-number-word-spacing, $type);
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
&::before {
|
|
62
64
|
content: $chapter-number-before-content;
|
|
63
65
|
text-transform: $chapter-number-before-content-text-transform;
|
|
64
66
|
}
|
|
@@ -73,9 +75,11 @@
|
|
|
73
75
|
@if $type != 'epub' {
|
|
74
76
|
display: none;
|
|
75
77
|
}
|
|
78
|
+
|
|
76
79
|
&::after {
|
|
77
80
|
content: '';
|
|
78
81
|
}
|
|
82
|
+
|
|
79
83
|
&::before {
|
|
80
84
|
content: '';
|
|
81
85
|
}
|
|
@@ -95,6 +99,7 @@
|
|
|
95
99
|
@if $type != 'epub' {
|
|
96
100
|
column-span: all;
|
|
97
101
|
}
|
|
102
|
+
|
|
98
103
|
letter-spacing: if-map-get($section-subtitle-letter-spacing, $type);
|
|
99
104
|
word-spacing: if-map-get($section-subtitle-word-spacing, $type);
|
|
100
105
|
}
|
|
@@ -156,6 +161,7 @@ blockquote.aphorism {
|
|
|
156
161
|
@if $type != 'epub' {
|
|
157
162
|
line-height: if-map-get($aphorism-line-height, $type);
|
|
158
163
|
}
|
|
164
|
+
|
|
159
165
|
text-align: $aphorism-align;
|
|
160
166
|
text-indent: if-map-get($aphorism-indent, $type);
|
|
161
167
|
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
@if $type != 'epub' {
|
|
32
32
|
line-height: if-map-get($front-matter-title-line-height, $type);
|
|
33
33
|
}
|
|
34
|
+
|
|
34
35
|
text-align: $front-matter-title-align;
|
|
35
36
|
text-transform: $front-matter-title-text-transform;
|
|
36
37
|
|
|
37
|
-
@if
|
|
38
|
+
@if $front-matter-title-decoration-content != "" or $front-matter-title-decoration-display != none {
|
|
38
39
|
&::after {
|
|
39
40
|
font-family: $front-matter-title-decoration-font-family;
|
|
40
41
|
content: $front-matter-title-decoration-content;
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
@if $type != 'epub' {
|
|
63
64
|
column-span: all;
|
|
64
65
|
}
|
|
66
|
+
|
|
65
67
|
letter-spacing: if-map-get($section-subtitle-letter-spacing, $type);
|
|
66
68
|
word-spacing: if-map-get($section-subtitle-word-spacing, $type);
|
|
67
69
|
}
|
|
@@ -118,12 +120,13 @@
|
|
|
118
120
|
@if $type != 'epub' {
|
|
119
121
|
line-height: $toc-title-line-height;
|
|
120
122
|
}
|
|
123
|
+
|
|
121
124
|
text-align: $toc-title-align;
|
|
122
125
|
text-transform: $toc-title-text-transform;
|
|
123
126
|
letter-spacing: if-map-get($toc-title-letter-spacing, $type);
|
|
124
127
|
word-spacing: if-map-get($toc-title-word-spacing, $type);
|
|
125
128
|
|
|
126
|
-
@if
|
|
129
|
+
@if $toc-title-decoration-content != "" or $toc-title-decoration-display != none {
|
|
127
130
|
&::after {
|
|
128
131
|
font-family: $toc-title-decoration-font-family;
|
|
129
132
|
content: $toc-title-decoration-content;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
text-align: $part-number-align;
|
|
42
42
|
text-transform: $part-number-text-transform;
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
&::before {
|
|
45
45
|
content: $part-number-before-content;
|
|
46
46
|
text-transform: $part-number-before-content-text-transform;
|
|
47
47
|
}
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
text-align: $chapter-number-align;
|
|
138
138
|
text-transform: $chapter-number-text-transform;
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
&::before {
|
|
141
141
|
content: $chapter-number-before-content;
|
|
142
142
|
text-transform: $chapter-number-before-content-text-transform;
|
|
143
143
|
}
|
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
+
|
|
150
151
|
.numberless & {
|
|
151
152
|
h1 span {
|
|
152
153
|
display: none;
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
@if $type != 'epub' {
|
|
46
46
|
line-height: if-map-get($part-title-line-height, $type);
|
|
47
47
|
}
|
|
48
|
+
|
|
48
49
|
text-align: if-map-get($part-title-align, $type);
|
|
49
50
|
text-transform: $part-title-text-transform;
|
|
50
51
|
page-break-after: avoid;
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
word-spacing: if-map-get($part-title-word-spacing, $type);
|
|
53
54
|
border-bottom: if-map-get($part-title-border-bottom-width, $type) $part-title-border-bottom-style if-map-get($part-title-border-bottom-color, $type);
|
|
54
55
|
|
|
55
|
-
@if
|
|
56
|
+
@if $part-title-decoration-content != "" or $part-title-decoration-display != none {
|
|
56
57
|
&::after {
|
|
57
58
|
font-family: $part-title-decoration-font-family;
|
|
58
59
|
content: $part-title-decoration-content;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@if $type != 'epub' {
|
|
12
12
|
line-height: $column-line-height;
|
|
13
13
|
}
|
|
14
|
+
|
|
14
15
|
text-align: if-map-get($column-twocolumn-text-align, $type);
|
|
15
16
|
text-indent: if-map-get($column-text-indent, $type);
|
|
16
17
|
column-gap: $column-twocolumn-column-gap;
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
@if $type != 'epub' {
|
|
23
24
|
line-height: $column-line-height;
|
|
24
25
|
}
|
|
26
|
+
|
|
25
27
|
text-align: if-map-get($column-twocolumn-text-align, $type);
|
|
26
28
|
text-indent: $para-indent;
|
|
27
29
|
}
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
@if $type != 'epub' {
|
|
41
43
|
line-height: $column-line-height;
|
|
42
44
|
}
|
|
45
|
+
|
|
43
46
|
column-gap: $column-threecolumn-column-gap;
|
|
44
47
|
column-count: 3;
|
|
45
48
|
column-fill: balance;
|
|
@@ -49,6 +52,7 @@
|
|
|
49
52
|
@if $type != 'epub' {
|
|
50
53
|
line-height: $column-line-height;
|
|
51
54
|
}
|
|
55
|
+
|
|
52
56
|
text-align: if-map-get($column-threecolumn-text-align, $type);
|
|
53
57
|
text-indent: $para-indent;
|
|
54
58
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group specials
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Contributors //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
.contributors {
|
|
10
10
|
.chapter-authors, .book-contributors {
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
margin-top: $contributors-margin-top;
|
|
26
26
|
margin-bottom: $contributors-margin-bottom;
|
|
27
27
|
}
|
|
28
|
+
|
|
28
29
|
// TODO: replace clearfix hack with better CSS Grid solution when Prince supports grid layout
|
|
29
|
-
&__name__and__links
|
|
30
|
+
&__name__and__links::after {
|
|
30
31
|
content: "";
|
|
31
32
|
display: table;
|
|
32
33
|
clear: both;
|
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
/// @group specials
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Dropcaps //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
|
-
.first-character
|
|
9
|
+
.first-character,
|
|
10
|
+
.firstcharacter // Deprecated; only included for backwards-compatibility.
|
|
11
|
+
{
|
|
10
12
|
font-family: $first-character-font-family;
|
|
11
13
|
font-size: $first-character-font-size;
|
|
12
14
|
font-style: $first-character-font-style;
|
|
13
15
|
font-weight: $first-character-font-weight;
|
|
14
16
|
line-height: $first-character-line-height;
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
.firstcharacter { // Deprecated; only included for backwards-compatibility.
|
|
18
|
-
@extend .first-character;
|
|
19
|
-
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group specials
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Floats //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
.clear {
|
|
10
10
|
clear: both;
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
/// @group specials
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Footnotes & Endnotes //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
@import '../utilities';
|
|
10
10
|
|
|
11
11
|
// Prince footnotes
|
|
12
12
|
@mixin prince-footnotes {
|
|
13
|
-
|
|
14
13
|
// Reset counter at the beginning of a new section
|
|
15
14
|
.front-matter,
|
|
16
15
|
.part,
|
|
@@ -79,25 +78,23 @@
|
|
|
79
78
|
|
|
80
79
|
@if $type == 'prince' {
|
|
81
80
|
@include prince-footnotes;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@else if $type == 'epub' {
|
|
81
|
+
} @else if $type == 'epub' {
|
|
85
82
|
@include epub-footnotes;
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
// Our footnote function eats <p> & <blockquote> tags, so users should wrap new
|
|
89
86
|
// paragraphs & blockquotes in a span, as per below
|
|
90
87
|
|
|
91
|
-
.fn-p
|
|
88
|
+
.fn-p,
|
|
89
|
+
.fn_p // Deprecated; only included for backwards-compatibility.
|
|
90
|
+
{
|
|
92
91
|
display: block;
|
|
93
92
|
text-indent: $para-indent;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.fn-blockquote {
|
|
95
|
+
.fn-blockquote,
|
|
96
|
+
.fn_blockquote // Deprecated; only included for backwards-compatibility.
|
|
97
|
+
{
|
|
101
98
|
display: block;
|
|
102
99
|
margin-top: $footnote-blockquote-margin-top;
|
|
103
100
|
margin-bottom: $footnote-blockquote-margin-bottom;
|
|
@@ -105,10 +102,6 @@
|
|
|
105
102
|
font-size: $footnote-blockquote-font-size;
|
|
106
103
|
}
|
|
107
104
|
|
|
108
|
-
.fn_blockquote { // Deprecated; only included for backwards-compatibility.
|
|
109
|
-
@extend .fn-blockquote;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
105
|
// Endnotes
|
|
113
106
|
|
|
114
107
|
.endnotes {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group specials
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Glossary terms //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
.glossary-term {
|
|
10
10
|
font-weight: bold;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group specials
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Miscellaneous //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
// No Hyphens
|
|
10
10
|
.no-hyphens {
|
|
@@ -75,12 +75,8 @@
|
|
|
75
75
|
|
|
76
76
|
@if $type == 'epub' {
|
|
77
77
|
@include epub-display-none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@else if $type == 'prince' {
|
|
78
|
+
} @else if $type == 'prince' {
|
|
81
79
|
@include pdf-display-none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@else if $type == 'web' {
|
|
80
|
+
} @else if $type == 'web' {
|
|
85
81
|
@include web-display-none;
|
|
86
82
|
}
|