optimized-react-component-library-xyz123 0.20.3 → 0.20.5

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.
@@ -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
  }
@@ -196,12 +210,32 @@
196
210
  margin-left: 12px;
197
211
  }
198
212
 
213
+ /*---------PREVIEW PAGE----------------*/
214
+
215
+ .pts-preview-header {
216
+ display: block;
217
+ justify-content: unset;
218
+ align-items: unset;
219
+ width: 100%;
220
+ }
221
+
222
+ .pts-preview-header h2 {
223
+ margin-bottom: 0.8rem;
224
+ }
225
+
199
226
  .pts-editPreviewLink-container {
200
- width: 50%;
227
+ display: block;
228
+ justify-content: unset;
229
+ align-items: unset;
230
+ margin: 0 0 2.6rem 0;
231
+ }
232
+
233
+ .pts-edit-step-text{
234
+ padding-left: 0;
201
235
  }
202
236
 
203
237
  .pts-editPreviewLink-container a {
204
- font-size: 1.3rem;
238
+ font-size: 1.6rem;
205
239
  display: block;
206
240
  }
207
241
 
@@ -225,6 +259,11 @@
225
259
  padding-bottom: 4px;
226
260
  }
227
261
 
262
+ .pts-footer-slogan-text{
263
+ line-height: 2rem;
264
+ }
265
+
266
+
228
267
  .pts-footer-logo {
229
268
  position: static;
230
269
  padding-left: 0;
@@ -297,14 +336,37 @@
297
336
  }
298
337
  }
299
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
+
300
362
  /********************************************/
301
363
  /***************WIDTH: 480 ******************/
302
364
  /********************************************/
303
365
  @media (max-width: 480px) {
304
366
  .pts-stepper-step:not(:last-child)::after {
305
- left: calc(50% + 2rem) !important;
306
- width: calc(33.33vw - 7.7rem) !important;
307
- right: auto !important;
367
+ left: calc(50% + 3rem);
368
+ width: calc(33.33vw - 10rem);
369
+ right: auto;
308
370
  }
309
371
 
310
372
  .files-upload {
@@ -32,6 +32,14 @@ div.pts-root-question:last-child {
32
32
  cursor: pointer;
33
33
  }
34
34
 
35
+ .pts-root-question-group-fieldset legend {
36
+ margin-bottom: 0px;
37
+ }
38
+
39
+ .pts-root-group-fieldset-legend-container {
40
+ margin-bottom: 1.6rem;
41
+ }
42
+
35
43
  .pts-radio-option,
36
44
  .pts-root-question legend {
37
45
  margin-bottom: 0.8rem;
@@ -52,7 +60,6 @@ div.pts-root-question:last-child {
52
60
  margin-bottom: 0.4rem;
53
61
  }
54
62
 
55
- .pts-root-question select,
56
63
  .pts-root-question input[type='text']:focus,
57
64
  .pts-root-question input[type='email']:focus,
58
65
  .pts-root-question input[type='tel']:focus {
@@ -97,7 +104,7 @@ div.pts-root-question:last-child {
97
104
  padding: 3.6rem 0 0 0;
98
105
  margin: 0;
99
106
  }
100
- .pts-root-question select,
107
+
101
108
  .pts-root-question input[type='text'],
102
109
  .pts-root-question input[type='email'],
103
110
  .pts-root-question input[type='tel'] {
@@ -143,55 +150,6 @@ div.pts-root-question:last-child {
143
150
  cursor: pointer;
144
151
  }
145
152
 
146
- /* ---------- DROPDOWN ---------- */
147
-
148
- /* För inspiration */
149
-
150
- .pts-dropdown-container {
151
- margin-bottom: 1.5rem;
152
- }
153
-
154
- .pts-dropdown-container label {
155
- display: block;
156
- margin-bottom: 0.5rem;
157
- font-weight: 500;
158
- }
159
-
160
- .pts-dropdown-container select {
161
- /* display: block;
162
- width: 100%;
163
- padding-right: 2.4em;
164
- padding-left: 0.6em;
165
-
166
- box-shadow: none;
167
- margin: 0;
168
- height: 42px;
169
-
170
- word-wrap: normal;
171
-
172
- text-transform: none;
173
-
174
- cursor: pointer;
175
-
176
- border-radius: 6px;
177
-
178
- font-family: Arial;
179
- font-size: 16px; */
180
-
181
- background-image: url('../icons/arrow-down.svg');
182
- background-repeat: no-repeat;
183
- background-position: right 14px center;
184
- background-size: 1em;
185
-
186
- -webkit-appearance: none;
187
- -moz-appearance: none;
188
- appearance: none;
189
-
190
- transition:
191
- border-color 0.15s ease-in-out,
192
- box-shadow 0.15s ease-in-out;
193
- }
194
-
195
153
  /* ---------- SINGLE CHECKBOX ---------- */
196
154
 
197
155
  .pts-singleCheckbox-row {
@@ -214,6 +172,7 @@ div.pts-root-question:last-child {
214
172
  border-radius: 0.2rem;
215
173
 
216
174
  cursor: pointer;
175
+ margin-left: 0px;
217
176
  }
218
177
 
219
178
  .pts-singleCheckbox-container input[type='checkbox']:checked {
@@ -229,13 +188,14 @@ div.pts-root-question:last-child {
229
188
  margin-top: 0.2rem;
230
189
  }
231
190
 
191
+
232
192
  /*-------- CHECKBOX GROUP-------- */
233
193
 
234
- .pts-checkboxGroup-options {
194
+ .pts-checkboxGroup-options{
235
195
  display: flex;
236
196
  }
237
197
 
238
- .pts-checkboxGroup-container input[type='checkbox'] {
198
+ .pts-checkboxGroup-container input[type='checkbox']{
239
199
  appearance: none;
240
200
  width: 1.8rem;
241
201
  height: 1.8rem;
@@ -245,6 +205,7 @@ div.pts-root-question:last-child {
245
205
  border: 0.15rem solid var(--info);
246
206
  border-radius: 0.2rem;
247
207
  cursor: pointer;
208
+ margin-left: 0px;
248
209
  }
249
210
 
250
211
  .pts-checkboxGroup-container input[type='checkbox']:checked {
@@ -253,7 +214,7 @@ div.pts-root-question:last-child {
253
214
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
254
215
  }
255
216
 
256
- .pts-checkboxGroup-container label {
217
+ .pts-checkboxGroup-container label{
257
218
  padding-top: 0.3rem;
258
219
  line-height: 20px;
259
220
  cursor: pointer;
@@ -262,7 +223,7 @@ div.pts-root-question:last-child {
262
223
 
263
224
  /* ---------- MULTIPLE CHECKBOXES ---------- */
264
225
 
265
- .pts-multipleCheckboxes-container input[type='checkbox'] {
226
+ .pts-multipleCheckboxes-container input[type='checkbox']{
266
227
  appearance: none;
267
228
  width: 1.8rem;
268
229
  height: 1.8rem;
@@ -280,7 +241,7 @@ div.pts-root-question:last-child {
280
241
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
281
242
  }
282
243
 
283
- .pts-multipleCheckboxes-container label {
244
+ .pts-multipleCheckboxes-container label{
284
245
  cursor: pointer;
285
246
  margin: 0;
286
247
  padding-top: 0.1rem;
@@ -299,15 +260,16 @@ div.pts-root-question:last-child {
299
260
  cursor: pointer;
300
261
  }
301
262
 
302
- .pts-multipleCheckboxes-container li label {
263
+ .pts-multipleCheckboxes-container li label{
303
264
  flex: 1;
304
265
  margin-top: 0.2rem;
305
266
  }
306
267
 
268
+
307
269
  /* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
308
270
 
309
271
  .pts-textField-container {
310
- margin-top: 8px;
272
+ margin-bottom: 16px;
311
273
  }
312
274
 
313
275
  .pts-about {
@@ -360,6 +322,10 @@ div.pts-root-question:last-child {
360
322
  width: 100%;
361
323
  }
362
324
 
325
+ .pts-root-question-group-fieldset .pts-root-error{
326
+ margin-bottom: 1.6rem;
327
+ }
328
+
363
329
  /* ---------- FILE UPLOAD ---------- */
364
330
  /* ---------- FILE UPLOAD ---------- */
365
331
  /* ---------- FILE UPLOAD ---------- */
@@ -949,7 +915,6 @@ div.pts-root-question:last-child {
949
915
  /* AddFiles.tsx */ /* SelectedFiles.tsx */
950
916
  .lastCol {
951
917
  display: flex;
952
- justify-content: flex-end;
953
918
  max-width: 62px;
954
919
  padding: 0;
955
920
  margin: 0;
@@ -1114,3 +1079,24 @@ div.pts-root-question:last-child {
1114
1079
  background: var(--red-green-red, rgb(211, 165, 0));
1115
1080
  }
1116
1081
  /* ---------- END FILE UPLOAD ---------- */
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+ input:autofill,
1089
+ input:autofill:hover,
1090
+ input:autofill:focus,
1091
+ input:-webkit-autofill,
1092
+ input:-webkit-autofill:hover,
1093
+ input:-webkit-autofill:focus {
1094
+ -webkit-box-shadow: 0 0 0 1000px var(--main) inset !important;
1095
+ box-shadow: 0 0 0 1000px var(--main) inset !important;
1096
+ -webkit-text-fill-color: inherit !important; /* behåller textfärgen */
1097
+ background-color: var(--main) !important;
1098
+ }
1099
+ input:-moz-autofill {
1100
+ box-shadow: 0 0 0 1000px transparent inset !important;
1101
+ }
1102
+
@@ -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,
@@ -99,6 +100,7 @@ h4 {
99
100
  max-width: 860px;
100
101
  margin-left: auto;
101
102
  margin-right: auto;
103
+ width: 100%;
102
104
  }
103
105
 
104
106
  section {
@@ -134,8 +136,12 @@ section {
134
136
  --- ?? Make changes in html ?? */
135
137
 
136
138
  p[aria-live='assertive']:empty {
137
- margin: 0;
138
- padding: 0;
139
+ margin: 0;
140
+ padding: 0;
141
+ }
142
+
143
+ .pts-root-categoryDescription {
144
+ margin-top: 0px;
139
145
  }
140
146
 
141
147
  .pts-first-category-section {
@@ -162,6 +168,8 @@ p[aria-live='assertive']:empty {
162
168
  margin-bottom: 36px;
163
169
  }
164
170
 
171
+
172
+
165
173
  .sr-only {
166
174
  position: absolute;
167
175
  width: 1px;
@@ -173,7 +181,7 @@ p[aria-live='assertive']:empty {
173
181
  white-space: nowrap;
174
182
  border: 0;
175
183
  }
176
- select:focus-visible,
184
+
177
185
  button:focus-visible,
178
186
  a:focus-visible,
179
187
  input:focus-visible,
@@ -185,7 +193,7 @@ textarea:focus-visible,
185
193
  outline-width: 2px !important;
186
194
  box-shadow: 0 0 0 4px #000 !important;
187
195
  }
188
- .using-mouse select:focus-visible,
196
+
189
197
  .using-mouse input:focus-visible,
190
198
  .using-mouse button:focus-visible,
191
199
  .using-mouse textarea:focus-visible,
@@ -196,6 +204,7 @@ textarea:focus-visible,
196
204
  box-shadow: 0 0 0 0px #000 !important;
197
205
  }
198
206
 
207
+
199
208
  /* ---------- COOKIE BANNER ---------- */
200
209
 
201
210
  .pts-cookieBanner {
@@ -284,6 +293,27 @@ textarea:focus-visible,
284
293
  background-color: var(--main);
285
294
  }
286
295
 
296
+ .pts-header-content{
297
+ width: 100%;
298
+ display: flex;
299
+ }
300
+
301
+ .pts-header-logo-container{
302
+ height:4rem;
303
+ }
304
+
305
+ .pts-header-logo svg{
306
+ height: 4rem;
307
+ }
308
+
309
+ .pts-header-navigation-container{
310
+ display: flex;
311
+ flex-direction: column;
312
+ justify-content: flex-end;
313
+ width: 100%;
314
+ align-items: flex-end;
315
+ }
316
+
287
317
  .pts-languageButton {
288
318
  position: relative;
289
319
  display: inline-flex;
@@ -292,40 +322,45 @@ textarea:focus-visible,
292
322
  border: transparent;
293
323
  color: var(--action);
294
324
  cursor: pointer;
325
+ font-size: 1.6rem;
295
326
  }
296
327
 
297
328
  .pts-languageButton::after {
298
- content: '';
299
- position: absolute;
300
- left: 0.7rem;
301
- right: -0.3rem;
302
- bottom: 0;
303
- height: 0.2rem;
304
- background-color: currentColor;
305
- opacity: 0;
329
+ content: "";
330
+ position: absolute;
331
+ left: 7px;
332
+ right: 4px;
333
+ bottom: 3px;
334
+ height: 0.15rem;
335
+ background-color: currentColor;
336
+ opacity: 0;
306
337
  }
307
338
 
308
339
  .pts-languageButton:hover::after {
309
- opacity: 1;
340
+ opacity: 1;
310
341
  }
311
342
 
312
- .languageIcon {
343
+ .languageIcon{
344
+ position: relative;
313
345
  margin-top: 0.3rem;
314
346
  padding-right: 0.6rem;
347
+ top: 0.01rem;
315
348
  }
316
349
 
317
350
  .pts-languageButton svg {
318
- width: 1.5rem;
319
- height: 1.5rem;
351
+ width: 1.6rem;
352
+ height: 1.6rem;
320
353
  }
321
354
 
322
- .languageIcon {
323
- padding-left: 0.6rem;
324
- }
325
355
 
326
356
  /* ---------- TextBODY ---------- */
327
357
 
328
- .MoreInfoIcon {
358
+ .pts-textBody-container p{
359
+ margin-bottom: 1.6rem;
360
+
361
+ }
362
+
363
+ .MoreInfoIcon{
329
364
  margin-top: 2px;
330
365
  }
331
366
 
@@ -366,7 +401,7 @@ textarea:focus-visible,
366
401
  }
367
402
 
368
403
  .pts-textHeadlineAndBody-container .first-paragraph {
369
- margin-top: 0;
404
+ margin-top: 0;
370
405
  }
371
406
 
372
407
  /* ---------- STEPPER ---------- */
@@ -482,12 +517,6 @@ textarea:focus-visible,
482
517
  gap: 0.2rem;
483
518
  }
484
519
 
485
- .pts-editPreviewLink-container svg {
486
- height: 1.6rem;
487
- width: 1.6rem;
488
- flex-shrink: 0;
489
- }
490
-
491
520
  .pts-question-preview,
492
521
  .addFilesPreviewContainer {
493
522
  display: flex;
@@ -524,11 +553,7 @@ textarea:focus-visible,
524
553
  margin-bottom: 36px;
525
554
  }
526
555
 
527
- .pts-edit-step-button {
528
- text-decoration: none;
529
- }
530
-
531
- .pts-edit-step-text {
556
+ .pts-edit-step-text{
532
557
  padding-left: 5px;
533
558
  }
534
559
 
@@ -641,20 +666,41 @@ textarea:focus-visible,
641
666
  transition: 0.2s;
642
667
  }
643
668
 
669
+
670
+
671
+
644
672
  /* ---------- FOOTER ---------- */
645
673
 
646
674
  .pts-footer-container {
647
- display: flex;
648
- min-height: 14rem;
649
675
  align-items: center;
650
676
  width: 100%;
651
677
  background-color: var(--background-second);
652
678
  }
653
679
 
654
- .pts-footer-content {
680
+ .pts-footer-slogan-text-container{
655
681
  display: flex;
656
682
  align-items: center;
657
- width: 100%;
683
+ justify-content: center;
684
+ background-color: var(--background-third);
685
+ height: 50px;
686
+ padding: 0px;
687
+ }
688
+
689
+ .pts-footer-slogan-text{
690
+ color: var(--main);
691
+ line-height: 2.4rem;
692
+ font-size: 2rem;
693
+ text-box-trim: trim-both;
694
+ margin: 0;
695
+
696
+ }
697
+
698
+ .pts-footer-content{
699
+ display: flex;
700
+ align-items: center;
701
+ width: 100%;
702
+ min-height: 14rem;
703
+ padding: 0.1rem 0;
658
704
  }
659
705
 
660
706
  .pts-footer-logo {
@@ -669,7 +715,7 @@ textarea:focus-visible,
669
715
  flex: 1;
670
716
  justify-content: center;
671
717
  margin-left: -224px;
672
- }
718
+ }
673
719
 
674
720
  .pts-footer-linkList ul {
675
721
  padding: 0;
@@ -703,6 +749,7 @@ textarea:focus-visible,
703
749
  box-sizing: border-box;
704
750
  }
705
751
 
752
+
706
753
  /* ---------- MODAL ---------- */
707
754
 
708
755
  .pts-modal-overlay {
@@ -755,6 +802,7 @@ textarea:focus-visible,
755
802
  transform: rotate(360deg);
756
803
  }
757
804
  }
805
+ /*-----------ALWAYS IN THE END OF STYLES----------------*/
758
806
 
759
807
  .cleanPadding {
760
808
  padding: 0;
@@ -764,3 +812,16 @@ textarea:focus-visible,
764
812
  margin: 0;
765
813
  padding: 0;
766
814
  }
815
+
816
+ .visually-hidden {
817
+ position: absolute !important;
818
+ width: 1px;
819
+ height: 1px;
820
+ padding: 0;
821
+ margin: -1px;
822
+ overflow: hidden;
823
+ clip: rect(0, 0, 0, 0);
824
+ clip-path: inset(50%);
825
+ white-space: nowrap;
826
+ border: 0;
827
+ }
@@ -1,5 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="Group">
3
- <path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M12.7069 15.7071C12.5193 15.8946 12.265 15.9999 11.9999 15.9999C11.7347 15.9999 11.4804 15.8946 11.2929 15.7071L5.63585 10.0501C5.54034 9.95785 5.46416 9.84751 5.41175 9.7255C5.35934 9.6035 5.33176 9.47228 5.3306 9.3395C5.32945 9.20672 5.35475 9.07504 5.40503 8.95215C5.45531 8.82925 5.52957 8.7176 5.62346 8.6237C5.71735 8.52981 5.829 8.45556 5.9519 8.40528C6.0748 8.355 6.20648 8.32969 6.33926 8.33085C6.47204 8.332 6.60325 8.35959 6.72526 8.412C6.84726 8.46441 6.95761 8.54059 7.04985 8.6361L11.9999 13.5861L16.9499 8.6361C17.1385 8.45394 17.3911 8.35315 17.6533 8.35542C17.9155 8.3577 18.1663 8.46287 18.3517 8.64828C18.5371 8.83369 18.6423 9.0845 18.6445 9.3467C18.6468 9.60889 18.546 9.8615 18.3639 10.0501L12.7069 15.7071Z" fill="white"/>
4
- </g>
5
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="Group">
3
- <path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M12.7069 15.7071C12.5193 15.8946 12.265 15.9999 11.9999 15.9999C11.7347 15.9999 11.4804 15.8946 11.2929 15.7071L5.63585 10.0501C5.54034 9.95785 5.46416 9.84751 5.41175 9.7255C5.35934 9.6035 5.33176 9.47228 5.3306 9.3395C5.32945 9.20672 5.35475 9.07504 5.40503 8.95215C5.45531 8.82925 5.52957 8.7176 5.62346 8.6237C5.71735 8.52981 5.829 8.45556 5.9519 8.40528C6.0748 8.355 6.20648 8.32969 6.33926 8.33085C6.47204 8.332 6.60325 8.35959 6.72526 8.412C6.84726 8.46441 6.95761 8.54059 7.04985 8.6361L11.9999 13.5861L16.9499 8.6361C17.1385 8.45394 17.3911 8.35315 17.6533 8.35542C17.9155 8.3577 18.1663 8.46287 18.3517 8.64828C18.5371 8.83369 18.6423 9.0845 18.6445 9.3467C18.6468 9.60889 18.546 9.8615 18.3639 10.0501L12.7069 15.7071Z" fill="black"/>
4
- </g>
5
- </svg>