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.
@@ -33,14 +33,10 @@
33
33
  text-indent: 0;
34
34
  }
35
35
 
36
- .chapter-subtitle {
37
- hyphens: none;
38
- text-indent: 0;
39
- }
40
-
41
- .chapter-author {
36
+ .chapter-subtitle, .chapter-author {
42
37
  hyphens: none;
43
38
  text-indent: 0;
39
+ color: inherit;
44
40
  }
45
41
 
46
42
  .chapter-license {
@@ -219,18 +215,16 @@
219
215
  }
220
216
 
221
217
  @if $type == 'prince' {
222
- h3.front-matter-number,
223
- h3.part-number,
224
- h3.chapter-number,
225
- h3.back-matter-number {
226
- bookmark-level: none;
227
- }
228
218
 
229
219
  #toc {
230
220
  display: $toc-display;
231
221
  counter-reset: part;
232
222
  page-break-before: right;
233
223
 
224
+ h1 {
225
+ prince-bookmark-level: 1;
226
+ }
227
+
234
228
  a::after {
235
229
  content: $toc-page-number-before-content target-counter(attr(href), page);
236
230
  font-family: $toc-page-number-font-family;
@@ -255,7 +255,7 @@ $title-subtitle-line-height: $title-title-line-height !default;
255
255
 
256
256
  // Author
257
257
 
258
- /// Top margin for title page author on elements `<h3>` with a class of `author`.
258
+ /// Top margin for title page author on elements with a class of `author`.
259
259
  /// @type String | Map
260
260
  $title-author-margin-top: (
261
261
  epub: 2em,
@@ -263,21 +263,21 @@ $title-author-margin-top: (
263
263
  web: 2em
264
264
  ) !default;
265
265
 
266
- /// Right margin for title page author on elements `<h3>` with a class of `author`.
266
+ /// Right margin for title page author on elements with a class of `author`.
267
267
  /// @type String | Map
268
268
  /// @since 1.0.0
269
269
  $title-author-margin-right: 0 !default;
270
270
 
271
- /// Left margin for title page author on elements `<h3>` with a class of `author`.
271
+ /// Left margin for title page author on elements with a class of `author`.
272
272
  /// @type String | Map
273
273
  /// @since 1.0.0
274
274
  $title-author-margin-left: 0 !default;
275
275
 
276
- /// Font stack for title page author on elements `<h3>` with a class of `author`.
276
+ /// Font stack for title page author on elements with a class of `author`.
277
277
  /// @type String
278
278
  $title-author-font-family: $font-2 !default;
279
279
 
280
- /// Font size for title page author on elements `<h3>` with a class of `author`.
280
+ /// Font size for title page author on elements with a class of `author`.
281
281
  /// @type String | Map
282
282
  $title-author-font-size:(
283
283
  epub: 1em,
@@ -285,27 +285,27 @@ $title-author-font-size:(
285
285
  web: 1em
286
286
  ) !default;
287
287
 
288
- /// Font style for title page author on elements `<h3>` with a class of `author`.
288
+ /// Font style for title page author on elements with a class of `author`.
289
289
  /// @type String
290
290
  $title-author-font-style: normal !default;
291
291
 
292
- /// Font weight for title page author on elements `<h3>` with a class of `author`.
292
+ /// Font weight for title page author on elements with a class of `author`.
293
293
  /// @type String
294
294
  $title-author-font-weight: normal !default;
295
295
 
296
- /// Letter spacing for title page author on elements `<h3>` with a class of `author`.
296
+ /// Letter spacing for title page author on elements with a class of `author`.
297
297
  /// @type String
298
298
  $title-author-letter-spacing: 1px !default;
299
299
 
300
- /// Word spacing for title page author on elements `<h3>` with a class of `author`.
300
+ /// Word spacing for title page author on elements with a class of `author`.
301
301
  /// @type String
302
302
  $title-author-word-spacing: 2px !default;
303
303
 
304
- /// Text alignment for title page author on elements `<h3>` with a class of `author`.
304
+ /// Text alignment for title page author on elements with a class of `author`.
305
305
  /// @type String
306
306
  $title-author-align: center !default;
307
307
 
308
- /// Text transform for title page author on elements `<h3>` with a class of `author`.
308
+ /// Text transform for title page author on elements with a class of `author`.
309
309
  /// @type String
310
310
  $title-author-text-transform: none !default;
311
311
 
@@ -366,64 +366,64 @@ $title-publisher-logo-margin-left: auto !default;
366
366
 
367
367
  // Publisher
368
368
 
369
- /// Top margin for title page publisher text on elements `<h4>` with a class of `publisher`.
369
+ /// Top margin for title page publisher text on elements with a class of `publisher`.
370
370
  /// @type String | Map
371
371
  /// @since 1.2.0
372
- $title-publisher-margin-top: (epub: 0, prince: 0, web: 0) !default;
372
+ $title-publisher-margin-top: (epub: 1.5em, prince: 1.5em, web: 0) !default;
373
373
 
374
- /// Right margin for title page publisher text on elements `<h4>` with a class of `publisher`.
374
+ /// Right margin for title page publisher text on elements with a class of `publisher`.
375
375
  /// @type String | Map
376
376
  /// @since 1.2.0
377
377
  $title-publisher-margin-right: (epub: 0, prince: 0, web: 0) !default;
378
378
 
379
- /// Bottom margin for title page publisher text on elements `<h4>` with a class of `publisher`.
379
+ /// Bottom margin for title page publisher text on elements with a class of `publisher`.
380
380
  /// @type String | Map
381
381
  /// @since 1.2.0
382
382
  $title-publisher-margin-bottom: (epub: 0.5em, prince: 0.5em, web: 0.5em) !default;
383
383
 
384
- /// Left margin for title page publisher text on elements `<h4>` with a class of `publisher`.
384
+ /// Left margin for title page publisher text on elements with a class of `publisher`.
385
385
  /// @type String | Map
386
386
  /// @since 1.2.0
387
387
  $title-publisher-margin-left: (epub: 0, prince: 0, web: 0) !default;
388
388
 
389
- /// Float for title page publisher text on elements `<h4>` with a class of `publisher`.
389
+ /// Float for title page publisher text on elements with a class of `publisher`.
390
390
  /// @type String | Map
391
391
  /// @since 1.4.0
392
392
  $title-publisher-float: (epub: none, prince: none, web: none) !default;
393
393
 
394
- /// Font stack for title page publisher text on elements `<h4>` with a class of `publisher`.
394
+ /// Font stack for title page publisher text on elements with a class of `publisher`.
395
395
  /// @type String
396
396
  $title-publisher-font-family: $font-3 !default;
397
397
 
398
- /// Font size for title page publisher text on elements `<h4>` with a class of `publisher`.
398
+ /// Font size for title page publisher text on elements with a class of `publisher`.
399
399
  /// @type String
400
400
  $title-publisher-font-size: 0.9em !default;
401
401
 
402
- /// Font style for title page publisher text on elements `<h4>` with a class of `publisher`.
402
+ /// Font style for title page publisher text on elements with a class of `publisher`.
403
403
  /// @type String
404
404
  $title-publisher-font-style: normal !default;
405
405
 
406
- /// Font weight for title page publisher text on elements `<h4>` with a class of `publisher`.
406
+ /// Font weight for title page publisher text on elements with a class of `publisher`.
407
407
  /// @type String
408
408
  $title-publisher-font-weight: normal !default;
409
409
 
410
- /// Line height for title page publisher text on elements `<h4>` with a class of `publisher`.
410
+ /// Line height for title page publisher text on elements with a class of `publisher`.
411
411
  /// @type String
412
412
  $title-publisher-line-height: 1em !default;
413
413
 
414
- /// Letter spacing for title page publisher text on elements `<h4>` with a class of `publisher`.
414
+ /// Letter spacing for title page publisher text on elements with a class of `publisher`.
415
415
  /// @type String
416
416
  $title-publisher-letter-spacing: 1px !default;
417
417
 
418
- /// Word spacing for title page publisher text on elements `<h4>` with a class of `publisher`.
418
+ /// Word spacing for title page publisher text on elements with a class of `publisher`.
419
419
  /// @type String
420
420
  $title-publisher-word-spacing: 2px !default;
421
421
 
422
- /// Text transform for title page publisher text on elements `<h4>` with a class of `publisher`.
422
+ /// Text transform for title page publisher text on elements with a class of `publisher`.
423
423
  /// @type String
424
424
  $title-publisher-align: center !default;
425
425
 
426
- /// Text transform for title page publisher text on elements `<h4>` with a class of `publisher`.
426
+ /// Text transform for title page publisher text on elements with a class of `publisher`.
427
427
  /// @type String
428
428
  $title-publisher-text-transform: none !default;
429
429
 
@@ -449,54 +449,54 @@ $title-publisher-padding-bottom: $title-title-padding-bottom !default;
449
449
 
450
450
  // Publisher city
451
451
 
452
- /// Right margin for title page publisher city text on elements `<h4>` with a class of `publisher`.
452
+ /// Right margin for title page publisher city text on elements with a class of `publisher`.
453
453
  /// @type String | Map
454
454
  /// @since 1.2.0
455
455
  $title-publisher-city-margin-right: $title-publisher-margin-right !default;
456
456
 
457
- /// Left margin for title page publisher city text on elements `<h4>` with a class of `publisher`.
457
+ /// Left margin for title page publisher city text on elements with a class of `publisher`.
458
458
  /// @type String | Map
459
459
  /// @since 1.2.0
460
460
  $title-publisher-city-margin-left: $title-publisher-margin-left !default;
461
461
 
462
- /// Float for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
462
+ /// Float for title page publisher city text on elements with a class of `publisher-city`.
463
463
  /// @type String | Map
464
464
  /// @since 1.4.0
465
465
  $title-publisher-city-float: (epub: none, prince: none, web: none) !default;
466
466
 
467
- /// Font stack for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
467
+ /// Font stack for title page publisher city text on elements with a class of `publisher-city`.
468
468
  /// @type String
469
469
  $title-publisher-city-font-family: $font-3 !default;
470
470
 
471
- /// Font size for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
471
+ /// Font size for title page publisher city text on elements with a class of `publisher-city`.
472
472
  /// @type String
473
473
  $title-publisher-city-font-size: 0.9em !default;
474
474
 
475
- /// Font style for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
475
+ /// Font style for title page publisher city text on elements with a class of `publisher-city`.
476
476
  /// @type String
477
477
  $title-publisher-city-font-style: normal !default;
478
478
 
479
- /// Font weight for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
479
+ /// Font weight for title page publisher city text on elements with a class of `publisher-city`.
480
480
  /// @type String
481
481
  $title-publisher-city-font-weight: normal !default;
482
482
 
483
- /// Line height for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
483
+ /// Line height for title page publisher city text on elements with a class of `publisher-city`.
484
484
  /// @type String
485
485
  $title-publisher-city-line-height: 1em !default;
486
486
 
487
- /// Letter spacing for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
487
+ /// Letter spacing for title page publisher city text on elements with a class of `publisher-city`.
488
488
  /// @type String
489
489
  $title-publisher-city-letter-spacing: 1px !default;
490
490
 
491
- /// Word spacing for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
491
+ /// Word spacing for title page publisher city text on elements with a class of `publisher-city`.
492
492
  /// @type String
493
493
  $title-publisher-city-word-spacing: 2px !default;
494
494
 
495
- /// Alignment for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
495
+ /// Alignment for title page publisher city text on elements with a class of `publisher-city`.
496
496
  /// @type String
497
497
  $title-publisher-city-align: center !default;
498
498
 
499
- /// Text transform for title page publisher city text on elements `<h5>` with a class of `publisher-city`.
499
+ /// Text transform for title page publisher city text on elements with a class of `publisher-city`.
500
500
  /// @type String
501
501
  $title-publisher-city-text-transform: uppercase !default;
502
502
 
@@ -964,16 +964,71 @@ $examples-background: #f3e1e3 !default;
964
964
  /// @type String
965
965
  $examples-header-background: #7a333a !default;
966
966
 
967
+ // Contributors
968
+
969
+ /// Margin top for elements with a class of `contributors`.
970
+ /// @type String
971
+ $contributors-margin-top: 2rem !default;
972
+
973
+ /// Margin bottom for elements with a class of `contributors`.
974
+ /// @type String
975
+ $contributors-margin-bottom: 2rem !default;
976
+
977
+ /// Text indent for elements with a class of `contributors`.
978
+ /// @type String
979
+ $contributors-text-indent: 0 !default;
980
+
981
+ /// Text align for elements with a class of `contributors`.
982
+ /// @type String
983
+ $contributors-text-align: left !default;
984
+
985
+ /// Float property for contributor profile pictures.
986
+ /// @type String
987
+ $contributor-profile-picture-float: left !default;
988
+
989
+ /// Margin for contributor profile pictures.
990
+ /// @type String
991
+ $contributor-profile-picture-margin: 0 !default;
992
+
993
+ /// Border radius for contributor profile pictures.
994
+ /// @type String
995
+ $contributor-profile-picture-border-radius: 50% !default;
996
+
997
+ /// Text transform for elements with a class of `contributor__institution`.
998
+ /// @type String
999
+ $contributor-institution-text-transform: uppercase !default;
1000
+
1001
+ /// Margin top for contributor links.
1002
+ /// @type String | Map
1003
+ $contributor-links-margin-top: (
1004
+ epub: 0,
1005
+ prince: 0,
1006
+ web: .5rem
1007
+ ) !default;
1008
+
1009
+ /// Margin top for individual contributor link.
1010
+ /// @type String
1011
+ $contributor-link-margin-top: 0 !default;
1012
+
1013
+ /// Text decoration for contributor links.
1014
+ /// @type String | Map
1015
+ $contributor-links-text-decoration: (
1016
+ web: none
1017
+ ) !default;
1018
+
1019
+ /// Margin top for contributor bio.
1020
+ /// @type String
1021
+ $contributor-bio-margin-top: 1em !default;
967
1022
 
968
1023
  /// NEW VARIABLES BEFORE FINDING PLACE FOR THEM
969
1024
 
970
- // // $edu-textbox-sidebar-padding-top: $edu-textbox-padding-top !default;
1025
+ // $edu-textbox-sidebar-padding-top: $edu-textbox-padding-top !default;
971
1026
  // $edu-textbox-sidebar-padding-top: 4em !important !default;
972
1027
  // $edu-textbox-sidebar-padding-right: $edu-textbox-padding-right !default;
973
1028
  // $edu-textbox-sidebar-padding-bottom: $edu-textbox-padding-bottom !default;
974
1029
  // $edu-textbox-sidebar-padding-left: $edu-textbox-padding-left !default;
975
1030
 
976
1031
  // $edu-header-sidebar-font-style: $edu-header-font-style !default;
977
- // // $edu-header-sidebar-font-weight: $edu-header-font-weight !default;
1032
+ // $edu-header-sidebar-font-weight: $edu-header-font-weight !default;
978
1033
  // $edu-header-sidebar-font-weight: bold !default;
979
1034
  // $edu-header-sidebar-text-align: $edu-header-text-align !default;
package/package.json CHANGED
@@ -1,36 +1,35 @@
1
1
  {
2
2
  "name": "buckram",
3
- "version": "1.5.3",
3
+ "version": "1.7.1",
4
4
  "description": "Opinionated SCSS components for books (web, EPUB and PDF).",
5
5
  "scripts": {
6
- "install-build-tools": "npm install --no-save pressbooks-build-tools",
7
6
  "build": "composer install && composer test",
8
7
  "diff": "npm run -s build && mocha",
9
8
  "docs": "cross-env NODE_ENV=development node_modules/sassdoc/bin/sassdoc assets/styles --config sassdoc.json",
10
9
  "lint": "npm run -s lint:styles",
11
- "lint:styles": "cross-env NODE_ENV=development node_modules/stylelint/bin/stylelint.js 'assets/styles/**/*.scss'",
10
+ "lint:styles": "stylelint 'assets/styles/**/*.scss'",
12
11
  "test": "npm run -s lint && npm run -s build"
13
12
  },
14
13
  "repository": {
15
14
  "type": "git",
16
- "url": "git+https://github.com/pressbooks/pressbooks-book.git",
17
- "directory": "packages/buckram"
15
+ "url": "git+https://github.com/pressbooks/buckram.git"
18
16
  },
19
17
  "author": "Pressbooks (Book Oven Inc.)",
20
18
  "license": "GPL-3.0-or-later",
21
19
  "bugs": {
22
- "url": "https://github.com/pressbooks/pressbooks-book/issues"
20
+ "url": "https://github.com/pressbooks/buckram/issues"
23
21
  },
24
- "homepage": "https://github.com/pressbooks/pressbooks-book/tree/master/packages/buckram#readme",
22
+ "homepage": "https://github.com/pressbooks/buckram#readme",
25
23
  "engines": {
26
- "node": ">= 6.9.4"
24
+ "node": ">= 14"
27
25
  },
28
26
  "devDependencies": {
29
27
  "chai": "^4.1.2",
30
- "mocha": "^5.0.0",
31
- "pixelmatch": "^4.0.2",
28
+ "mocha": "^10.0.0",
29
+ "pixelmatch": "^5.2.1",
32
30
  "polyserve": "^0.27.15",
33
- "puppeteer": "^1.20.0",
31
+ "pressbooks-build-tools": "^3.0.1",
32
+ "puppeteer": "^16.1.0",
34
33
  "sassdoc": "^2.7.1",
35
34
  "type-detect": "^4.0.8"
36
35
  },
@@ -43,6 +42,5 @@
43
42
  "no-descending-specificity": null,
44
43
  "no-duplicate-at-import-rules": null
45
44
  }
46
- },
47
- "gitHead": "d8f356c924ea88204d555650f7c9a28a66ba2292"
45
+ }
48
46
  }