@department-of-veterans-affairs/css-library 0.7.3 → 0.8.0

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.
Files changed (50) hide show
  1. package/dist/fonts/bitter-bold.ttf +0 -0
  2. package/dist/fonts/bitter-bold.woff2 +0 -0
  3. package/dist/fonts/bitter-regular.ttf +0 -0
  4. package/dist/fonts/bitter-regular.woff2 +0 -0
  5. package/dist/stylesheets/_mixins.scss +452 -0
  6. package/dist/stylesheets/base/fonts.css +1589 -0
  7. package/dist/stylesheets/base/utils.css +137 -0
  8. package/dist/stylesheets/base/va.css +1843 -0
  9. package/dist/{full.css → stylesheets/core.css} +341 -2299
  10. package/dist/stylesheets/formation-overrides/_variables.scss +170 -0
  11. package/dist/stylesheets/formation-overrides/core/base.css +64 -0
  12. package/dist/stylesheets/formation-overrides/core/fonts.css +46 -0
  13. package/dist/stylesheets/formation-overrides/elements/buttons.css +562 -0
  14. package/dist/stylesheets/formation-overrides/elements/inputs.css +384 -0
  15. package/dist/stylesheets/formation-overrides/elements/labels.css +28 -0
  16. package/dist/stylesheets/formation-overrides/elements/lists.css +57 -0
  17. package/dist/stylesheets/formation-overrides/elements/table.css +78 -0
  18. package/dist/stylesheets/formation-overrides/elements/typography.css +274 -0
  19. package/dist/stylesheets/mobile-typography.css +13 -0
  20. package/dist/stylesheets/modules/m-action-link.css +1443 -0
  21. package/dist/stylesheets/modules/m-additional-info.css +39 -0
  22. package/dist/stylesheets/modules/m-alert.css +254 -0
  23. package/dist/stylesheets/modules/m-breadcrumbs.css +96 -0
  24. package/dist/stylesheets/modules/m-button.css +153 -0
  25. package/dist/stylesheets/modules/m-dropdown.css +47 -0
  26. package/dist/stylesheets/modules/m-emergency-banner.css +33 -0
  27. package/dist/stylesheets/modules/m-external-link.css +14 -0
  28. package/dist/stylesheets/modules/m-form-elements.css +231 -0
  29. package/dist/stylesheets/modules/m-form-process.css +219 -0
  30. package/dist/stylesheets/modules/m-homepage-hero.css +76 -0
  31. package/dist/stylesheets/modules/m-hub-page-link-list.css +40 -0
  32. package/dist/stylesheets/modules/m-loading-indicator.css +41 -0
  33. package/dist/stylesheets/modules/m-maintenance-banner.css +33 -0
  34. package/dist/stylesheets/modules/m-megamenu.css +365 -0
  35. package/dist/stylesheets/modules/m-modal.css +117 -0
  36. package/dist/stylesheets/modules/m-nav-linklist.css +49 -0
  37. package/dist/stylesheets/modules/m-nav-sidebar.css +349 -0
  38. package/dist/stylesheets/modules/m-omb-info.css +15 -0
  39. package/dist/stylesheets/modules/m-overlay.css +72 -0
  40. package/dist/stylesheets/modules/m-print.css +27 -0
  41. package/dist/stylesheets/modules/m-process-list.css +162 -0
  42. package/dist/stylesheets/modules/va-pagination.css +90 -0
  43. package/dist/stylesheets/modules/va-tabs.css +53 -0
  44. package/dist/stylesheets/shame.css +266 -0
  45. package/dist/{uswds-typography.css → stylesheets/uswds-typography.css} +1 -1
  46. package/dist/{utilities.css → stylesheets/utilities.css} +1978 -1978
  47. package/dist/tokens/css/variables.css +1 -1
  48. package/dist/tokens/scss/variables.scss +1 -1
  49. package/package.json +10 -8
  50. /package/dist/{base → stylesheets/base}/headings.css +0 -0
@@ -0,0 +1,384 @@
1
+ @charset "UTF-8";
2
+ /*
3
+ Original: @import "~uswds/src/stylesheets/elements/inputs";
4
+ ***THIS IS USWDS v1***
5
+ */
6
+ /**
7
+ Variables ported over from Formation so that we can keep those stylesheets
8
+ working while we work on deprecation.
9
+ **/
10
+ /**
11
+ /uswds/dist/scss/lib/addons/_margin.scss
12
+ **/
13
+ /**
14
+ uswds/src/stylesheets/lib/helpers/_directional-values.scss
15
+ **/
16
+ /**
17
+ Variables ported over from Formation so that we can keep those stylesheets
18
+ working while we work on deprecation.
19
+ **/
20
+ /*
21
+ Original: @import "~uswds/src/stylesheets/elements/inputs";
22
+ ***THIS IS USWDS v1***
23
+ */
24
+ /*
25
+ Original: @import "~uswds/src/stylesheets/core/utilities";
26
+ ***THIS IS USWDS v1***
27
+ */
28
+ .usa-sr-only {
29
+ position: absolute;
30
+ left: -999em;
31
+ }
32
+
33
+ /* stylelint-disable selector-no-qualifying-type */
34
+ input,
35
+ textarea,
36
+ select {
37
+ appearance: none;
38
+ border: 1px solid #5b616b;
39
+ border-radius: 0;
40
+ box-sizing: border-box;
41
+ color: #1b1b1b;
42
+ display: block;
43
+ font-size: 16px;
44
+ height: 42px;
45
+ line-height: 1.3;
46
+ margin: 0.2em 0;
47
+ max-width: 460px;
48
+ padding: 10px 11.2px;
49
+ width: 100%;
50
+ }
51
+ input.usa-input-success,
52
+ textarea.usa-input-success,
53
+ select.usa-input-success {
54
+ border: 3px solid #4aa564;
55
+ }
56
+
57
+ /* stylelint-enable */
58
+ .usa-input-error {
59
+ border-left: 4px solid #cd2026;
60
+ margin-top: 1.875rem;
61
+ padding-bottom: 0.5rem;
62
+ padding-left: 0.9375rem;
63
+ padding-top: 0.5rem;
64
+ position: relative;
65
+ right: 1.1875rem;
66
+ }
67
+ .usa-input-error input,
68
+ .usa-input-error textarea,
69
+ .usa-input-error select {
70
+ border: 3px solid #cd2026;
71
+ width: calc(100% + 1.1875rem);
72
+ }
73
+ .usa-input-error label {
74
+ margin-top: 0;
75
+ }
76
+ .usa-input-error .usa-input-inline {
77
+ border: 0.0625rem solid #5b616b;
78
+ width: inherit;
79
+ }
80
+ .usa-input-error .usa-input-inline-error {
81
+ border: 3px solid #cd2026;
82
+ }
83
+
84
+ .usa-input-error-label {
85
+ display: block;
86
+ font-size: 1rem;
87
+ font-weight: 700;
88
+ }
89
+
90
+ .usa-input-error-message {
91
+ color: #cd2026;
92
+ display: block;
93
+ font-size: 1rem;
94
+ font-weight: 700;
95
+ padding-bottom: 3px;
96
+ padding-top: 3px;
97
+ }
98
+
99
+ .usa-input-required:after {
100
+ color: #981b1e;
101
+ content: " (*required)";
102
+ }
103
+
104
+ .usa-input-optional:after {
105
+ color: #757575;
106
+ content: " (optional)";
107
+ }
108
+
109
+ .usa-input-label-helper {
110
+ color: #757575;
111
+ }
112
+
113
+ .usa-input-label-required {
114
+ color: #981b1e;
115
+ }
116
+
117
+ label {
118
+ display: block;
119
+ margin-top: 1.875rem;
120
+ max-width: 28.75rem;
121
+ }
122
+
123
+ textarea {
124
+ height: 10rem;
125
+ }
126
+
127
+ select {
128
+ appearance: none;
129
+ background-color: #ffffff;
130
+ background-image: url("/assets/img/arrow-both.png");
131
+ background-image: none, url("/assets/img/arrow-both.svg"), url("/assets/img/arrow-both.png");
132
+ background-position: right 0.8125rem center;
133
+ background-repeat: no-repeat;
134
+ background-size: 0.625rem;
135
+ padding-right: 1.875rem;
136
+ }
137
+ select::-ms-expand {
138
+ display: none;
139
+ }
140
+ select:-webkit-autofill {
141
+ appearance: menulist;
142
+ }
143
+ select:-moz-focusring {
144
+ color: transparent;
145
+ text-shadow: 0 0 0 #000000;
146
+ }
147
+
148
+ option:first-child {
149
+ font-weight: 700;
150
+ }
151
+
152
+ legend {
153
+ font-size: 1.875rem;
154
+ font-weight: 700;
155
+ }
156
+
157
+ .usa-fieldset-inputs label {
158
+ margin-top: 0;
159
+ }
160
+
161
+ .usa-form-hint {
162
+ color: #757575;
163
+ font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
164
+ margin-bottom: 0;
165
+ }
166
+
167
+ [type=checkbox],
168
+ [type=radio] {
169
+ position: absolute;
170
+ left: -999em;
171
+ }
172
+ .lt-ie9 [type=checkbox],
173
+ .lt-ie9 [type=radio] {
174
+ border: 0;
175
+ float: left;
176
+ margin: 0.4em 0.4em 0 0;
177
+ position: static;
178
+ width: auto;
179
+ }
180
+
181
+ [type=checkbox] + label,
182
+ [type=radio] + label {
183
+ cursor: pointer;
184
+ font-weight: 400;
185
+ margin-bottom: 0.65em;
186
+ }
187
+
188
+ [type=checkbox] + label::before,
189
+ [type=radio] + label::before {
190
+ background: #ffffff;
191
+ content: " ";
192
+ display: inline-block;
193
+ text-indent: 0.15em;
194
+ vertical-align: middle\0 ;
195
+ }
196
+
197
+ [type=checkbox] + label::before {
198
+ border-radius: 2px;
199
+ box-shadow: 0 0 0 1px #757575;
200
+ height: 1.25rem;
201
+ line-height: 1.25rem;
202
+ margin-left: 1px;
203
+ margin-right: 0.6em;
204
+ width: 1.25rem;
205
+ }
206
+
207
+ [type=radio] + label::before {
208
+ border-radius: 100%;
209
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #757575;
210
+ height: 0.875rem;
211
+ line-height: 0.875rem;
212
+ margin-left: 3px;
213
+ margin-right: 0.75em;
214
+ width: 0.875rem;
215
+ }
216
+
217
+ [type=checkbox]:checked + label::before,
218
+ [type=radio]:checked + label::before {
219
+ background-color: #005ea2;
220
+ box-shadow: 0 0 0 1px #005ea2;
221
+ }
222
+
223
+ [type=radio]:checked + label::before {
224
+ box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #005ea2;
225
+ }
226
+
227
+ [type=checkbox]:checked + label::before,
228
+ [type=checkbox]:checked:disabled + label::before {
229
+ background-image: url("/assets/img/correct8.png");
230
+ background-image: url("/assets/img/correct8.svg");
231
+ background-position: 50%;
232
+ background-repeat: no-repeat;
233
+ }
234
+
235
+ [type=radio]:focus + label::before {
236
+ outline: 2px dotted #aeb0b5;
237
+ outline-offset: 6px;
238
+ }
239
+
240
+ [type=checkbox]:disabled + label {
241
+ color: #d6d7d9;
242
+ }
243
+
244
+ [type=checkbox]:focus + label::before {
245
+ outline: 2px dotted #aeb0b5;
246
+ outline-offset: 3px;
247
+ }
248
+
249
+ [type=checkbox]:disabled + label::before,
250
+ [type=radio]:disabled + label::before {
251
+ background: #f1f1f1;
252
+ box-shadow: 0 0 0 1px #aeb0b5;
253
+ cursor: not-allowed;
254
+ }
255
+
256
+ @media print {
257
+ [type=checkbox]:checked + label::before,
258
+ [type=checkbox]:checked:disabled + label::before {
259
+ background-image: none;
260
+ background-color: #ffffff;
261
+ content: url("/assets/img/correct8-alt.png");
262
+ content: url("/assets/img/correct8-alt.svg");
263
+ text-indent: 0;
264
+ }
265
+ [type=radio]:checked:disabled + label::before,
266
+ [type=radio]:checked + label::before {
267
+ box-shadow: 0 0 0 2px #ffffff, inset 0 0 0 14px #005ea2, 0 0 0 4px #005ea2;
268
+ }
269
+ }
270
+ [type=range] {
271
+ appearance: none;
272
+ border: none;
273
+ padding-left: 0;
274
+ overflow: hidden;
275
+ width: 100%;
276
+ }
277
+ [type=range]:focus {
278
+ outline: none;
279
+ }
280
+ [type=range]:focus::-webkit-slider-thumb {
281
+ box-shadow: 0 0 0 2px #005ea2;
282
+ }
283
+ [type=range]:focus::-moz-range-thumb {
284
+ box-shadow: 0 0 0 2px #005ea2;
285
+ }
286
+ [type=range]:focus::-ms-thumb {
287
+ box-shadow: 0 0 0 2px #005ea2;
288
+ }
289
+ [type=range]::-webkit-slider-runnable-track {
290
+ background: #d6d7d9;
291
+ border: 1px solid #757575;
292
+ cursor: pointer;
293
+ height: 1rem;
294
+ width: 100%;
295
+ }
296
+ [type=range]::-moz-range-track {
297
+ background: #d6d7d9;
298
+ border: 1px solid #757575;
299
+ cursor: pointer;
300
+ height: 1rem;
301
+ width: 100%;
302
+ }
303
+ [type=range]::-ms-track {
304
+ background: #d6d7d9;
305
+ border: 1px solid #757575;
306
+ cursor: pointer;
307
+ height: 1rem;
308
+ width: 100%;
309
+ }
310
+ [type=range]::-webkit-slider-thumb {
311
+ background: #f1f1f1;
312
+ box-shadow: 0 0 0 1px #757575;
313
+ border-radius: 0.9375rem;
314
+ cursor: pointer;
315
+ height: 1.5625rem;
316
+ width: 1.5625rem;
317
+ appearance: none;
318
+ margin-top: -0.375rem;
319
+ }
320
+ [type=range]::-moz-range-thumb {
321
+ background: #f1f1f1;
322
+ box-shadow: 0 0 0 1px #757575;
323
+ border-radius: 0.9375rem;
324
+ cursor: pointer;
325
+ height: 1.5625rem;
326
+ width: 1.5625rem;
327
+ }
328
+ [type=range]::-ms-thumb {
329
+ background: #f1f1f1;
330
+ box-shadow: 0 0 0 1px #757575;
331
+ border-radius: 0.9375rem;
332
+ cursor: pointer;
333
+ height: 1.5625rem;
334
+ width: 1.5625rem;
335
+ }
336
+ [type=range]::-ms-fill-lower {
337
+ background: #aeb0b5;
338
+ border: 1px solid #757575;
339
+ border-radius: 1.25rem;
340
+ }
341
+ [type=range]::-ms-fill-upper {
342
+ background: #aeb0b5;
343
+ border: 1px solid #757575;
344
+ border-radius: 1.25rem;
345
+ }
346
+
347
+ [type=file] {
348
+ border: none;
349
+ padding-left: 0;
350
+ }
351
+
352
+ .usa-date-of-birth { /* stylelint-disable-line */ }
353
+ .usa-date-of-birth label {
354
+ margin-top: 0;
355
+ }
356
+ .usa-date-of-birth [type=number] {
357
+ -moz-appearance: textfield;
358
+ }
359
+ .usa-date-of-birth [type=number]::-webkit-inner-spin-button {
360
+ appearance: none;
361
+ }
362
+ .usa-date-of-birth [type=number]::-webkit-contacts-auto-fill-button {
363
+ visibility: hidden;
364
+ display: none !important; /* stylelint-disable-line declaration-no-important */
365
+ pointer-events: none;
366
+ height: 0;
367
+ width: 0;
368
+ margin: 0;
369
+ }
370
+
371
+ .usa-form-group-day,
372
+ .usa-form-group-month,
373
+ .usa-form-group-year {
374
+ clear: none;
375
+ float: left;
376
+ margin-right: 0.9375rem;
377
+ width: 3.125rem;
378
+ }
379
+
380
+ .usa-form-group-year {
381
+ width: 4.375rem;
382
+ }
383
+
384
+ /*# sourceMappingURL=inputs.css.map */
@@ -0,0 +1,28 @@
1
+ /*
2
+ Original: @import "~uswds/src/stylesheets/elements/labels";
3
+ ***THIS IS USWDS v1***
4
+ */
5
+ /**
6
+ Variables ported over from Formation so that we can keep those stylesheets
7
+ working while we work on deprecation.
8
+ **/
9
+ .usa-label, .usa-label-big {
10
+ background-color: #565c65;
11
+ border-radius: 2px;
12
+ color: #ffffff;
13
+ font-size: 0.9375rem;
14
+ margin-right: 0.3125rem;
15
+ padding: 0.0625rem 0.4375rem;
16
+ text-transform: uppercase;
17
+ }
18
+ .usa-label:only-of-type, .usa-label-big:only-of-type {
19
+ margin-right: 0;
20
+ }
21
+
22
+ .usa-label-big {
23
+ font-size: 1rem;
24
+ padding-left: 0.5625rem;
25
+ padding-right: 0.5625rem;
26
+ }
27
+
28
+ /*# sourceMappingURL=labels.css.map */
@@ -0,0 +1,57 @@
1
+ /*
2
+ Original: @import "~uswds/src/stylesheets/elements/labels";
3
+ ***THIS IS USWDS v1***
4
+ */
5
+ /**
6
+ Variables ported over from Formation so that we can keep those stylesheets
7
+ working while we work on deprecation.
8
+ **/
9
+ /**
10
+ /uswds/dist/scss/lib/addons/_margin.scss
11
+ **/
12
+ /**
13
+ uswds/src/stylesheets/lib/helpers/_directional-values.scss
14
+ **/
15
+ /**
16
+ Variables ported over from Formation so that we can keep those stylesheets
17
+ working while we work on deprecation.
18
+ **/
19
+ /*
20
+ Original: @import "~uswds/src/stylesheets/core/utilities";
21
+ ***THIS IS USWDS v1***
22
+ */
23
+ /*
24
+ Original: @import "~uswds/src/stylesheets/elements/labels";
25
+ ***THIS IS USWDS v1***
26
+ */
27
+ .usa-sr-only {
28
+ position: absolute;
29
+ left: -999em;
30
+ }
31
+
32
+ ul,
33
+ ol {
34
+ margin-top: 1em;
35
+ margin-bottom: 1em;
36
+ padding-left: 1.94em;
37
+ }
38
+
39
+ li {
40
+ line-height: 1.5;
41
+ margin-bottom: 0.5em;
42
+ }
43
+ li:last-child {
44
+ margin-bottom: 0;
45
+ }
46
+
47
+ .usa-unstyled-list {
48
+ margin-top: 0;
49
+ margin-bottom: 0;
50
+ list-style-type: none;
51
+ padding-left: 0;
52
+ }
53
+ .usa-unstyled-list > li {
54
+ margin-bottom: 0;
55
+ }
56
+
57
+ /*# sourceMappingURL=lists.css.map */
@@ -0,0 +1,78 @@
1
+ /*
2
+ Original: @import "~uswds/src/stylesheets/elements/table";
3
+ ***THIS IS USWDS v1***
4
+ */
5
+ /**
6
+ Variables ported over from Formation so that we can keep those stylesheets
7
+ working while we work on deprecation.
8
+ **/
9
+ /*
10
+ Original: @import "~uswds/src/stylesheets/core/utilities";
11
+ ***THIS IS USWDS v1***
12
+ */
13
+ /**
14
+ Variables ported over from Formation so that we can keep those stylesheets
15
+ working while we work on deprecation.
16
+ **/
17
+ /**
18
+ /uswds/dist/scss/lib/addons/_margin.scss
19
+ **/
20
+ /**
21
+ uswds/src/stylesheets/lib/helpers/_directional-values.scss
22
+ **/
23
+ /*
24
+ Original: @import "~uswds/src/stylesheets/elements/table";
25
+ ***THIS IS USWDS v1***
26
+ */
27
+ .usa-sr-only {
28
+ position: absolute;
29
+ left: -999em;
30
+ }
31
+
32
+ table {
33
+ border-spacing: 0;
34
+ margin: 2em 0;
35
+ }
36
+
37
+ thead th {
38
+ font-weight: 700;
39
+ }
40
+ thead th,
41
+ thead td {
42
+ background-color: #f0f0f0;
43
+ }
44
+
45
+ th {
46
+ text-align: left;
47
+ }
48
+
49
+ th,
50
+ td {
51
+ background-color: #ffffff;
52
+ border: 1px solid #565c65;
53
+ font-weight: 400;
54
+ padding: 0.625rem 0.9375rem;
55
+ }
56
+
57
+ .usa-table-borderless thead th {
58
+ background-color: transparent;
59
+ border-top: 0;
60
+ }
61
+ .usa-table-borderless th,
62
+ .usa-table-borderless td {
63
+ border-left: 0;
64
+ border-right: 0;
65
+ }
66
+ .usa-table-borderless th:first-child {
67
+ padding-left: 0;
68
+ }
69
+
70
+ caption {
71
+ font-size: 0.9375rem;
72
+ font-weight: 700;
73
+ font-family: Bitter, Georgia, Cambria, "Times New Roman", Times, serif;
74
+ margin-bottom: 0.75rem;
75
+ text-align: left;
76
+ }
77
+
78
+ /*# sourceMappingURL=table.css.map */