buckram 1.7.0 → 1.7.3
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/.nvmrc +1 -0
- package/CHANGELOG.md +21 -0
- package/{LICENSE.md → LICENSE} +0 -0
- package/README.md +24 -1
- package/assets/styles/buckram.scss +3 -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 +6 -0
- package/assets/styles/components/section-titles/_back-matter.scss +3 -0
- package/assets/styles/components/section-titles/_chapters.scss +6 -0
- package/assets/styles/components/section-titles/_front-matter.scss +3 -0
- package/assets/styles/components/specials/_textboxes.scss +15 -3
- package/assets/styles/components/toc/_generic.scss +4 -0
- package/package.json +8 -10
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
14
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.7.3](https://github.com/pressbooks/buckram/compare/v1.7.2...v1.7.3) (2022-08-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* bump version in buckram.scss ([781bca0](https://github.com/pressbooks/buckram/commit/781bca0e9dc8051c099757201d0f6bbafffe43a4))
|
|
9
|
+
|
|
10
|
+
## [1.7.2](https://github.com/pressbooks/buckram/compare/1.7.1...v1.7.2) (2022-08-11)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* don't publish .github to NPM ([c272287](https://github.com/pressbooks/buckram/commit/c27228756ed6066252451986c2be8cc4b6aa73db))
|
|
16
|
+
|
|
17
|
+
## 1.7.1 (2022-08-11)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* resolve issues with extending compound selectors ([#275](https://github.com/pressbooks/buckram/issues/275)) ([4b2f2bb](https://github.com/pressbooks/buckram/commit/4b2f2bb938402981220fb75fe25b81aef17dcdeb))
|
|
22
|
+
|
|
2
23
|
## 1.7.0
|
|
3
24
|
### Minor changes
|
|
4
25
|
- Update semantic selectors to match Pressbooks changes [#887](https://github.com/pressbooks/pressbooks-book/pull/887/files)
|
package/{LICENSE.md → LICENSE}
RENAMED
|
File without changes
|
package/README.md
CHANGED
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
# Buckram
|
|
2
2
|
|
|
3
|
-
[](https://github.com/pressbooks/buckram/blob/main/LICENSE) [](https://github.com/pressbooks/buckram/actions) [](https://www.npmjs.com/package/buckram)
|
|
4
4
|
|
|
5
5
|
Opinionated SCSS components for books (web, EPUB and PDF).
|
|
6
6
|
|
|
7
7
|
[Read the docs.](https://buckram.pressbooks.org/)
|
|
8
|
+
|
|
9
|
+
## Testing
|
|
10
|
+
|
|
11
|
+
Install dependencies:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install
|
|
15
|
+
composer install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Run tests:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm test
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Releasing
|
|
25
|
+
|
|
26
|
+
[release-please](https://github.com/googleapis/release-please) will generate release notes in a PR automatically based on commits to `dev`.
|
|
27
|
+
|
|
28
|
+
Merging the PR to tag a new GitHub release and update [CHANGELOG.md](CHANGELOG.md).
|
|
29
|
+
|
|
30
|
+
Then, run `npm publish`.
|
|
@@ -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 {
|
|
@@ -20,6 +20,9 @@
|
|
|
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
|
|
@@ -38,6 +41,9 @@
|
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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 {
|
|
@@ -221,6 +221,10 @@
|
|
|
221
221
|
counter-reset: part;
|
|
222
222
|
page-break-before: right;
|
|
223
223
|
|
|
224
|
+
h1 {
|
|
225
|
+
prince-bookmark-level: 1;
|
|
226
|
+
}
|
|
227
|
+
|
|
224
228
|
a::after {
|
|
225
229
|
content: $toc-page-number-before-content target-counter(attr(href), page);
|
|
226
230
|
font-family: $toc-page-number-font-family;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buckram",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "Opinionated SCSS components for books (web, EPUB and PDF).",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "composer install && composer test",
|
|
@@ -12,25 +12,24 @@
|
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/pressbooks/
|
|
16
|
-
"directory": "packages/buckram"
|
|
15
|
+
"url": "git+https://github.com/pressbooks/buckram.git"
|
|
17
16
|
},
|
|
18
17
|
"author": "Pressbooks (Book Oven Inc.)",
|
|
19
18
|
"license": "GPL-3.0-or-later",
|
|
20
19
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/pressbooks/
|
|
20
|
+
"url": "https://github.com/pressbooks/buckram/issues"
|
|
22
21
|
},
|
|
23
|
-
"homepage": "https://github.com/pressbooks/
|
|
22
|
+
"homepage": "https://github.com/pressbooks/buckram#readme",
|
|
24
23
|
"engines": {
|
|
25
|
-
"node": ">=
|
|
24
|
+
"node": ">= 14"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"chai": "^4.1.2",
|
|
29
|
-
"mocha": "^
|
|
28
|
+
"mocha": "^10.0.0",
|
|
30
29
|
"pixelmatch": "^5.2.1",
|
|
31
30
|
"polyserve": "^0.27.15",
|
|
32
31
|
"pressbooks-build-tools": "^3.0.1",
|
|
33
|
-
"puppeteer": "^
|
|
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
|
}
|