dibk-design 7.7.0 → 8.0.0

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 (136) hide show
  1. package/README.md +7 -0
  2. package/dist/dibk-design.css +1 -0
  3. package/dist/favicon.ico +0 -0
  4. package/dist/index.es.js +2386 -0
  5. package/dist/index.html +38 -0
  6. package/dist/index.umd.js +20 -0
  7. package/dist/manifest.json +15 -0
  8. package/dist/robots.txt +3 -0
  9. package/package.json +19 -27
  10. package/dist/assets/fonts/PPMori-Bold.otf +0 -0
  11. package/dist/assets/fonts/PPMori-Book.otf +0 -0
  12. package/dist/assets/fonts/PPMori-ExtraBold.otf +0 -0
  13. package/dist/assets/fonts/PPMori-Light.otf +0 -0
  14. package/dist/assets/fonts/PPMori-Medium.otf +0 -0
  15. package/dist/assets/fonts/PPMori-Regular.otf +0 -0
  16. package/dist/assets/fonts/PPMori-RegularItalic.otf +0 -0
  17. package/dist/assets/fonts/PPMori-SemiBold.otf +0 -0
  18. package/dist/assets/png/dibk-logo.png +0 -0
  19. package/dist/assets/svg/arbeidstilsynet-logo.svg +0 -1
  20. package/dist/assets/svg/asterisk.svg +0 -1
  21. package/dist/assets/svg/checkmark-symbol.svg +0 -8
  22. package/dist/assets/svg/dibk-logo-base64.js +0 -7
  23. package/dist/assets/svg/dibk-logo-mobile.svg +0 -91
  24. package/dist/assets/svg/dibk-logo.svg +0 -52
  25. package/dist/assets/svg/error-sign.svg +0 -15
  26. package/dist/assets/svg/info-sign.svg +0 -1
  27. package/dist/assets/svg/spinner.svg +0 -57
  28. package/dist/assets/svg/x-symbol.svg +0 -1
  29. package/dist/components/Accordion.js +0 -64
  30. package/dist/components/Accordion.module.scss +0 -190
  31. package/dist/components/Button.js +0 -118
  32. package/dist/components/Button.module.scss +0 -290
  33. package/dist/components/CheckBoxIcon.js +0 -42
  34. package/dist/components/CheckBoxIcon.module.scss +0 -69
  35. package/dist/components/CheckBoxInput.js +0 -70
  36. package/dist/components/CheckBoxInput.module.scss +0 -53
  37. package/dist/components/CheckBoxList.js +0 -55
  38. package/dist/components/CheckBoxList.module.scss +0 -25
  39. package/dist/components/CheckBoxListItem.js +0 -61
  40. package/dist/components/CheckBoxListItem.module.scss +0 -84
  41. package/dist/components/Container.js +0 -24
  42. package/dist/components/Container.module.scss +0 -15
  43. package/dist/components/ContentBox.js +0 -56
  44. package/dist/components/ContentBox.module.scss +0 -60
  45. package/dist/components/DescriptionDetails.js +0 -32
  46. package/dist/components/DescriptionDetails.module.scss +0 -22
  47. package/dist/components/DescriptionList.js +0 -47
  48. package/dist/components/DescriptionList.module.scss +0 -15
  49. package/dist/components/DescriptionTerm.js +0 -32
  50. package/dist/components/DescriptionTerm.module.scss +0 -30
  51. package/dist/components/Dialog.js +0 -86
  52. package/dist/components/Dialog.module.scss +0 -178
  53. package/dist/components/DragAndDropFileInput.js +0 -131
  54. package/dist/components/DragAndDropFileInput.module.scss +0 -38
  55. package/dist/components/ErrorBox.js +0 -33
  56. package/dist/components/ErrorBox.module.scss +0 -68
  57. package/dist/components/ErrorMessage.js +0 -37
  58. package/dist/components/ErrorMessage.module.scss +0 -30
  59. package/dist/components/Footer.js +0 -16
  60. package/dist/components/Footer.module.scss +0 -21
  61. package/dist/components/Header.js +0 -42
  62. package/dist/components/Header.module.scss +0 -79
  63. package/dist/components/InfoBox.js +0 -23
  64. package/dist/components/InfoBox.module.scss +0 -44
  65. package/dist/components/InputField.js +0 -137
  66. package/dist/components/InputField.module.scss +0 -88
  67. package/dist/components/Label.js +0 -40
  68. package/dist/components/Label.module.scss +0 -19
  69. package/dist/components/Lead.js +0 -31
  70. package/dist/components/Lead.module.scss +0 -13
  71. package/dist/components/List.js +0 -46
  72. package/dist/components/List.module.scss +0 -12
  73. package/dist/components/ListItem.js +0 -27
  74. package/dist/components/ListItem.module.scss +0 -10
  75. package/dist/components/LoadingAnimation.js +0 -26
  76. package/dist/components/LoadingAnimation.module.scss +0 -28
  77. package/dist/components/NavigationBar.js +0 -146
  78. package/dist/components/NavigationBar.module.scss +0 -474
  79. package/dist/components/NavigationBarListItem.js +0 -24
  80. package/dist/components/PDF.js +0 -14
  81. package/dist/components/PDF.scss +0 -765
  82. package/dist/components/Paper.js +0 -24
  83. package/dist/components/Paper.module.scss +0 -17
  84. package/dist/components/ProgressBar.js +0 -32
  85. package/dist/components/ProgressBar.module.scss +0 -30
  86. package/dist/components/RadioButtonIcon.js +0 -34
  87. package/dist/components/RadioButtonIcon.module.scss +0 -49
  88. package/dist/components/RadioButtonInput.js +0 -68
  89. package/dist/components/RadioButtonInput.module.scss +0 -53
  90. package/dist/components/RadioButtonList.js +0 -55
  91. package/dist/components/RadioButtonList.module.scss +0 -25
  92. package/dist/components/RadioButtonListItem.js +0 -59
  93. package/dist/components/RadioButtonListItem.module.scss +0 -84
  94. package/dist/components/Select.js +0 -224
  95. package/dist/components/Select.module.scss +0 -118
  96. package/dist/components/Table.js +0 -31
  97. package/dist/components/Table.module.scss +0 -65
  98. package/dist/components/Textarea.js +0 -105
  99. package/dist/components/Textarea.module.scss +0 -73
  100. package/dist/components/Theme.js +0 -138
  101. package/dist/components/Theme.module.scss +0 -103
  102. package/dist/components/ThemeProvider.js +0 -24
  103. package/dist/components/ThemeProvider.module.scss +0 -24
  104. package/dist/components/ToggleNavigationButton.js +0 -44
  105. package/dist/components/ToggleNavigationButton.module.scss +0 -34
  106. package/dist/components/WizardNavigation/Step.js +0 -66
  107. package/dist/components/WizardNavigation/Step.module.scss +0 -175
  108. package/dist/components/WizardNavigation.js +0 -56
  109. package/dist/components/WizardNavigation.module.scss +0 -25
  110. package/dist/functions/generators.js +0 -16
  111. package/dist/functions/helpers.js +0 -112
  112. package/dist/functions/theme.js +0 -18
  113. package/dist/index.js +0 -279
  114. package/dist/style/abstracts/mixins/_animation.scss +0 -6
  115. package/dist/style/abstracts/mixins/_appearance.scss +0 -5
  116. package/dist/style/abstracts/mixins/_border-radius.scss +0 -31
  117. package/dist/style/abstracts/mixins/_box-shadow.scss +0 -5
  118. package/dist/style/abstracts/mixins/_box-sizing.scss +0 -5
  119. package/dist/style/abstracts/mixins/_calc.scss +0 -5
  120. package/dist/style/abstracts/mixins/_keyframes.scss +0 -14
  121. package/dist/style/abstracts/mixins/_opacity.scss +0 -5
  122. package/dist/style/abstracts/mixins/_placeholder.scss +0 -17
  123. package/dist/style/abstracts/mixins/_scrollbar.scss +0 -26
  124. package/dist/style/abstracts/mixins/_transform.scss +0 -6
  125. package/dist/style/abstracts/mixins/_transition.scss +0 -34
  126. package/dist/style/abstracts/variables/_colors.scss +0 -33
  127. package/dist/style/abstracts/variables/_sizes.scss +0 -1
  128. package/dist/style/abstracts/variables/_transitions.scss +0 -2
  129. package/dist/style/abstracts/variables/_typography.scss +0 -1
  130. package/dist/style/abstracts/variables/_viewports.scss +0 -14
  131. package/dist/style/base/_fonts.scss +0 -57
  132. package/dist/style/base/_reset.scss +0 -15
  133. package/dist/style/base/_typography.scss +0 -10
  134. package/dist/style/layout/_containers.scss +0 -11
  135. package/dist/style/pdf.css +0 -637
  136. package/dist/style/pdf.css.map +0 -1
@@ -1,765 +0,0 @@
1
- // Mixins
2
- @use "../style/abstracts/mixins/box-sizing";
3
-
4
- // Variables
5
- @use "../style/abstracts/variables/colors";
6
-
7
- $font-size-body: 16px;
8
- $font-size-h1: 34px;
9
- $font-size-h1-small: 18px;
10
- $font-size-h2: 24px;
11
- $font-size-h2-small: 16px;
12
- $font-size-h3: 19px;
13
- $font-size-h4: 17px;
14
- $font-size-h5: 16px;
15
- $font-size-table-header: 15px;
16
- $font-size-table-data: 16px;
17
- $font-size-checkbox: 20px;
18
-
19
- $line-height-default: 22.5px;
20
-
21
- $height-checkbox: 22px;
22
- $width-checkbox: 22px;
23
-
24
- $heading-logo-width: 100px;
25
- $heading-logo-margin-left: 15px;
26
-
27
- $margin-sm: 12px;
28
- $margin-md: 24px;
29
- $margin-lg: 36px;
30
-
31
- $margin-top-h1: 5px;
32
- $margin-top-h2: 22px;
33
- $margin-bottom-h2: 2px;
34
- $margin-bottom-h2-small: 6px;
35
- $margin-top-h3: 15px;
36
- $margin-bottom-h3: 4px;
37
- $margin-top-h4: 15px;
38
- $margin-bottom-h4: 6px;
39
- $margin-top-h5: 12px;
40
- $margin-bottom-h5: 2px;
41
- $margin-top-paragraph: 3px;
42
- $margin-bottom-paragraph: 12px;
43
- $margin-top-list: 3px;
44
- $margin-bottom-list: 12px;
45
-
46
- $margin-vertical-blockquote: 5px;
47
- $margin-horizontal-blockquote: 10px;
48
- $padding-horizontal-blockquote: 10px;
49
- $border-left-width-blockquote: 4px;
50
- $min-height-blockquote: 36px;
51
-
52
- $margin-vertical-description-list: 3px;
53
-
54
- $hierarchy-indent-list: 24px;
55
-
56
- $margin-top-checkbox-container: 10px;
57
- $margin-bottom-checkbox-container: 10px;
58
-
59
- $padding-vertical-table-header: 2px;
60
- $padding-horizontal-table-header: 4px;
61
- $padding-vertical-table-data: 4px;
62
- $padding-horizontal-table-data: 4px;
63
-
64
- $padding-vertical-no-border-table-header: 0px;
65
- $padding-vertical-no-border-table-data: 2px;
66
-
67
- $column-gap-grid: 20px;
68
-
69
- $scaling-for-signed-documents: 1.10802;
70
-
71
- html,
72
- body {
73
- margin: 0;
74
- padding: 0;
75
- background-color: #eee;
76
- font-family: Carlito, sans-serif;
77
- color: #000;
78
- font-size: $font-size-body;
79
- font-weight: normal;
80
- font-style: normal;
81
- }
82
- .page {
83
- margin: 1cm auto;
84
- background: #fff;
85
- box-shadow: 0 4px 5px rgba(75, 75, 75, 0.2);
86
- font-family: Carlito, sans-serif;
87
- color: #000;
88
- font-size: $font-size-body;
89
- line-height: $line-height-default;
90
- &:not(.landscape) {
91
- width: 21cm;
92
- min-height: 29.7cm;
93
- padding-left: 1.2cm;
94
- padding-top: 0;
95
- padding-right: 1.2cm;
96
- padding-bottom: 0.75cm;
97
- }
98
- &.landscape {
99
- width: 29.7cm;
100
- min-height: 21cm;
101
- padding-left: 0.75cm;
102
- padding-top: 1.2cm;
103
- padding-right: 0.75cm;
104
- padding-bottom: 1.2cm;
105
- }
106
- }
107
- @page {
108
- size: A4 portrait;
109
- margin-top: 0.75cm;
110
- margin-left: 0;
111
- margin-right: 0;
112
- margin-bottom: 0;
113
- }
114
-
115
- @media print {
116
- html,
117
- body {
118
- background-color: #fff;
119
- }
120
- .page {
121
- width: initial !important;
122
- min-height: initial !important;
123
- margin: 0 !important;
124
- border: initial !important;
125
- border-radius: initial !important;
126
- background: initial !important;
127
- box-shadow: initial !important;
128
- page-break-after: always;
129
- }
130
- }
131
-
132
- * {
133
- @include box-sizing.box-sizing(border-box);
134
- }
135
-
136
- .page {
137
- div.page-break {
138
- page-break-after: always;
139
- }
140
-
141
- section {
142
- page-break-inside: auto;
143
- &.no-page-break {
144
- page-break-inside: avoid;
145
- }
146
- }
147
-
148
- .heading-logo {
149
- width: $heading-logo-width;
150
- float: right;
151
- margin-left: $heading-logo-margin-left;
152
- }
153
-
154
- caption {
155
- text-align: left;
156
- }
157
-
158
- h1,
159
- .h1,
160
- caption[style*="--size:1"],
161
- caption[style*="--size: 1"] {
162
- page-break-after: avoid;
163
- font-size: $font-size-h1;
164
- font-weight: normal;
165
- line-height: 0.9em;
166
- margin-top: $margin-top-h1;
167
- margin-bottom: 0.4em;
168
- small {
169
- display: block;
170
- font-size: $font-size-h1-small;
171
- line-height: 1.2em;
172
- margin-top: 0.6em;
173
- }
174
- }
175
- h2,
176
- .h2,
177
- caption[style*="--size:2"],
178
- caption[style*="--size: 2"] {
179
- page-break-after: avoid;
180
- font-size: $font-size-h2;
181
- font-weight: normal;
182
- line-height: 1em;
183
- margin-top: $margin-top-h2;
184
- margin-bottom: $margin-bottom-h2;
185
- small {
186
- display: block;
187
- font-size: $font-size-h2-small;
188
- line-height: 1em;
189
- margin-bottom: $margin-bottom-h2-small;
190
- }
191
- & + p {
192
- margin-top: 0;
193
- }
194
- }
195
- h3,
196
- .h3,
197
- caption[style*="--size:3"],
198
- caption[style*="--size: 3"] {
199
- page-break-after: avoid;
200
- font-size: $font-size-h3;
201
- font-weight: normal;
202
- line-height: 1.1em;
203
- text-decoration: underline;
204
- margin-top: $margin-top-h3;
205
- margin-bottom: $margin-bottom-h3;
206
- & + p {
207
- margin-top: 0;
208
- }
209
- }
210
-
211
- h4,
212
- .h4,
213
- caption[style*="--size:4"],
214
- caption[style*="--size: 4"],
215
- caption:not([style*="--size"]) {
216
- page-break-after: avoid;
217
- font-size: $font-size-h4;
218
- font-weight: bold;
219
- line-height: 1.1em;
220
- margin-top: $margin-top-h4;
221
- margin-bottom: $margin-bottom-h4;
222
- & + p {
223
- margin-top: 0;
224
- }
225
- }
226
-
227
- h5,
228
- .h5,
229
- caption[style*="--size:5"],
230
- caption[style*="--size: 5"] {
231
- page-break-after: avoid;
232
- font-size: $font-size-h5;
233
- font-weight: bold;
234
- margin-top: $margin-top-h5;
235
- margin-bottom: $margin-bottom-h5;
236
- }
237
-
238
- p {
239
- margin-top: $margin-top-paragraph;
240
- margin-bottom: $margin-bottom-paragraph;
241
- }
242
-
243
- ul {
244
- margin-top: $margin-top-list;
245
- margin-bottom: $margin-bottom-list;
246
- padding-inline-start: $hierarchy-indent-list;
247
- }
248
-
249
- dl {
250
- margin-top: $margin-top-list;
251
- margin-bottom: $margin-bottom-list;
252
- dt,
253
- dd {
254
- margin: $margin-vertical-description-list 0;
255
- line-height: 1em;
256
- }
257
- dt:not(.text-normal) {
258
- font-weight: bold;
259
- }
260
- &[style*="--display-type:inline"],
261
- &[style*="--display-type: inline"],
262
- &:not([style*="--display-type"]) {
263
- dd {
264
- ul {
265
- padding: 0;
266
- margin: 0;
267
- list-style: none;
268
- }
269
- }
270
- &[style*="--title-width"] {
271
- display: flex;
272
- flex-flow: row wrap;
273
- align-items: start;
274
- dt {
275
- width: var(--title-width);
276
- }
277
- dd {
278
- flex-basis: calc(100% - var(--title-width));
279
- flex-grow: 1;
280
- }
281
- }
282
- &:not([style*="--title-width"]) {
283
- dt {
284
- display: inline;
285
- &::before {
286
- display: block;
287
- content: "";
288
- }
289
- &::after {
290
- display: inline;
291
- content: " ";
292
- }
293
- }
294
- dd {
295
- display: inline;
296
- ul {
297
- display: inline-block;
298
- vertical-align: text-top;
299
- }
300
- }
301
- }
302
- }
303
- &[style*="--display-type:stacked"],
304
- &[style*="--display-type: stacked"] {
305
- dd {
306
- margin-bottom: $margin-bottom-list;
307
- }
308
- }
309
- }
310
- table {
311
- border-collapse: collapse;
312
- width: 100%;
313
- thead {
314
- tr {
315
- background-color: #ededed;
316
- border: 1px solid #000;
317
- th {
318
- text-align: left;
319
- font-size: $font-size-table-header;
320
- word-break: break-word;
321
- padding: $padding-vertical-table-header $padding-horizontal-table-header;
322
- &[style*="--width"] {
323
- width: var(--width);
324
- }
325
- }
326
- }
327
- }
328
- tbody {
329
- tr {
330
- border: 1px solid #000;
331
- td {
332
- font-size: $font-size-table-data;
333
- word-break: break-word;
334
- padding: $padding-vertical-table-data $padding-horizontal-table-data;
335
- &[style*="--width"] {
336
- width: var(--width);
337
- }
338
- }
339
- &.sub-heading {
340
- td {
341
- font-weight: bold;
342
- }
343
- }
344
- }
345
- }
346
- &.no-border {
347
- thead {
348
- tr {
349
- background-color: transparent;
350
- border: none;
351
- th {
352
- padding-top: $padding-vertical-no-border-table-header;
353
- padding-bottom: $padding-vertical-no-border-table-header;
354
- }
355
- }
356
- }
357
- tbody {
358
- tr {
359
- border: transparent;
360
- td {
361
- padding-top: $padding-vertical-no-border-table-data;
362
- padding-bottom: $padding-vertical-no-border-table-data;
363
- }
364
- }
365
- }
366
- }
367
- }
368
-
369
- table + table > thead:first-child tr {
370
- border-top: none;
371
- }
372
-
373
- table tbody tr.no-border-top {
374
- border-top: none;
375
- }
376
-
377
- table tbody tr.no-border-bottom {
378
- border-bottom: none;
379
- }
380
-
381
- table thead tr th,
382
- table tbody tr td {
383
- &.indent {
384
- width: 18px;
385
- }
386
- }
387
-
388
- .grid {
389
- display: grid;
390
- justify-content: space-between;
391
- grid-template-columns: repeat(var(--columns), 1fr);
392
- column-gap: $column-gap-grid;
393
- }
394
-
395
- blockquote {
396
- background: var(--color-secondary-x-light, colors.$color-secondary-x-light);
397
- border-left: $border-left-width-blockquote solid var(--color-border, colors.$color-border);
398
- margin: $margin-vertical-blockquote $margin-horizontal-blockquote;
399
- padding: 0.5em $padding-horizontal-blockquote;
400
- min-height: $min-height-blockquote;
401
- }
402
-
403
- .whitespace-nowrap {
404
- white-space: nowrap;
405
- }
406
-
407
- .whitespace-pre-wrap {
408
- white-space: pre-wrap;
409
- }
410
-
411
- .text-right {
412
- text-align: right;
413
- }
414
-
415
- .text-left {
416
- text-align: left;
417
- }
418
-
419
- .text-center {
420
- text-align: center;
421
- }
422
- .text-red {
423
- color: red;
424
- }
425
-
426
- .text-muted {
427
- color: #696969;
428
- }
429
-
430
- .text-italic {
431
- font-style: italic;
432
- }
433
-
434
- .text-bold {
435
- font-weight: bold;
436
- }
437
-
438
- .text-normal {
439
- font-weight: normal;
440
- }
441
-
442
- .block {
443
- display: block;
444
- }
445
-
446
- .inline {
447
- display: inline;
448
- }
449
-
450
- .inline-block {
451
- display: inline-block;
452
- }
453
-
454
- .checkbox-container {
455
- display: flex;
456
- align-items: center;
457
- margin-top: $margin-top-checkbox-container;
458
- &:not(:last-of-type) {
459
- margin-bottom: $margin-bottom-checkbox-container;
460
- }
461
- }
462
-
463
- .checkbox {
464
- border: 1px solid black;
465
- background-color: #fff;
466
- height: $height-checkbox;
467
- width: $width-checkbox;
468
- display: inline-block;
469
- vertical-align: bottom;
470
- margin-right: 8px;
471
- text-align: center;
472
- font-size: $font-size-checkbox;
473
- line-height: 1.2em;
474
- flex: none;
475
- }
476
-
477
- //Margins
478
- *[style*="--mt:none"],
479
- *[style*="--mt: none"] {
480
- margin-top: 0;
481
- }
482
- *[style*="--mb:none"],
483
- *[style*="--mb: none"] {
484
- margin-bottom: 0;
485
- }
486
- *[style*="--ml:none"],
487
- *[style*="--ml: none"] {
488
- margin-left: 0;
489
- }
490
- *[style*="--mr:none"],
491
- *[style*="--mr: none"] {
492
- margin-right: 0;
493
- }
494
- *[style*="--mt:sm"],
495
- *[style*="--mt: sm"] {
496
- margin-top: $margin-sm;
497
- }
498
- *[style*="--mb:sm"],
499
- *[style*="--mb: sm"] {
500
- margin-bottom: $margin-sm;
501
- }
502
- *[style*="--ml:sm"],
503
- *[style*="--ml: sm"] {
504
- margin-left: $margin-sm;
505
- }
506
- *[style*="--mr:sm"],
507
- *[style*="--mr: sm"] {
508
- margin-right: $margin-sm;
509
- }
510
- *[style*="--mt:md"],
511
- *[style*="--mt: md"] {
512
- margin-top: $margin-md;
513
- }
514
- *[style*="--mb:md"],
515
- *[style*="--mb: md"] {
516
- margin-bottom: $margin-md;
517
- }
518
- *[style*="--ml:md"],
519
- *[style*="--ml: md"] {
520
- margin-left: $margin-md;
521
- }
522
- *[style*="--mr:md"],
523
- *[style*="--mr: md"] {
524
- margin-right: $margin-md;
525
- }
526
- *[style*="--mt:lg"],
527
- *[style*="--mt: lg"] {
528
- margin-top: $margin-lg;
529
- }
530
- *[style*="--mb:lg"],
531
- *[style*="--mb: lg"] {
532
- margin-bottom: $margin-lg;
533
- }
534
- *[style*="--ml:lg"],
535
- *[style*="--ml: lg"] {
536
- margin-left: $margin-lg;
537
- }
538
- *[style*="--mr:lg"],
539
- *[style*="--mr: lg"] {
540
- margin-right: $margin-lg;
541
- }
542
- }
543
-
544
- // For signed documents
545
- .page.signed-document {
546
- padding-top: 0.75cm;
547
- padding-bottom: 0.75cm;
548
- padding-left: 0.2cm;
549
- padding-right: 0.2cm;
550
- font-size: calc($font-size-body * $scaling-for-signed-documents);
551
- line-height: calc($line-height-default * $scaling-for-signed-documents);
552
- div.content-container {
553
- .heading-logo {
554
- width: calc($heading-logo-width * $scaling-for-signed-documents);
555
- float: right;
556
- margin-left: calc($heading-logo-margin-left * $scaling-for-signed-documents);
557
- }
558
- h1,
559
- .h1,
560
- caption[style*="--size:1"],
561
- caption[style*="--size: 1"] {
562
- font-size: calc($font-size-h1 * $scaling-for-signed-documents);
563
- margin-top: calc($margin-top-h1 * $scaling-for-signed-documents);
564
- small {
565
- font-size: calc($font-size-h1-small * $scaling-for-signed-documents);
566
- }
567
- }
568
- h2,
569
- .h2,
570
- caption[style*="--size:2"],
571
- caption[style*="--size: 2"] {
572
- font-size: calc($font-size-h2 * $scaling-for-signed-documents);
573
- margin-top: calc($margin-top-h2 * $scaling-for-signed-documents);
574
- margin-bottom: calc($margin-bottom-h2 * $scaling-for-signed-documents);
575
- small {
576
- font-size: calc($font-size-h2-small * $scaling-for-signed-documents);
577
- margin-bottom: calc($margin-bottom-h2-small * $scaling-for-signed-documents);
578
- }
579
- }
580
- h3,
581
- .h3,
582
- caption[style*="--size:3"],
583
- caption[style*="--size: 3"] {
584
- font-size: calc($font-size-h3 * $scaling-for-signed-documents);
585
- margin-top: calc($margin-top-h3 * $scaling-for-signed-documents);
586
- margin-bottom: calc($margin-bottom-h3 * $scaling-for-signed-documents);
587
- }
588
- h4,
589
- .h4,
590
- caption[style*="--size:4"],
591
- caption[style*="--size: 4"],
592
- caption:not([style*="--size"]) {
593
- font-size: calc($font-size-h4 * $scaling-for-signed-documents);
594
- margin-top: calc($margin-top-h4 * $scaling-for-signed-documents);
595
- margin-bottom: calc($margin-bottom-h4 * $scaling-for-signed-documents);
596
- }
597
- h5,
598
- .h5,
599
- caption[style*="--size:5"],
600
- caption[style*="--size: 5"] {
601
- font-size: calc($font-size-h5 * $scaling-for-signed-documents);
602
- margin-top: calc($margin-top-h5 * $scaling-for-signed-documents);
603
- margin-bottom: calc($margin-bottom-h5 * $scaling-for-signed-documents);
604
- }
605
- p {
606
- margin-top: calc($margin-top-paragraph * $scaling-for-signed-documents);
607
- margin-bottom: calc($margin-bottom-paragraph * $scaling-for-signed-documents);
608
- }
609
- ul {
610
- margin-top: calc($margin-top-list * $scaling-for-signed-documents);
611
- margin-bottom: calc($margin-bottom-list * $scaling-for-signed-documents);
612
- padding-inline-start: calc($hierarchy-indent-list * $scaling-for-signed-documents);
613
- }
614
- dl {
615
- margin-top: calc($margin-top-list * $scaling-for-signed-documents);
616
- margin-bottom: calc($margin-bottom-list * $scaling-for-signed-documents);
617
- dt,
618
- dd {
619
- margin: calc($margin-vertical-description-list * $scaling-for-signed-documents) 0;
620
- }
621
- &[style*="--display-type:inline"],
622
- &[style*="--display-type: inline"],
623
- &:not([style*="--display-type"]) {
624
- &[style*="--title-width"] {
625
- dt {
626
- width: calc(var(--title-width) * $scaling-for-signed-documents);
627
- }
628
- dd {
629
- flex-basis: calc(100% - (var(--title-width) * $scaling-for-signed-documents));
630
- }
631
- }
632
- }
633
- &[style*="--display-type:stacked"],
634
- &[style*="--display-type: stacked"] {
635
- dd {
636
- margin-bottom: calc($margin-bottom-list * $scaling-for-signed-documents);
637
- }
638
- }
639
- }
640
- table {
641
- thead tr {
642
- border-width: calc(1px * $scaling-for-signed-documents);
643
- th {
644
- font-size: calc($font-size-table-header * $scaling-for-signed-documents);
645
- padding: calc($padding-vertical-table-header * $scaling-for-signed-documents)
646
- calc($padding-horizontal-table-header * $scaling-for-signed-documents);
647
- &[style*="--width"] {
648
- width: calc(var(--width) * $scaling-for-signed-documents);
649
- }
650
- }
651
- }
652
- tbody tr {
653
- border-width: calc(1px * $scaling-for-signed-documents);
654
- td {
655
- font-size: calc($font-size-table-data * $scaling-for-signed-documents);
656
- padding: calc($padding-vertical-table-data * $scaling-for-signed-documents)
657
- calc($padding-horizontal-table-data * $scaling-for-signed-documents);
658
- &[style*="--width"] {
659
- width: calc(var(--width) * $scaling-for-signed-documents);
660
- }
661
- }
662
- }
663
- &.no-border {
664
- thead tr th {
665
- padding-top: calc($padding-vertical-no-border-table-header * $scaling-for-signed-documents);
666
- padding-bottom: calc($padding-vertical-no-border-table-header * $scaling-for-signed-documents);
667
- }
668
- tbody tr td {
669
- padding-top: calc($padding-vertical-no-border-table-data * $scaling-for-signed-documents);
670
- padding-bottom: calc($padding-vertical-no-border-table-data * $scaling-for-signed-documents);
671
- }
672
- }
673
- }
674
-
675
- table thead tr th,
676
- table tbody tr td {
677
- .indent {
678
- width: calc(18px * $scaling-for-signed-documents);
679
- }
680
- }
681
-
682
- .grid {
683
- column-gap: calc($column-gap-grid * $scaling-for-signed-documents);
684
- }
685
-
686
- blockquote {
687
- background: var(--color-secondary-x-light, colors.$color-secondary-x-light);
688
- border-left: calc($border-left-width-blockquote * $scaling-for-signed-documents) solid
689
- var(--color-border, colors.$color-border);
690
- margin: calc($margin-vertical-blockquote * $scaling-for-signed-documents)
691
- calc($margin-horizontal-blockquote * $scaling-for-signed-documents);
692
- padding: 0.5em calc($padding-horizontal-blockquote * $scaling-for-signed-documents);
693
- min-height: calc($min-height-blockquote * $scaling-for-signed-documents);
694
- }
695
-
696
- .checkbox-container {
697
- margin-top: calc($margin-top-checkbox-container * $scaling-for-signed-documents);
698
- &:not(:last-of-type) {
699
- margin-bottom: calc($margin-bottom-checkbox-container * $scaling-for-signed-documents);
700
- }
701
- .checkbox {
702
- height: calc($height-checkbox * $scaling-for-signed-documents);
703
- width: calc($width-checkbox * $scaling-for-signed-documents);
704
- font-size: calc($font-size-checkbox * $scaling-for-signed-documents);
705
- border-width: calc(1px * $scaling-for-signed-documents);
706
- margin-right: calc(8px * $scaling-for-signed-documents);
707
- }
708
- }
709
- }
710
- //Margins
711
- *[style*="--mt:sm"],
712
- *[style*="--mt: sm"] {
713
- margin-top: calc($margin-sm * $scaling-for-signed-documents);
714
- }
715
- *[style*="--mb:sm"],
716
- *[style*="--mb: sm"] {
717
- margin-bottom: calc($margin-sm * $scaling-for-signed-documents);
718
- }
719
- *[style*="--ml:sm"],
720
- *[style*="--ml: sm"] {
721
- margin-left: calc($margin-sm * $scaling-for-signed-documents);
722
- }
723
- *[style*="--mr:sm"],
724
- *[style*="--mr: sm"] {
725
- margin-right: calc($margin-sm * $scaling-for-signed-documents);
726
- }
727
- *[style*="--mt:md"],
728
- *[style*="--mt: md"] {
729
- margin-top: calc($margin-md * $scaling-for-signed-documents);
730
- }
731
- *[style*="--mb:md"],
732
- *[style*="--mb: md"] {
733
- margin-bottom: calc($margin-md * $scaling-for-signed-documents);
734
- }
735
- *[style*="--ml:md"],
736
- *[style*="--ml: md"] {
737
- margin-left: calc($margin-md * $scaling-for-signed-documents);
738
- }
739
- *[style*="--mr:md"],
740
- *[style*="--mr: md"] {
741
- margin-right: calc($margin-md * $scaling-for-signed-documents);
742
- }
743
- *[style*="--mt:lg"],
744
- *[style*="--mt: lg"] {
745
- margin-top: calc($margin-lg * $scaling-for-signed-documents);
746
- }
747
- *[style*="--mb:lg"],
748
- *[style*="--mb: lg"] {
749
- margin-bottom: calc($margin-lg * $scaling-for-signed-documents);
750
- }
751
- *[style*="--ml:lg"],
752
- *[style*="--ml: lg"] {
753
- margin-left: calc($margin-lg * $scaling-for-signed-documents);
754
- }
755
- *[style*="--mr:lg"],
756
- *[style*="--mr: lg"] {
757
- margin-right: calc($margin-lg * $scaling-for-signed-documents);
758
- }
759
- }
760
- @media print {
761
- .page.signed-document {
762
- padding-top: 0 !important;
763
- padding-bottom: 0 !important;
764
- }
765
- }