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..223253c 100644 --- a/cfg/fo/attrs/bootstrap-attr.xsl +++ b/cfg/fo/attrs/bootstrap-attr.xsl @@ -9,6 +9,49 @@ + + + + + + + + + + info + success + primary + warning + danger + secondary + + + + + + + + + + + + + @@ -28,125 +71,49 @@ - - + + - - + + - - + + + - + - - - - - - - info - success - primary - warning - danger - secondary - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - info - success - primary - warning - danger - secondary - - - - - - - - - - + @@ -189,13 +156,13 @@ - - - + + + - - - + + + @@ -222,13 +189,49 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + @@ -256,13 +259,13 @@ - - - + + + - - - + + + @@ -296,15 +299,15 @@ - - - - + + + + - - - - + + + + @@ -332,13 +335,13 @@ - - - + + + - - - + + + @@ -732,11 +735,11 @@ - - 1pt @@ -763,11 +766,11 @@ - - @@ -875,49 +878,53 @@ - - - - - - - + + + + + + + + + + + + + + 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..bba6ae5 100644 --- a/cfg/fo/attrs/default-values.xsl +++ b/cfg/fo/attrs/default-values.xsl @@ -6,87 +6,87 @@ - #0d6efd - #6c757d - #198754 - #dc3545 - #ffc107 - #0dcaf0 - #f8f9fa - #212529 + #0087fe + #636c74 + #00b15a + #e62845 + #ffc900 + #00b4f8 + #7740ff + #2c2f32 #0d6efd - #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 + #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 +103,10 @@ 36pt #dee2e6 + + 1pt + 3pt 6pt 0 @@ -139,14 +142,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 +162,8 @@ - + transparent + diff --git a/cfg/fo/attrs/settings-map.xsl b/cfg/fo/attrs/settings-map.xsl index 3a9a15e..939e3ed 100644 --- a/cfg/fo/attrs/settings-map.xsl +++ b/cfg/fo/attrs/settings-map.xsl @@ -13,8 +13,8 @@ - - + + @@ -29,10 +29,10 @@ - - - - + + + + @@ -47,10 +47,10 @@ - - - - + + + + @@ -65,10 +65,10 @@ - - - - + + + + @@ -83,10 +83,10 @@ - - - - + + + + @@ -127,14 +127,17 @@ - - - - - - - - + + + + + + + + + + + @@ -143,6 +146,7 @@ + diff --git a/xsl/fo/accordion.xsl b/xsl/fo/accordion.xsl index ed20e7d..f619d75 100644 --- a/xsl/fo/accordion.xsl +++ b/xsl/fo/accordion.xsl @@ -8,7 +8,7 @@ @@ -44,7 +44,11 @@ - + + + + + @@ -66,13 +70,13 @@ - + - + - + @@ -86,11 +90,6 @@ - - - - - diff --git a/xsl/fo/alert.xsl b/xsl/fo/alert.xsl index 2375ca1..641f195 100644 --- a/xsl/fo/alert.xsl +++ b/xsl/fo/alert.xsl @@ -8,28 +8,58 @@ - + + + + + + + + - + secondary - + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -45,27 +75,45 @@ always + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - secondary - - - diff --git a/xsl/fo/badge.xsl b/xsl/fo/badge.xsl index 3e20c63..a6ec6ad 100644 --- a/xsl/fo/badge.xsl +++ b/xsl/fo/badge.xsl @@ -12,23 +12,62 @@ > - + + + + + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + 1pt 3pt @@ -37,7 +76,7 @@ bold baseline - + diff --git a/xsl/fo/button.xsl b/xsl/fo/button.xsl index f834598..a83d74b 100644 --- a/xsl/fo/button.xsl +++ b/xsl/fo/button.xsl @@ -103,33 +103,29 @@ select="ancestor::*[contains(@class, ' bootstrap-d/button-group ') or tokenize(@outputclass, ' ') = 'btn-group'][1]/@vertical = 'yes'" /> + - - - - - url('') - - - - - - - - + - - - + - + + + + + + + + large small + xs default + + + + - + + + + + + + + @@ -166,29 +189,32 @@ - - - solid - - - - 1pt - - - - - - - - - - + + + + solid + + + + 1pt + + + + + + + + + + 7.5pt + 1pt 3pt + 9pt 1.5pt 4pt @@ -200,8 +226,8 @@ 11pt - - 6pt + + 7.5pt 4pt 4.5pt 2pt 3pt 8pt @@ -220,7 +246,7 @@ - + @@ -233,7 +259,7 @@ - + - + + + + + + + + + url('') + + + + + + + + + + + + + + - - + + + - - @@ -38,8 +36,6 @@ - - @@ -98,11 +94,13 @@ 0pt 0pt - + - + + + @@ -121,29 +119,49 @@ - + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -169,11 +187,6 @@ - - - - - @@ -185,11 +198,6 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -228,22 +256,10 @@ - - - - - - - - - - - - @@ -251,7 +267,7 @@ @@ -284,7 +300,7 @@ @@ -293,4 +309,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/fo/carousel.xsl b/xsl/fo/carousel.xsl index 30358c4..227be27 100644 --- a/xsl/fo/carousel.xsl +++ b/xsl/fo/carousel.xsl @@ -10,7 +10,6 @@ version="2.0" > - - + - + + + + + + diff --git a/xsl/fo/figure.xsl b/xsl/fo/figure.xsl index a750d10..3f28934 100644 --- a/xsl/fo/figure.xsl +++ b/xsl/fo/figure.xsl @@ -14,16 +14,16 @@ - + 16pt 16pt - + - + @@ -33,7 +33,28 @@ - + + + + right + center + left + + + + + + + + + + + + + + + + @@ -70,28 +91,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..154aeec 100644 --- a/xsl/fo/grid.xsl +++ b/xsl/fo/grid.xsl @@ -45,7 +45,7 @@ @@ -53,16 +53,23 @@ - + + + + + @@ -74,6 +81,15 @@ 12pt + + + + + + + + + diff --git a/xsl/fo/icon.xsl b/xsl/fo/icon.xsl index d649397..896bf7e 100644 --- a/xsl/fo/icon.xsl +++ b/xsl/fo/icon.xsl @@ -33,14 +33,22 @@ contains(@class, ' bootstrap-d/alert ') or contains(@class, ' topic/note ') or contains(@class, ' topic/xref ') or - @color or - exists(tokenize(@outputclass, ' ')[starts-with(., 'btn') or starts-with(., 'alert') or starts-with(., 'badge') or starts-with(., 'link-')]) + @theme or + exists(tokenize(@outputclass, ' ')[starts-with(., 'btn') or starts-with(., 'alert') or starts-with(., 'badge') or starts-with(., 'link-') or starts-with(., 'theme-')]) ][1]" /> - + + + + + + + - + + + @@ -161,11 +169,16 @@ + + + x2 e2 s2 - + + + diff --git a/xsl/fo/list-group.xsl b/xsl/fo/list-group.xsl index c4d86be..ccd1a25 100644 --- a/xsl/fo/list-group.xsl +++ b/xsl/fo/list-group.xsl @@ -51,10 +51,17 @@ priority="5" > - - + + + + + + - + @@ -67,7 +74,10 @@ - + diff --git a/xsl/fo/lists.xsl b/xsl/fo/lists.xsl new file mode 100644 index 0000000..eebeabc --- /dev/null +++ b/xsl/fo/lists.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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..3b4b00a --- /dev/null +++ b/xsl/fo/pagination.xsl @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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..a8fa79b 100644 --- a/xsl/fo/tables.xsl +++ b/xsl/fo/tables.xsl @@ -12,13 +12,13 @@ Table Support for Bootstrap Print Theming Hierarchy: Entry > 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 +34,8 @@ @@ -77,7 +77,9 @@ @@ -96,16 +98,18 @@ - + - + @@ -142,7 +146,9 @@ @@ -164,7 +170,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..67afd5f 100644 --- a/xsl/fo/topic.xsl +++ b/xsl/fo/topic.xsl @@ -12,14 +12,18 @@ - - + + + @@ -43,6 +47,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -56,6 +120,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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   + + + + + diff --git a/xsl/fo/utility-classes.xsl b/xsl/fo/utility-classes.xsl index 9ed491a..a4adad4 100644 --- a/xsl/fo/utility-classes.xsl +++ b/xsl/fo/utility-classes.xsl @@ -4,14 +4,12 @@ xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:opentopic-func="http://www.idiominc.com/opentopic/exsl/function" - xmlns:dita-ot="http://dita-ot.sourceforge.net/ns/201007/dita-ot" - exclude-result-prefixes="xs opentopic-func dita-ot" + exclude-result-prefixes="xs" version="2.0" > - + @@ -38,6 +36,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + solid + + + + + + + + solid + + + + + + + + @@ -195,7 +297,7 @@ - + @@ -212,13 +314,73 @@ - - + + + p-3 + ps-3 pe-3 + pt-3 + pb-3 + pt-3 pb-3 + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -334,7 +496,6 @@ - @@ -347,7 +508,6 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -498,7 +719,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 +768,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 15pt - - - - - - - - - - - - - - - - - - - - - - 15pt - - - - - - - - - - - - - - - - - - - - - - - - - - - 1.5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #ffffff - - - - - - - - - - - - - - - - - - - - - - - - - - - - #ffffff - - - - - - - - - - - - - - - - - + - + @@ -879,7 +792,7 @@ - + @@ -900,11 +813,14 @@ + + + @@ -913,12 +829,55 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -933,18 +892,17 @@ - - + @@ -961,7 +919,7 @@ 0pt none @@ -1014,14 +972,8 @@ - - 0pt @@ -1041,13 +993,8 @@ - - + @@ -1215,23 +1162,84 @@ priority="10" /> - - + + + + + + + + + + + + - - - - 0pt - 0pt - - + + + + + + + + + + + + + + + + + + + 0pt + 0pt + + + + + + + + + - + + + + + + + + + + + + + + 0pt + 0pt + + + + + + + + + + + - - + + - + + + + + + + - - - - +