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.
- package/.idea/buckram.iml +11 -0
- package/.idea/modules.xml +8 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +6 -0
- package/CHANGELOG.md +26 -0
- package/README.md +4 -4
- package/assets/styles/buckram.scss +1 -1
- package/assets/styles/components/_colors.scss +5 -5
- package/assets/styles/components/_utilities.scss +49 -125
- package/assets/styles/components/elements/_blockquotes.scss +3 -2
- package/assets/styles/components/elements/_body.scss +2 -2
- package/assets/styles/components/elements/_headings.scss +16 -15
- package/assets/styles/components/elements/_links.scss +3 -5
- package/assets/styles/components/elements/_lists.scss +22 -22
- package/assets/styles/components/elements/_miscellaneous.scss +7 -5
- package/assets/styles/components/elements/_paragraphs.scss +4 -20
- package/assets/styles/components/elements/_tables.scss +8 -5
- package/assets/styles/components/media/_audio.scss +1 -1
- package/assets/styles/components/media/_images.scss +5 -9
- package/assets/styles/components/media/_interactive-content.scss +2 -1
- package/assets/styles/components/media/_video.scss +1 -1
- package/assets/styles/components/pages/_back-matter.scss +1 -0
- package/assets/styles/components/pages/_chapters.scss +1 -0
- package/assets/styles/components/pages/_front-matter.scss +2 -0
- package/assets/styles/components/pages/_titles.scss +3 -1
- package/assets/styles/components/section-titles/_back-matter.scss +3 -1
- package/assets/styles/components/section-titles/_chapters.scss +8 -2
- package/assets/styles/components/section-titles/_front-matter.scss +5 -2
- package/assets/styles/components/section-titles/_generic.scss +3 -2
- package/assets/styles/components/section-titles/_parts.scss +2 -1
- package/assets/styles/components/specials/_columns.scss +4 -0
- package/assets/styles/components/specials/_contributors.scss +4 -3
- package/assets/styles/components/specials/_dropcaps.scss +5 -7
- package/assets/styles/components/specials/_floats.scss +2 -2
- package/assets/styles/components/specials/_footnotes.scss +9 -16
- package/assets/styles/components/specials/_glossaryterms.scss +2 -2
- package/assets/styles/components/specials/_miscellaneous.scss +4 -8
- package/assets/styles/components/specials/_pullquotes.scss +7 -2
- package/assets/styles/components/specials/_separators.scss +3 -2
- package/assets/styles/components/specials/_textboxes.scss +6 -8
- package/assets/styles/components/structure/_blank.scss +18 -18
- package/assets/styles/components/structure/_content-strings.scss +2 -2
- package/assets/styles/components/structure/_general.scss +2 -2
- package/assets/styles/components/structure/_mixins.scss +168 -136
- package/assets/styles/components/structure/_numbering.scss +2 -2
- package/assets/styles/components/structure/_recto-verso.scss +2 -2
- package/assets/styles/components/structure/_running-content.scss +5 -10
- package/assets/styles/components/toc/_generic.scss +124 -6
- package/assets/styles/variables/_colors.scss +65 -16
- package/assets/styles/variables/_elements.scss +20 -35
- package/assets/styles/variables/_media.scss +1 -1
- package/assets/styles/variables/_pages.scss +7 -7
- package/assets/styles/variables/_section-titles.scss +8 -8
- package/assets/styles/variables/_specials.scss +3 -2
- package/assets/styles/variables/_structure.scss +18 -13
- package/assets/styles/variables/_toc.scss +4 -4
- package/package.json +5 -4
- package/assets/styles/components/toc/_mobi.scss +0 -109
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
|
6
|
+
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
|
|
7
|
+
</content>
|
|
8
|
+
<orderEntry type="inheritedJdk" />
|
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
10
|
+
</component>
|
|
11
|
+
</module>
|
package/.idea/php.xml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="MessDetectorOptionsConfiguration">
|
|
4
|
+
<option name="transferred" value="true" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="PHPCSFixerOptionsConfiguration">
|
|
7
|
+
<option name="transferred" value="true" />
|
|
8
|
+
</component>
|
|
9
|
+
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
10
|
+
<option name="highlightLevel" value="WARNING" />
|
|
11
|
+
<option name="transferred" value="true" />
|
|
12
|
+
</component>
|
|
13
|
+
<component name="PhpStanOptionsConfiguration">
|
|
14
|
+
<option name="transferred" value="true" />
|
|
15
|
+
</component>
|
|
16
|
+
<component name="PsalmOptionsConfiguration">
|
|
17
|
+
<option name="transferred" value="true" />
|
|
18
|
+
</component>
|
|
19
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.8.2](https://github.com/pressbooks/buckram/compare/v1.8.1...v1.8.2) (2023-07-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update release instructions ([#332](https://github.com/pressbooks/buckram/issues/332)) ([b60dda3](https://github.com/pressbooks/buckram/commit/b60dda36f6858f2bb55e4f536abdf1080194fac0))
|
|
9
|
+
|
|
10
|
+
## [1.8.1](https://github.com/pressbooks/buckram/compare/v1.8.0...v1.8.1) (2023-01-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* update gitignore to avoid publish config files ([71fb1ae](https://github.com/pressbooks/buckram/commit/71fb1aefcba5807d65cd674c5a7947e5e19bbe06))
|
|
16
|
+
|
|
17
|
+
## [1.8.0](https://github.com/pressbooks/buckram/compare/v1.7.3...v1.8.0) (2023-01-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* make Buckram compatible with latest SCSSPHP ([#304](https://github.com/pressbooks/buckram/issues/304)) ([eb087ca](https://github.com/pressbooks/buckram/commit/eb087caf75ff026253904c64f8dbab335ec593f7))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* unset content on blank pages instead of using an empty string ([#305](https://github.com/pressbooks/buckram/issues/305)) ([e9063fb](https://github.com/pressbooks/buckram/commit/e9063fbe89947173177369a4a293eba8bea5e6a6))
|
|
28
|
+
|
|
3
29
|
## [1.7.3](https://github.com/pressbooks/buckram/compare/v1.7.2...v1.7.3) (2022-08-19)
|
|
4
30
|
|
|
5
31
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Buckram
|
|
2
2
|
|
|
3
|
-
[](https://github.com/pressbooks/buckram/blob/
|
|
3
|
+
[](https://github.com/pressbooks/buckram/blob/production/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
|
|
|
@@ -23,8 +23,8 @@ npm test
|
|
|
23
23
|
|
|
24
24
|
## Releasing
|
|
25
25
|
|
|
26
|
-
[
|
|
26
|
+
Buckram uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), enforced with [commitlint](https://commitlint.js.org/). This facilitates releasing new versions of the package via [Release Please](https://github.com/googleapis/release-please). Release notes will be automatically added to a PR based on commits to `dev`.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
To cut a release, merge the current [release pull request](https://github.com/google-github-actions/release-please-action#whats-a-release-pr). This will tag a new GitHub release and update [CHANGELOG.md](CHANGELOG.md).
|
|
29
29
|
|
|
30
|
-
Then, run `npm publish
|
|
30
|
+
Then, run `npm publish` from the root of the package and enter your one-time password when prompted. For more information on publishing to npm, see the [npm publish documentation](https://docs.npmjs.com/cli/publish).
|
|
@@ -59,9 +59,7 @@
|
|
|
59
59
|
table p {
|
|
60
60
|
color: if-map-get($table-para-color, $type);
|
|
61
61
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@else {
|
|
62
|
+
} @else {
|
|
65
63
|
.front-matter,
|
|
66
64
|
.part,
|
|
67
65
|
.chapter,
|
|
@@ -226,12 +224,14 @@ div.sidebar {
|
|
|
226
224
|
background-color: if-map-get($sidebar-color, $type);
|
|
227
225
|
}
|
|
228
226
|
|
|
229
|
-
.textbox
|
|
227
|
+
.textbox,
|
|
228
|
+
.bcc-box {
|
|
230
229
|
background-color: if-map-get($textbox-background-color, $type);
|
|
231
230
|
border-color: if-map-get($textbox-border-color, $type);
|
|
232
231
|
}
|
|
233
232
|
|
|
234
|
-
.textbox.shaded
|
|
233
|
+
.textbox.shaded,
|
|
234
|
+
.bcc-box.shaded {
|
|
235
235
|
background-color: if-map-get($textbox-shaded-background-color, $type);
|
|
236
236
|
}
|
|
237
237
|
|
|
@@ -6,168 +6,92 @@
|
|
|
6
6
|
/// @param {string | map} $var - The input variable.
|
|
7
7
|
/// @param {string} $type - The output format.
|
|
8
8
|
@function if-map-get($var, $type) {
|
|
9
|
-
@if type-of($var) ==
|
|
9
|
+
@if type-of($var) == "map" {
|
|
10
10
|
@return map-get($var, $type);
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
@else {
|
|
14
|
-
@return $var;
|
|
15
|
-
}
|
|
12
|
+
@return $var;
|
|
16
13
|
}
|
|
17
14
|
|
|
18
15
|
/// This function converts a running content or page number position to the CSS3 paged media box margin declaration for the relevant page position.
|
|
19
16
|
/// @param {string} $page-position - The page position: `first`, `left` or `right`.
|
|
20
|
-
/// @param {string} $position - The running content or page number position.
|
|
21
|
-
@function convert-position($page-position, $position) {
|
|
22
|
-
@if $position ==
|
|
23
|
-
@
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@else if $position == 'top-outside-corner' {
|
|
27
|
-
@if $page-position != 'first' {
|
|
28
|
-
@return '@top-#{$page-position}-corner';
|
|
17
|
+
/// @param {string} $content-position - The running content or page number position.
|
|
18
|
+
@function convert-position($page-position, $content-position) {
|
|
19
|
+
@if $page-position == "first" {
|
|
20
|
+
@if $content-position == "outside-bottom" {
|
|
21
|
+
@return (left: "@left-bottom", right: "@right-bottom");
|
|
29
22
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@return false;
|
|
23
|
+
@if $content-position == "bottom-outside-corner" {
|
|
24
|
+
@return "@bottom-#{$page-position}-corner";
|
|
33
25
|
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@else if $position == 'top-outside' {
|
|
37
|
-
@if $page-position != 'first' {
|
|
38
|
-
@return '@top-#{$page-position}';
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@else {
|
|
42
|
-
@return false;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@else if $position == 'top-center' {
|
|
47
|
-
@return '@top-center';
|
|
48
|
-
}
|
|
49
26
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@return '@top-right';
|
|
27
|
+
@if $content-position == "bottom-outside" {
|
|
28
|
+
@return "@bottom-#{$page-position}";
|
|
53
29
|
}
|
|
54
30
|
|
|
55
|
-
@
|
|
56
|
-
@return
|
|
31
|
+
@if $content-position == "bottom-inside" {
|
|
32
|
+
@return (left: "@bottom-right", right: "@bottom-left");
|
|
57
33
|
}
|
|
58
|
-
|
|
59
|
-
@
|
|
60
|
-
@return
|
|
34
|
+
} @else {
|
|
35
|
+
@if $content-position == "top-outside-corner" {
|
|
36
|
+
@return "@top-#{$page-position}-corner";
|
|
61
37
|
}
|
|
62
|
-
}
|
|
63
38
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
@return '@#{$page-position}-top';
|
|
39
|
+
@if $content-position == "top-outside" {
|
|
40
|
+
@return "@top-#{$page-position}";
|
|
67
41
|
}
|
|
68
42
|
|
|
69
|
-
@
|
|
70
|
-
@return
|
|
43
|
+
@if $content-position == "outside-middle" {
|
|
44
|
+
@return "@#{$page-position}-middle";
|
|
71
45
|
}
|
|
72
|
-
}
|
|
73
46
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
@return '@#{$page-position}-middle';
|
|
47
|
+
@if $content-position == "outside-top" {
|
|
48
|
+
@return "@#{$page-position}-top";
|
|
77
49
|
}
|
|
78
50
|
|
|
79
|
-
@
|
|
80
|
-
@return
|
|
51
|
+
@if $content-position == "outside-bottom" {
|
|
52
|
+
@return "@#{$page-position}-bottom";
|
|
81
53
|
}
|
|
82
|
-
}
|
|
83
54
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
@return
|
|
87
|
-
left: '@left-bottom',
|
|
88
|
-
right: '@right-bottom'
|
|
89
|
-
);
|
|
55
|
+
@if $content-position == "bottom-outside"
|
|
56
|
+
or $content-position == "bottom-inside" {
|
|
57
|
+
@return "@bottom-#{$page-position}";
|
|
90
58
|
}
|
|
91
|
-
@return '@#{$page-position}-bottom';
|
|
92
|
-
}
|
|
93
59
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
@return (
|
|
97
|
-
left: '@bottom-left-corner',
|
|
98
|
-
right: '@bottom-right-corner'
|
|
99
|
-
);
|
|
60
|
+
@if $content-position == "bottom-outside-corner" {
|
|
61
|
+
@return "@bottom-#{$page-position}-corner";
|
|
100
62
|
}
|
|
101
|
-
@return '@bottom-#{$page-position}-corner';
|
|
102
63
|
}
|
|
103
64
|
|
|
104
|
-
@
|
|
105
|
-
@
|
|
106
|
-
@return (
|
|
107
|
-
left: '@bottom-left',
|
|
108
|
-
right: '@bottom-right'
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
@return '@bottom-#{$page-position}';
|
|
65
|
+
@if $content-position == "top-center" {
|
|
66
|
+
@return "@top-center";
|
|
112
67
|
}
|
|
113
68
|
|
|
114
|
-
@
|
|
115
|
-
@return
|
|
69
|
+
@if $content-position == "bottom-center" {
|
|
70
|
+
@return "@bottom-center";
|
|
116
71
|
}
|
|
117
72
|
|
|
118
|
-
@
|
|
119
|
-
@if $page-position ==
|
|
120
|
-
@return
|
|
121
|
-
left: '@bottom-right',
|
|
122
|
-
right: '@bottom-left'
|
|
123
|
-
);
|
|
73
|
+
@if $content-position == "top-inside" {
|
|
74
|
+
@if $page-position == "left" {
|
|
75
|
+
@return "@top-right";
|
|
124
76
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
@return '@bottom-right';
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@else if $page-position == 'right' {
|
|
131
|
-
@return '@bottom-left';
|
|
77
|
+
@if $page-position == "right" {
|
|
78
|
+
@return "@top-left";
|
|
132
79
|
}
|
|
133
80
|
}
|
|
81
|
+
|
|
82
|
+
@return false;
|
|
134
83
|
}
|
|
135
84
|
|
|
136
85
|
/// This function determines whether a running content or page number position indicates a header or footer.
|
|
137
|
-
/// @param {string} $position - The running content or page number position.
|
|
138
|
-
@function head-or-foot($position) {
|
|
139
|
-
@if $position
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
or $position == 'top-center'
|
|
146
|
-
or $position == '@top-center'
|
|
147
|
-
or $position == 'top-inside'
|
|
148
|
-
or $position == 'outside-top'
|
|
149
|
-
or $position == '@left-top'
|
|
150
|
-
or $position == '@right-top'
|
|
151
|
-
or $position == 'outside-middle'
|
|
152
|
-
or $position == '@left-middle'
|
|
153
|
-
or $position == '@right-middle' {
|
|
154
|
-
@return 'head';
|
|
86
|
+
/// @param {string} $content-position - The running content or page number position.
|
|
87
|
+
@function head-or-foot($content-position) {
|
|
88
|
+
@if str-index($content-position, "top") or
|
|
89
|
+
str-index($content-position, "middle")
|
|
90
|
+
{
|
|
91
|
+
@return "head";
|
|
92
|
+
} @else if str-index($content-position, "bottom") {
|
|
93
|
+
@return "foot";
|
|
155
94
|
}
|
|
156
95
|
|
|
157
|
-
@
|
|
158
|
-
or $position == 'bottom-outside-corner'
|
|
159
|
-
or $position == '@bottom-left-corner'
|
|
160
|
-
or $position == '@bottom-right-corner'
|
|
161
|
-
or $position == 'bottom-outside'
|
|
162
|
-
or $position == '@bottom-left'
|
|
163
|
-
or $position == '@bottom-right'
|
|
164
|
-
or $position == 'bottom-center'
|
|
165
|
-
or $position == '@bottom-center'
|
|
166
|
-
or $position == 'bottom-inside' {
|
|
167
|
-
@return 'foot';
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
@else {
|
|
171
|
-
@return false;
|
|
172
|
-
}
|
|
96
|
+
@return false;
|
|
173
97
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Blockquotes //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
@if $type != 'web' {
|
|
10
10
|
.blockquote,
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
@if $type == 'prince' {
|
|
22
22
|
line-height: $blockquote-line-height;
|
|
23
23
|
}
|
|
24
|
+
|
|
24
25
|
text-align: $blockquote-align;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Body //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
@import '../utilities';
|
|
10
10
|
|
|
@@ -2,29 +2,30 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Headings //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
@import '../utilities';
|
|
10
10
|
|
|
11
11
|
@mixin heading($heading) {
|
|
12
12
|
#{$heading} {
|
|
13
|
-
border-bottom: map-get($
|
|
14
|
-
margin-top: if-map-get(map-get($
|
|
15
|
-
margin-bottom: if-map-get(map-get($
|
|
16
|
-
padding-bottom: if-map-get(map-get($
|
|
17
|
-
font-family: if-map-get(map-get($
|
|
18
|
-
font-size: if-map-get(map-get($
|
|
19
|
-
font-style: map-get($
|
|
20
|
-
font-weight: map-get($
|
|
13
|
+
border-bottom: map-get($heading-border-bottom-style-map, $heading) if-map-get(map-get($heading-border-bottom-width-map, $heading), $type) if-map-get(map-get($heading-border-bottom-color-map, $heading), $type);
|
|
14
|
+
margin-top: if-map-get(map-get($heading-margin-top-map, $heading), $type);
|
|
15
|
+
margin-bottom: if-map-get(map-get($heading-margin-bottom-map, $heading), $type);
|
|
16
|
+
padding-bottom: if-map-get(map-get($heading-padding-bottom-map, $heading), $type);
|
|
17
|
+
font-family: if-map-get(map-get($heading-font-family-map, $heading), $type);
|
|
18
|
+
font-size: if-map-get(map-get($heading-font-size-map, $heading), $type);
|
|
19
|
+
font-style: map-get($heading-font-style-map, $heading);
|
|
20
|
+
font-weight: map-get($heading-font-weight-map, $heading);
|
|
21
21
|
@if $type != 'epub' {
|
|
22
|
-
line-height: if-map-get(map-get($
|
|
22
|
+
line-height: if-map-get(map-get($heading-line-height-map, $heading), $type);
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
text-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
|
|
25
|
+
text-align: map-get($heading-align-map, $heading);
|
|
26
|
+
text-transform: map-get($heading-text-transform-map, $heading);
|
|
27
|
+
letter-spacing: if-map-get(map-get($heading-letter-spacing-map, $heading), $type);
|
|
28
|
+
word-spacing: if-map-get(map-get($heading-word-spacing-map, $heading), $type);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Links //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
|
|
9
9
|
@import "../utilities";
|
|
10
10
|
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
.print a {
|
|
19
19
|
text-decoration: $link-text-decoration-print;
|
|
20
20
|
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@else {
|
|
21
|
+
} @else {
|
|
24
22
|
.front-matter,
|
|
25
23
|
.part,
|
|
26
24
|
.chapter,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/// @group elements
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// ============================================================================//
|
|
6
6
|
// Lists //
|
|
7
|
-
|
|
7
|
+
// ============================================================================//
|
|
8
8
|
@import "../utilities";
|
|
9
9
|
|
|
10
10
|
%ol {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
|
|
63
63
|
li::before {
|
|
64
64
|
counter-increment: level-1;
|
|
65
|
-
content: counter(level-1)".\A0";
|
|
65
|
+
content: counter(level-1) ".\A0";
|
|
66
66
|
display: inline-block;
|
|
67
67
|
text-align: right;
|
|
68
68
|
width: if-map-get($ol-padding-left, $type);
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
|
|
76
76
|
ol li::before {
|
|
77
77
|
counter-increment: level-2;
|
|
78
|
-
content: counter(level-2, lower-alpha)".\A0";
|
|
78
|
+
content: counter(level-2, lower-alpha) ".\A0";
|
|
79
79
|
min-width: if-map-get($ol-padding-left, $type);
|
|
80
80
|
width: auto;
|
|
81
81
|
}
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
|
|
88
88
|
ol ol li::before {
|
|
89
89
|
counter-increment: level-3;
|
|
90
|
-
content: counter(level-3, lower-roman)".\A0";
|
|
90
|
+
content: counter(level-3, lower-roman) ".\A0";
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
ol ol ol {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
|
|
98
98
|
ol ol ol li::before {
|
|
99
99
|
counter-increment: level-4;
|
|
100
|
-
content: counter(level-4)")\A0";
|
|
100
|
+
content: counter(level-4) ")\A0";
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
ol ol ol ol {
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
ol ol ol ol li::before {
|
|
109
109
|
counter-increment: level-5;
|
|
110
|
-
content: counter(level-5, lower-alpha)")\A0";
|
|
110
|
+
content: counter(level-5, lower-alpha) ")\A0";
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
ol ol ol ol ol {
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
|
|
118
118
|
ol ol ol ol ol li::before {
|
|
119
119
|
counter-increment: level-6;
|
|
120
|
-
content: counter(level-6, lower-roman)")\A0";
|
|
120
|
+
content: counter(level-6, lower-roman) ")\A0";
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
li::before {
|
|
154
154
|
counter-increment: level-1;
|
|
155
|
-
content: counter(level-1, upper-roman)".\A0";
|
|
155
|
+
content: counter(level-1, upper-roman) ".\A0";
|
|
156
156
|
display: inline-block;
|
|
157
157
|
text-align: right;
|
|
158
158
|
width: if-map-get($ol-padding-left, $type);
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
|
|
166
166
|
ol li::before {
|
|
167
167
|
counter-increment: level-2;
|
|
168
|
-
content: counter(level-2, upper-alpha)".\A0";
|
|
168
|
+
content: counter(level-2, upper-alpha) ".\A0";
|
|
169
169
|
min-width: if-map-get($ol-padding-left, $type);
|
|
170
170
|
width: auto;
|
|
171
171
|
}
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
|
|
178
178
|
ol ol li::before {
|
|
179
179
|
counter-increment: level-3;
|
|
180
|
-
content: counter(level-3)".\A0";
|
|
180
|
+
content: counter(level-3) ".\A0";
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
ol ol ol {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
|
|
188
188
|
ol ol ol li::before {
|
|
189
189
|
counter-increment: level-4;
|
|
190
|
-
content: counter(level-4, lower-alpha)".\A0";
|
|
190
|
+
content: counter(level-4, lower-alpha) ".\A0";
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
ol ol ol ol {
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
|
|
198
198
|
ol ol ol ol li::before {
|
|
199
199
|
counter-increment: level-5;
|
|
200
|
-
content: "("counter(level-5)")\A0";
|
|
200
|
+
content: "("counter(level-5) ")\A0";
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
ol ol ol ol ol {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
|
|
208
208
|
ol ol ol ol ol li::before {
|
|
209
209
|
counter-increment: level-6;
|
|
210
|
-
content: "("counter(level-6, lower-alpha)")\A0";
|
|
210
|
+
content: "("counter(level-6, lower-alpha) ")\A0";
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
|
|
219
219
|
li::before {
|
|
220
220
|
counter-increment: level-1;
|
|
221
|
-
content: counter(level-1)".\A0";
|
|
221
|
+
content: counter(level-1) ".\A0";
|
|
222
222
|
display: inline-block;
|
|
223
223
|
text-align: right;
|
|
224
224
|
width: if-map-get($ol-padding-left, $type);
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
|
|
232
232
|
ol li::before {
|
|
233
233
|
counter-increment: level-2;
|
|
234
|
-
content: counter(level-1)"."counter(level-2)".\A0";
|
|
234
|
+
content: counter(level-1) "."counter(level-2) ".\A0";
|
|
235
235
|
min-width: if-map-get($ol-padding-left, $type);
|
|
236
236
|
width: auto;
|
|
237
237
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
|
|
244
244
|
ol ol li::before {
|
|
245
245
|
counter-increment: level-3;
|
|
246
|
-
content: counter(level-1)"."counter(level-2)"."counter(level-3)".\A0";
|
|
246
|
+
content: counter(level-1) "."counter(level-2) "."counter(level-3) ".\A0";
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
ol ol ol {
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
|
|
254
254
|
ol ol ol li::before {
|
|
255
255
|
counter-increment: level-4;
|
|
256
|
-
content: counter(level-1)"."counter(level-2)"."counter(level-3)"."counter(level-4)".\A0";
|
|
256
|
+
content: counter(level-1) "."counter(level-2) "."counter(level-3) "."counter(level-4) ".\A0";
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
ol ol ol ol {
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
|
|
264
264
|
ol ol ol ol li::before {
|
|
265
265
|
counter-increment: level-5;
|
|
266
|
-
content: counter(level-1)"."counter(level-2)"."counter(level-3)"."counter(level-4)"."counter(level-5)".\A0";
|
|
266
|
+
content: counter(level-1) "."counter(level-2) "."counter(level-3) "."counter(level-4) "."counter(level-5) ".\A0";
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
ol ol ol ol ol {
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
|
|
274
274
|
ol ol ol ol ol li::before {
|
|
275
275
|
counter-increment: level-6;
|
|
276
|
-
content: counter(level-1)"."counter(level-2)"."counter(level-3)"."counter(level-4)"."counter(level-5)"."counter(level-6)"\A0";
|
|
276
|
+
content: counter(level-1) "."counter(level-2) "."counter(level-3) "."counter(level-4) "."counter(level-5) "."counter(level-6) "\A0";
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
margin-top: if-map-get($li-li-margin-top, $type);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
@include generic-ordered-lists
|
|
329
|
+
@include generic-ordered-lists;
|
|
330
330
|
|
|
331
331
|
dl dt {
|
|
332
332
|
@extend %dt;
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
@extend %decimal;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
@include generic-ordered-lists
|
|
406
|
+
@include generic-ordered-lists;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
dl dt {
|