@simple-reporting/base 1.0.21 → 1.0.23

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.
Files changed (103) hide show
  1. package/dev/package.json +1 -1
  2. package/dev/src/assets/scss/general.scss +1 -0
  3. package/dev/src/assets/scss/pdf.scss +13 -0
  4. package/dev/src/assets/scss/placeholders.scss +48 -0
  5. package/dev/src/entries/pdf.ts +14 -1
  6. package/dev/srl.config.json +106 -0
  7. package/livingdocs/010.Titles/010.title-h1/scss/general.scss +12 -0
  8. package/livingdocs/010.Titles/020.title-h2/scss/general.scss +12 -1
  9. package/livingdocs/010.Titles/030.title-h3/scss/general.scss +0 -1
  10. package/livingdocs/010.Titles/040.title-h4/scss/general.scss +0 -1
  11. package/livingdocs/010.Titles/050.title-h5/scss/general.scss +0 -1
  12. package/livingdocs/010.Titles/060.title-h6/scss/general.scss +0 -1
  13. package/livingdocs/020.Text/010.lead/scss/general.scss +0 -1
  14. package/livingdocs/020.Text/020.paragraph/scss/general.scss +0 -1
  15. package/livingdocs/020.Text/040.link/scss/general.scss +0 -1
  16. package/livingdocs/020.Text/050.quote/scss/general.scss +0 -4
  17. package/livingdocs/020.Text/060.quote-with-portrait/scss/general.scss +4 -1
  18. package/livingdocs/020.Text/070.footnote-container/scss/general.scss +1 -2
  19. package/livingdocs/020.Text/080.footnote-item/scss/general.scss +0 -8
  20. package/livingdocs/020.Text/080.footnote-item/scss/pdf.scss +8 -1
  21. package/livingdocs/020.Text/080.footnote-item/scss/web.scss +8 -1
  22. package/livingdocs/030.Lists/010.unordered-list/scss/general.scss +3 -3
  23. package/livingdocs/030.Lists/010.unordered-list/scss/pdf.scss +8 -0
  24. package/livingdocs/030.Lists/010.unordered-list/scss/web.scss +2 -0
  25. package/livingdocs/030.Lists/010.unordered-list/unordered-list.html +1 -1
  26. package/livingdocs/030.Lists/020.ordered-list/scss/general.scss +2 -5
  27. package/livingdocs/030.Lists/030.alphanumeric-list/scss/general.scss +2 -5
  28. package/livingdocs/030.Lists/040.list-item/scss/general.scss +7 -0
  29. package/livingdocs/030.Lists/040.list-item/scss/web.scss +13 -0
  30. package/livingdocs/040.Media/010.table/scss/general.scss +18 -39
  31. package/livingdocs/040.Media/010.table/scss/pdf.scss +20 -0
  32. package/livingdocs/040.Media/020.image/scss/general.scss +0 -4
  33. package/livingdocs/080.CV/010.cv/cv.html +34 -32
  34. package/livingdocs/080.CV/010.cv/scss/app.scss +1 -0
  35. package/livingdocs/080.CV/010.cv/scss/editor.scss +1 -0
  36. package/livingdocs/080.CV/010.cv/scss/general.scss +15 -0
  37. package/livingdocs/080.CV/010.cv/scss/pdf.scss +14 -0
  38. package/livingdocs/080.CV/010.cv/scss/web.scss +15 -0
  39. package/livingdocs/080.CV/010.cv/scss/word.scss +0 -0
  40. package/livingdocs/080.CV/010.cv/scss/xbrl.scss +1 -0
  41. package/livingdocs/080.CV/020.cv-time-span/cv-time-span.html +14 -12
  42. package/livingdocs/080.CV/020.cv-time-span/scss/app.scss +1 -0
  43. package/livingdocs/080.CV/020.cv-time-span/scss/editor.scss +1 -0
  44. package/livingdocs/080.CV/020.cv-time-span/scss/general.scss +10 -0
  45. package/livingdocs/080.CV/020.cv-time-span/scss/pdf.scss +10 -0
  46. package/livingdocs/080.CV/020.cv-time-span/scss/web.scss +10 -0
  47. package/livingdocs/080.CV/020.cv-time-span/scss/word.scss +0 -0
  48. package/livingdocs/080.CV/020.cv-time-span/scss/xbrl.scss +1 -0
  49. package/livingdocs/090.Signatures/020.signature-item/scss/general.scss +1 -0
  50. package/livingdocs/100.Misc/010.anchor/anchor.html +1 -1
  51. package/livingdocs/100.Misc/020.accordion/accordion.html +7 -5
  52. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/pdf-chapter-navigation.html +1 -1
  53. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/scss/editor.scss +4 -0
  54. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/scss/general.scss +9 -1
  55. package/livingdocs/110.PDF/050.pdf-chapter-navigation-container/scss/pdf.scss +0 -9
  56. package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/pdf-chapter-navigation-item.html +3 -2
  57. package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/scss/general.scss +14 -1
  58. package/livingdocs/110.PDF/060.pdf-chapter-navigation-item/scss/pdf.scss +1 -14
  59. package/livingdocs/110.PDF/070.pdf-cover/ld-conf.json +3 -0
  60. package/livingdocs/110.PDF/070.pdf-cover/properties.json +19 -0
  61. package/livingdocs/110.PDF/070.pdf-cover/scss/editor.scss +7 -0
  62. package/livingdocs/110.PDF/070.pdf-cover/scss/general.scss +22 -0
  63. package/livingdocs/110.PDF/070.pdf-cover/scss/pdf.scss +22 -0
  64. package/livingdocs/110.PDF/070.pdf-cover/scss/web.scss +1 -0
  65. package/livingdocs/110.PDF/070.pdf-cover/scss/word.scss +0 -0
  66. package/livingdocs/110.PDF/070.pdf-cover/scss/xbrl.scss +1 -0
  67. package/livingdocs/110.PDF/080.pdf-toc-page/pdf-toc-page.html +1 -1
  68. package/livingdocs/110.PDF/080.pdf-toc-page/scss/editor.scss +35 -0
  69. package/livingdocs/110.PDF/080.pdf-toc-page/scss/general.scss +5 -0
  70. package/livingdocs/110.PDF/080.pdf-toc-page/scss/pdf.scss +20 -0
  71. package/livingdocs/110.PDF/080.pdf-toc-page/scss/web.scss +1 -0
  72. package/livingdocs/110.PDF/080.pdf-toc-page/scss/word.scss +0 -0
  73. package/livingdocs/110.PDF/080.pdf-toc-page/scss/xbrl.scss +1 -0
  74. package/livingdocs/110.PDF/090.pdf-toc-item-title/pdf-toc-item-title.html +1 -1
  75. package/livingdocs/110.PDF/090.pdf-toc-item-title/scss/editor.scss +3 -0
  76. package/livingdocs/110.PDF/090.pdf-toc-item-title/scss/general.scss +5 -0
  77. package/livingdocs/110.PDF/090.pdf-toc-item-title/scss/pdf.scss +2 -0
  78. package/livingdocs/110.PDF/090.pdf-toc-item-title/scss/web.scss +1 -0
  79. package/livingdocs/110.PDF/090.pdf-toc-item-title/scss/word.scss +0 -0
  80. package/livingdocs/110.PDF/090.pdf-toc-item-title/scss/xbrl.scss +1 -0
  81. package/livingdocs/110.PDF/100.pdf-toc-item/pdf-toc-item.html +2 -2
  82. package/livingdocs/110.PDF/100.pdf-toc-item/scss/editor.scss +3 -0
  83. package/livingdocs/110.PDF/100.pdf-toc-item/scss/general.scss +23 -0
  84. package/livingdocs/110.PDF/100.pdf-toc-item/scss/pdf.scss +2 -0
  85. package/livingdocs/110.PDF/100.pdf-toc-item/scss/web.scss +1 -0
  86. package/livingdocs/110.PDF/100.pdf-toc-item/scss/word.scss +0 -0
  87. package/livingdocs/110.PDF/100.pdf-toc-item/scss/xbrl.scss +1 -0
  88. package/livingdocs/999.Properties/pdf-spacer/properties.json +7 -11
  89. package/livingdocs/999.Properties/pdf-spacer/scss/pdf.scss +29 -0
  90. package/package.json +1 -1
  91. package/scripts/build.js +2 -2
  92. package/scripts/init.js +1 -1
  93. package/srl/.srl/App.vue +9 -5
  94. package/srl/.srl/components/Srl/Article/Accordion.vue +106 -0
  95. package/srl/.srl/components/Srl/Article/Dialog/Button.vue +39 -16
  96. package/srl/.srl/components/Srl/Category/Accordion.vue +32 -4
  97. package/srl/.srl/plugins/initProject.ts +12 -7
  98. package/srl/.srl/utils/html.ts +71 -62
  99. package/srl/.srl/utils/index.ts +28 -1
  100. package/srl/.srl/utils/pageState.ts +61 -0
  101. package/srl/srl/pdf/PDFNotes.ts +71 -0
  102. package/srl/srl/pdf/PDFSetPageNumbers.ts +25 -0
  103. /package/srl/srl/{Awesomizr.js → pdf/Awesomizr.js} +0 -0
@@ -1,40 +1,42 @@
1
- <div class="srl-cv">
2
- <div class="srl-grid srl-cv__header">
3
- <div class="srl-grid__inner">
4
- <div class="srl-cv__header-portrait">
5
- <figure class="srl-cv__figure">
6
- <img class="srl-cv__img" doc-image="image" />
7
- </figure>
8
- </div>
9
- <div class="srl-cv__header-content">
10
- <p class="srl-title-h3">
1
+ <srl-article-accordion class="srl-cv" data-replace-tag="div">
2
+ <div class="srl-grid srl-cv__header">
3
+ <div class="srl-grid__inner srl-cv__inner">
4
+ <div class="srl-cv__header-portrait">
5
+ <figure class="srl-cv__figure">
6
+ <img class="srl-cv__img" doc-image="image" />
7
+ </figure>
8
+ </div>
9
+ <div class="srl-cv__header-content">
10
+ <p class="srl-title-h3">
11
11
  <span class="srl-title-h3__text" doc-editable="cv-title-h3">
12
12
  Max Mustermann
13
13
  </span>
14
- </p>
15
- <p class="srl-title-h4">
14
+ </p>
15
+ <p class="srl-title-h4">
16
16
  <span class="srl-title-h4__text" doc-editable="cv-title-h4">
17
17
  Chairman of the Group Management, Chief Executive Officer (CEO)
18
18
  </span>
19
- </p>
20
- <p class="srl-paragraph" doc-editable="cv-text-excerpt">
21
- Swiss, born 1956 <br />
22
- Appointed in 2018
23
- </p>
24
- </div>
19
+ </p>
20
+ <p class="srl-paragraph" doc-editable="cv-text-excerpt">
21
+ Swiss, born 1956 <br />
22
+ Appointed in 2018
23
+ </p>
24
+ </div>
25
+ </div>
25
26
  </div>
26
- </div>
27
- <div class="srl-cv__content" doc-container="cv-content"></div>
28
- <div class="srl-grid srl-cv__button-container">
29
- <div class="srl-grid__inner srl-flex srl-justify-self-center">
30
- <button type="button" class="srl-cv__button">
31
- <span class="srl-cv__button-more" doc-editable="cv-text-more">
32
- Read more
33
- </span>
34
- <span class="srl-cv__button-close" doc-editable="cv-text-close">
35
- close
36
- </span>
37
- </button>
27
+ <div class="srl-cv__content srl-article-accordion__content">
28
+ <div class="srl-article-accordion__wrapper" doc-container="cv-content"></div>
38
29
  </div>
39
- </div>
40
- </div>
30
+ <div class="srl-grid srl-cv__button-container">
31
+ <div class="srl-grid__inner srl-flex srl-justify-self-center">
32
+ <button type="button" class="srl-cv__button srl-article-accordion__toggle">
33
+ <span class="srl-cv__button-more" doc-editable="cv-text-more">
34
+ Read more
35
+ </span>
36
+ <span class="srl-cv__button-close" doc-editable="cv-text-close">
37
+ close
38
+ </span>
39
+ </button>
40
+ </div>
41
+ </div>
42
+ </srl-article-accordion>
@@ -0,0 +1 @@
1
+ @use "web";
@@ -0,0 +1 @@
1
+ @use "web";
@@ -0,0 +1,15 @@
1
+ @use 'srl';
2
+ @use "sass:map";
3
+
4
+ .srl-cv__inner {
5
+ display: flex;
6
+ align-items: center;
7
+ }
8
+
9
+ .srl-cv__img {
10
+ border-radius: 50%;
11
+ }
12
+
13
+ .srl-cv__content {
14
+ margin-top: srl.spacer-get(400);
15
+ }
@@ -0,0 +1,14 @@
1
+ @use 'srl';
2
+
3
+ .srl-cv__inner {
4
+ display: flex;
5
+ }
6
+
7
+ .srl-cv__header-portrait {
8
+ margin-right: srl.grid-get-gutter-column-gap();
9
+ width: srl.grid-calculate-pdf-col-span-minus-one-gutter(2);
10
+ }
11
+
12
+ .srl-cv__header-content {
13
+ width: srl.grid-calculate-pdf-col-span-minus-one-gutter(4);
14
+ }
@@ -0,0 +1,15 @@
1
+ @use 'srl';
2
+ @use "assets/scss/placeholders";
3
+
4
+ .srl-cv__inner {
5
+ display: grid;
6
+ grid-template-columns: subgrid;
7
+ }
8
+
9
+ .srl-cv__header-portrait {
10
+ @extend %srl-cv-header-portrait;
11
+ }
12
+
13
+ .srl-cv__header-content {
14
+ @extend %srl-cv-header-content;
15
+ }
File without changes
@@ -0,0 +1 @@
1
+ @use 'general';
@@ -1,13 +1,15 @@
1
- <div class="srl-cv-time-span">
2
- <span class="srl-cv-time-span__years" doc-editable="cv-time-span-years">
3
- 2010 - 2012
4
- </span>
5
- <span
6
- class="srl-cv-time-span__position srl-linkable"
7
- doc-editable="cv-time-span-position"
8
- >
9
- Ut enim ad minim veniam, quis nostrud exercitation ullamco, Ut enim ad minim
10
- veniam, quis nostrud exercitation ullamco. Ut enim ad minim veniam, quis
11
- nostrud exercitation ullamco
12
- </span>
1
+ <div class="srl-grid srl-cv-time-span">
2
+ <div class="srl-grid__inner srl-cv-time-span__inner">
3
+ <span class="srl-cv-time-span__years" doc-editable="cv-time-span-years">
4
+ 2010 - 2012
5
+ </span>
6
+ <span
7
+ class="srl-cv-time-span__position srl-linkable"
8
+ doc-editable="cv-time-span-position"
9
+ >
10
+ Ut enim ad minim veniam, quis nostrud exercitation ullamco, Ut enim ad minim
11
+ veniam, quis nostrud exercitation ullamco. Ut enim ad minim veniam, quis
12
+ nostrud exercitation ullamco
13
+ </span>
14
+ </div>
13
15
  </div>
@@ -0,0 +1 @@
1
+ @use "web";
@@ -0,0 +1 @@
1
+ @use "web";
@@ -0,0 +1,10 @@
1
+ @use 'srl';
2
+ @use "sass:map";
3
+
4
+ .srl-cv-time-span {
5
+ @include srl.typography-cv-time-span();
6
+ }
7
+
8
+ .srl-cv-time-span__inner {
9
+ display: flex;
10
+ }
@@ -0,0 +1,10 @@
1
+ @use 'srl';
2
+
3
+
4
+ .srl-cv-time-span__years {
5
+ width: srl.system-size-unit(80);
6
+ }
7
+
8
+ .srl-cv-time-span__position {
9
+ width: calc(100% - srl.system-size-unit(80));
10
+ }
@@ -0,0 +1,10 @@
1
+ @use 'srl';
2
+ @use "assets/scss/placeholders";
3
+
4
+ .srl-cv-time-span__years {
5
+ width: srl.system-size-unit(110);
6
+ }
7
+
8
+ .srl-cv-time-span__position {
9
+ width: calc(100% - srl.system-size-unit(110));
10
+ }
@@ -0,0 +1 @@
1
+ @use 'general';
@@ -1,6 +1,7 @@
1
1
  @use 'srl';
2
2
 
3
3
  .srl-signature__name {
4
+ margin-top: srl.spacer-get(100);
4
5
  @include srl.typography-signature-name();
5
6
  }
6
7
 
@@ -1,4 +1,4 @@
1
- <p class="srl-anchor srl-editor-component" data-is-anchor="true">
1
+ <p class="srl-anchor srl-editor-component" data-remove-from-translate-plus="true" data-remove-from-xhtml="complete" data-is-anchor="true">
2
2
  <span class="srl-anchor__text srl-editor-component__text" doc-editable="anchor-text">
3
3
  Must start with a letter (A–Z or a–z); a number is not allowed. After the
4
4
  first letter, any combination of letters (a–z, A–Z), digits (0–9), hyphens
@@ -1,8 +1,10 @@
1
- <div class="srl-accordion">
1
+ <srl-article-accordion class="srl-accordion" data-replace-tag="div">
2
2
  <div class="srl-accordion__inner">
3
- <div class="srl-accordion__head" doc-container="header"></div>
4
- <div class="srl-accordion__content">
5
- <div class="srl-accordion__content-inner" doc-container="content"></div>
3
+ <div class="srl-accordion__head">
4
+ <button class="srl-accordion__toggle srl-article-accordion__toggle" type="button" data-replace-tag="div" doc-container="header"></button>
5
+ </div>
6
+ <div class="srl-accordion__content srl-article-accordion__content">
7
+ <div class="srl-accordion__content-inner srl-article-accordion__wrapper" doc-container="content"></div>
6
8
  </div>
7
9
  </div>
8
- </div>
10
+ </srl-article-accordion>
@@ -1,5 +1,5 @@
1
1
  <div
2
- class="srl-chapter-navigation"
2
+ class="srl-chapter-navigation srl-editor-component"
3
3
  data-is-chapter-override="true"
4
4
  data-remove-from-web="complete"
5
5
  >
@@ -1 +1,5 @@
1
1
  @use "web";
2
+
3
+ .srl-chapter-navigation__list {
4
+ @extend %srl-regular-width;
5
+ }
@@ -1 +1,9 @@
1
- @use 'srl';
1
+ @use 'srl';
2
+
3
+ .srl-chapter-navigation__list {
4
+ list-style: none;
5
+ padding: 0;
6
+ margin: 0;
7
+ display: flex;
8
+ column-gap: srl.grid-get-gutter-column-gap();
9
+ }
@@ -1,15 +1,6 @@
1
1
  @use 'srl';
2
2
  @use 'sass:map';
3
3
 
4
-
5
4
  .srl-chapter-navigation {
6
5
  position: running(chapterNavigation);
7
6
  }
8
-
9
- .srl-chapter-navigation__list {
10
- list-style: none;
11
- padding: 0;
12
- margin: 0;
13
- display: flex;
14
- column-gap: srl.grid-get-gutter-column-gap();
15
- }
@@ -1,7 +1,8 @@
1
1
  <li
2
2
  class="srl-chapter-navigation__list-item"
3
- doc-editable="pdf-chapter-navigation-item-text"
4
3
  data-remove-from-web="complete"
5
4
  >
6
- Chapter Title
5
+ <a class="srl-chapter-navigation__link" doc-link="href" doc-editable="pdf-chapter-navigation-item-text">
6
+ Chapter Title
7
+ </a>
7
8
  </li>
@@ -1 +1,14 @@
1
- @use 'srl';
1
+ @use 'srl';
2
+
3
+ .srl-chapter-navigation__list-item {
4
+ a {
5
+ text-decoration: none;
6
+ @include srl.typography-pdf-header();
7
+ }
8
+ }
9
+
10
+ .srl-chapter-navigation__list-item--current {
11
+ a {
12
+ color: srl.colors-primary-1000();
13
+ }
14
+ }
@@ -1,15 +1,2 @@
1
1
  @use 'srl';
2
- @use 'sass:map';
3
-
4
- .srl-chapter-navigation__list-item {
5
- a {
6
- text-decoration: none;
7
- @include srl.typography-pdf-header();
8
- }
9
- }
10
-
11
- .srl-chapter-navigation__list-item--current {
12
- a {
13
- color: srl.colors-primary-1000();
14
- }
15
- }
2
+ @use 'sass:map';
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "pdf-cover",
3
3
  "label": "PDF cover",
4
+ "properties": [
5
+ "invert-cover"
6
+ ],
4
7
  "directives": {
5
8
  "show-logo": {
6
9
  "type": "toggle",
@@ -0,0 +1,19 @@
1
+ {
2
+ "invert-cover": {
3
+ "label": "Font color scheme",
4
+ "type": "select",
5
+ "options": [
6
+ {
7
+ "caption": "Normal"
8
+ },
9
+ {
10
+ "caption": "Black",
11
+ "value": "srl-cover--font-color-black"
12
+ },
13
+ {
14
+ "caption": "Primary",
15
+ "value": "srl-cover--font-color-primary"
16
+ }
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,7 @@
1
+ @use 'srl';
2
+ @use 'web';
3
+
4
+ .srl-pdf-cover {
5
+ border: 1px solid #{srl.colors-primary-1000()};
6
+ margin-inline: auto;
7
+ }
@@ -0,0 +1,22 @@
1
+ @use "srl";
2
+ @use 'sass:map';
3
+
4
+ $page-margin-top: srl.system-size-unit(map.get(srl.$meta, pdf, margin, top));
5
+ $page-margin-right: srl.system-size-unit(map.get(srl.$meta, pdf, margin, right));
6
+ $page-margin-bottom: srl.system-size-unit(map.get(srl.$meta, pdf, margin, bottom));
7
+ $page-margin-left: srl.system-size-unit(map.get(srl.$meta, pdf, margin, left));
8
+
9
+ .srl-pdf-cover {
10
+ background-size: cover;
11
+ width: 595pt;
12
+ height: 842pt;
13
+ }
14
+
15
+ .srl-pdf-cover__content {
16
+ padding: 32pt 32pt 96pt;
17
+ height: 100%;
18
+ display: flex;
19
+ flex-direction: column;
20
+ justify-content: space-between;
21
+ }
22
+
@@ -0,0 +1,22 @@
1
+ @page cover {
2
+ margin: 0;
3
+
4
+ @top-left-corner {
5
+ content: "";
6
+ display: none;
7
+ }
8
+
9
+ @top-left {
10
+ content: "";
11
+ display: none;
12
+ }
13
+
14
+ @top-right-corner {
15
+ content: "";
16
+ display: none;
17
+ }
18
+ }
19
+
20
+ .srl-pdf-cover {
21
+ page: cover;
22
+ }
@@ -0,0 +1 @@
1
+ @use "srl";
@@ -0,0 +1 @@
1
+ @use 'general';
@@ -3,6 +3,6 @@
3
3
  <div class="srl-pdf-toc-page__title" doc-editable="pdf-toc-page-title">
4
4
  Chapter title
5
5
  </div>
6
- <div class="srl-pdf-toc" doc-container="toc"></div>
6
+ <div class="srl-pdf-toc-page__toc-container" doc-container="toc"></div>
7
7
  </div>
8
8
  </div>
@@ -0,0 +1,35 @@
1
+ @use 'srl';
2
+ @use 'web';
3
+ @use 'sass:map';
4
+
5
+ $page-margin-top: srl.system-size-unit(map.get(srl.$meta, pdf, margin, top));
6
+ $page-margin-right: srl.system-size-unit(map.get(srl.$meta, pdf, margin, right));
7
+ $page-margin-bottom: srl.system-size-unit(map.get(srl.$meta, pdf, margin, bottom));
8
+ $page-margin-left: srl.system-size-unit(map.get(srl.$meta, pdf, margin, left));
9
+
10
+ .srl-pdf-toc-page {
11
+ width: 595pt;
12
+ margin-left: auto;
13
+ margin-right: auto;
14
+ border: 1px solid #{srl.colors-primary-1000()};
15
+ }
16
+
17
+ .srl-pdf-toc-page__inner {
18
+ padding: (
19
+ $page-margin-top
20
+ $page-margin-right
21
+ $page-margin-bottom
22
+ $page-margin-left
23
+ );
24
+
25
+ display: grid;
26
+ grid-template-columns: repeat(8, 1fr);
27
+ column-gap: var(--srl-gutter-column-gap);
28
+ row-gap: var(--srl-gutter-row-gap);
29
+ }
30
+
31
+ .srl-pdf-toc-page__title,
32
+ .srl-pdf-toc-page__toc-container {
33
+ grid-column: auto / span 6;
34
+ grid-column-start: 3;
35
+ }
@@ -0,0 +1,5 @@
1
+ @use 'srl';
2
+
3
+ .srl-pdf-toc-page__title {
4
+ @include srl.typography-toc-title();
5
+ }
@@ -0,0 +1,20 @@
1
+ @use 'srl';
2
+ @use 'sass:map';
3
+
4
+ .srl-pdf-toc-page {
5
+ break-after: always;
6
+ }
7
+
8
+ .srl-pdf-toc-page__inner {
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: flex-end;
12
+ width: 100%;
13
+ }
14
+
15
+ .srl-pdf-toc-page__title,
16
+ .srl-pdf-toc-page__toc-container {
17
+ @include srl.grid-pdf-flex-col(6);
18
+ }
19
+
20
+
@@ -0,0 +1 @@
1
+ @use "srl";
@@ -0,0 +1 @@
1
+ @use 'general';
@@ -1,3 +1,3 @@
1
1
  <div class="srl-pdf-toc-item-title" doc-editable="pdf-toc-item-title-text">
2
- ToC item title
2
+ Chapter title
3
3
  </div>
@@ -0,0 +1,3 @@
1
+ @use 'srl';
2
+ @use 'web';
3
+ @use 'sass:map';
@@ -0,0 +1,5 @@
1
+ @use 'srl';
2
+
3
+ .srl-pdf-toc-item-title {
4
+ @include srl.typography-toc-item-title();
5
+ }
@@ -0,0 +1,2 @@
1
+ @use 'srl';
2
+ @use 'sass:map';
@@ -0,0 +1 @@
1
+ @use 'general';
@@ -1,6 +1,6 @@
1
1
  <a class="srl-pdf-toc__item" doc-link="href" data-page-number="">
2
- <div class="srl-pdf-toc__number" doc-editable="pdf-toc-item-number">1</div>
3
2
  <div class="srl-pdf-toc__text" doc-editable="pdf-toc-item-text">
4
- Chapter Title
3
+ Article title
5
4
  </div>
5
+ <div class="srl-pdf-toc__number" doc-editable="pdf-toc-item-number">1</div>
6
6
  </a>
@@ -0,0 +1,3 @@
1
+ @use 'srl';
2
+ @use 'web';
3
+ @use 'sass:map';
@@ -0,0 +1,23 @@
1
+ @use 'srl';
2
+
3
+ .srl-pdf-toc__item {
4
+ padding-block: srl.spacer-get(100);
5
+ display: flex;
6
+ justify-content: space-between;
7
+ border-top: srl.system-size-unit(1pt) solid srl.colors-black-1000();
8
+ text-decoration: none;
9
+ @include srl.typography-toc-item();
10
+ }
11
+
12
+ .srl-pdf-toc__text {
13
+ width: calc(100% - srl.system-size-unit(24pt) - srl.spacer-get(100));
14
+ }
15
+
16
+ .srl-pdf-toc__number {
17
+ text-align: right;
18
+ width: srl.system-size-unit(24pt);
19
+
20
+ &:after {
21
+ content: target-counter(attr(data-page-number), page);
22
+ }
23
+ }
@@ -0,0 +1,2 @@
1
+ @use 'srl';
2
+ @use 'sass:map';
@@ -0,0 +1 @@
1
+ @use "srl";
@@ -0,0 +1 @@
1
+ @use 'general';
@@ -6,37 +6,33 @@
6
6
  {
7
7
  "caption": "Default"
8
8
  },
9
- {
10
- "caption": "XXXS spacer",
11
- "value": "srl-spacer-xs"
12
- },
13
9
  {
14
10
  "caption": "XXS spacer",
15
- "value": "srl-spacer-xs"
11
+ "value": "srl-spacer-25"
16
12
  },
17
13
  {
18
14
  "caption": "XS spacer",
19
- "value": "srl-spacer-xs"
15
+ "value": "srl-spacer-50"
20
16
  },
21
17
  {
22
18
  "caption": "S spacer",
23
- "value": "srl-spacer-sm"
19
+ "value": "srl-spacer-100"
24
20
  },
25
21
  {
26
22
  "caption": "M spacer",
27
- "value": "srl-spacer-md"
23
+ "value": "srl-spacer-200"
28
24
  },
29
25
  {
30
26
  "caption": "L spacer",
31
- "value": "srl-spacer-lg"
27
+ "value": "srl-spacer-400"
32
28
  },
33
29
  {
34
30
  "caption": "XL spacer",
35
- "value": "srl-spacer-xl"
31
+ "value": "srl-spacer-800"
36
32
  },
37
33
  {
38
34
  "caption": "XXL spacer",
39
- "value": "srl-spacer-xxl"
35
+ "value": "srl-spacer-1600"
40
36
  }
41
37
  ]
42
38
  }