dibk-design 3.8.2 → 3.8.4
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/dist/components/PDF.scss +64 -13
- package/dist/style/pdf.css +57 -13
- package/dist/style/pdf.css.map +1 -1
- package/package.json +1 -1
package/dist/components/PDF.scss
CHANGED
|
@@ -14,15 +14,18 @@ $height-checkbox: 22px;
|
|
|
14
14
|
$width-checkbox: 22px;
|
|
15
15
|
|
|
16
16
|
$heading-logo-width: 100px;
|
|
17
|
+
$heading-logo-margin-left: 15px;
|
|
17
18
|
|
|
18
19
|
$margin-top-h2: 22px;
|
|
19
20
|
$margin-bottom-h2: 2px;
|
|
20
21
|
$margin-top-h3: 15px;
|
|
21
|
-
$margin-bottom-h3:
|
|
22
|
+
$margin-bottom-h3: 4px;
|
|
22
23
|
$margin-top-h4: 15px;
|
|
23
|
-
$margin-bottom-h4:
|
|
24
|
+
$margin-bottom-h4: 6px;
|
|
24
25
|
$margin-top-paragraph: 3px;
|
|
25
26
|
$margin-bottom-paragraph: 12px;
|
|
27
|
+
$margin-top-list: 3px;
|
|
28
|
+
$margin-bottom-list: 12px;
|
|
26
29
|
|
|
27
30
|
$margin-top-checkbox-container: 10px;
|
|
28
31
|
$margin-bottom-checkbox-container: 10px;
|
|
@@ -108,6 +111,7 @@ body {
|
|
|
108
111
|
.heading-logo {
|
|
109
112
|
width: $heading-logo-width;
|
|
110
113
|
float: right;
|
|
114
|
+
margin-left: $heading-logo-margin-left;
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
h1,
|
|
@@ -165,20 +169,20 @@ body {
|
|
|
165
169
|
}
|
|
166
170
|
|
|
167
171
|
.text-red {
|
|
168
|
-
font-style: italic;
|
|
169
172
|
color: red;
|
|
170
173
|
}
|
|
171
174
|
|
|
175
|
+
.text-italic {
|
|
176
|
+
font-style: italic;
|
|
177
|
+
}
|
|
178
|
+
|
|
172
179
|
dl {
|
|
173
|
-
|
|
174
|
-
|
|
180
|
+
margin-top: $margin-top-list;
|
|
181
|
+
margin-bottom: $margin-bottom-list;
|
|
175
182
|
dt {
|
|
176
183
|
font-weight: bold;
|
|
177
|
-
width: var(--title-width);
|
|
178
184
|
}
|
|
179
185
|
dd {
|
|
180
|
-
flex-grow: 1;
|
|
181
|
-
flex-basis: calc(100% - var(--title-width));
|
|
182
186
|
margin: 0;
|
|
183
187
|
ul {
|
|
184
188
|
padding: 0;
|
|
@@ -186,6 +190,33 @@ body {
|
|
|
186
190
|
list-style: none;
|
|
187
191
|
}
|
|
188
192
|
}
|
|
193
|
+
&[style*="--title-width"] {
|
|
194
|
+
display: flex;
|
|
195
|
+
flex-flow: row wrap;
|
|
196
|
+
dt {
|
|
197
|
+
width: var(--title-width);
|
|
198
|
+
}
|
|
199
|
+
dd {
|
|
200
|
+
flex-basis: calc(100% - var(--title-width));
|
|
201
|
+
flex-grow: 1;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
&:not([style*="--title-width"]) {
|
|
205
|
+
dt {
|
|
206
|
+
display: inline;
|
|
207
|
+
&::before {
|
|
208
|
+
display: block;
|
|
209
|
+
content: "";
|
|
210
|
+
}
|
|
211
|
+
&::after {
|
|
212
|
+
display: inline;
|
|
213
|
+
content: " ";
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
dd {
|
|
217
|
+
display: inline;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
189
220
|
}
|
|
190
221
|
table {
|
|
191
222
|
border-collapse: collapse;
|
|
@@ -195,10 +226,12 @@ body {
|
|
|
195
226
|
background-color: #ededed;
|
|
196
227
|
border: 1px solid #000;
|
|
197
228
|
th {
|
|
198
|
-
width: var(--width);
|
|
199
229
|
text-align: left;
|
|
200
230
|
font-size: $font-size-table-header;
|
|
201
231
|
padding: $vertical-padding-table-header $horizontal-padding-table-header;
|
|
232
|
+
&[style*="--width"] {
|
|
233
|
+
width: var(--width);
|
|
234
|
+
}
|
|
202
235
|
}
|
|
203
236
|
}
|
|
204
237
|
}
|
|
@@ -206,9 +239,11 @@ body {
|
|
|
206
239
|
tr {
|
|
207
240
|
border: 1px solid #000;
|
|
208
241
|
td {
|
|
209
|
-
width: var(--width);
|
|
210
242
|
padding: $vertical-padding-table-data $horizontal-padding-table-data;
|
|
211
243
|
font-size: $font-size-table-data;
|
|
244
|
+
&[style*="--width"] {
|
|
245
|
+
width: var(--width);
|
|
246
|
+
}
|
|
212
247
|
}
|
|
213
248
|
&.sub-heading {
|
|
214
249
|
td {
|
|
@@ -306,6 +341,7 @@ body {
|
|
|
306
341
|
.heading-logo {
|
|
307
342
|
width: calc($heading-logo-width * $scaling-for-signed-documents);
|
|
308
343
|
float: right;
|
|
344
|
+
margin-left: calc($heading-logo-margin-left * $scaling-for-signed-documents);
|
|
309
345
|
}
|
|
310
346
|
h1 {
|
|
311
347
|
font-size: calc($font-size-h1 * $scaling-for-signed-documents);
|
|
@@ -324,28 +360,43 @@ body {
|
|
|
324
360
|
margin-top: calc($margin-top-h3 * $scaling-for-signed-documents);
|
|
325
361
|
margin-bottom: calc($margin-bottom-h3 * $scaling-for-signed-documents);
|
|
326
362
|
}
|
|
327
|
-
|
|
328
363
|
p {
|
|
329
364
|
margin-top: calc($margin-top-paragraph * $scaling-for-signed-documents);
|
|
330
365
|
margin-bottom: calc($margin-bottom-paragraph * $scaling-for-signed-documents);
|
|
331
366
|
}
|
|
367
|
+
dl {
|
|
368
|
+
margin-top: calc($margin-top-list * $scaling-for-signed-documents);
|
|
369
|
+
margin-bottom: calc($margin-bottom-list * $scaling-for-signed-documents);
|
|
370
|
+
&[style*="--title-width"] {
|
|
371
|
+
dt {
|
|
372
|
+
width: calc(var(--title-width) * $scaling-for-signed-documents);
|
|
373
|
+
}
|
|
374
|
+
dd {
|
|
375
|
+
flex-basis: calc(100% - (var(--title-width) * $scaling-for-signed-documents));
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
332
379
|
table {
|
|
333
380
|
thead tr {
|
|
334
381
|
border-width: calc(1px * $scaling-for-signed-documents);
|
|
335
382
|
th {
|
|
336
|
-
width: calc(var(--width) * $scaling-for-signed-documents);
|
|
337
383
|
font-size: calc($font-size-table-header * $scaling-for-signed-documents);
|
|
338
384
|
padding: calc($vertical-padding-table-header * $scaling-for-signed-documents)
|
|
339
385
|
calc($horizontal-padding-table-header * $scaling-for-signed-documents);
|
|
386
|
+
&[style*="--width"] {
|
|
387
|
+
width: calc(var(--width) * $scaling-for-signed-documents);
|
|
388
|
+
}
|
|
340
389
|
}
|
|
341
390
|
}
|
|
342
391
|
tbody tr {
|
|
343
392
|
border-width: calc(1px * $scaling-for-signed-documents);
|
|
344
393
|
td {
|
|
345
|
-
width: calc(var(--width) * $scaling-for-signed-documents);
|
|
346
394
|
font-size: calc($font-size-table-data * $scaling-for-signed-documents);
|
|
347
395
|
padding: calc($vertical-padding-table-data * $scaling-for-signed-documents)
|
|
348
396
|
calc($horizontal-padding-table-data * $scaling-for-signed-documents);
|
|
397
|
+
&[style*="--width"] {
|
|
398
|
+
width: calc(var(--width) * $scaling-for-signed-documents);
|
|
399
|
+
}
|
|
349
400
|
}
|
|
350
401
|
}
|
|
351
402
|
&.no-border {
|
package/dist/style/pdf.css
CHANGED
|
@@ -67,6 +67,7 @@ body {
|
|
|
67
67
|
.page .heading-logo {
|
|
68
68
|
width: 100px;
|
|
69
69
|
float: right;
|
|
70
|
+
margin-left: 15px;
|
|
70
71
|
}
|
|
71
72
|
.page h1,
|
|
72
73
|
.page .h1 {
|
|
@@ -101,7 +102,7 @@ body {
|
|
|
101
102
|
line-height: 1.1em;
|
|
102
103
|
text-decoration: underline;
|
|
103
104
|
margin-top: 15px;
|
|
104
|
-
margin-bottom:
|
|
105
|
+
margin-bottom: 4px;
|
|
105
106
|
}
|
|
106
107
|
.page h3 + p,
|
|
107
108
|
.page .h3 + p {
|
|
@@ -113,7 +114,7 @@ body {
|
|
|
113
114
|
font-weight: bold;
|
|
114
115
|
line-height: 1.1em;
|
|
115
116
|
margin-top: 15px;
|
|
116
|
-
margin-bottom:
|
|
117
|
+
margin-bottom: 6px;
|
|
117
118
|
}
|
|
118
119
|
.page h4 + p,
|
|
119
120
|
.page .h4 + p {
|
|
@@ -124,20 +125,19 @@ body {
|
|
|
124
125
|
margin-bottom: 12px;
|
|
125
126
|
}
|
|
126
127
|
.page .text-red {
|
|
127
|
-
font-style: italic;
|
|
128
128
|
color: red;
|
|
129
129
|
}
|
|
130
|
+
.page .text-italic {
|
|
131
|
+
font-style: italic;
|
|
132
|
+
}
|
|
130
133
|
.page dl {
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
margin-top: 3px;
|
|
135
|
+
margin-bottom: 12px;
|
|
133
136
|
}
|
|
134
137
|
.page dl dt {
|
|
135
138
|
font-weight: bold;
|
|
136
|
-
width: var(--title-width);
|
|
137
139
|
}
|
|
138
140
|
.page dl dd {
|
|
139
|
-
flex-grow: 1;
|
|
140
|
-
flex-basis: calc(100% - var(--title-width));
|
|
141
141
|
margin: 0;
|
|
142
142
|
}
|
|
143
143
|
.page dl dd ul {
|
|
@@ -145,6 +145,31 @@ body {
|
|
|
145
145
|
margin: 0;
|
|
146
146
|
list-style: none;
|
|
147
147
|
}
|
|
148
|
+
.page dl[style*="--title-width"] {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-flow: row wrap;
|
|
151
|
+
}
|
|
152
|
+
.page dl[style*="--title-width"] dt {
|
|
153
|
+
width: var(--title-width);
|
|
154
|
+
}
|
|
155
|
+
.page dl[style*="--title-width"] dd {
|
|
156
|
+
flex-basis: calc(100% - var(--title-width));
|
|
157
|
+
flex-grow: 1;
|
|
158
|
+
}
|
|
159
|
+
.page dl:not([style*="--title-width"]) dt {
|
|
160
|
+
display: inline;
|
|
161
|
+
}
|
|
162
|
+
.page dl:not([style*="--title-width"]) dt::before {
|
|
163
|
+
display: block;
|
|
164
|
+
content: "";
|
|
165
|
+
}
|
|
166
|
+
.page dl:not([style*="--title-width"]) dt::after {
|
|
167
|
+
display: inline;
|
|
168
|
+
content: " ";
|
|
169
|
+
}
|
|
170
|
+
.page dl:not([style*="--title-width"]) dd {
|
|
171
|
+
display: inline;
|
|
172
|
+
}
|
|
148
173
|
.page table {
|
|
149
174
|
border-collapse: collapse;
|
|
150
175
|
width: 100%;
|
|
@@ -154,19 +179,23 @@ body {
|
|
|
154
179
|
border: 1px solid #000;
|
|
155
180
|
}
|
|
156
181
|
.page table thead tr th {
|
|
157
|
-
width: var(--width);
|
|
158
182
|
text-align: left;
|
|
159
183
|
font-size: 15px;
|
|
160
184
|
padding: 2px 4px;
|
|
161
185
|
}
|
|
186
|
+
.page table thead tr th[style*="--width"] {
|
|
187
|
+
width: var(--width);
|
|
188
|
+
}
|
|
162
189
|
.page table tbody tr {
|
|
163
190
|
border: 1px solid #000;
|
|
164
191
|
}
|
|
165
192
|
.page table tbody tr td {
|
|
166
|
-
width: var(--width);
|
|
167
193
|
padding: 4px 4px;
|
|
168
194
|
font-size: 16px;
|
|
169
195
|
}
|
|
196
|
+
.page table tbody tr td[style*="--width"] {
|
|
197
|
+
width: var(--width);
|
|
198
|
+
}
|
|
170
199
|
.page table tbody tr.sub-heading td {
|
|
171
200
|
font-weight: bold;
|
|
172
201
|
}
|
|
@@ -239,6 +268,7 @@ body {
|
|
|
239
268
|
.page.signed-document div.content-container .heading-logo {
|
|
240
269
|
width: 110.802px;
|
|
241
270
|
float: right;
|
|
271
|
+
margin-left: 16.6203px;
|
|
242
272
|
}
|
|
243
273
|
.page.signed-document div.content-container h1 {
|
|
244
274
|
font-size: 37.67268px;
|
|
@@ -255,28 +285,42 @@ body {
|
|
|
255
285
|
.page.signed-document div.content-container h3 {
|
|
256
286
|
font-size: 21.05238px;
|
|
257
287
|
margin-top: 16.6203px;
|
|
258
|
-
margin-bottom:
|
|
288
|
+
margin-bottom: 4.43208px;
|
|
259
289
|
}
|
|
260
290
|
.page.signed-document div.content-container p {
|
|
261
291
|
margin-top: 3.32406px;
|
|
262
292
|
margin-bottom: 13.29624px;
|
|
263
293
|
}
|
|
294
|
+
.page.signed-document div.content-container dl {
|
|
295
|
+
margin-top: 3.32406px;
|
|
296
|
+
margin-bottom: 13.29624px;
|
|
297
|
+
}
|
|
298
|
+
.page.signed-document div.content-container dl[style*="--title-width"] dt {
|
|
299
|
+
width: calc(var(--title-width) * 1.10802);
|
|
300
|
+
}
|
|
301
|
+
.page.signed-document div.content-container dl[style*="--title-width"] dd {
|
|
302
|
+
flex-basis: calc(100% - var(--title-width) * 1.10802);
|
|
303
|
+
}
|
|
264
304
|
.page.signed-document div.content-container table thead tr {
|
|
265
305
|
border-width: 1.10802px;
|
|
266
306
|
}
|
|
267
307
|
.page.signed-document div.content-container table thead tr th {
|
|
268
|
-
width: calc(var(--width) * 1.10802);
|
|
269
308
|
font-size: 16.6203px;
|
|
270
309
|
padding: 2.21604px 4.43208px;
|
|
271
310
|
}
|
|
311
|
+
.page.signed-document div.content-container table thead tr th[style*="--width"] {
|
|
312
|
+
width: calc(var(--width) * 1.10802);
|
|
313
|
+
}
|
|
272
314
|
.page.signed-document div.content-container table tbody tr {
|
|
273
315
|
border-width: 1.10802px;
|
|
274
316
|
}
|
|
275
317
|
.page.signed-document div.content-container table tbody tr td {
|
|
276
|
-
width: calc(var(--width) * 1.10802);
|
|
277
318
|
font-size: 17.72832px;
|
|
278
319
|
padding: 4.43208px 4.43208px;
|
|
279
320
|
}
|
|
321
|
+
.page.signed-document div.content-container table tbody tr td[style*="--width"] {
|
|
322
|
+
width: calc(var(--width) * 1.10802);
|
|
323
|
+
}
|
|
280
324
|
.page.signed-document div.content-container table.no-border thead tr th {
|
|
281
325
|
padding-top: 0px;
|
|
282
326
|
padding-bottom: 0px;
|
package/dist/style/pdf.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../src/stories/PDF.scss","../../src/style/abstracts/mixins/_box-sizing.scss"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/stories/PDF.scss","../../src/style/abstracts/mixins/_box-sizing.scss"],"names":[],"mappings":"AA0CA;AAAA;EAEI;EACA;EACA;EACA;EACA;EACA,WA/Ca;EAgDb;EACA;EACA;;;AAEJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WAhEa;;;AAkEjB;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;AAAA;IAEI;;EAEJ;IACI;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;;AAIR;EC5FE,oBD6FsB;EC5FnB,iBD4FmB;EC3Fd,YD2Fc;;;AAIpB;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI,OAhGa;EAiGb;EACA,aAjGmB;;AAoGvB;AAAA;EAEI,WAnHO;EAoHP;EACA;EACA;EACA;;AACA;AAAA;EACI;EACA,WAzHS;EA0HT;;AAGR;AAAA;EAEI,WA9HO;EA+HP;EACA;EACA,YApHQ;EAqHR,eApHW;;AAqHX;AAAA;EACI;;AAGR;AAAA;EAEI,WAxIO;EAyIP;EACA;EACA;EACA,YA9HQ;EA+HR,eA9HW;;AA+HX;AAAA;EACI;;AAIR;AAAA;EAEI,WApJO;EAqJP;EACA;EACA,YAxIQ;EAyIR,eAxIW;;AAyIX;AAAA;EACI;;AAIR;EACI,YA9Ie;EA+If,eA9IkB;;AAiJtB;EACI;;AAGJ;EACI;;AAGJ;EACI,YAzJU;EA0JV,eAzJa;;AA0Jb;EACI;;AAEJ;EACI;;AACA;EACI;EACA;EACA;;AAGR;EACI;EACA;;AACA;EACI;;AAEJ;EACI;EACA;;AAIJ;EACI;;AACA;EACI;EACA;;AAEJ;EACI;EACA;;AAGR;EACI;;AAIZ;EACI;EACA;;AAEI;EACI;EACA;;AACA;EACI;EACA,WA7NK;EA8NL;;AACA;EACI;;AAMZ;EACI;;AACA;EACI;EACA,WAzOG;;AA0OH;EACI;;AAIJ;EACI;;AAOR;EACI;EACA;;AACA;EACI,aA/NkB;EAgOlB,gBAhOkB;;AAqO1B;EACI;;AACA;EACI,aAvOgB;EAwOhB,gBAxOgB;;AA+OpC;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAKA;AAAA;EACI;;AAIR;EACI;;AAGJ;EACI;;AAGJ;EACI;;AAGJ;EACI;EACA;EACA,YA1RwB;;AA2RxB;EACI,eA3RuB;;AA+R/B;EACI;EACA;EACA,QApTU;EAqTV,OApTS;EAqTT;EACA;EACA;EACA;EACA,WA5Ta;EA6Tb;EACA;;;AAKR;EACI;EACA;EACA;EACA;EACA;;AAEI;EACI;EACA;EACA;;AAEJ;EACI;;AACA;EACI;EACA;;AAGR;EACI;EACA;EACA;;AAEJ;EACI;EACA;EACA;;AAEJ;EACI;EACA;;AAEJ;EACI;EACA;;AAEI;EACI;;AAEJ;EACI;;AAKR;EACI;;AACA;EACI;EACA;;AAEA;EACI;;AAIZ;EACI;;AACA;EACI;EACA;;AAEA;EACI;;AAKR;EACI;EACA;;AAEJ;EACI;EACA;;AAOR;AAAA;EACI;;AAIR;EACI;;AACA;EACI;;AAEJ;EACI;EACA;EACA;EACA;EACA;;;AAKhB;EACI;IACI;IACA","file":"pdf.css"}
|