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
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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.
|
|
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": "
|
|
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/
|
|
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/
|
|
20
|
+
"url": "https://github.com/pressbooks/buckram/issues"
|
|
23
21
|
},
|
|
24
|
-
"homepage": "https://github.com/pressbooks/
|
|
22
|
+
"homepage": "https://github.com/pressbooks/buckram#readme",
|
|
25
23
|
"engines": {
|
|
26
|
-
"node": ">=
|
|
24
|
+
"node": ">= 14"
|
|
27
25
|
},
|
|
28
26
|
"devDependencies": {
|
|
29
27
|
"chai": "^4.1.2",
|
|
30
|
-
"mocha": "^
|
|
31
|
-
"pixelmatch": "^
|
|
28
|
+
"mocha": "^10.0.0",
|
|
29
|
+
"pixelmatch": "^5.2.1",
|
|
32
30
|
"polyserve": "^0.27.15",
|
|
33
|
-
"
|
|
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
|
}
|