optimized-react-component-library-xyz123 0.1.152 → 0.1.154

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.
@@ -0,0 +1,250 @@
1
+ /* Css för filuppladdningen finns i komponentens mapp */
2
+
3
+ fieldset {
4
+ border: none;
5
+ padding: 0;
6
+ margin: 0;
7
+ }
8
+
9
+ .pts-root-question {
10
+ display: flex;
11
+ flex-direction: column;
12
+ max-width: 624px;
13
+ }
14
+
15
+ div.pts-root-question:last-child{
16
+ padding-bottom: 0 ;
17
+ margin-bottom: 0 ;
18
+ }
19
+
20
+ .pts-root-categoryDescription,
21
+ .pts-root-stepDescription {
22
+ margin-bottom: 3.6rem;
23
+ }
24
+
25
+ .pts-root-question{
26
+ margin-bottom: 3.6rem;
27
+ }
28
+
29
+ .pts-root-question legend,
30
+ .pts-root-question label,
31
+ .pts-radio-option {
32
+ display: flex;
33
+ align-items: flex-start;
34
+ cursor: pointer;
35
+ }
36
+
37
+ .pts-radio-option,
38
+ .pts-root-question legend {
39
+ margin-bottom: 0.8rem;
40
+ }
41
+
42
+ .pts-root-question legend {
43
+ font-family: Arial;
44
+ font-size: 1.6rem;
45
+ font-style: normal;
46
+ font-weight: 400;
47
+ line-height: 20px;
48
+ }
49
+
50
+
51
+
52
+ .pts-root-about {
53
+ font-size: 1.4rem;
54
+ color: var(--info);
55
+ margin: 0;
56
+ margin-bottom: 0.4rem;
57
+ }
58
+
59
+ .pts-root-question input[type='text']:focus,
60
+ .pts-root-question input[type='email']:focus,
61
+ .pts-root-question input[type='tel']:focus {
62
+ border: 0.2rem solid var(--action);
63
+ }
64
+
65
+ .pts-root-error {
66
+ display: flex;
67
+ margin-top: 0.4rem;
68
+ }
69
+
70
+ .errorDot {
71
+ display: flex;
72
+ font-size: 1.6rem;
73
+ font-weight: 700;
74
+ width: 1.8rem;
75
+ height: 1.8rem;
76
+ border-radius: 1rem;
77
+ justify-content: center;
78
+ color: var(--main);
79
+ background-color: var(--error);
80
+ margin-right: 9px;
81
+ }
82
+
83
+ .errorText,
84
+ .pts-root-mandatoryAsterisk {
85
+ color: var(--error);
86
+ }
87
+
88
+ .pts-root-mandatoryAsterisk {
89
+ font-size: 1.8rem;
90
+ padding-left: 0.8rem;
91
+ }
92
+
93
+ .pts-root-question-input-error-border,
94
+ .pts-root-question-input-error-border,
95
+ .pts-root-question-input-error-border {
96
+ border: 0.2rem solid var(--error) !important;
97
+ }
98
+
99
+ .error-container{
100
+ padding: 3.6rem 0 0 0;
101
+ margin: 0;
102
+ }
103
+
104
+ .pts-root-question input[type='text'],
105
+ .pts-root-question input[type='email'],
106
+ .pts-root-question input[type='tel'] {
107
+ max-width: 100%;
108
+ font-size: 1.6rem;
109
+ padding-left: 1.6rem;
110
+ padding-right: 1.6rem;
111
+ border-radius: 0.8rem;
112
+ border: 1px solid var(--info);
113
+ height: 4.8rem;
114
+ }
115
+
116
+ /* ---------- RADIO MULTIPLE ---------- */
117
+
118
+ .pts-radioMultiple-container input[type='radio'] {
119
+ appearance: none;
120
+ width: 1.8rem;
121
+ height: 1.8rem;
122
+ border: 1.5px solid var(--info);
123
+ border-radius: 3.1rem;
124
+ margin: 0;
125
+ margin-right: 0.8rem;
126
+ vertical-align: -2px;
127
+ position: relative;
128
+ cursor: pointer;
129
+ }
130
+
131
+ .pts-radioMultiple-container input[type='radio']:checked::before {
132
+ content: '';
133
+ position: absolute;
134
+ top: 50%;
135
+ left: 50%;
136
+ transform: translate(-50%, -50%);
137
+ width: 1rem;
138
+ height: 1rem;
139
+ border-radius: 50%;
140
+ background-color: var(--action);
141
+ }
142
+
143
+ .pts-radioMultiple-container label {
144
+ position: relative;
145
+ flex: 1;
146
+ cursor: pointer;
147
+ }
148
+
149
+ /* ---------- MULTIPLE CHECKBOXES ---------- */
150
+
151
+ .pts-multipleCheckboxes-container input[type='checkbox'] {
152
+ -webkit-appearance: none;
153
+
154
+ width: 1.8rem;
155
+ height: 1.8rem;
156
+ margin-right: 0.8rem;
157
+ flex-shrink: 0;
158
+
159
+ background-color: var(--main);
160
+ border: 0.15rem solid var(--info);
161
+ border-radius: 0.2rem;
162
+
163
+ cursor: pointer;
164
+ }
165
+
166
+ .pts-multipleCheckboxes-container input[type='checkbox']:checked {
167
+ background-color: var(--action);
168
+ border: none;
169
+ 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;
170
+ }
171
+
172
+ .pts-multipleCheckboxes-container label {
173
+ cursor: pointer;
174
+ margin: 0;
175
+ padding-top: 0.1rem;
176
+ }
177
+
178
+ .pts-multipleCheckboxes-container ul {
179
+ padding-left: unset;
180
+ margin-top: 0;
181
+ margin-bottom: 0.8rem;
182
+ }
183
+
184
+ .pts-multipleCheckboxes-container li {
185
+ margin-bottom: 0.6rem;
186
+ display: flex;
187
+ align-items: flex-start;
188
+ cursor: pointer;
189
+ }
190
+
191
+ .pts-multipleCheckboxes-container li label {
192
+ flex: 1;
193
+ margin-top: 0.2rem;
194
+ }
195
+
196
+ /* ---------- TEXTFIELD / TEXTAREA ABOUT ---------- */
197
+
198
+ .pts-textField-container{
199
+ margin-top: 8px;
200
+ }
201
+
202
+ .pts-about {
203
+ margin-bottom: 0.4rem;
204
+ color: var(--info);
205
+ font-size: 1.4rem;
206
+ }
207
+
208
+ .textfield-about {
209
+ margin-bottom: 0.4rem;
210
+ color: var(--info);
211
+ font-size: 1.4rem;
212
+ }
213
+
214
+ .pts-textField-container label {
215
+ margin-bottom: 0.8rem;
216
+ }
217
+
218
+ .pts-question-hasAbout label {
219
+ margin-bottom: 0.3rem;
220
+ }
221
+
222
+ /* ---------- TEXTAREA ---------- */
223
+
224
+ .pts-textArea-container textarea {
225
+ height: 16rem;
226
+ padding: 1.2rem 1.6rem;
227
+ flex-shrink: 0;
228
+ font-family: arial;
229
+ font-size: 1.6rem;
230
+ border-radius: 8px;
231
+ border: 0.1px solid var(--info);
232
+ }
233
+
234
+ .pts-textArea-container textarea:focus {
235
+ border: 0.2rem solid var(--action);
236
+ }
237
+
238
+ .pts-textarea-counter-error-container {
239
+ display: flex;
240
+ }
241
+
242
+ .pts-character-counter {
243
+ text-align: right;
244
+ width: 100%;
245
+ margin-top: 0.4rem;
246
+ }
247
+
248
+ .pts-textarea-counter-error-container .pts-root-error {
249
+ width: 100%;
250
+ }