@idds/styles 1.0.26
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/README.md +147 -0
- package/package.json +55 -0
- package/src/colors/brands/bgn.css +29 -0
- package/src/colors/brands/bkn.css +32 -0
- package/src/colors/brands/inagov.css +39 -0
- package/src/colors/brands/inaku.css +28 -0
- package/src/colors/brands/inapas.css +28 -0
- package/src/colors/brands/lan.css +38 -0
- package/src/colors/brands/pan-rb.css +30 -0
- package/src/colors/index.css +11 -0
- package/src/colors/primitives/index.css +150 -0
- package/src/colors/product/index.css +205 -0
- package/src/colors/utilities/index.css +77 -0
- package/src/components/accordion-card.css +99 -0
- package/src/components/accordion.css +120 -0
- package/src/components/action-dropdown.css +140 -0
- package/src/components/alert.css +180 -0
- package/src/components/avatar.css +182 -0
- package/src/components/badge.css +244 -0
- package/src/components/bottom-sheet.css +61 -0
- package/src/components/breadcrumb.css +94 -0
- package/src/components/button-group.css +130 -0
- package/src/components/button.css +233 -0
- package/src/components/card.css +488 -0
- package/src/components/carousel.css +100 -0
- package/src/components/chart.css +81 -0
- package/src/components/checkbox.css +211 -0
- package/src/components/chip.css +228 -0
- package/src/components/collapse.css +84 -0
- package/src/components/confirmation.css +131 -0
- package/src/components/date-picker.css +1063 -0
- package/src/components/divider.css +174 -0
- package/src/components/drawer.css +757 -0
- package/src/components/dropdown.css +369 -0
- package/src/components/field-input-table.css +347 -0
- package/src/components/file-upload.css +357 -0
- package/src/components/input-search.css +428 -0
- package/src/components/linear-progress-indicator.css +34 -0
- package/src/components/modal.css +497 -0
- package/src/components/month-picker.css +325 -0
- package/src/components/multiple-choice-grid.css +383 -0
- package/src/components/pagination.css +415 -0
- package/src/components/password-input.css +472 -0
- package/src/components/phone-input.css +412 -0
- package/src/components/progress-bar.css +447 -0
- package/src/components/radio-input.css +263 -0
- package/src/components/reset.css +431 -0
- package/src/components/select-dropdown.css +663 -0
- package/src/components/select-option.css +217 -0
- package/src/components/skeleton.css +488 -0
- package/src/components/spinner.css +450 -0
- package/src/components/stepper.css +209 -0
- package/src/components/tab-horizontal.css +278 -0
- package/src/components/tab-vertical.css +261 -0
- package/src/components/table-progress-bar.css +48 -0
- package/src/components/table.css +538 -0
- package/src/components/text-area.css +216 -0
- package/src/components/text-field.css +275 -0
- package/src/components/theme-toggle.css +259 -0
- package/src/components/time-picker.css +436 -0
- package/src/components/toast.css +245 -0
- package/src/components/toggle.css +223 -0
- package/src/components/tooltip.css +452 -0
- package/src/components/year-picker.css +423 -0
- package/src/index.css +3 -0
- package/src/tailwind/css/bgn.css +43 -0
- package/src/tailwind/css/bkn.css +37 -0
- package/src/tailwind/css/idds.css +231 -0
- package/src/tailwind/css/inagov.css +33 -0
- package/src/tailwind/css/inaku.css +33 -0
- package/src/tailwind/css/inapas.css +33 -0
- package/src/tailwind/css/lan.css +43 -0
- package/src/tailwind/css/pan-rb.css +35 -0
- package/src/tailwind/ts/bgn.ts +20 -0
- package/src/tailwind/ts/bkn.ts +38 -0
- package/src/tailwind/ts/idds.ts +240 -0
- package/src/tailwind/ts/inagov.ts +35 -0
- package/src/tailwind/ts/inaku.ts +35 -0
- package/src/tailwind/ts/inapas.ts +35 -0
- package/src/tailwind/ts/lan.ts +45 -0
- package/src/tailwind/ts/panrb.ts +37 -0
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/* =========================== */
|
|
2
|
+
/* CSS RESET & BASE STYLES */
|
|
3
|
+
/* =========================== */
|
|
4
|
+
|
|
5
|
+
/* Import Google Fonts - Inter */
|
|
6
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
|
|
7
|
+
|
|
8
|
+
/* =========================== */
|
|
9
|
+
/* CSS RESET RULES */
|
|
10
|
+
/* =========================== */
|
|
11
|
+
|
|
12
|
+
/* Box sizing rules */
|
|
13
|
+
*,
|
|
14
|
+
*::before,
|
|
15
|
+
*::after {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
|
|
20
|
+
ul[role='list'],
|
|
21
|
+
ol[role='list'] {
|
|
22
|
+
list-style: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Set core root defaults */
|
|
26
|
+
html:focus-within {
|
|
27
|
+
scroll-behavior: smooth;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Set core body defaults */
|
|
31
|
+
body {
|
|
32
|
+
min-height: 100vh;
|
|
33
|
+
text-rendering: optimizeSpeed;
|
|
34
|
+
line-height: 1.5;
|
|
35
|
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
|
|
36
|
+
'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
37
|
+
sans-serif;
|
|
38
|
+
-webkit-font-smoothing: antialiased;
|
|
39
|
+
-moz-osx-font-smoothing: grayscale;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* A elements that don't have a class get default styles */
|
|
43
|
+
a:not([class]) {
|
|
44
|
+
text-decoration-skip-ink: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* Make images easier to work with */
|
|
48
|
+
img,
|
|
49
|
+
picture {
|
|
50
|
+
max-width: 100%;
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Inherit fonts for inputs and buttons */
|
|
55
|
+
input,
|
|
56
|
+
button,
|
|
57
|
+
textarea,
|
|
58
|
+
select {
|
|
59
|
+
font: inherit;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Remove default styling from form elements */
|
|
63
|
+
input,
|
|
64
|
+
textarea,
|
|
65
|
+
select {
|
|
66
|
+
/* border: none; */
|
|
67
|
+
outline: none;
|
|
68
|
+
padding: 0;
|
|
69
|
+
margin: 0;
|
|
70
|
+
box-shadow: none;
|
|
71
|
+
-webkit-appearance: none;
|
|
72
|
+
-moz-appearance: none;
|
|
73
|
+
appearance: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Remove default focus styles */
|
|
77
|
+
input:focus,
|
|
78
|
+
textarea:focus,
|
|
79
|
+
select:focus,
|
|
80
|
+
button:focus {
|
|
81
|
+
outline: none;
|
|
82
|
+
box-shadow: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Remove default border and background from specific input types */
|
|
86
|
+
input[type='text'],
|
|
87
|
+
input[type='email'],
|
|
88
|
+
input[type='password'],
|
|
89
|
+
input[type='search'],
|
|
90
|
+
input[type='tel'],
|
|
91
|
+
input[type='url'],
|
|
92
|
+
input[type='number'],
|
|
93
|
+
input[type='date'],
|
|
94
|
+
input[type='time'],
|
|
95
|
+
input[type='datetime-local'],
|
|
96
|
+
input[type='month'],
|
|
97
|
+
input[type='week'] {
|
|
98
|
+
/* border: none; */
|
|
99
|
+
outline: none;
|
|
100
|
+
background: transparent;
|
|
101
|
+
-webkit-appearance: none;
|
|
102
|
+
-moz-appearance: none;
|
|
103
|
+
appearance: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Remove default styling from textarea */
|
|
107
|
+
textarea {
|
|
108
|
+
/* border: none; */
|
|
109
|
+
outline: none;
|
|
110
|
+
background: transparent;
|
|
111
|
+
resize: vertical;
|
|
112
|
+
-webkit-appearance: none;
|
|
113
|
+
-moz-appearance: none;
|
|
114
|
+
appearance: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Remove default styling from select */
|
|
118
|
+
select {
|
|
119
|
+
/* border: none; */
|
|
120
|
+
outline: none;
|
|
121
|
+
background: transparent;
|
|
122
|
+
-webkit-appearance: none;
|
|
123
|
+
-moz-appearance: none;
|
|
124
|
+
appearance: none;
|
|
125
|
+
background-image: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Remove default button styling */
|
|
129
|
+
button {
|
|
130
|
+
/* border: none;
|
|
131
|
+
outline: none; */
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
-webkit-appearance: none;
|
|
134
|
+
-moz-appearance: none;
|
|
135
|
+
appearance: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Remove default styling from file inputs */
|
|
139
|
+
input[type='file'] {
|
|
140
|
+
/* border: none; */
|
|
141
|
+
outline: none;
|
|
142
|
+
background: transparent;
|
|
143
|
+
-webkit-appearance: none;
|
|
144
|
+
-moz-appearance: none;
|
|
145
|
+
appearance: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Remove default styling from range inputs */
|
|
149
|
+
input[type='range'] {
|
|
150
|
+
/* border: none; */
|
|
151
|
+
outline: none;
|
|
152
|
+
background: transparent;
|
|
153
|
+
-webkit-appearance: none;
|
|
154
|
+
-moz-appearance: none;
|
|
155
|
+
appearance: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Remove default styling from color inputs */
|
|
159
|
+
input[type='color'] {
|
|
160
|
+
/* border: none; */
|
|
161
|
+
outline: none;
|
|
162
|
+
background: transparent;
|
|
163
|
+
-webkit-appearance: none;
|
|
164
|
+
-moz-appearance: none;
|
|
165
|
+
appearance: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Remove default styling from checkbox and radio */
|
|
169
|
+
/* input[type='checkbox'],
|
|
170
|
+
input[type='radio'] {
|
|
171
|
+
border: none;
|
|
172
|
+
outline: none;
|
|
173
|
+
background: transparent;
|
|
174
|
+
-webkit-appearance: none;
|
|
175
|
+
-moz-appearance: none;
|
|
176
|
+
appearance: none;
|
|
177
|
+
box-shadow: none;
|
|
178
|
+
} */
|
|
179
|
+
|
|
180
|
+
/* Remove default styling from submit and reset buttons */
|
|
181
|
+
/* input[type='submit'],
|
|
182
|
+
input[type='reset'],
|
|
183
|
+
input[type='button'] {
|
|
184
|
+
border: none;
|
|
185
|
+
outline: none;
|
|
186
|
+
background: transparent;
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
-webkit-appearance: none;
|
|
189
|
+
-moz-appearance: none;
|
|
190
|
+
appearance: none;
|
|
191
|
+
} */
|
|
192
|
+
|
|
193
|
+
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
|
|
194
|
+
@media (prefers-reduced-motion: reduce) {
|
|
195
|
+
html:focus-within {
|
|
196
|
+
scroll-behavior: auto;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
*,
|
|
200
|
+
*::before,
|
|
201
|
+
*::after {
|
|
202
|
+
animation-duration: 0.01ms !important;
|
|
203
|
+
animation-iteration-count: 1 !important;
|
|
204
|
+
transition-duration: 0.01ms !important;
|
|
205
|
+
scroll-behavior: auto !important;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* =========================== */
|
|
210
|
+
/* FORM ELEMENTS RESET */
|
|
211
|
+
/* =========================== */
|
|
212
|
+
|
|
213
|
+
/* Additional form element resets */
|
|
214
|
+
optgroup {
|
|
215
|
+
font-family: inherit;
|
|
216
|
+
font-size: 100%;
|
|
217
|
+
line-height: 1.15;
|
|
218
|
+
margin: 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
button,
|
|
222
|
+
[type='button'],
|
|
223
|
+
[type='reset'],
|
|
224
|
+
[type='submit'] {
|
|
225
|
+
-webkit-appearance: button;
|
|
226
|
+
appearance: button;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
button::-moz-focus-inner,
|
|
230
|
+
[type='button']::-moz-focus-inner,
|
|
231
|
+
[type='reset']::-moz-focus-inner,
|
|
232
|
+
[type='submit']::-moz-focus-inner {
|
|
233
|
+
border-style: none;
|
|
234
|
+
padding: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
button:-moz-focusring,
|
|
238
|
+
[type='button']:-moz-focusring,
|
|
239
|
+
[type='reset']:-moz-focusring,
|
|
240
|
+
[type='submit']:-moz-focusring {
|
|
241
|
+
outline: 1px dotted ButtonText;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
fieldset {
|
|
245
|
+
padding: 0.35em 0.75em 0.625em;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
legend {
|
|
249
|
+
box-sizing: border-box;
|
|
250
|
+
color: inherit;
|
|
251
|
+
display: table;
|
|
252
|
+
max-width: 100%;
|
|
253
|
+
padding: 0;
|
|
254
|
+
white-space: normal;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
progress {
|
|
258
|
+
vertical-align: baseline;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* textarea overflow handled above */
|
|
262
|
+
|
|
263
|
+
[type='checkbox'],
|
|
264
|
+
[type='radio'] {
|
|
265
|
+
box-sizing: border-box;
|
|
266
|
+
padding: 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
[type='number']::-webkit-inner-spin-button,
|
|
270
|
+
[type='number']::-webkit-outer-spin-button {
|
|
271
|
+
height: auto;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
[type='search'] {
|
|
275
|
+
-webkit-appearance: textfield;
|
|
276
|
+
appearance: textfield;
|
|
277
|
+
outline-offset: -2px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
[type='search']::-webkit-search-decoration {
|
|
281
|
+
-webkit-appearance: none;
|
|
282
|
+
appearance: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
::-webkit-file-upload-button {
|
|
286
|
+
-webkit-appearance: button;
|
|
287
|
+
appearance: button;
|
|
288
|
+
font: inherit;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* =========================== */
|
|
292
|
+
/* MEDIA ELEMENTS RESET */
|
|
293
|
+
/* =========================== */
|
|
294
|
+
|
|
295
|
+
/* Reset media elements */
|
|
296
|
+
/* img,
|
|
297
|
+
svg,
|
|
298
|
+
video,
|
|
299
|
+
canvas,
|
|
300
|
+
audio,
|
|
301
|
+
iframe,
|
|
302
|
+
embed,
|
|
303
|
+
object {
|
|
304
|
+
display: block;
|
|
305
|
+
max-width: 100%;
|
|
306
|
+
} */
|
|
307
|
+
|
|
308
|
+
/* =========================== */
|
|
309
|
+
/* TABLE RESET */
|
|
310
|
+
/* =========================== */
|
|
311
|
+
|
|
312
|
+
/* Reset tables */
|
|
313
|
+
table {
|
|
314
|
+
text-indent: 0;
|
|
315
|
+
border-color: inherit;
|
|
316
|
+
border-collapse: collapse;
|
|
317
|
+
border-spacing: 0;
|
|
318
|
+
width: 100%;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* thead,
|
|
322
|
+
tbody,
|
|
323
|
+
tfoot,
|
|
324
|
+
tr,
|
|
325
|
+
td,
|
|
326
|
+
th {
|
|
327
|
+
border-color: inherit;
|
|
328
|
+
border-style: solid;
|
|
329
|
+
border-width: 0;
|
|
330
|
+
} */
|
|
331
|
+
|
|
332
|
+
/* th,
|
|
333
|
+
td {
|
|
334
|
+
padding: 0;
|
|
335
|
+
text-align: left;
|
|
336
|
+
vertical-align: top;
|
|
337
|
+
} */
|
|
338
|
+
|
|
339
|
+
/* th {
|
|
340
|
+
font-weight: 600;
|
|
341
|
+
} */
|
|
342
|
+
|
|
343
|
+
/* =========================== */
|
|
344
|
+
/* MISCELLANEOUS RESET */
|
|
345
|
+
/* =========================== */
|
|
346
|
+
|
|
347
|
+
/* Reset pagination and navigation */
|
|
348
|
+
nav {
|
|
349
|
+
display: block;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* Reset semantic elements */
|
|
353
|
+
section,
|
|
354
|
+
article,
|
|
355
|
+
aside,
|
|
356
|
+
header,
|
|
357
|
+
footer,
|
|
358
|
+
main,
|
|
359
|
+
figure,
|
|
360
|
+
address,
|
|
361
|
+
cite,
|
|
362
|
+
mark,
|
|
363
|
+
small,
|
|
364
|
+
sub,
|
|
365
|
+
sup,
|
|
366
|
+
code,
|
|
367
|
+
kbd,
|
|
368
|
+
samp,
|
|
369
|
+
abbr,
|
|
370
|
+
del,
|
|
371
|
+
ins,
|
|
372
|
+
dfn {
|
|
373
|
+
display: block;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* Reset text elements */
|
|
377
|
+
small {
|
|
378
|
+
font-size: 80%;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
sub,
|
|
382
|
+
sup {
|
|
383
|
+
font-size: 75%;
|
|
384
|
+
line-height: 0;
|
|
385
|
+
position: relative;
|
|
386
|
+
vertical-align: baseline;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
sub {
|
|
390
|
+
bottom: -0.25em;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
sup {
|
|
394
|
+
top: -0.5em;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* Reset code elements */
|
|
398
|
+
code,
|
|
399
|
+
kbd,
|
|
400
|
+
samp {
|
|
401
|
+
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas,
|
|
402
|
+
'Courier New', monospace;
|
|
403
|
+
font-size: 1em;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* Reset abbreviation */
|
|
407
|
+
abbr[title] {
|
|
408
|
+
border-bottom: none;
|
|
409
|
+
text-decoration: underline;
|
|
410
|
+
text-decoration: underline dotted;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/* Reset mark */
|
|
414
|
+
mark {
|
|
415
|
+
background-color: #ff0;
|
|
416
|
+
color: #000;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* Reset del and ins */
|
|
420
|
+
del {
|
|
421
|
+
text-decoration: line-through;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
ins {
|
|
425
|
+
text-decoration: underline;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* Reset dfn */
|
|
429
|
+
dfn {
|
|
430
|
+
font-style: italic;
|
|
431
|
+
}
|