buckram 1.5.3 → 1.7.1
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/.github/dependabot.yml +27 -0
- package/.github/workflows/ci.yml +42 -0
- package/.github/workflows/release-please.yml +16 -0
- package/.nvmrc +1 -0
- package/CHANGELOG.md +31 -0
- package/LICENSE +674 -0
- package/assets/styles/buckram.scss +1 -1
- package/assets/styles/components/_colors.scss +8 -8
- package/assets/styles/components/_specials.scss +1 -0
- package/assets/styles/components/media/_images.scss +1 -1
- package/assets/styles/components/pages/_back-matter.scss +6 -0
- package/assets/styles/components/pages/_chapters.scss +10 -0
- package/assets/styles/components/pages/_front-matter.scss +6 -0
- package/assets/styles/components/pages/_titles.scss +23 -14
- package/assets/styles/components/section-titles/_back-matter.scss +14 -11
- package/assets/styles/components/section-titles/_chapters.scss +22 -16
- package/assets/styles/components/section-titles/_front-matter.scss +14 -11
- package/assets/styles/components/section-titles/_parts.scss +2 -2
- package/assets/styles/components/specials/_contributors.scss +99 -0
- package/assets/styles/components/specials/_textboxes.scss +15 -3
- package/assets/styles/components/toc/_generic.scss +6 -12
- package/assets/styles/variables/_pages.scss +38 -38
- package/assets/styles/variables/_specials.scss +57 -2
- package/package.json +11 -13
|
@@ -125,7 +125,7 @@ p.wp-caption-text {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
// TITLE PAGE(S) COLOR
|
|
128
|
-
#half-title-page >
|
|
128
|
+
#half-title-page > .title {
|
|
129
129
|
color: if-map-get($half-title-title-color, $type);
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -150,7 +150,7 @@ p.wp-caption-text {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// FRONT MATTER COLOR
|
|
153
|
-
|
|
153
|
+
.front-matter-title {
|
|
154
154
|
color: if-map-get($front-matter-title-color, $type);
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -167,11 +167,11 @@ h1.front-matter-title {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// PART TITLE COLOR
|
|
170
|
-
|
|
170
|
+
.part-number {
|
|
171
171
|
color: if-map-get($part-number-color, $type);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
.part-title {
|
|
175
175
|
color: if-map-get($part-title-color, $type);
|
|
176
176
|
}
|
|
177
177
|
|
|
@@ -181,15 +181,15 @@ h1.part-title {
|
|
|
181
181
|
color: if-map-get($chapter-number-color, $type);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
.chapter-title {
|
|
185
185
|
color: if-map-get($chapter-title-color, $type);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
.chapter-subtitle {
|
|
189
189
|
color: if-map-get($chapter-subtitle-color, $type);
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
.chapter-author {
|
|
193
193
|
color: if-map-get($chapter-author-color, $type);
|
|
194
194
|
}
|
|
195
195
|
|
|
@@ -198,7 +198,7 @@ h2.chapter-author {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
// BACK MATTER TITLE COLOR
|
|
201
|
-
|
|
201
|
+
.back-matter-title {
|
|
202
202
|
color: if-map-get($back-matter-title-color, $type);
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -101,6 +101,12 @@ section.epigraph
|
|
|
101
101
|
text-indent: 0;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
@if $type == 'prince' {
|
|
105
|
+
.front-matter.with-subsections .front-matter-ugc h1 {
|
|
106
|
+
prince-bookmark-level: 2;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
104
110
|
@if $type == 'epub' {
|
|
105
111
|
@media amzn-mobi {
|
|
106
112
|
#copyright-page {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
display: if-map-get($title-half-title-display, $type);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
#half-title-page >
|
|
12
|
+
#half-title-page > .title {
|
|
13
13
|
margin-top: if-map-get($title-half-title-block-margin-top, $type);
|
|
14
14
|
font-family: $title-half-title-font-family;
|
|
15
15
|
font-size: if-map-get($title-half-title-font-size, $type);
|
|
@@ -20,10 +20,13 @@
|
|
|
20
20
|
word-spacing: $title-half-title-word-spacing;
|
|
21
21
|
text-align: $title-half-title-align;
|
|
22
22
|
text-transform: $title-half-title-text-transform;
|
|
23
|
+
@if $type == 'prince' {
|
|
24
|
+
prince-bookmark-level: none;
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
// Title Page
|
|
26
|
-
|
|
29
|
+
.title {
|
|
27
30
|
margin-top: if-map-get($title-title-margin-top, $type);
|
|
28
31
|
margin-right: if-map-get($title-title-margin-right, $type);
|
|
29
32
|
margin-left: if-map-get($title-title-margin-left, $type);
|
|
@@ -38,6 +41,9 @@ h1.title {
|
|
|
38
41
|
text-transform: $title-title-text-transform;
|
|
39
42
|
border-bottom: if-map-get($title-title-border-bottom-width, $type) $title-title-border-bottom-style if-map-get($title-title-border-bottom-color, $type);
|
|
40
43
|
padding-bottom: if-map-get($title-title-padding-bottom, $type);
|
|
44
|
+
@if $type == 'prince' {
|
|
45
|
+
prince-bookmark-level: none;
|
|
46
|
+
}
|
|
41
47
|
@if $type != 'epub' {
|
|
42
48
|
line-height: if-map-get($title-title-line-height, $type);
|
|
43
49
|
}
|
|
@@ -57,7 +63,7 @@ h1.title {
|
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
.subtitle {
|
|
61
67
|
margin-top: if-map-get($title-subtitle-margin-top, $type);
|
|
62
68
|
margin-right: if-map-get($title-subtitle-margin-right, $type);
|
|
63
69
|
margin-left: if-map-get($title-subtitle-margin-left, $type);
|
|
@@ -77,7 +83,7 @@ h2.subtitle {
|
|
|
77
83
|
}
|
|
78
84
|
}
|
|
79
85
|
|
|
80
|
-
|
|
86
|
+
.author {
|
|
81
87
|
margin-top: if-map-get($title-author-margin-top, $type);
|
|
82
88
|
margin-right: if-map-get($title-author-margin-right, $type);
|
|
83
89
|
margin-left: if-map-get($title-author-margin-left, $type);
|
|
@@ -90,6 +96,7 @@ h3.author {
|
|
|
90
96
|
word-spacing: $title-author-word-spacing;
|
|
91
97
|
text-align: $title-author-align;
|
|
92
98
|
text-transform: $title-author-text-transform;
|
|
99
|
+
text-indent: 0;
|
|
93
100
|
border-bottom: if-map-get($title-author-border-bottom-width, $type) $title-author-border-bottom-style if-map-get($title-author-border-bottom-color, $type);
|
|
94
101
|
padding-bottom: if-map-get($title-author-padding-bottom, $type);
|
|
95
102
|
@if $type != 'epub' {
|
|
@@ -108,7 +115,7 @@ div.publisher-logo {
|
|
|
108
115
|
text-align: $title-publisher-logo-text-align;
|
|
109
116
|
}
|
|
110
117
|
|
|
111
|
-
|
|
118
|
+
.publisher {
|
|
112
119
|
display: block;
|
|
113
120
|
float: if-map-get($title-publisher-float, $type);
|
|
114
121
|
margin: if-map-get($title-publisher-margin-top, $type) if-map-get($title-publisher-margin-right, $type) if-map-get($title-publisher-margin-bottom, $type) if-map-get($title-publisher-margin-left, $type);
|
|
@@ -124,11 +131,12 @@ h4.publisher {
|
|
|
124
131
|
word-spacing: $title-publisher-word-spacing;
|
|
125
132
|
text-align: $title-publisher-align;
|
|
126
133
|
text-transform: $title-publisher-text-transform;
|
|
134
|
+
text-indent: 0;
|
|
127
135
|
border-bottom: if-map-get($title-publisher-border-bottom-width, $type) $title-publisher-border-bottom-style if-map-get($title-publisher-border-bottom-color, $type);
|
|
128
136
|
padding-bottom: if-map-get($title-publisher-padding-bottom, $type);
|
|
129
137
|
}
|
|
130
138
|
|
|
131
|
-
|
|
139
|
+
.publisher-city {
|
|
132
140
|
float: if-map-get($title-publisher-city-float, $type);
|
|
133
141
|
margin-top: 0;
|
|
134
142
|
margin-left: if-map-get($title-publisher-city-margin-left, $type);
|
|
@@ -145,11 +153,12 @@ h5.publisher-city {
|
|
|
145
153
|
word-spacing: $title-publisher-city-word-spacing;
|
|
146
154
|
text-align: $title-publisher-city-align;
|
|
147
155
|
text-transform: $title-publisher-city-text-transform;
|
|
156
|
+
text-indent: 0;
|
|
148
157
|
border-bottom: if-map-get($title-publisher-city-border-bottom-width, $type) $title-publisher-city-border-bottom-style if-map-get($title-publisher-city-border-bottom-color, $type);
|
|
149
158
|
padding-bottom: if-map-get($title-publisher-city-padding-bottom, $type);
|
|
150
159
|
}
|
|
151
160
|
|
|
152
|
-
// Prince and EPUB-specific
|
|
161
|
+
// Prince and EPUB-specific display rules
|
|
153
162
|
@mixin titles-prince {
|
|
154
163
|
#title-page {
|
|
155
164
|
> .subtitle,
|
|
@@ -168,40 +177,40 @@ h5.publisher-city {
|
|
|
168
177
|
|
|
169
178
|
@if $type == 'epub' {
|
|
170
179
|
@media amzn-kf8 {
|
|
171
|
-
#title-page
|
|
180
|
+
#title-page .title::before {
|
|
172
181
|
content: '';
|
|
173
182
|
}
|
|
174
183
|
|
|
175
|
-
#title-page
|
|
184
|
+
#title-page .title::after {
|
|
176
185
|
content: '';
|
|
177
186
|
}
|
|
178
187
|
}
|
|
179
188
|
|
|
180
189
|
@media amzn-mobi {
|
|
181
|
-
|
|
190
|
+
.title {
|
|
182
191
|
margin-top: 2em;
|
|
183
192
|
font-size: 2em;
|
|
184
193
|
font-style: normal;
|
|
185
194
|
font-weight: normal;
|
|
186
195
|
}
|
|
187
196
|
|
|
188
|
-
|
|
197
|
+
.subtitle {
|
|
189
198
|
font-size: 1em;
|
|
190
199
|
font-style: normal;
|
|
191
200
|
font-weight: normal;
|
|
192
201
|
}
|
|
193
202
|
|
|
194
|
-
|
|
203
|
+
.author {
|
|
195
204
|
font-style: normal;
|
|
196
205
|
font-weight: normal;
|
|
197
206
|
}
|
|
198
207
|
|
|
199
|
-
|
|
208
|
+
.publisher {
|
|
200
209
|
font-style: normal;
|
|
201
210
|
font-weight: normal;
|
|
202
211
|
}
|
|
203
212
|
|
|
204
|
-
|
|
213
|
+
.publisher-city {
|
|
205
214
|
font-style: normal;
|
|
206
215
|
font-weight: normal;
|
|
207
216
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
display: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
.back-matter-title {
|
|
16
16
|
display: block;
|
|
17
17
|
margin-top: if-map-get($back-matter-title-margin-top, $type);
|
|
18
18
|
margin-bottom: 0;
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
font-style: $back-matter-title-font-style;
|
|
22
22
|
font-weight: $back-matter-title-font-weight;
|
|
23
23
|
hyphens: none;
|
|
24
|
+
@if $type == 'prince' {
|
|
25
|
+
prince-bookmark-level: 1;
|
|
26
|
+
}
|
|
24
27
|
@if $type != 'epub' {
|
|
25
28
|
line-height: if-map-get($back-matter-title-line-height, $type);
|
|
26
29
|
}
|
|
@@ -46,7 +49,7 @@
|
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
.chapter-subtitle {
|
|
50
53
|
display: block;
|
|
51
54
|
margin-bottom: 0;
|
|
52
55
|
font-family: $section-subtitle-font-family;
|
|
@@ -63,7 +66,7 @@
|
|
|
63
66
|
word-spacing: if-map-get($section-subtitle-word-spacing, $type);
|
|
64
67
|
}
|
|
65
68
|
|
|
66
|
-
|
|
69
|
+
.chapter-author {
|
|
67
70
|
display: block;
|
|
68
71
|
margin-bottom: if-map-get($section-author-margin-bottom, $type);
|
|
69
72
|
font-family: $section-author-font-family;
|
|
@@ -78,25 +81,25 @@
|
|
|
78
81
|
word-spacing: if-map-get($section-author-word-spacing, $type);
|
|
79
82
|
}
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
.short-title +
|
|
84
|
+
.back-matter-title + .chapter-subtitle,
|
|
85
|
+
.short-title + .chapter-subtitle {
|
|
83
86
|
margin-top: if-map-get($section-title-subtitle-spacing, $type);
|
|
84
87
|
}
|
|
85
88
|
|
|
86
|
-
|
|
87
|
-
.short-title +
|
|
89
|
+
.back-matter-title + .chapter-author,
|
|
90
|
+
.short-title + .chapter-author {
|
|
88
91
|
margin-top: if-map-get($section-title-author-spacing, $type);
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
.chapter-subtitle + .chapter-author {
|
|
92
95
|
margin-top: if-map-get($section-subtitle-author-spacing, $type);
|
|
93
96
|
}
|
|
94
97
|
|
|
95
|
-
|
|
98
|
+
.back-matter-title:last-child {
|
|
96
99
|
margin-bottom: if-map-get($back-matter-title-margin-bottom, $type);
|
|
97
100
|
}
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
.chapter-subtitle:last-child {
|
|
100
103
|
margin-bottom: if-map-get($section-subtitle-margin-bottom, $type);
|
|
101
104
|
}
|
|
102
105
|
}
|
|
@@ -104,7 +107,7 @@
|
|
|
104
107
|
|
|
105
108
|
@if $type == 'epub' {
|
|
106
109
|
@media amzn-mobi {
|
|
107
|
-
|
|
110
|
+
.back-matter-title {
|
|
108
111
|
margin-top: 1em;
|
|
109
112
|
margin-bottom: 1em;
|
|
110
113
|
font-size: 1.3em;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.chapter-title-wrap {
|
|
9
9
|
margin: if-map-get($section-header-margin-top, $type) if-map-get($section-header-margin-right, $type) if-map-get($section-header-margin-bottom, $type) if-map-get($section-header-margin-left, $type);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
.chapter-title {
|
|
12
12
|
border-bottom: if-map-get($chapter-title-border-bottom-width, $type) $chapter-title-border-bottom-style if-map-get($chapter-title-border-bottom-color, $type);
|
|
13
13
|
padding-bottom: if-map-get($chapter-title-padding-bottom, $type);
|
|
14
14
|
display: $chapter-title-display;
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
.chapter-subtitle {
|
|
86
86
|
display: block;
|
|
87
87
|
margin-bottom: 0;
|
|
88
88
|
font-family: $section-subtitle-font-family;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
word-spacing: if-map-get($section-subtitle-word-spacing, $type);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
.chapter-author {
|
|
103
103
|
display: block;
|
|
104
104
|
margin-bottom: if-map-get($section-author-margin-bottom, $type);
|
|
105
105
|
font-family: $section-author-font-family;
|
|
@@ -114,28 +114,34 @@
|
|
|
114
114
|
word-spacing: if-map-get($section-author-word-spacing, $type);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
.short-title +
|
|
117
|
+
.chapter-title + .chapter-subtitle,
|
|
118
|
+
.short-title + .chapter-subtitle {
|
|
119
119
|
margin-top: if-map-get($section-title-subtitle-spacing, $type);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
.short-title +
|
|
122
|
+
.chapter-title + .chapter-author,
|
|
123
|
+
.short-title + .chapter-author {
|
|
124
124
|
margin-top: if-map-get($section-title-author-spacing, $type);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
.chapter-subtitle + .chapter-author {
|
|
128
128
|
margin-top: if-map-get($section-subtitle-author-spacing, $type);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
.chapter-title:last-child {
|
|
132
132
|
margin-bottom: if-map-get($section-title-margin-bottom, $type);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
.chapter-subtitle:last-child {
|
|
136
136
|
margin-bottom: if-map-get($section-subtitle-margin-bottom, $type);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
@if $type == 'prince' {
|
|
141
|
+
div.part ~ .chapter .chapter-title {
|
|
142
|
+
prince-bookmark-level: 2;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
139
145
|
}
|
|
140
146
|
|
|
141
147
|
.aphorism,
|
|
@@ -177,7 +183,7 @@ blockquote.aphorism {
|
|
|
177
183
|
margin-bottom: 0;
|
|
178
184
|
}
|
|
179
185
|
|
|
180
|
-
|
|
186
|
+
.chapter-number {
|
|
181
187
|
margin-top: 1em;
|
|
182
188
|
margin-bottom: 1em;
|
|
183
189
|
font-size: 1.2em;
|
|
@@ -186,7 +192,7 @@ blockquote.aphorism {
|
|
|
186
192
|
text-align: center;
|
|
187
193
|
}
|
|
188
194
|
|
|
189
|
-
|
|
195
|
+
.chapter-title {
|
|
190
196
|
margin-top: 1em;
|
|
191
197
|
margin-bottom: 1em;
|
|
192
198
|
font-size: 1.5em;
|
|
@@ -195,7 +201,7 @@ blockquote.aphorism {
|
|
|
195
201
|
text-align: center;
|
|
196
202
|
}
|
|
197
203
|
|
|
198
|
-
|
|
204
|
+
.chapter-subtitle {
|
|
199
205
|
margin-top: 0.5em;
|
|
200
206
|
margin-bottom: 0.5em;
|
|
201
207
|
font-size: 0.9em;
|
|
@@ -204,7 +210,7 @@ blockquote.aphorism {
|
|
|
204
210
|
text-align: center;
|
|
205
211
|
}
|
|
206
212
|
|
|
207
|
-
|
|
213
|
+
.chapter-author {
|
|
208
214
|
margin-top: 0.5em;
|
|
209
215
|
margin-bottom: 0.5em;
|
|
210
216
|
font-size: 0.8em;
|
|
@@ -215,11 +221,11 @@ blockquote.aphorism {
|
|
|
215
221
|
}
|
|
216
222
|
|
|
217
223
|
@media amzn-kf8 {
|
|
218
|
-
.chapter-title-wrap
|
|
224
|
+
.chapter-title-wrap .chapter-title::before {
|
|
219
225
|
content: '';
|
|
220
226
|
}
|
|
221
227
|
|
|
222
|
-
.chapter-title-wrap
|
|
228
|
+
.chapter-title-wrap .chapter-title::after {
|
|
223
229
|
content: '';
|
|
224
230
|
}
|
|
225
231
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
display: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
.front-matter-title {
|
|
16
16
|
display: block;
|
|
17
17
|
margin-top: if-map-get($front-matter-title-margin-top, $type);
|
|
18
18
|
margin-bottom: 0;
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
letter-spacing: if-map-get($front-matter-title-letter-spacing, $type);
|
|
26
26
|
word-spacing: if-map-get($front-matter-title-word-spacing, $type);
|
|
27
27
|
hyphens: none;
|
|
28
|
+
@if $type == 'prince' {
|
|
29
|
+
prince-bookmark-level: 1;
|
|
30
|
+
}
|
|
28
31
|
@if $type != 'epub' {
|
|
29
32
|
line-height: if-map-get($front-matter-title-line-height, $type);
|
|
30
33
|
}
|
|
@@ -46,7 +49,7 @@
|
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
|
|
52
|
+
.chapter-subtitle {
|
|
50
53
|
display: block;
|
|
51
54
|
margin-bottom: 0;
|
|
52
55
|
font-family: $section-subtitle-font-family;
|
|
@@ -63,7 +66,7 @@
|
|
|
63
66
|
word-spacing: if-map-get($section-subtitle-word-spacing, $type);
|
|
64
67
|
}
|
|
65
68
|
|
|
66
|
-
|
|
69
|
+
.chapter-author {
|
|
67
70
|
display: block;
|
|
68
71
|
margin-bottom: if-map-get($section-author-margin-bottom, $type);
|
|
69
72
|
font-family: $section-author-font-family;
|
|
@@ -78,25 +81,25 @@
|
|
|
78
81
|
word-spacing: if-map-get($section-author-word-spacing, $type);
|
|
79
82
|
}
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
.short-title +
|
|
84
|
+
.front-matter-title + .chapter-subtitle,
|
|
85
|
+
.short-title + .chapter-subtitle {
|
|
83
86
|
margin-top: if-map-get($section-title-subtitle-spacing, $type);
|
|
84
87
|
}
|
|
85
88
|
|
|
86
|
-
|
|
87
|
-
.short-title +
|
|
89
|
+
.front-matter-title + .chapter-author,
|
|
90
|
+
.short-title + .chapter-author {
|
|
88
91
|
margin-top: if-map-get($section-title-author-spacing, $type);
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
.chapter-subtitle + .chapter-author {
|
|
92
95
|
margin-top: if-map-get($section-subtitle-author-spacing, $type);
|
|
93
96
|
}
|
|
94
97
|
|
|
95
|
-
|
|
98
|
+
.front-matter-title:last-child {
|
|
96
99
|
margin-bottom: if-map-get($front-matter-title-margin-bottom, $type);
|
|
97
100
|
}
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
.chapter-subtitle:last-child {
|
|
100
103
|
margin-bottom: if-map-get($section-subtitle-margin-bottom, $type);
|
|
101
104
|
}
|
|
102
105
|
}
|
|
@@ -137,7 +140,7 @@
|
|
|
137
140
|
|
|
138
141
|
@if $type == 'epub' {
|
|
139
142
|
@media amzn-mobi {
|
|
140
|
-
|
|
143
|
+
.front-matter-title {
|
|
141
144
|
margin-top: 1em;
|
|
142
145
|
margin-bottom: 1em;
|
|
143
146
|
font-size: 1.4em;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
@if $type == 'epub' {
|
|
73
73
|
@media amzn-mobi {
|
|
74
|
-
|
|
74
|
+
.part-number {
|
|
75
75
|
margin-top: 1em;
|
|
76
76
|
margin-bottom: 1em;
|
|
77
77
|
font-size: 1.3em;
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
text-align: center;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
.part-title {
|
|
84
84
|
margin-top: 1em;
|
|
85
85
|
margin-bottom: 1em;
|
|
86
86
|
font-size: 1.4em;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group specials
|
|
3
|
+
////
|
|
4
|
+
|
|
5
|
+
//============================================================================//
|
|
6
|
+
// Contributors //
|
|
7
|
+
//============================================================================//
|
|
8
|
+
|
|
9
|
+
.contributors {
|
|
10
|
+
.chapter-authors, .book-contributors {
|
|
11
|
+
margin-top: $contributors-margin-top;
|
|
12
|
+
font-family: $body-font-family;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.about-authors {
|
|
16
|
+
margin-top: $contributors-margin-top;
|
|
17
|
+
margin-bottom: $contributors-margin-bottom;
|
|
18
|
+
text-align: $contributors-text-align;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.contributor {
|
|
22
|
+
margin-top: $contributors-margin-top;
|
|
23
|
+
|
|
24
|
+
&__type {
|
|
25
|
+
margin-top: $contributors-margin-top;
|
|
26
|
+
margin-bottom: $contributors-margin-bottom;
|
|
27
|
+
}
|
|
28
|
+
// TODO: replace clearfix hack with better CSS Grid solution when Prince supports grid layout
|
|
29
|
+
&__name__and__links:after {
|
|
30
|
+
content: "";
|
|
31
|
+
display: table;
|
|
32
|
+
clear: both;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__profile__picture {
|
|
36
|
+
float: $contributor-profile-picture-float;
|
|
37
|
+
margin: $contributor-profile-picture-margin;
|
|
38
|
+
width: 33%;
|
|
39
|
+
max-width: 400px;
|
|
40
|
+
border-radius: $contributor-profile-picture-border-radius;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__name__and__links > div {
|
|
44
|
+
float: $contributor-profile-picture-float;
|
|
45
|
+
|
|
46
|
+
&.contributor__info__small {
|
|
47
|
+
width: 67%;
|
|
48
|
+
padding-left: 1.5rem;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.contributor__info__large {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__name {
|
|
58
|
+
font-family: $h1-font-family;
|
|
59
|
+
font-size: $h3-font-size;
|
|
60
|
+
text-indent: $contributors-text-indent;
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__institution {
|
|
65
|
+
font-family: $h1-font-family;
|
|
66
|
+
text-transform: $contributor-institution-text-transform;
|
|
67
|
+
text-indent: $contributors-text-indent;
|
|
68
|
+
margin: $contributor-link-margin-top;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__website {
|
|
72
|
+
margin-top: $contributor-link-margin-top;
|
|
73
|
+
text-indent: $contributors-text-indent;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__links {
|
|
77
|
+
margin-top: if-map-get($contributor-links-margin-top, $type);
|
|
78
|
+
display: inline-block;
|
|
79
|
+
|
|
80
|
+
a {
|
|
81
|
+
text-decoration: if-map-get($contributor-links-text-decoration, $type);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
svg {
|
|
85
|
+
width: 45px;
|
|
86
|
+
height: 45px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&__link {
|
|
91
|
+
margin-top: $contributor-link-margin-top;
|
|
92
|
+
text-indent: $contributors-text-indent;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&__bio {
|
|
96
|
+
margin-top: $contributor-bio-margin-top;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -180,20 +180,32 @@
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
%learning-objectives {
|
|
184
|
+
@include educational-textbox($learning-objectives-header-color, $learning-objectives-header-background, $learning-objectives-color, $learning-objectives-background);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
%key-takeaways {
|
|
188
|
+
@include educational-textbox($key-takeaways-header-color, $key-takeaways-header-background, $key-takeaways-color, $key-takeaways-background);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
%exercises {
|
|
192
|
+
@include educational-textbox($exercises-header-color, $exercises-header-background, $exercises-color, $exercises-background);
|
|
193
|
+
}
|
|
194
|
+
|
|
183
195
|
.bcc-box {
|
|
184
196
|
@extend .textbox;
|
|
185
197
|
}
|
|
186
198
|
|
|
187
199
|
.bcc-highlight {
|
|
188
|
-
@extend
|
|
200
|
+
@extend %learning-objectives;
|
|
189
201
|
}
|
|
190
202
|
|
|
191
203
|
.bcc-success {
|
|
192
|
-
@extend
|
|
204
|
+
@extend %key-takeaways;
|
|
193
205
|
}
|
|
194
206
|
|
|
195
207
|
.bcc-info {
|
|
196
|
-
@extend
|
|
208
|
+
@extend %exercises;
|
|
197
209
|
}
|
|
198
210
|
|
|
199
211
|
.textbox--sidebar {
|