diff --git a/.gitignore b/.gitignore index bdde85b..54b99e5 100644 --- a/.gitignore +++ b/.gitignore @@ -68,4 +68,5 @@ $RECYCLE.BIN/ node_modules -out \ No newline at end of file +out +.gstack/ diff --git a/.lefthook.yml b/.lefthook.yml index d5e4b64..b6692ee 100644 --- a/.lefthook.yml +++ b/.lefthook.yml @@ -9,5 +9,5 @@ pre-commit: commands: prettier: glob: '*.{css,dita*,json,md,xml,xsl,yml}' - run: prettier --write {staged_files} + run: npx prettier --write {staged_files} stage_fixed: true diff --git a/cfg/fo/attrs/bootstrap-attr.xsl b/cfg/fo/attrs/bootstrap-attr.xsl index a8b5c42..3579fa0 100644 --- a/cfg/fo/attrs/bootstrap-attr.xsl +++ b/cfg/fo/attrs/bootstrap-attr.xsl @@ -1,4 +1,8 @@ + + + + + + + + + + + info + success + primary + warning + danger + secondary + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -28,125 +93,68 @@ - - + + - - + + - - + + + - + - - - - - - - info - success - primary - warning - danger - secondary - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - info - success - primary - warning - danger - secondary - - - - - - - - - - + @@ -189,13 +197,13 @@ - - - + + + - - - + + + @@ -222,13 +230,47 @@ - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -256,13 +298,13 @@ - - - + + + - - - + + + @@ -296,15 +338,15 @@ - - - - + + + + - - - - + + + + @@ -332,13 +374,13 @@ - - - + + + - - - + + + @@ -732,11 +774,11 @@ - - 1pt @@ -746,28 +788,28 @@ 5pt - - @@ -802,47 +844,79 @@ select="$bootstrap-rounded-pill" /> + + + + + + + + bold bold bold bold bold bold @@ -875,49 +949,49 @@ - - + - - - - - + + + + + + + + lighter + 300 + 400 + 500 + 600 + 700 + bolder diff --git a/cfg/fo/attrs/default-values.xsl b/cfg/fo/attrs/default-values.xsl index 298b7f6..00fc837 100644 --- a/cfg/fo/attrs/default-values.xsl +++ b/cfg/fo/attrs/default-values.xsl @@ -1,92 +1,97 @@ - #0d6efd - #6c757d - #198754 - #dc3545 - #ffc107 - #0dcaf0 - #f8f9fa - #212529 + #0087fe + #636c74 + #00b15a + #e62845 + #ffc900 + #00b4f8 + #7740ff + #2c2f32 #0d6efd + + bold - #e0f2ff - #084298 - #e2e3e5 - #41464b - #d1e7dd - #0f5132 - #f8d7da - #842029 - #fff3cd - #332701 - #cff4fc - #032830 - #fefefe - #141619 - #ced4da - #141619 + #dfe5ff + #21457c + + + #f1f2f3 + #3e4347 + #d8f0dd + #1a5931 + #ffd9d7 + #732026 + #fff4d5 + #7e6317 + #def0fe + #215a79 + #ead9ff + #41267c + #e3e5e7 + #131415 - #cfe2ff - #052c65 - #e2e3e5 - #41464b - #d1e7dd - #0f5132 - #cff4fc - #032830 - #fff3cd - #332701 - #f8d7da - #842029 - #f8f9fa - #212529 - #212529 - #ffffff + #dfe5ff + #21457c + #f1f2f3 + #3e4347 + #d8f0dd + #1a5931 + #def0fe + #215a79 + #fff4d5 + #7e6317 + #ffd9d7 + #732026 + #ead9ff + #41267c + #2c2f32 + #ffffff - #0d6efd + #0087fe #ffffff - #6c757d + #636c74 #ffffff - #198754 + #00b15a #ffffff - #0dcaf0 - #000000 - #ffc107 - #000000 - #dc3545 + #00b4f8 + #2c2f32 + #ffc900 + #2c2f32 + #e62845 #ffffff - #f8f9fa - #000000 - #212529 - #ffffff + #7740ff + #ffffff + #2c2f32 + #ffffff - #0d6efd + #f1f2f3 + #0087fe #ffffff - #6c757d + #636c74 #ffffff - #198754 + #00b15a #ffffff - #0dcaf0 - #000000 - #ffc107 - #000000 - #dc3545 + #00b4f8 + #2c2f32 + #ffc900 + #2c2f32 + #e62845 #ffffff - #f8f9fa - #000000 - #212529 - #ffffff + #7740ff + #ffffff + #2c2f32 + #ffffff 6pt @@ -103,7 +108,10 @@ 36pt #dee2e6 + + 1pt + 3pt 6pt 0 @@ -139,14 +147,17 @@ 6pt 3pt - 60pt - 52pt - 44pt - 36pt - 28pt - 24pt - 300 - 1.2 + 9pt + 10.5pt + 12pt + + 15pt + 20.4pt + 24pt + 30pt + 36pt + 48pt + 60pt #212529 #ffffff @@ -156,7 +167,9 @@ - + transparent + + diff --git a/cfg/fo/attrs/dita-ot.xsl b/cfg/fo/attrs/dita-ot.xsl index 208ee0a..28bb403 100644 --- a/cfg/fo/attrs/dita-ot.xsl +++ b/cfg/fo/attrs/dita-ot.xsl @@ -1,4 +1,8 @@ + diff --git a/cfg/fo/attrs/settings-map.xsl b/cfg/fo/attrs/settings-map.xsl index 3a9a15e..00db864 100644 --- a/cfg/fo/attrs/settings-map.xsl +++ b/cfg/fo/attrs/settings-map.xsl @@ -1,6 +1,6 @@ @@ -13,9 +13,11 @@ - - + + + + @@ -29,10 +31,10 @@ - - - - + + + + @@ -47,10 +49,10 @@ - - - - + + + + @@ -65,10 +67,10 @@ - - - - + + + + @@ -83,10 +85,10 @@ - - - - + + + + @@ -127,14 +129,17 @@ - - - - - - - - + + + + + + + + + + + @@ -143,6 +148,7 @@ + diff --git a/xsl/fo/accordion.xsl b/xsl/fo/accordion.xsl index ed20e7d..a87b82c 100644 --- a/xsl/fo/accordion.xsl +++ b/xsl/fo/accordion.xsl @@ -1,4 +1,8 @@ + @@ -24,27 +28,77 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + 0pt + 0pt + + + + + hidden + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + @@ -64,19 +118,17 @@ - + - + - - - - + + - + @@ -86,11 +138,6 @@ - - - - - diff --git a/xsl/fo/alert.xsl b/xsl/fo/alert.xsl index 2375ca1..4f51ff1 100644 --- a/xsl/fo/alert.xsl +++ b/xsl/fo/alert.xsl @@ -1,4 +1,8 @@ + - + + + + + + + + - + secondary - + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -45,28 +79,46 @@ always + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - secondary - - - - + diff --git a/xsl/fo/badge.xsl b/xsl/fo/badge.xsl index 3e20c63..e492daf 100644 --- a/xsl/fo/badge.xsl +++ b/xsl/fo/badge.xsl @@ -1,4 +1,8 @@ + - + + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1pt 3pt @@ -37,7 +86,7 @@ bold baseline - + diff --git a/xsl/fo/button.xsl b/xsl/fo/button.xsl index f834598..e3834d4 100644 --- a/xsl/fo/button.xsl +++ b/xsl/fo/button.xsl @@ -1,4 +1,8 @@ + + + + - - - - - url('') - - - - - - - - + - - - + - + + + + + + + + large small + xs default + + + + - + + + + + + + + @@ -166,29 +198,32 @@ - - - solid - - - - 1pt - - - - - - - - - - + + + + solid + + + + 1pt + + + + + + + + + + 7.5pt + 1pt 3pt + 9pt 1.5pt 4pt @@ -200,8 +235,8 @@ 11pt - - 6pt + + 7.5pt 4pt 4.5pt 2pt 3pt 8pt @@ -220,7 +255,7 @@ - + @@ -233,7 +268,7 @@ - + - + + + + + + + + + url('') + + + + + + + + + + + + - - + + + - + + + + + - + underline - - - url('') - - - - - - - + + + + url('') + + + + + + @@ -391,7 +457,7 @@ - + diff --git a/xsl/fo/card.xsl b/xsl/fo/card.xsl index 0c206a9..99af10c 100644 --- a/xsl/fo/card.xsl +++ b/xsl/fo/card.xsl @@ -1,4 +1,8 @@ + - - - + @@ -38,11 +40,9 @@ - - - + @@ -60,14 +60,19 @@ + + + - + - + @@ -77,7 +82,7 @@ - + @@ -90,60 +95,160 @@ + + + + + + + + + + + + + 0pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + - + 0pt 0pt - - + + - + + + - + + solid + always + + + + + + + hidden + + + + - + - + + name="top-images" + select="$all-images[contains(@outputclass, 'card-img-top')] | ($all-images[1][not(contains(@outputclass, 'card-img-bottom'))])" + /> + name="header" + select="*[self::card-header or contains(@class, ' bootstrap-d/card-header ') or contains(@outputclass, 'card-header')]" + /> - + name="footer" + select="*[self::card-footer or contains(@class, ' bootstrap-d/card-footer ') or contains(@outputclass, 'card-footer')]" + /> + - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -169,11 +274,6 @@ - - - - - @@ -185,22 +285,17 @@ - - - - - + /> @@ -209,41 +304,101 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + @@ -251,7 +406,7 @@ @@ -284,13 +439,47 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/carousel.xsl b/xsl/fo/carousel.xsl index 30358c4..b9ca967 100644 --- a/xsl/fo/carousel.xsl +++ b/xsl/fo/carousel.xsl @@ -1,4 +1,8 @@ + - - + - + + + + + + diff --git a/xsl/fo/figure.xsl b/xsl/fo/figure.xsl index a750d10..20ae93d 100644 --- a/xsl/fo/figure.xsl +++ b/xsl/fo/figure.xsl @@ -1,4 +1,8 @@ + - + 16pt 16pt - + - + @@ -33,7 +37,28 @@ - + + + + right + center + left + + + + + + + + + + + + + + + + @@ -70,28 +95,127 @@ - + + - - - 0.9em - - 8pt - - - - - right - center - left - - + + + 10.5pt + + + + 0.9em + + + + 8pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #ffffff + + + + + + + + + + + + + + + + + + + + + + + + + + + + #ffffff + + + + + + + + + + diff --git a/xsl/fo/grid.xsl b/xsl/fo/grid.xsl index 9cb2d6d..9fda0a3 100644 --- a/xsl/fo/grid.xsl +++ b/xsl/fo/grid.xsl @@ -1,4 +1,8 @@ + @@ -53,16 +57,23 @@ - + + + + + @@ -74,6 +85,15 @@ 12pt + + + + + + + + + diff --git a/xsl/fo/icon.xsl b/xsl/fo/icon.xsl index d649397..6f75767 100644 --- a/xsl/fo/icon.xsl +++ b/xsl/fo/icon.xsl @@ -1,4 +1,8 @@ + - + + + + + + + - + + + @@ -161,11 +173,16 @@ + + + x2 e2 s2 - + + + diff --git a/xsl/fo/list-group.xsl b/xsl/fo/list-group.xsl index c4d86be..dff624b 100644 --- a/xsl/fo/list-group.xsl +++ b/xsl/fo/list-group.xsl @@ -1,4 +1,8 @@ + - - + + + + + + - + @@ -67,7 +78,10 @@ - + diff --git a/xsl/fo/lists.xsl b/xsl/fo/lists.xsl new file mode 100644 index 0000000..0170e73 --- /dev/null +++ b/xsl/fo/lists.xsl @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/note.xsl b/xsl/fo/note.xsl deleted file mode 100644 index 6a0d024..0000000 --- a/xsl/fo/note.xsl +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - solid - - - - - solid - - - - - - - 12pt - - - 10pt - 10pt - - - - always - - - - - - - - - - - - - - bi-lightbulb - bi-shield-check - bi-clipboard-check - bi-slash-circle - bi-exclamation-circle-fill - bi-exclamation-triangle - bi-exclamation-triangle - bi-exclamation-triangle - bi-exclamation-triangle - bi-exclamation-triangle - bi-info-circle-fill - bi-pencil - bi-info-circle - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   - - - - - - diff --git a/xsl/fo/pagination.xsl b/xsl/fo/pagination.xsl new file mode 100644 index 0000000..b404e80 --- /dev/null +++ b/xsl/fo/pagination.xsl @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 6pt 12pt + 3pt 7.5pt + 4.5pt 9pt + + + + + + 9pt + 6pt + + + + + + + + + + + + solid + + + + + 10.5pt + + + + + + + + + + + + + + + url('') + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/tables.xsl b/xsl/fo/tables.xsl index e2a4fe0..19a8c97 100644 --- a/xsl/fo/tables.xsl +++ b/xsl/fo/tables.xsl @@ -1,4 +1,8 @@ + Row > thead > Table - - When is set: + + When
is set: - thead row takes primary color (like badge) - tbody rows take primary-subtle color (like alert) - borders (if present) also take primary color - When is set: + When is set: - thead row takes the specified color, overriding table color. When
is set: @@ -34,8 +38,8 @@ @@ -77,7 +81,9 @@ @@ -96,16 +102,18 @@ - + - + @@ -142,7 +150,9 @@ @@ -164,7 +174,7 @@ select="parent::*[contains(@class, ' topic/row ')]/parent::*[contains(@class, ' topic/tfoot ')]" /> - + - + diff --git a/xsl/fo/topic.xsl b/xsl/fo/topic.xsl index 6d6db64..36d12a8 100644 --- a/xsl/fo/topic.xsl +++ b/xsl/fo/topic.xsl @@ -1,9 +1,14 @@ + @@ -12,14 +17,18 @@ - - + + + @@ -32,9 +41,40 @@ + + + + + + + + + + + + + + + + + + + + + always + + + @@ -43,6 +83,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -56,6 +156,330 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + solid + + + + + solid + + + + + + + 12pt + + + 10pt + 10pt + + + + + + + + + + + + + + + + + + + + + + always + + + + + + + + + + + + + + bi-lightbulb + bi-shield-check + bi-clipboard-check + bi-slash-circle + bi-exclamation-circle-fill + bi-exclamation-triangle + bi-exclamation-triangle + bi-exclamation-triangle + bi-exclamation-triangle + bi-exclamation-triangle + bi-info-circle-fill + bi-pencil + bi-info-circle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + @@ -70,4 +494,14 @@ + + + + + + + diff --git a/xsl/fo/utility-classes.xsl b/xsl/fo/utility-classes.xsl index 9ed491a..3fffdfa 100644 --- a/xsl/fo/utility-classes.xsl +++ b/xsl/fo/utility-classes.xsl @@ -1,17 +1,19 @@ + - + @@ -38,6 +40,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + solid + + + + + + + + solid + + + + + + + + @@ -195,7 +301,7 @@ - + @@ -212,13 +318,73 @@ - - + + + p-3 + ps-3 pe-3 + pt-3 + pb-3 + pt-3 pb-3 + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -334,7 +500,6 @@ - @@ -347,7 +512,6 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -498,7 +717,8 @@ starts-with($token, 'px-') or starts-with($token, 'py-') or starts-with($token, 'pt-') or starts-with($token, 'pb-') or starts-with($token, 'ps-') or starts-with($token, 'pe-') or starts-with($token, 'mx-') or starts-with($token, 'my-') or starts-with($token, 'mt-') or starts-with($token, 'mb-') or starts-with($token, 'ms-') or starts-with($token, 'me-') or $token = 'h1' or $token = 'h2' or $token = 'h3' or $token = 'h4' or $token = 'h5' or $token = 'h6' or - starts-with($token, 'display-') or $token = 'lead'" + $token = 'lead' or + starts-with($token, 'fw-') or starts-with($token, 'fs-')" > @@ -546,331 +766,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 15pt - - - - - - - - - - - - - - - - - - - - - - 15pt - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #ffffff - - - - - - - - - - - - - - - - - - - - - - - - - - - - #ffffff - - - - - - - - - - - - - - - - - + - + @@ -879,7 +790,7 @@ - + @@ -900,11 +811,14 @@ + + + @@ -913,12 +827,55 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -933,18 +890,17 @@ - - + @@ -961,24 +917,44 @@ 0pt none + + + + + + yes + + + + + + + + @@ -1014,14 +990,8 @@ - - 0pt @@ -1041,13 +1011,8 @@ - - + @@ -1215,23 +1180,82 @@ priority="10" /> - - + + + + + + + + + + + + - - - - 0pt - 0pt - - + + + + + + + + + + + + + + + + + + + 0pt + 0pt + + + + + + + + + - + + + + + + + + + + + + + + 0pt + 0pt + + + + + + + + + + + + - - + + - + + + + + + + - - - - +