optimized-react-component-library-xyz123 0.19.29 → 0.20.1

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;
@@ -142,56 +150,6 @@ div.pts-root-question:last-child {
142
150
  cursor: pointer;
143
151
  }
144
152
 
145
- /* ---------- DROPDOWN ---------- */
146
-
147
- /* För inspiration */
148
-
149
- .pts-dropdown-container {
150
- margin-bottom: 1.5rem;
151
- }
152
-
153
- .pts-dropdown-container label {
154
- display: block;
155
- margin-bottom: 0.5rem;
156
- font-weight: 500;
157
- }
158
-
159
- .pts-dropdown-container select {
160
- display: block;
161
- width: 100%;
162
- padding-right: 2.4em;
163
- padding-left: 0.6em;
164
-
165
- border: #747474 1px solid;
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 ---------- */
@@ -1114,3 +1080,24 @@ div.pts-root-question:last-child {
1114
1080
  background: var(--red-green-red, rgb(211, 165, 0));
1115
1081
  }
1116
1082
  /* ---------- END FILE UPLOAD ---------- */
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+ input:autofill,
1090
+ input:autofill:hover,
1091
+ input:autofill:focus,
1092
+ input:-webkit-autofill,
1093
+ input:-webkit-autofill:hover,
1094
+ input:-webkit-autofill:focus {
1095
+ -webkit-box-shadow: 0 0 0 1000px var(--main) inset !important;
1096
+ box-shadow: 0 0 0 1000px var(--main) inset !important;
1097
+ -webkit-text-fill-color: inherit !important; /* behåller textfärgen */
1098
+ background-color: var(--main) !important;
1099
+ }
1100
+ input:-moz-autofill {
1101
+ box-shadow: 0 0 0 1000px transparent inset !important;
1102
+ }
1103
+
@@ -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 {
@@ -138,6 +140,10 @@ p[aria-live='assertive']:empty {
138
140
  padding: 0;
139
141
  }
140
142
 
143
+ .pts-root-categoryDescription {
144
+ margin-top: 0px;
145
+ }
146
+
141
147
  .pts-first-category-section {
142
148
  padding-top: 0;
143
149
  border-top-left-radius: 0;
@@ -287,6 +293,27 @@ textarea:focus-visible,
287
293
  background-color: var(--main);
288
294
  }
289
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
+
290
317
  .pts-languageButton {
291
318
  position: relative;
292
319
  display: inline-flex;
@@ -295,15 +322,16 @@ textarea:focus-visible,
295
322
  border: transparent;
296
323
  color: var(--action);
297
324
  cursor: pointer;
325
+ font-size: 1.6rem;
298
326
  }
299
327
 
300
328
  .pts-languageButton::after {
301
329
  content: "";
302
330
  position: absolute;
303
- left: 0.7rem;
304
- right: -0.3rem;
305
- bottom: 0;
306
- height: 0.2rem;
331
+ left: 7px;
332
+ right: 4px;
333
+ bottom: 3px;
334
+ height: 0.15rem;
307
335
  background-color: currentColor;
308
336
  opacity: 0;
309
337
  }
@@ -313,21 +341,25 @@ textarea:focus-visible,
313
341
  }
314
342
 
315
343
  .languageIcon{
344
+ position: relative;
316
345
  margin-top: 0.3rem;
317
346
  padding-right: 0.6rem;
347
+ top: 0.01rem;
318
348
  }
319
349
 
320
350
  .pts-languageButton svg {
321
- width: 1.5rem;
322
- height: 1.5rem;
351
+ width: 1.6rem;
352
+ height: 1.6rem;
323
353
  }
324
354
 
325
- .languageIcon{
326
- padding-left: 0.6rem;
327
- }
328
355
 
329
356
  /* ---------- TextBODY ---------- */
330
357
 
358
+ .pts-textBody-container p{
359
+ margin-bottom: 1.6rem;
360
+
361
+ }
362
+
331
363
  .MoreInfoIcon{
332
364
  margin-top: 2px;
333
365
  }
@@ -485,12 +517,6 @@ textarea:focus-visible,
485
517
  gap: 0.2rem;
486
518
  }
487
519
 
488
- .pts-editPreviewLink-container svg {
489
- height: 1.6rem;
490
- width: 1.6rem;
491
- flex-shrink: 0;
492
- }
493
-
494
520
  .pts-question-preview,
495
521
  .addFilesPreviewContainer {
496
522
  display: flex;
@@ -527,10 +553,6 @@ textarea:focus-visible,
527
553
  margin-bottom: 36px;
528
554
  }
529
555
 
530
- .pts-edit-step-button{
531
- text-decoration: none;
532
- }
533
-
534
556
  .pts-edit-step-text{
535
557
  padding-left: 5px;
536
558
  }
@@ -650,17 +672,35 @@ textarea:focus-visible,
650
672
  /* ---------- FOOTER ---------- */
651
673
 
652
674
  .pts-footer-container {
653
- display: flex;
654
- min-height: 14rem;
655
675
  align-items: center;
656
676
  width: 100%;
657
677
  background-color: var(--background-second);
658
678
  }
659
679
 
680
+ .pts-footer-slogan-text-container{
681
+ display: flex;
682
+ align-items: center;
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
+
660
698
  .pts-footer-content{
661
699
  display: flex;
662
700
  align-items: center;
663
701
  width: 100%;
702
+ min-height: 14rem;
703
+ padding: 0.1rem 0;
664
704
  }
665
705
 
666
706
  .pts-footer-logo {
@@ -762,8 +802,7 @@ textarea:focus-visible,
762
802
  transform: rotate(360deg);
763
803
  }
764
804
  }
765
-
766
-
805
+ /*-----------ALWAYS IN THE END OF STYLES----------------*/
767
806
 
768
807
  .cleanPadding {
769
808
  padding: 0;
@@ -772,4 +811,17 @@ textarea:focus-visible,
772
811
  .unsetMargin-Padding {
773
812
  margin: 0;
774
813
  padding: 0;
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;
775
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>