optimized-react-component-library-xyz123 0.15.4 → 0.15.7
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/index.js +83 -80
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -80
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +27 -4
- package/src/css/mobileView.css +45 -3
- package/src/css/questions.css +26 -1
- package/src/css/styles.css +57 -19
package/package.json
CHANGED
package/src/css/darkMode.css
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
--dark-info: #808080;
|
|
8
8
|
--dark-orientation-active:#F4BF56;
|
|
9
9
|
--dark-background-second:#200827;
|
|
10
|
+
--dark-background-third:#747474;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
@media (prefers-color-scheme: dark) {
|
|
@@ -311,10 +312,6 @@
|
|
|
311
312
|
color: var(--dark-action);
|
|
312
313
|
}
|
|
313
314
|
|
|
314
|
-
.pts-editPreviewLink-container svg path {
|
|
315
|
-
stroke: var(--dark-action);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
315
|
/* ---------- GRANSKA ---------- */
|
|
319
316
|
|
|
320
317
|
.no-answer-preview-page {
|
|
@@ -337,6 +334,13 @@
|
|
|
337
334
|
.errorSummary-text {
|
|
338
335
|
color: var(--dark-error) !important;
|
|
339
336
|
}
|
|
337
|
+
|
|
338
|
+
/*--------------------FOOTER-----------------*/
|
|
339
|
+
|
|
340
|
+
.pts-footer-slogan-text-container{
|
|
341
|
+
background-color: var(--dark-background-third);
|
|
342
|
+
}
|
|
343
|
+
|
|
340
344
|
|
|
341
345
|
/*-------------MODAL-----------*/
|
|
342
346
|
.pts-modal-content{
|
|
@@ -348,4 +352,23 @@
|
|
|
348
352
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='94' height='94' viewBox='0 0 94 94' fill='none'%3e%3cpath d='M47 11.75C66.4682 11.75 82.25 27.532 82.25 47C82.25 66.4682 66.4682 82.25 47 82.25C27.532 82.25 11.75 66.4682 11.75 47C11.75 27.532 27.532 11.75 47 11.75Z' stroke='%23B07CBF' stroke-opacity='0.25' stroke-width='7.83333' stroke-linecap='round'/%3e%3cpath d='M47 11.75C66.4682 11.75 82.25 27.532 82.25 47' stroke='%23B07CBF' stroke-width='7.83333' stroke-linecap='round'/%3e%3c/svg%3e");
|
|
349
353
|
|
|
350
354
|
}
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
/*-------------Autofill-----------*/
|
|
358
|
+
input:autofill,
|
|
359
|
+
input:autofill:hover,
|
|
360
|
+
input:autofill:focus,
|
|
361
|
+
input:-webkit-autofill,
|
|
362
|
+
input:-webkit-autofill:hover,
|
|
363
|
+
input:-webkit-autofill:focus {
|
|
364
|
+
-webkit-box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
365
|
+
box-shadow: 0 0 0 1000px var(--dark-main) inset !important;
|
|
366
|
+
-webkit-text-fill-color: var(--dark-text) !important; /* behåller textfärgen */
|
|
367
|
+
background-color: var(--dark-main) !important;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* Firefox */
|
|
371
|
+
input:-moz-autofill {
|
|
372
|
+
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
373
|
+
}
|
|
351
374
|
}
|
package/src/css/mobileView.css
CHANGED
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
margin: 0;
|
|
45
45
|
padding: 0;
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
.pts-footer-slogan-text {
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
/********************************************/
|
|
@@ -88,6 +93,10 @@
|
|
|
88
93
|
padding: 0;
|
|
89
94
|
}
|
|
90
95
|
|
|
96
|
+
.pts-header-content{
|
|
97
|
+
display:block;
|
|
98
|
+
}
|
|
99
|
+
|
|
91
100
|
.pts-header-logo-container {
|
|
92
101
|
padding: 13px 0;
|
|
93
102
|
border-bottom: 2px solid #ddd;
|
|
@@ -95,6 +104,11 @@
|
|
|
95
104
|
text-align: center;
|
|
96
105
|
}
|
|
97
106
|
|
|
107
|
+
.pts-header-navigation-container{
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
98
112
|
.pts-languageButton {
|
|
99
113
|
margin: 0.4rem 0;
|
|
100
114
|
}
|
|
@@ -245,6 +259,11 @@
|
|
|
245
259
|
padding-bottom: 4px;
|
|
246
260
|
}
|
|
247
261
|
|
|
262
|
+
.pts-footer-slogan-text{
|
|
263
|
+
line-height: 2rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
|
|
248
267
|
.pts-footer-logo {
|
|
249
268
|
position: static;
|
|
250
269
|
padding-left: 0;
|
|
@@ -317,14 +336,37 @@
|
|
|
317
336
|
}
|
|
318
337
|
}
|
|
319
338
|
|
|
339
|
+
|
|
340
|
+
/********************************************/
|
|
341
|
+
/***************WIDTH: 750 ******************/
|
|
342
|
+
/********************************************/
|
|
343
|
+
@media (max-width: 750px) {
|
|
344
|
+
body .pts-stepper-step:not(:last-child)::after {
|
|
345
|
+
left: calc(50% + 3rem);
|
|
346
|
+
width: calc(33.33vw - 13rem);
|
|
347
|
+
right: auto;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/********************************************/
|
|
352
|
+
/***************WIDTH: 550 ******************/
|
|
353
|
+
/********************************************/
|
|
354
|
+
@media (max-width: 550px) {
|
|
355
|
+
body .pts-stepper-step:not(:last-child)::after {
|
|
356
|
+
left: calc(50% + 3rem);
|
|
357
|
+
width: calc(33.33vw - 11rem);
|
|
358
|
+
right: auto;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
320
362
|
/********************************************/
|
|
321
363
|
/***************WIDTH: 480 ******************/
|
|
322
364
|
/********************************************/
|
|
323
365
|
@media (max-width: 480px) {
|
|
324
366
|
.pts-stepper-step:not(:last-child)::after {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
367
|
+
left: calc(50% + 3rem);
|
|
368
|
+
width: calc(33.33vw - 10rem);
|
|
369
|
+
right: auto;
|
|
328
370
|
}
|
|
329
371
|
|
|
330
372
|
.files-upload {
|
package/src/css/questions.css
CHANGED
|
@@ -259,7 +259,7 @@ div.pts-root-question:last-child {
|
|
|
259
259
|
/* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
|
|
260
260
|
|
|
261
261
|
.pts-textField-container {
|
|
262
|
-
margin-
|
|
262
|
+
margin-bottom: 16px;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
.pts-about {
|
|
@@ -312,6 +312,10 @@ div.pts-root-question:last-child {
|
|
|
312
312
|
width: 100%;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
.pts-root-question-group-fieldset .pts-root-error{
|
|
316
|
+
margin-bottom: 1.6rem;
|
|
317
|
+
}
|
|
318
|
+
|
|
315
319
|
/* ---------- FILE UPLOAD ---------- */
|
|
316
320
|
/* ---------- FILE UPLOAD ---------- */
|
|
317
321
|
/* ---------- FILE UPLOAD ---------- */
|
|
@@ -1066,3 +1070,24 @@ div.pts-root-question:last-child {
|
|
|
1066
1070
|
background: var(--red-green-red, rgb(211, 165, 0));
|
|
1067
1071
|
}
|
|
1068
1072
|
/* ---------- END FILE UPLOAD ---------- */
|
|
1073
|
+
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
input:autofill,
|
|
1080
|
+
input:autofill:hover,
|
|
1081
|
+
input:autofill:focus,
|
|
1082
|
+
input:-webkit-autofill,
|
|
1083
|
+
input:-webkit-autofill:hover,
|
|
1084
|
+
input:-webkit-autofill:focus {
|
|
1085
|
+
-webkit-box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
1086
|
+
box-shadow: 0 0 0 1000px var(--main) inset !important;
|
|
1087
|
+
-webkit-text-fill-color: inherit !important; /* behåller textfärgen */
|
|
1088
|
+
background-color: var(--main) !important;
|
|
1089
|
+
}
|
|
1090
|
+
input:-moz-autofill {
|
|
1091
|
+
box-shadow: 0 0 0 1000px transparent inset !important;
|
|
1092
|
+
}
|
|
1093
|
+
|
package/src/css/styles.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--info: #545454;
|
|
12
12
|
--orientation-active: #dc7d0a;
|
|
13
13
|
--background-second: #200827;
|
|
14
|
+
--background-third: #414141;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
body,
|
|
@@ -287,6 +288,27 @@ textarea:focus-visible,
|
|
|
287
288
|
background-color: var(--main);
|
|
288
289
|
}
|
|
289
290
|
|
|
291
|
+
.pts-header-content{
|
|
292
|
+
width: 100%;
|
|
293
|
+
display: flex;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.pts-header-logo-container{
|
|
297
|
+
height:4rem;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.pts-header-logo svg{
|
|
301
|
+
height: 4rem;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.pts-header-navigation-container{
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: column;
|
|
307
|
+
justify-content: flex-end;
|
|
308
|
+
width: 100%;
|
|
309
|
+
align-items: flex-end;
|
|
310
|
+
}
|
|
311
|
+
|
|
290
312
|
.pts-languageButton {
|
|
291
313
|
position: relative;
|
|
292
314
|
display: inline-flex;
|
|
@@ -295,15 +317,16 @@ textarea:focus-visible,
|
|
|
295
317
|
border: transparent;
|
|
296
318
|
color: var(--action);
|
|
297
319
|
cursor: pointer;
|
|
320
|
+
font-size: 1.6rem;
|
|
298
321
|
}
|
|
299
322
|
|
|
300
323
|
.pts-languageButton::after {
|
|
301
324
|
content: "";
|
|
302
325
|
position: absolute;
|
|
303
|
-
left:
|
|
304
|
-
right:
|
|
305
|
-
bottom:
|
|
306
|
-
height: 0.
|
|
326
|
+
left: 7px;
|
|
327
|
+
right: 4px;
|
|
328
|
+
bottom: 3px;
|
|
329
|
+
height: 0.15rem;
|
|
307
330
|
background-color: currentColor;
|
|
308
331
|
opacity: 0;
|
|
309
332
|
}
|
|
@@ -313,21 +336,25 @@ textarea:focus-visible,
|
|
|
313
336
|
}
|
|
314
337
|
|
|
315
338
|
.languageIcon{
|
|
339
|
+
position: relative;
|
|
316
340
|
margin-top: 0.3rem;
|
|
317
341
|
padding-right: 0.6rem;
|
|
342
|
+
top: 0.01rem;
|
|
318
343
|
}
|
|
319
344
|
|
|
320
345
|
.pts-languageButton svg {
|
|
321
|
-
width: 1.
|
|
322
|
-
height: 1.
|
|
346
|
+
width: 1.6rem;
|
|
347
|
+
height: 1.6rem;
|
|
323
348
|
}
|
|
324
349
|
|
|
325
|
-
.languageIcon{
|
|
326
|
-
padding-left: 0.6rem;
|
|
327
|
-
}
|
|
328
350
|
|
|
329
351
|
/* ---------- TextBODY ---------- */
|
|
330
352
|
|
|
353
|
+
.pts-textBody-container p{
|
|
354
|
+
margin-bottom: 1.6rem;
|
|
355
|
+
|
|
356
|
+
}
|
|
357
|
+
|
|
331
358
|
.MoreInfoIcon{
|
|
332
359
|
margin-top: 2px;
|
|
333
360
|
}
|
|
@@ -485,12 +512,6 @@ textarea:focus-visible,
|
|
|
485
512
|
gap: 0.2rem;
|
|
486
513
|
}
|
|
487
514
|
|
|
488
|
-
.pts-editPreviewLink-container svg {
|
|
489
|
-
height: 1.6rem;
|
|
490
|
-
width: 1.6rem;
|
|
491
|
-
flex-shrink: 0;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
515
|
.pts-question-preview,
|
|
495
516
|
.addFilesPreviewContainer {
|
|
496
517
|
display: flex;
|
|
@@ -646,17 +667,35 @@ textarea:focus-visible,
|
|
|
646
667
|
/* ---------- FOOTER ---------- */
|
|
647
668
|
|
|
648
669
|
.pts-footer-container {
|
|
649
|
-
display: flex;
|
|
650
|
-
min-height: 14rem;
|
|
651
670
|
align-items: center;
|
|
652
671
|
width: 100%;
|
|
653
672
|
background-color: var(--background-second);
|
|
654
673
|
}
|
|
655
674
|
|
|
675
|
+
.pts-footer-slogan-text-container{
|
|
676
|
+
display: flex;
|
|
677
|
+
align-items: center;
|
|
678
|
+
justify-content: center;
|
|
679
|
+
background-color: var(--background-third);
|
|
680
|
+
height: 50px;
|
|
681
|
+
padding: 0px;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.pts-footer-slogan-text{
|
|
685
|
+
color: var(--main);
|
|
686
|
+
line-height: 2.4rem;
|
|
687
|
+
font-size: 2rem;
|
|
688
|
+
text-box-trim: trim-both;
|
|
689
|
+
margin: 0;
|
|
690
|
+
|
|
691
|
+
}
|
|
692
|
+
|
|
656
693
|
.pts-footer-content{
|
|
657
694
|
display: flex;
|
|
658
695
|
align-items: center;
|
|
659
696
|
width: 100%;
|
|
697
|
+
min-height: 14rem;
|
|
698
|
+
padding: 0.1rem 0;
|
|
660
699
|
}
|
|
661
700
|
|
|
662
701
|
.pts-footer-logo {
|
|
@@ -758,8 +797,7 @@ textarea:focus-visible,
|
|
|
758
797
|
transform: rotate(360deg);
|
|
759
798
|
}
|
|
760
799
|
}
|
|
761
|
-
|
|
762
|
-
|
|
800
|
+
/*-----------ALWAYS IN THE END OF STYLES----------------*/
|
|
763
801
|
|
|
764
802
|
.cleanPadding {
|
|
765
803
|
padding: 0;
|