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
@@ -466,8 +466,7 @@ $h6-letter-spacing: $hx-word-spacing !default;
466
466
  /// @type String | Map
467
467
  /// @since 1.2.0
468
468
  $h6-word-spacing: $hx-word-spacing !default;
469
-
470
- $_heading-letter-spacing: (
469
+ $heading-letter-spacing-map: (
471
470
  h1: $h1-letter-spacing,
472
471
  h2: $h2-letter-spacing,
473
472
  h3: $h3-letter-spacing,
@@ -475,8 +474,7 @@ $_heading-letter-spacing: (
475
474
  h5: $h5-letter-spacing,
476
475
  h6: $h6-letter-spacing
477
476
  );
478
-
479
- $_heading-word-spacing: (
477
+ $heading-word-spacing-map: (
480
478
  h1: $h1-word-spacing,
481
479
  h2: $h2-word-spacing,
482
480
  h3: $h3-word-spacing,
@@ -484,8 +482,7 @@ $_heading-word-spacing: (
484
482
  h5: $h5-word-spacing,
485
483
  h6: $h6-word-spacing
486
484
  );
487
-
488
- $_heading-border-bottom-style: (
485
+ $heading-border-bottom-style-map: (
489
486
  h1: $h1-border-bottom-style,
490
487
  h2: $h2-border-bottom-style,
491
488
  h3: $h3-border-bottom-style,
@@ -493,8 +490,7 @@ $_heading-border-bottom-style: (
493
490
  h5: $h5-border-bottom-style,
494
491
  h6: $h6-border-bottom-style
495
492
  );
496
-
497
- $_heading-border-bottom-width: (
493
+ $heading-border-bottom-width-map: (
498
494
  h1: $h1-border-bottom-width,
499
495
  h2: $h2-border-bottom-width,
500
496
  h3: $h3-border-bottom-width,
@@ -502,8 +498,7 @@ $_heading-border-bottom-width: (
502
498
  h5: $h5-border-bottom-width,
503
499
  h6: $h6-border-bottom-width
504
500
  );
505
-
506
- $_heading-border-bottom-color: (
501
+ $heading-border-bottom-color-map: (
507
502
  h1: $h1-border-bottom-color,
508
503
  h2: $h2-border-bottom-color,
509
504
  h3: $h3-border-bottom-color,
@@ -511,8 +506,7 @@ $_heading-border-bottom-color: (
511
506
  h5: $h5-border-bottom-color,
512
507
  h6: $h6-border-bottom-color
513
508
  );
514
-
515
- $_heading-margin-top: (
509
+ $heading-margin-top-map: (
516
510
  h1: $h1-margin-top,
517
511
  h2: $h2-margin-top,
518
512
  h3: $h3-margin-top,
@@ -520,8 +514,7 @@ $_heading-margin-top: (
520
514
  h5: $h5-margin-top,
521
515
  h6: $h6-margin-top
522
516
  );
523
-
524
- $_heading-margin-bottom: (
517
+ $heading-margin-bottom-map: (
525
518
  h1: $h1-margin-bottom,
526
519
  h2: $h2-margin-bottom,
527
520
  h3: $h3-margin-bottom,
@@ -529,8 +522,7 @@ $_heading-margin-bottom: (
529
522
  h5: $h5-margin-bottom,
530
523
  h6: $h6-margin-bottom
531
524
  );
532
-
533
- $_heading-padding-bottom: (
525
+ $heading-padding-bottom-map: (
534
526
  h1: $h1-padding-bottom,
535
527
  h2: $h2-padding-bottom,
536
528
  h3: $h3-padding-bottom,
@@ -538,8 +530,7 @@ $_heading-padding-bottom: (
538
530
  h5: $h5-padding-bottom,
539
531
  h6: $h6-padding-bottom
540
532
  );
541
-
542
- $_heading-font-family: (
533
+ $heading-font-family-map: (
543
534
  h1: $h1-font-family,
544
535
  h2: $h2-font-family,
545
536
  h3: $h3-font-family,
@@ -547,8 +538,7 @@ $_heading-font-family: (
547
538
  h5: $h5-font-family,
548
539
  h6: $h6-font-family
549
540
  );
550
-
551
- $_heading-font-size: (
541
+ $heading-font-size-map: (
552
542
  h1: $h1-font-size,
553
543
  h2: $h2-font-size,
554
544
  h3: $h3-font-size,
@@ -556,8 +546,7 @@ $_heading-font-size: (
556
546
  h5: $h5-font-size,
557
547
  h6: $h6-font-size
558
548
  );
559
-
560
- $_heading-font-style: (
549
+ $heading-font-style-map: (
561
550
  h1: $h1-font-style,
562
551
  h2: $h2-font-style,
563
552
  h3: $h3-font-style,
@@ -565,8 +554,7 @@ $_heading-font-style: (
565
554
  h5: $h5-font-style,
566
555
  h6: $h6-font-style
567
556
  );
568
-
569
- $_heading-font-weight: (
557
+ $heading-font-weight-map: (
570
558
  h1: $h1-font-weight,
571
559
  h2: $h2-font-weight,
572
560
  h3: $h3-font-weight,
@@ -574,8 +562,7 @@ $_heading-font-weight: (
574
562
  h5: $h5-font-weight,
575
563
  h6: $h6-font-weight
576
564
  );
577
-
578
- $_heading-line-height: (
565
+ $heading-line-height-map: (
579
566
  h1: $h1-line-height,
580
567
  h2: $h2-line-height,
581
568
  h3: $h3-line-height,
@@ -583,8 +570,7 @@ $_heading-line-height: (
583
570
  h5: $h5-line-height,
584
571
  h6: $h6-line-height
585
572
  );
586
-
587
- $_heading-align: (
573
+ $heading-align-map: (
588
574
  h1: $h1-align,
589
575
  h2: $h2-align,
590
576
  h3: $h3-align,
@@ -592,8 +578,7 @@ $_heading-align: (
592
578
  h5: $h5-align,
593
579
  h6: $h6-align
594
580
  );
595
-
596
- $_heading-text-transform: (
581
+ $heading-text-transform-map: (
597
582
  h1: $h1-text-transform,
598
583
  h2: $h2-text-transform,
599
584
  h3: $h3-text-transform,
@@ -716,22 +701,22 @@ $blockquote-margin-left: 1em !default;
716
701
  /// Top padding for `<blockquote>` elements.
717
702
  /// @type String | Map
718
703
  /// @since version 1.0.0
719
- $blockquote-padding-top: (epub: 0em, prince: 0em, web: 0) !default;
704
+ $blockquote-padding-top: (epub: 0, prince: 0, web: 0) !default;
720
705
 
721
706
  /// Right padding for `<blockquote>` elements.
722
707
  /// @type String | Map
723
708
  /// @since version 1.0.0
724
- $blockquote-padding-right: (epub: 0em, prince: 0em, web: 0) !default;
709
+ $blockquote-padding-right: (epub: 0, prince: 0, web: 0) !default;
725
710
 
726
711
  /// Bottom padding for `<blockquote>` elements.
727
712
  /// @type String | Map
728
713
  /// @since version 1.0.0
729
- $blockquote-padding-bottom: (epub: 0em, prince: 0em, web: 0) !default;
714
+ $blockquote-padding-bottom: (epub: 0, prince: 0, web: 0) !default;
730
715
 
731
716
  /// Left padding for `<blockquote>` elements.
732
717
  /// @type String | Map
733
718
  /// @since version 1.0.0
734
- $blockquote-padding-left: (epub: 0em, prince: 0em, web: 0) !default;
719
+ $blockquote-padding-left: (epub: 0, prince: 0, web: 0) !default;
735
720
 
736
721
  /// Alignment for `<blockquote>` elements.
737
722
  /// @type String
@@ -758,7 +743,7 @@ $blockquote-word-spacing: (
758
743
  /// Left border width for `<blockquote>` elements.
759
744
  /// @type String | Map
760
745
  /// @since 1.0.0
761
- $blockquote-border-left-width: (epub: 0em, prince: 0em, web: 0) !default;
746
+ $blockquote-border-left-width: (epub: 0, prince: 0, web: 0) !default;
762
747
 
763
748
  /// Left border style for `<blockquote>` elements.
764
749
  /// @type String
@@ -133,7 +133,7 @@ $image-alignleft-caption-text-align: $image-caption-text-align !default;
133
133
  $image-alignright-caption-text-align: $image-caption-text-align !default;
134
134
 
135
135
  // Secret!
136
- $_image-caption-text-align: (
136
+ $image-caption-text-align-map: (
137
137
  center: $image-aligncenter-caption-text-align,
138
138
  left: $image-alignleft-caption-text-align,
139
139
  right: $image-alignright-caption-text-align
@@ -7,7 +7,7 @@
7
7
  // HALF TITLE PAGE
8
8
  /// Half Title page display.
9
9
  /// @type String | Map
10
- $title-half-title-display:(
10
+ $title-half-title-display: (
11
11
  epub: none,
12
12
  prince: initial,
13
13
  web: none
@@ -88,7 +88,7 @@ $title-title-font-family: $font-2 !default;
88
88
 
89
89
  /// Font size for title page title on elements `<h1>` with a class of `title`.
90
90
  /// @type String | Map
91
- $title-title-font-size:(
91
+ $title-title-font-size: (
92
92
  epub: 1.75em,
93
93
  prince: 2em,
94
94
  web: 1.75em
@@ -136,7 +136,7 @@ $title-title-decoration-display: none !default;
136
136
  /// Defines the title page title decoration font size.
137
137
  /// @type String | Map
138
138
  /// @since 1.0.0
139
- $title-title-decoration-font-size: (epub: 0em, prince: 0em, web: 0em) !default;
139
+ $title-title-decoration-font-size: (epub: 0, prince: 0, web: 0) !default;
140
140
 
141
141
  /// Defines the title page title decoration font weight.
142
142
  /// @type String
@@ -146,12 +146,12 @@ $title-title-decoration-font-weight: normal !default;
146
146
  /// Defines the title page title decoration margin bottom.
147
147
  /// @type String | Map
148
148
  /// @since 1.0.0
149
- $title-title-decoration-margin-bottom: (epub: 0em, prince: 0em, web: 0em) !default;
149
+ $title-title-decoration-margin-bottom: (epub: 0, prince: 0, web: 0) !default;
150
150
 
151
151
  /// Defines the title page title decoration margin top.
152
152
  /// @type String | Map
153
153
  /// @since 1.0.0
154
- $title-title-decoration-margin-top: (epub: 0em, prince: 0em, web: 0em) !default;
154
+ $title-title-decoration-margin-top: (epub: 0, prince: 0, web: 0) !default;
155
155
 
156
156
  /// Defines bottom border width for the title page title.
157
157
  /// @type String | Map
@@ -198,7 +198,7 @@ $title-subtitle-font-family: $font-3 !default;
198
198
 
199
199
  /// Font size for title page subtitle on elements `<h2>` with a class of `subtitle`.
200
200
  /// @type String | Map
201
- $title-subtitle-font-size:(
201
+ $title-subtitle-font-size: (
202
202
  epub: 1.25em,
203
203
  prince: 1.5em,
204
204
  web: 1.25em
@@ -279,7 +279,7 @@ $title-author-font-family: $font-2 !default;
279
279
 
280
280
  /// Font size for title page author on elements with a class of `author`.
281
281
  /// @type String | Map
282
- $title-author-font-size:(
282
+ $title-author-font-size: (
283
283
  epub: 1em,
284
284
  prince: 1.5em,
285
285
  web: 1em
@@ -198,7 +198,7 @@ $section-title-decoration-display: none !default;
198
198
  /// Defines the section title decoration font size.
199
199
  /// @type String | Map
200
200
  /// @since 1.0.0
201
- $section-title-decoration-font-size: (epub: 0em, prince: 0em, web: 0em) !default;
201
+ $section-title-decoration-font-size: (epub: 0, prince: 0, web: 0) !default;
202
202
 
203
203
  /// Defines the section title decoration font weight.
204
204
  /// @type String
@@ -208,12 +208,12 @@ $section-title-decoration-font-weight: normal !default;
208
208
  /// Defines the section title decoration margin bottom.
209
209
  /// @type String | Map
210
210
  /// @since 1.0.0
211
- $section-title-decoration-margin-bottom: (epub: 0em, prince: 0em, web: 0em) !default;
211
+ $section-title-decoration-margin-bottom: (epub: 0, prince: 0, web: 0) !default;
212
212
 
213
213
  /// Defines the section title decoration margin top.
214
214
  /// @type String | Map
215
215
  /// @since 1.0.0
216
- $section-title-decoration-margin-top: (epub: 0em, prince: 0em, web: 0em) !default;
216
+ $section-title-decoration-margin-top: (epub: 0, prince: 0, web: 0) !default;
217
217
 
218
218
  /// Defines spacing between section subtitle and the bottom of the section header when the section does not have an author.
219
219
  /// @type String | Map
@@ -646,7 +646,7 @@ $part-title-font-family: $font-2 !default;
646
646
 
647
647
  /// Defines the part title font size.
648
648
  /// @type String | Map
649
- $part-title-font-size:(
649
+ $part-title-font-size: (
650
650
  epub: 1.75em,
651
651
  prince: 2.5em,
652
652
  web: 2.5em
@@ -1152,7 +1152,7 @@ $chapter-title-letter-spacing: $section-title-letter-spacing !default;
1152
1152
  /// Defines the word spacing title on chapter titles
1153
1153
  /// @type String | Map
1154
1154
  /// @since 1.0.0
1155
- $chapter-title-word-spacing: $section-title-word-spacing !default;
1155
+ $chapter-title-word-spacing: $section-title-word-spacing !default;
1156
1156
 
1157
1157
  /// Defines bottom border width for the chapter title.
1158
1158
  /// @type String | Map
@@ -1172,7 +1172,7 @@ $chapter-title-border-bottom-color: $section-title-border-bottom-color !default;
1172
1172
  /// Defines the chapter number bottom padding.
1173
1173
  /// @type String | Map
1174
1174
  /// @since 1.0.0
1175
- $chapter-title-padding-bottom:$section-title-padding-bottom !default;
1175
+ $chapter-title-padding-bottom: $section-title-padding-bottom !default;
1176
1176
 
1177
1177
  /// Defines the chapter title decoration font family.
1178
1178
  /// @type String
@@ -1282,7 +1282,7 @@ $back-matter-title-border-bottom-color: $section-title-border-bottom-color !defa
1282
1282
  /// Defines the back matter title bottom padding.
1283
1283
  /// @type String | Map
1284
1284
  /// @since 1.0.0
1285
- $back-matter-title-padding-bottom:$section-title-padding-bottom !default;
1285
+ $back-matter-title-padding-bottom: $section-title-padding-bottom !default;
1286
1286
 
1287
1287
  /// Defines letter spacing property on back matter titles
1288
1288
  /// @type String | Map
@@ -1292,7 +1292,7 @@ $back-matter-title-letter-spacing: $section-title-letter-spacing !default;
1292
1292
  /// Defines the word spacing title on back matter titles
1293
1293
  /// @type String | Map
1294
1294
  /// @since 1.0.0
1295
- $back-matter-title-word-spacing: $section-title-word-spacing !default;
1295
+ $back-matter-title-word-spacing: $section-title-word-spacing !default;
1296
1296
 
1297
1297
  /// Defines the back-matter title decoration font family.
1298
1298
  /// @type String
@@ -156,11 +156,12 @@ $footnote-blockquote-margin-bottom: 0.5em !default;
156
156
  /// @type String
157
157
  $footnote-blockquote-margin-left: 1.5em !default;
158
158
 
159
- /// Font-size Margin for footnote blockquote for elements with a class of `fn-blockquote`.
159
+ /// Font-size for footnote blockquote for elements with a class of `fn-blockquote`.
160
160
  /// @type String
161
161
  $footnote-blockquote-font-size: 0.95em !default;
162
162
 
163
-
163
+ /// Font-size Margin for footnote blockquote for elements with a class of `fn-blockquote`.
164
+ /// @type String
164
165
  $footnote-number-marker-font-size: $sup-sub-font-size !default;
165
166
  $footnote-number-marker-line-height: $sup-sub-line-height !default;
166
167
 
@@ -11,6 +11,7 @@
11
11
  /// Page numbering position.
12
12
  /// @type String
13
13
  $numbering-position: 'top-outside' !default;
14
+
14
15
  // $numbering-position: 'top-outside-corner' !default;
15
16
  // $numbering-position: 'top-center' !default;
16
17
  // $numbering-position: 'top-inside' !default;
@@ -27,6 +28,7 @@ $numbering-position: 'top-outside' !default;
27
28
  // $first-numbering-position: null !default;
28
29
  // $first-numbering-position: 'top-center' !default;
29
30
  $first-numbering-position: 'bottom-center' !default;
31
+
30
32
  // $first-numbering-position: 'bottom-inside' !default;
31
33
  // $first-numbering-position: 'bottom-outside' !default;
32
34
  // TODO: Handle other positions based on recto-verso
@@ -34,33 +36,36 @@ $first-numbering-position: 'bottom-center' !default;
34
36
  /// Running content position.
35
37
  /// @type String
36
38
  $running-content-position: 'top-center' !default;
37
- //$running-content-position: 'top-outside-corner' !default;
38
- //$running-content-position: 'top-outside' !default;
39
- //$running-content-position: 'top-inside' !default;
40
- //$running-content-position: 'outside-top' !default;
41
- //$running-content-position: 'outside-middle' !default;
42
- //$running-content-position: 'outside-bottom' !default;
43
- //$running-content-position: 'bottom-outside-corner' !default;
44
- //$running-content-position: 'bottom-outside' !default;
45
- //$running-content-position: 'bottom-center' !default;
46
- //$running-content-position: 'bottom-inside' !default;
39
+
40
+ // $running-content-position: 'top-outside-corner' !default;
41
+ // $running-content-position: 'top-outside' !default;
42
+ // $running-content-position: 'top-inside' !default;
43
+ // $running-content-position: 'outside-top' !default;
44
+ // $running-content-position: 'outside-middle' !default;
45
+ // $running-content-position: 'outside-bottom' !default;
46
+ // $running-content-position: 'bottom-outside-corner' !default;
47
+ // $running-content-position: 'bottom-outside' !default;
48
+ // $running-content-position: 'bottom-center' !default;
49
+ // $running-content-position: 'bottom-inside' !default;
47
50
 
48
51
  /// First page running content position.
49
52
  /// @type Null | String
50
53
  /// @since 1.0.0
51
54
  $first-running-content-position: null !default;
55
+
52
56
  // $first-running-content-position: 'bottom-center' !default;
53
57
  // $first-running-content-position: 'bottom-inside' !default;
54
58
  // $first-running-content-position: 'bottom-outside' !default;
55
59
  // TODO: Handle other positions based on recto-verso
56
60
 
57
61
  // Finally, for the running separator, it either exists or it doesn't,
58
- //so choose between two options (null, or defined content):
62
+ // so choose between two options (null, or defined content):
59
63
 
60
64
  $left-running-separator: '' !default;
61
65
  $right-running-separator: '' !default;
62
- //$left-running-separator: '\A0\A0|\A0\A0' !default;
63
- //$right-running-separator: '\A0\A0|\A0\A0' !default;
66
+
67
+ // $left-running-separator: '\A0\A0|\A0\A0' !default;
68
+ // $right-running-separator: '\A0\A0|\A0\A0' !default;
64
69
 
65
70
  // Page Numbers
66
71
 
@@ -243,9 +243,9 @@ $toc-part-number-content: counter(part, upper-roman) !default;
243
243
  /// Content that appears after the part number for Table of Contents
244
244
  /// @type String
245
245
  /// @since 1.0.0
246
- $toc-part-number-after-content: '.\A0' !default;
247
- $toc-left-part-number-after-content: '.\A0' !default;
248
- $toc-center-part-number-after-content: '.' !default;
246
+ $toc-part-number-after-content: '.\A0' !default;
247
+ $toc-left-part-number-after-content: '.\A0' !default;
248
+ $toc-center-part-number-after-content: '.' !default;
249
249
 
250
250
  /// Part number font stack for Table of Contents
251
251
  /// @type String
@@ -278,6 +278,7 @@ $toc-part-title-font-size: (
278
278
  prince: 1em,
279
279
  web: 1em
280
280
  ) !default;
281
+
281
282
  /// Part title font style for Table of Contents
282
283
  /// @type String
283
284
  $toc-part-title-font-style: normal !default;
@@ -355,7 +356,6 @@ $toc-chapter-title-text-transform: none !default;
355
356
  /// @type String
356
357
  /// @since 1.0.0
357
358
  $toc-chapter-title-align: left !default;
358
-
359
359
  $toc-chapter-title-display: inline !default;
360
360
 
361
361
  /// Chapter subtitle top margin for Table of Contents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buckram",
3
- "version": "1.7.3",
3
+ "version": "1.8.2",
4
4
  "description": "Opinionated SCSS components for books (web, EPUB and PDF).",
5
5
  "scripts": {
6
6
  "build": "composer install && composer test",
@@ -28,8 +28,8 @@
28
28
  "mocha": "^10.0.0",
29
29
  "pixelmatch": "^5.2.1",
30
30
  "polyserve": "^0.27.15",
31
- "pressbooks-build-tools": "^3.0.1",
32
- "puppeteer": "^16.1.0",
31
+ "pressbooks-build-tools": "^4.0.0",
32
+ "puppeteer": "^20.5.0",
33
33
  "sassdoc": "^2.7.1",
34
34
  "type-detect": "^4.0.8"
35
35
  },
@@ -40,7 +40,8 @@
40
40
  "extends": "./node_modules/pressbooks-build-tools/config/stylelint.js",
41
41
  "rules": {
42
42
  "no-descending-specificity": null,
43
- "no-duplicate-at-import-rules": null
43
+ "no-duplicate-at-import-rules": null,
44
+ "scss/no-global-function-names": null
44
45
  }
45
46
  }
46
47
  }
@@ -1,109 +0,0 @@
1
- ////
2
- /// @group toc
3
- ////
4
-
5
- @if $type == 'epub' {
6
-
7
- @media amzn-kf8 {
8
- #toc .toc-chapter-title {
9
- /* CSS property in content is not supported. Table of contents cannot be clicked. */
10
- position: static;
11
- }
12
- }
13
-
14
- @media amzn-mobi {
15
- #toc {
16
- font-style: normal;
17
- font-weight: normal;
18
- border: 0;
19
- text-align: left;
20
- }
21
-
22
- #toc h1 {
23
- font-size: 1em;
24
- font-style: normal;
25
- font-weight: normal;
26
- }
27
-
28
- #toc .toc-chapter-title {
29
- /* CSS property in content is not supported. Table of contents cannot be clicked. */
30
- position: static;
31
- }
32
-
33
- span.chapter-author {
34
- display: none;
35
- }
36
-
37
- span.chapter-subtitle {
38
- display: none;
39
- }
40
-
41
- span.toc-chapter-title {
42
- font-style: normal;
43
- font-weight: normal;
44
- font-size: 1em;
45
- text-align: left;
46
- }
47
-
48
- li.front-matter {
49
- font-style: normal;
50
- font-weight: normal;
51
- font-size: 0.9em;
52
- }
53
-
54
- li.part {
55
- font-weight: bold;
56
- font-size: 1.25em;
57
- text-align: left;
58
- margin-top: 1em;
59
- }
60
-
61
- li.chapter {
62
- font-style: normal;
63
- font-weight: normal;
64
- font-size: 1em;
65
- }
66
-
67
- li.back-matter {
68
- font-weight: bold;
69
- font-size: 0.9em;
70
- text-align: left;
71
- margin-top: 1em;
72
- }
73
-
74
- #toc a {
75
- font-style: normal;
76
- font-weight: normal;
77
- }
78
-
79
- #toc ul .front-matter,
80
- #toc ul .back-matter {
81
- font-style: normal;
82
- font-weight: normal;
83
- font-size: 1em;
84
- }
85
-
86
- #toc .front-matter {
87
- font-style: normal;
88
- font-weight: normal;
89
- font-size: 1em;
90
- }
91
-
92
- #toc .back-matter {
93
- font-style: normal;
94
- font-weight: normal;
95
- font-size: 1em;
96
- }
97
-
98
- #toc .part {
99
- font-weight: bold;
100
- margin-top: 1em;
101
- }
102
-
103
- #toc li {
104
- font-style: normal;
105
- font-weight: normal;
106
- font-size: 1em;
107
- }
108
- }
109
- }