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.
Files changed (58) hide show
  1. package/.idea/buckram.iml +11 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/php.xml +19 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/CHANGELOG.md +26 -0
  6. package/README.md +4 -4
  7. package/assets/styles/buckram.scss +1 -1
  8. package/assets/styles/components/_colors.scss +5 -5
  9. package/assets/styles/components/_utilities.scss +49 -125
  10. package/assets/styles/components/elements/_blockquotes.scss +3 -2
  11. package/assets/styles/components/elements/_body.scss +2 -2
  12. package/assets/styles/components/elements/_headings.scss +16 -15
  13. package/assets/styles/components/elements/_links.scss +3 -5
  14. package/assets/styles/components/elements/_lists.scss +22 -22
  15. package/assets/styles/components/elements/_miscellaneous.scss +7 -5
  16. package/assets/styles/components/elements/_paragraphs.scss +4 -20
  17. package/assets/styles/components/elements/_tables.scss +8 -5
  18. package/assets/styles/components/media/_audio.scss +1 -1
  19. package/assets/styles/components/media/_images.scss +5 -9
  20. package/assets/styles/components/media/_interactive-content.scss +2 -1
  21. package/assets/styles/components/media/_video.scss +1 -1
  22. package/assets/styles/components/pages/_back-matter.scss +1 -0
  23. package/assets/styles/components/pages/_chapters.scss +1 -0
  24. package/assets/styles/components/pages/_front-matter.scss +2 -0
  25. package/assets/styles/components/pages/_titles.scss +3 -1
  26. package/assets/styles/components/section-titles/_back-matter.scss +3 -1
  27. package/assets/styles/components/section-titles/_chapters.scss +8 -2
  28. package/assets/styles/components/section-titles/_front-matter.scss +5 -2
  29. package/assets/styles/components/section-titles/_generic.scss +3 -2
  30. package/assets/styles/components/section-titles/_parts.scss +2 -1
  31. package/assets/styles/components/specials/_columns.scss +4 -0
  32. package/assets/styles/components/specials/_contributors.scss +4 -3
  33. package/assets/styles/components/specials/_dropcaps.scss +5 -7
  34. package/assets/styles/components/specials/_floats.scss +2 -2
  35. package/assets/styles/components/specials/_footnotes.scss +9 -16
  36. package/assets/styles/components/specials/_glossaryterms.scss +2 -2
  37. package/assets/styles/components/specials/_miscellaneous.scss +4 -8
  38. package/assets/styles/components/specials/_pullquotes.scss +7 -2
  39. package/assets/styles/components/specials/_separators.scss +3 -2
  40. package/assets/styles/components/specials/_textboxes.scss +6 -8
  41. package/assets/styles/components/structure/_blank.scss +18 -18
  42. package/assets/styles/components/structure/_content-strings.scss +2 -2
  43. package/assets/styles/components/structure/_general.scss +2 -2
  44. package/assets/styles/components/structure/_mixins.scss +168 -136
  45. package/assets/styles/components/structure/_numbering.scss +2 -2
  46. package/assets/styles/components/structure/_recto-verso.scss +2 -2
  47. package/assets/styles/components/structure/_running-content.scss +5 -10
  48. package/assets/styles/components/toc/_generic.scss +124 -6
  49. package/assets/styles/variables/_colors.scss +65 -16
  50. package/assets/styles/variables/_elements.scss +20 -35
  51. package/assets/styles/variables/_media.scss +1 -1
  52. package/assets/styles/variables/_pages.scss +7 -7
  53. package/assets/styles/variables/_section-titles.scss +8 -8
  54. package/assets/styles/variables/_specials.scss +3 -2
  55. package/assets/styles/variables/_structure.scss +18 -13
  56. package/assets/styles/variables/_toc.scss +4 -4
  57. package/package.json +5 -4
  58. package/assets/styles/components/toc/_mobi.scss +0 -109
@@ -2,9 +2,9 @@
2
2
  /// @group structure
3
3
  ////
4
4
 
5
- //========================
5
+ // ========================
6
6
  // Page Structure Mixins
7
- //========================
7
+ // ========================
8
8
 
9
9
  @import '../utilities';
10
10
 
@@ -15,48 +15,39 @@
15
15
  'front-matter:#{$page-position}' {
16
16
  @page #{$page-type} {
17
17
  @if $page-position == 'first:left' {
18
- @if (if-map-get($content-position, left)) {
19
- #{if-map-get($content-position, left)} {
20
- @if head-or-foot($content-position) == 'head' {
18
+ @if if-map-get($content-position, left) {
19
+ @include position(if-map-get($content-position, left)) {
20
+ @if head-or-foot(if-map-get($content-position, left)) == 'head' {
21
21
  padding-top: $runninghead-padding-top;
22
- }
23
-
24
- @else if head-or-foot($content-position) == 'foot' {
22
+ } @else if head-or-foot(if-map-get($content-position, left)) == 'foot' {
25
23
  padding-bottom: $runningfoot-padding-bottom;
26
24
  }
27
25
 
28
26
  @include front-matter-page-number;
29
27
  }
30
28
  }
31
- }
32
-
33
- @else if $page-position == 'first:right' {
34
- @if (if-map-get($content-position, right)) {
35
- #{if-map-get($content-position, right)} {
36
- @if head-or-foot($content-position) == 'head' {
29
+ } @else if $page-position == 'first:right' {
30
+ @if if-map-get($content-position, right) {
31
+ @include position(if-map-get($content-position, right)) {
32
+ @if head-or-foot(if-map-get($content-position, right)) == 'head' {
37
33
  padding-top: $runninghead-padding-top;
38
- }
39
-
40
- @else if head-or-foot($content-position) == 'foot' {
34
+ } @else if head-or-foot(if-map-get($content-position, right)) == 'foot' {
41
35
  padding-bottom: $runningfoot-padding-bottom;
42
36
  }
43
37
 
44
38
  @include front-matter-page-number;
45
39
  }
46
40
  }
47
- }
48
- @else {
49
- #{$content-position} {
50
- @if head-or-foot($content-position) == 'head' {
51
- padding-top: $runninghead-padding-top;
52
- }
41
+ } @else {
42
+ @include position($content-position) {
43
+ @if head-or-foot($content-position) == 'head' {
44
+ padding-top: $runninghead-padding-top;
45
+ } @else if head-or-foot($content-position) == 'foot' {
46
+ padding-bottom: $runningfoot-padding-bottom;
47
+ }
53
48
 
54
- @else if head-or-foot($content-position) == 'foot' {
55
- padding-bottom: $runningfoot-padding-bottom;
49
+ @include front-matter-page-number;
56
50
  }
57
-
58
- @include front-matter-page-number;
59
- }
60
51
  }
61
52
  }
62
53
  }
@@ -69,47 +60,40 @@
69
60
  'back-matter:#{$page-position}' {
70
61
  @page #{$page-type} {
71
62
  @if $page-position == 'first:left' {
72
- @if (if-map-get($content-position, left)) {
73
- #{if-map-get($content-position, left)} {
74
- @if head-or-foot($content-position) == 'head' {
63
+ @if if-map-get($content-position, left) {
64
+ @include position(if-map-get($content-position, left)) {
65
+ @if head-or-foot(if-map-get($content-position, left)) == 'head' {
75
66
  padding-top: $runninghead-padding-top;
76
- }
77
-
78
- @else if head-or-foot($content-position) == 'foot' {
67
+ } @else if head-or-foot(if-map-get($content-position, left)) == 'foot' {
79
68
  padding-bottom: $runningfoot-padding-bottom;
80
69
  }
81
70
 
82
71
  @include page-number;
83
72
  }
84
73
  }
85
- }
86
-
87
- @else if $page-position == 'first:right' {
88
- @if (if-map-get($content-position, right)) {
89
- #{if-map-get($content-position, right)} {
90
- @if head-or-foot($content-position) == 'head' {
74
+ } @else if $page-position == 'first:right' {
75
+ @if if-map-get($content-position, right) {
76
+ @include position(if-map-get($content-position, right)) {
77
+ @if head-or-foot(if-map-get($content-position, right)) == 'head' {
91
78
  padding-top: $runninghead-padding-top;
92
- }
93
-
94
- @else if head-or-foot($content-position) == 'foot' {
79
+ } @else if head-or-foot(if-map-get($content-position, right)) == 'foot' {
95
80
  padding-bottom: $runningfoot-padding-bottom;
96
81
  }
97
82
 
98
83
  @include page-number;
99
84
  }
100
85
  }
101
- }
102
- @else {
103
- #{$content-position} {
104
- @if head-or-foot($content-position) == 'head' {
105
- padding-top: $runninghead-padding-top;
106
- }
86
+ } @else {
87
+ @if $content-position {
88
+ @include position($content-position) {
89
+ @if head-or-foot($content-position) == 'head' {
90
+ padding-top: $runninghead-padding-top;
91
+ } @else if head-or-foot($content-position) == 'foot' {
92
+ padding-bottom: $runningfoot-padding-bottom;
93
+ }
107
94
 
108
- @else if head-or-foot($content-position) == 'foot' {
109
- padding-bottom: $runningfoot-padding-bottom;
95
+ @include page-number;
110
96
  }
111
-
112
- @include page-number;
113
97
  }
114
98
  }
115
99
  }
@@ -136,6 +120,91 @@
136
120
  color: if-map-get($page-number-color, $type);
137
121
  }
138
122
 
123
+ @mixin position($position) {
124
+ @if $position {
125
+ @if $position == '@top-left-corner' {
126
+ @top-left-corner {
127
+ @content;
128
+ }
129
+ }
130
+ @if $position == '@top-left' {
131
+ @top-left {
132
+ @content;
133
+ }
134
+ }
135
+ @if $position == '@top-center' {
136
+ @top-center {
137
+ @content;
138
+ }
139
+ }
140
+ @if $position == '@top-right' {
141
+ @top-right {
142
+ @content;
143
+ }
144
+ }
145
+ @if $position == '@top-right-corner' {
146
+ @top-right-corner {
147
+ @content;
148
+ }
149
+ }
150
+ @if $position == "@left-top" {
151
+ @left-top {
152
+ @content;
153
+ }
154
+ }
155
+ @if $position == "@left-middle" {
156
+ @left-middle {
157
+ @content;
158
+ }
159
+ }
160
+ @if $position == "@left-bottom" {
161
+ @left-bottom {
162
+ @content;
163
+ }
164
+ }
165
+ @if $position == "@right-top" {
166
+ @right-top {
167
+ @content;
168
+ }
169
+ }
170
+ @if $position == "@right-middle" {
171
+ @right-middle {
172
+ @content;
173
+ }
174
+ }
175
+ @if $position == "@right-bottom" {
176
+ @right-bottom {
177
+ @content;
178
+ }
179
+ }
180
+ @if $position == '@bottom-left-corner' {
181
+ @bottom-left-corner {
182
+ @content;
183
+ }
184
+ }
185
+ @if $position == '@bottom-left' {
186
+ @bottom-left {
187
+ @content;
188
+ }
189
+ }
190
+ @if $position == '@bottom-center' {
191
+ @bottom-center {
192
+ @content;
193
+ }
194
+ }
195
+ @if $position == '@bottom-right' {
196
+ @bottom-right {
197
+ @content;
198
+ }
199
+ }
200
+ @if $position == '@bottom-right-corner' {
201
+ @bottom-right-corner {
202
+ @content;
203
+ }
204
+ }
205
+ }
206
+ }
207
+
139
208
  // Running Content
140
209
  /// @param {string} $page-position - The page position.
141
210
  /// @param {string|map} $content-position - The running content position.
@@ -149,8 +218,8 @@
149
218
  'back-matter:#{$page-position}' {
150
219
  @page #{$page-type} {
151
220
  @if $page-position == 'first:left' {
152
- @if (if-map-get($content-position, left)) {
153
- #{if-map-get($content-position, left)} {
221
+ @if if-map-get($content-position, left) {
222
+ @include position(if-map-get($content-position, left)) {
154
223
  padding-top: $runninghead-padding-top;
155
224
  font-family: $runninghead-left-font-family;
156
225
  font-size: $runninghead-left-font-size;
@@ -163,11 +232,9 @@
163
232
  text-transform: $runninghead-left-text-transform;
164
233
  }
165
234
  }
166
- }
167
-
168
- @else if $page-position == 'first:right' {
169
- @if (if-map-get($content-position, right)) {
170
- #{if-map-get($content-position, right)} {
235
+ } @else if $page-position == 'first:right' {
236
+ @if if-map-get($content-position, right) {
237
+ @include position(if-map-get($content-position, right)) {
171
238
  padding-top: $runninghead-padding-top;
172
239
  font-family: $runninghead-right-font-family;
173
240
  font-size: $runninghead-right-font-size;
@@ -180,9 +247,8 @@
180
247
  text-transform: $runninghead-right-text-transform;
181
248
  }
182
249
  }
183
- }
184
- @else {
185
- #{$content-position} {
250
+ } @else {
251
+ @include position($content-position) {
186
252
  padding-top: $runninghead-padding-top;
187
253
 
188
254
  @if $page-position == 'left' {
@@ -195,9 +261,7 @@
195
261
  word-spacing: $runninghead-left-word-spacing;
196
262
  color: if-map-get($runninghead-color, $type);
197
263
  text-transform: $runninghead-left-text-transform;
198
- }
199
-
200
- @else if $page-position == 'right' {
264
+ } @else if $page-position == 'right' {
201
265
  font-family: $runninghead-right-font-family;
202
266
  font-size: $runninghead-right-font-size;
203
267
  font-style: $runninghead-right-font-style;
@@ -227,8 +291,8 @@
227
291
  'back-matter:#{$page-position}' {
228
292
  @page #{$page-type} {
229
293
  @if $page-position == 'first:left' {
230
- @if (if-map-get($content-position, left)) {
231
- #{if-map-get($content-position, left)} {
294
+ @if if-map-get($content-position, left) {
295
+ @include position(if-map-get($content-position, left)) {
232
296
  padding-bottom: $runningfoot-padding-bottom;
233
297
  font-family: $runningfoot-left-font-family;
234
298
  font-size: $runningfoot-left-font-size;
@@ -241,11 +305,9 @@
241
305
  text-transform: $runningfoot-left-text-transform;
242
306
  }
243
307
  }
244
- }
245
-
246
- @else if $page-position == 'first:right' {
247
- @if (if-map-get($content-position, right)) {
248
- #{if-map-get($content-position, right)} {
308
+ } @else if $page-position == 'first:right' {
309
+ @if if-map-get($content-position, right) {
310
+ @include position(if-map-get($content-position, right)) {
249
311
  padding-bottom: $runningfoot-padding-bottom;
250
312
  font-family: $runningfoot-right-font-family;
251
313
  font-size: $runningfoot-right-font-size;
@@ -258,9 +320,8 @@
258
320
  text-transform: $runningfoot-right-text-transform;
259
321
  }
260
322
  }
261
- }
262
- @else {
263
- #{$content-position} {
323
+ } @else {
324
+ @include position($content-position) {
264
325
  padding-bottom: $runningfoot-padding-bottom;
265
326
 
266
327
  @if $page-position == 'left' {
@@ -273,9 +334,7 @@
273
334
  word-spacing: $runningfoot-left-word-spacing;
274
335
  color: if-map-get($runningfoot-color, $type);
275
336
  text-transform: $runningfoot-left-text-transform;
276
- }
277
-
278
- @else if $page-position == 'right' {
337
+ } @else if $page-position == 'right' {
279
338
  font-family: $runningfoot-right-font-family;
280
339
  font-size: $runningfoot-right-font-size;
281
340
  font-style: $runningfoot-right-font-style;
@@ -302,137 +361,114 @@
302
361
  @if $numbering-position == $running-content-position {
303
362
  @if $page-position != 'first' {
304
363
  @page #{$page-type}:#{$page-position} {
305
- #{$running-content-position} {
364
+ @include position($running-content-position) {
306
365
  @if $page-position == 'left' {
307
366
  @if $running-content-position == '@top-right'
308
367
  or $running-content-position == '@top-right-corner'
309
368
  or $running-content-position == '@bottom-right'
310
369
  or $running-content-position == '@bottom-right-corner' {
311
370
  content: if-map-get($left-running-content, $page-type) $left-running-separator if-map-get($left-page-number, $page-type);
312
- }
313
-
314
- @else {
371
+ } @else {
315
372
  content: if-map-get($left-page-number, $page-type) $left-running-separator if-map-get($left-running-content, $page-type);
316
373
  }
317
- }
318
-
319
- @else if $page-position == 'right' {
374
+ } @else if $page-position == 'right' {
320
375
  @if $running-content-position == '@top-left'
321
376
  or $running-content-position == '@top-left-corner'
322
377
  or $running-content-position == '@bottom-left'
323
378
  or $running-content-position == '@bottom-left-corner' {
324
379
  content: if-map-get($right-page-number, $page-type) $right-running-separator if-map-get($right-running-content, $page-type);
325
- }
326
-
327
- @else {
380
+ } @else {
328
381
  content: if-map-get($right-running-content, $page-type) $right-running-separator if-map-get($left-page-number, $page-type);
329
382
  }
330
383
  }
331
384
  }
332
385
  }
333
- }
334
- @else {
386
+ } @else {
335
387
  @page #{$page-type}:first:right {
336
- #{if-map-get($running-content-position, right)} {
388
+ @include position(if-map-get($running-content-position, right)) {
337
389
  @if if-map-get($running-content-position, right) == '@bottom-left'
338
390
  or if-map-get($running-content-position, right) == '@bottom-left-corner'
339
391
  or if-map-get($running-content-position, right) == '@left-bottom' {
340
392
  content: if-map-get($right-page-number, $page-type) $right-running-separator if-map-get($right-running-content, $page-type);
341
- }
342
-
343
- @else {
393
+ } @else {
344
394
  content: if-map-get($right-running-content, $page-type) $right-running-separator if-map-get($right-page-number, $page-type);
345
395
  }
346
396
  }
347
397
  }
348
398
 
349
399
  @page #{$page-type}:first:left {
350
- #{if-map-get($running-content-position, left)} {
400
+ @include position(if-map-get($running-content-position, left)) {
351
401
  @if if-map-get($running-content-position, left) == '@bottom-right'
352
402
  or if-map-get($running-content-position, left) == '@bottom-right-corner'
353
403
  or if-map-get($running-content-position, left) == '@right-bottom' {
354
404
  content: if-map-get($right-running-content, $page-type) $right-running-separator if-map-get($right-page-number, $page-type);
355
- }
356
-
357
- @else {
405
+ } @else {
358
406
  content: if-map-get($right-page-number, $page-type) $right-running-separator if-map-get($right-running-content, $page-type);
359
407
  }
360
408
  }
361
409
  }
362
410
  }
363
- }
364
- @else {
411
+ } @else {
365
412
  @if $page-position != 'first' {
366
413
  @page #{$page-type}:#{$page-position} {
367
- #{$running-content-position} {
414
+ @include position($running-content-position) {
368
415
  @if $page-position == 'left' {
369
416
  content: if-map-get($left-running-content, $page-type);
370
- }
371
-
372
- @else if $page-position == 'right' {
417
+ } @else if $page-position == 'right' {
373
418
  content: if-map-get($right-running-content, $page-type);
374
419
  }
375
420
  }
376
421
 
377
- #{$numbering-position} {
422
+ @include position($numbering-position) {
378
423
  @if $page-position == 'left' {
379
424
  content: if-map-get($left-page-number, $page-type);
380
- }
381
-
382
- @else if $page-position == 'right' {
425
+ } @else if $page-position == 'right' {
383
426
  content: if-map-get($right-page-number, $page-type);
384
427
  }
385
428
  }
386
429
 
387
430
  }
388
- }
389
- @else {
431
+ } @else {
390
432
  @page #{$page-type}:first:right {
391
- #{if-map-get($running-content-position, right)} {
433
+ @include position(if-map-get($running-content-position, right)) {
392
434
  content: if-map-get($right-running-content, $page-type);
393
435
  }
394
- #{if-map-get($numbering-position, right)} {
436
+ @include position(if-map-get($numbering-position, right)) {
395
437
  content: if-map-get($right-page-number, $page-type);
396
438
  }
397
439
  }
398
440
 
399
441
  @page #{$page-type}:first:left {
400
- #{if-map-get($running-content-position, left)} {
442
+ @include position(if-map-get($running-content-position, left)) {
401
443
  content: if-map-get($left-running-content, $page-type);
402
444
  }
403
- #{if-map-get($numbering-position, left)} {
445
+ @include position(if-map-get($numbering-position, left)) {
404
446
  content: if-map-get($left-page-number, $page-type);
405
447
  }
406
448
  }
407
449
  }
408
450
  }
409
- }
410
-
411
- @else {
451
+ } @else {
412
452
  @if $numbering-position {
413
453
  @if $page-position != 'first' {
414
454
  @page #{$page-type}:#{$page-position} {
415
- #{$numbering-position} {
455
+ @include position($numbering-position) {
416
456
  @if $page-position == 'left' {
417
457
  content: if-map-get($left-page-number, $page-type);
418
- }
419
-
420
- @else if $page-position == 'right' {
458
+ } @else if $page-position == 'right' {
421
459
  content: if-map-get($right-page-number, $page-type);
422
460
  }
423
461
  }
424
462
  }
425
- }
426
-
427
- @else {
463
+ } @else {
428
464
  @page #{$page-type}:first:right {
429
- #{if-map-get($numbering-position, right)} {
465
+ @include position(if-map-get($numbering-position, right)) {
430
466
  content: if-map-get($right-page-number, $page-type);
431
467
  }
432
468
  }
433
469
 
434
470
  @page #{$page-type}:first:left {
435
- #{if-map-get($numbering-position, left)} {
471
+ @include position(if-map-get($numbering-position, left)) {
436
472
  content: if-map-get($left-page-number, $page-type);
437
473
  }
438
474
  }
@@ -442,27 +478,23 @@
442
478
  @if $running-content-position {
443
479
  @if $page-position != 'first' {
444
480
  @page #{$page-type}:#{$page-position} {
445
- #{$running-content-position} {
481
+ @include position($running-content-position) {
446
482
  @if $page-position == 'left' {
447
483
  content: if-map-get($left-running-content, $page-type);
448
- }
449
-
450
- @else if $page-position == 'right' {
484
+ } @else if $page-position == 'right' {
451
485
  content: if-map-get($right-running-content, $page-type);
452
486
  }
453
487
  }
454
488
  }
455
- }
456
-
457
- @else {
489
+ } @else {
458
490
  @page #{$page-type}:first:right {
459
- #{if-map-get($running-content-position, right)} {
491
+ @include position(if-map-get($running-content-position, right)) {
460
492
  content: if-map-get($right-running-content, $page-type);
461
493
  }
462
494
  }
463
495
 
464
496
  @page #{$page-type}:first:left {
465
- #{if-map-get($running-content-position, left)} {
497
+ @include position(if-map-get($running-content-position, left)) {
466
498
  content: if-map-get($left-running-content, $page-type);
467
499
  }
468
500
  }
@@ -2,9 +2,9 @@
2
2
  /// @group structure
3
3
  ////
4
4
 
5
- //============================================================================//
5
+ // ============================================================================//
6
6
  // Page Numbering //
7
- //============================================================================//
7
+ // ============================================================================//
8
8
 
9
9
  #half-title-page {
10
10
  page: halftitle-page;
@@ -2,9 +2,9 @@
2
2
  /// @group structure
3
3
  ////
4
4
 
5
- //============================================================================//
5
+ // ============================================================================//
6
6
  // Recto-Verso //
7
- //============================================================================//
7
+ // ============================================================================//
8
8
 
9
9
  // Governs how pages open.
10
10
 
@@ -2,9 +2,9 @@
2
2
  /// @group structure
3
3
  ////
4
4
 
5
- //===================================
5
+ // ===================================
6
6
  // Running Content
7
- //===================================
7
+ // ===================================
8
8
 
9
9
  // This file builds generic "page", and populates it with running content & page numbers
10
10
  // in the places we want them, using the CSS3 margin box locations.
@@ -21,7 +21,6 @@ $left-running-content: (
21
21
  chapter: $chapter-running-content-left,
22
22
  back-matter: $back-matter-running-content-left
23
23
  ) !default;
24
-
25
24
  $right-running-content: (
26
25
  front-matter: $front-matter-running-content-right,
27
26
  introduction: $introduction-running-content-right,
@@ -30,7 +29,6 @@ $right-running-content: (
30
29
  chapter: $chapter-running-content-right,
31
30
  back-matter: $back-matter-running-content-right
32
31
  ) !default;
33
-
34
32
  $left-page-number: (
35
33
  front-matter: $front-matter-page-number-left,
36
34
  introduction: $introduction-page-number-left,
@@ -39,7 +37,6 @@ $left-page-number: (
39
37
  chapter: $chapter-page-number-left,
40
38
  back-matter: $back-matter-page-number-left
41
39
  ) !default;
42
-
43
40
  $right-page-number: (
44
41
  front-matter: $front-matter-page-number-right,
45
42
  introduction: $introduction-page-number-right,
@@ -69,9 +66,7 @@ $right-page-number: (
69
66
  @include runninghead('first:right', convert-position('first', $first-running-content-position));
70
67
  @include runninghead('left', convert-position('left', $running-content-position));
71
68
  @include runninghead('right', convert-position('right', $running-content-position));
72
- }
73
-
74
- @else if head-or-foot($running-content-position) == 'foot' {
69
+ } @else if head-or-foot($running-content-position) == 'foot' {
75
70
  @include runningfoot('first:left', convert-position('first', $first-running-content-position));
76
71
  @include runningfoot('first:right', convert-position('first', $first-running-content-position));
77
72
  @include runningfoot('left', convert-position('left', $running-content-position));
@@ -81,8 +76,8 @@ $right-page-number: (
81
76
  // Now, we've defined our variables.
82
77
  // so we can define what a generic page looks like, using the variable settings above
83
78
  // so let's make a generic page structure mixin (left page & right page)
84
- //note we're using if-map-get, which will enable us to pull in the right variable
85
- //depending on section type
79
+ // note we're using if-map-get, which will enable us to pull in the right variable
80
+ // depending on section type
86
81
 
87
82
  // Front Matter
88
83
  @page front-matter:first {