@department-of-veterans-affairs/css-library 0.7.4 → 0.8.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.
- package/dist/fonts/bitter-bold.ttf +0 -0
- package/dist/fonts/bitter-bold.woff2 +0 -0
- package/dist/fonts/bitter-regular.ttf +0 -0
- package/dist/fonts/bitter-regular.woff2 +0 -0
- package/dist/stylesheets/_mixins.scss +452 -0
- package/dist/stylesheets/base/fonts.css +1589 -0
- package/dist/stylesheets/base/utils.css +137 -0
- package/dist/stylesheets/base/va.css +1843 -0
- package/dist/{full.css → stylesheets/core.css} +341 -2299
- package/dist/stylesheets/formation-overrides/_variables.scss +170 -0
- package/dist/stylesheets/formation-overrides/core/base.css +64 -0
- package/dist/stylesheets/formation-overrides/core/fonts.css +46 -0
- package/dist/stylesheets/formation-overrides/elements/buttons.css +562 -0
- package/dist/stylesheets/formation-overrides/elements/inputs.css +384 -0
- package/dist/stylesheets/formation-overrides/elements/labels.css +28 -0
- package/dist/stylesheets/formation-overrides/elements/lists.css +57 -0
- package/dist/stylesheets/formation-overrides/elements/table.css +78 -0
- package/dist/stylesheets/formation-overrides/elements/typography.css +274 -0
- package/dist/stylesheets/mobile-typography.css +13 -0
- package/dist/stylesheets/modules/m-action-link.css +1443 -0
- package/dist/stylesheets/modules/m-additional-info.css +39 -0
- package/dist/stylesheets/modules/m-alert.css +254 -0
- package/dist/stylesheets/modules/m-breadcrumbs.css +96 -0
- package/dist/stylesheets/modules/m-button.css +153 -0
- package/dist/stylesheets/modules/m-dropdown.css +47 -0
- package/dist/stylesheets/modules/m-emergency-banner.css +33 -0
- package/dist/stylesheets/modules/m-external-link.css +14 -0
- package/dist/stylesheets/modules/m-form-elements.css +231 -0
- package/dist/stylesheets/modules/m-form-process.css +219 -0
- package/dist/stylesheets/modules/m-homepage-hero.css +76 -0
- package/dist/stylesheets/modules/m-hub-page-link-list.css +40 -0
- package/dist/stylesheets/modules/m-loading-indicator.css +41 -0
- package/dist/stylesheets/modules/m-maintenance-banner.css +33 -0
- package/dist/stylesheets/modules/m-megamenu.css +365 -0
- package/dist/stylesheets/modules/m-modal.css +117 -0
- package/dist/stylesheets/modules/m-nav-linklist.css +49 -0
- package/dist/stylesheets/modules/m-nav-sidebar.css +349 -0
- package/dist/stylesheets/modules/m-omb-info.css +15 -0
- package/dist/stylesheets/modules/m-overlay.css +72 -0
- package/dist/stylesheets/modules/m-print.css +27 -0
- package/dist/stylesheets/modules/m-process-list.css +162 -0
- package/dist/stylesheets/modules/va-pagination.css +90 -0
- package/dist/stylesheets/modules/va-tabs.css +53 -0
- package/dist/stylesheets/shame.css +266 -0
- package/dist/{uswds-typography.css → stylesheets/uswds-typography.css} +1 -1
- package/dist/tokens/css/variables.css +1 -1
- package/dist/tokens/scss/variables.scss +1 -1
- package/package.json +8 -6
- /package/dist/{base → stylesheets/base}/headings.css +0 -0
- /package/dist/{utilities.css → stylesheets/utilities.css} +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Variables ported over from Formation so that we can keep those stylesheets
|
|
3
|
+
working while we work on deprecation.
|
|
4
|
+
**/
|
|
5
|
+
.va-tabs {
|
|
6
|
+
list-style: none;
|
|
7
|
+
margin-bottom: -1px;
|
|
8
|
+
min-width: 260px;
|
|
9
|
+
padding-left: 0;
|
|
10
|
+
}
|
|
11
|
+
.va-tabs > li {
|
|
12
|
+
background: #f1f1f1;
|
|
13
|
+
border-width: 1px 0px 0 1px;
|
|
14
|
+
border-color: #5b616b;
|
|
15
|
+
border-style: solid;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
.va-tabs > li:last-child {
|
|
20
|
+
border-right-width: 1px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.va-tab-trigger {
|
|
24
|
+
border-width: 5px 1px 1px;
|
|
25
|
+
border-style: solid;
|
|
26
|
+
border-color: transparent;
|
|
27
|
+
border-bottom-color: #5b616b;
|
|
28
|
+
color: #5b616b;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
padding: 0.625rem;
|
|
31
|
+
margin: 0px -1px;
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
}
|
|
34
|
+
.va-tab-trigger:hover, .va-tab-trigger:focus, .va-tab-trigger--current {
|
|
35
|
+
background: #ffffff;
|
|
36
|
+
border-color: #005ea2;
|
|
37
|
+
border-bottom-color: #ffffff;
|
|
38
|
+
}
|
|
39
|
+
.va-tab-trigger:visited {
|
|
40
|
+
color: inherit;
|
|
41
|
+
}
|
|
42
|
+
@media (min-width: 481px) {
|
|
43
|
+
.va-tab-trigger {
|
|
44
|
+
padding-left: 1.25rem;
|
|
45
|
+
padding-right: 1.25rem;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.va-tab-content {
|
|
50
|
+
border-top: 1px solid #5b616b;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*# sourceMappingURL=va-tabs.css.map */
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Original: @import "~uswds/src/stylesheets/components/forms";
|
|
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
|
+
Variables ported over from Formation so that we can keep those stylesheets
|
|
11
|
+
working while we work on deprecation.
|
|
12
|
+
**/
|
|
13
|
+
/**
|
|
14
|
+
/uswds/dist/scss/lib/addons/_margin.scss
|
|
15
|
+
**/
|
|
16
|
+
/**
|
|
17
|
+
uswds/src/stylesheets/lib/helpers/_directional-values.scss
|
|
18
|
+
**/
|
|
19
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
20
|
+
[type=submit] {
|
|
21
|
+
margin-top: calc(3rem - 0.2em);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
fieldset {
|
|
26
|
+
border: none;
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
32
|
+
.usa-form {
|
|
33
|
+
max-width: 20rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
38
|
+
.usa-input-tiny {
|
|
39
|
+
max-width: 3.75rem;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
44
|
+
.usa-input-medium {
|
|
45
|
+
max-width: 7.5rem;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.usa-form-note {
|
|
50
|
+
float: right;
|
|
51
|
+
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
|
|
52
|
+
font-size: 0.9375rem;
|
|
53
|
+
margin: 0 0 scale(1.5rem);
|
|
54
|
+
}
|
|
55
|
+
.usa-form-note + * {
|
|
56
|
+
clear: both;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
60
|
+
.usa-form-large {
|
|
61
|
+
max-width: 28.75rem;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
66
|
+
.usa-input-grid {
|
|
67
|
+
padding-right: 5%;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
72
|
+
.usa-input-grid:last-of-type {
|
|
73
|
+
padding-right: 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
78
|
+
.usa-input-grid-small {
|
|
79
|
+
float: left;
|
|
80
|
+
width: 35%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.usa-input-grid-small input {
|
|
84
|
+
margin-bottom: 1.875rem;
|
|
85
|
+
}
|
|
86
|
+
.usa-input-grid-small select {
|
|
87
|
+
margin-bottom: 1.875rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
91
|
+
.usa-input-grid-medium {
|
|
92
|
+
float: left;
|
|
93
|
+
width: 65%;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.usa-input-grid-medium input {
|
|
97
|
+
margin-bottom: 1.875rem;
|
|
98
|
+
}
|
|
99
|
+
.usa-input-grid-medium select {
|
|
100
|
+
margin-bottom: 1.875rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
104
|
+
.usa-input-grid-large {
|
|
105
|
+
float: left;
|
|
106
|
+
width: 100%;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.usa-input-grid-large input {
|
|
110
|
+
margin-bottom: 1.875rem;
|
|
111
|
+
}
|
|
112
|
+
.usa-input-grid-large select {
|
|
113
|
+
margin-bottom: 1.875rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.usa-additional_text {
|
|
117
|
+
font-weight: normal;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.usa-checklist {
|
|
121
|
+
list-style: none;
|
|
122
|
+
margin-left: 0;
|
|
123
|
+
padding-left: 0;
|
|
124
|
+
}
|
|
125
|
+
.usa-checklist li {
|
|
126
|
+
display: inline-block;
|
|
127
|
+
list-style: none;
|
|
128
|
+
margin-bottom: 0;
|
|
129
|
+
margin-top: 0;
|
|
130
|
+
padding-left: 3em;
|
|
131
|
+
text-indent: -2em;
|
|
132
|
+
}
|
|
133
|
+
.usa-checklist li::before {
|
|
134
|
+
content: " ";
|
|
135
|
+
display: inline-block;
|
|
136
|
+
height: 0.8em;
|
|
137
|
+
margin-right: 0.2em;
|
|
138
|
+
width: 1.8em;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.usa-checklist-checked::before {
|
|
142
|
+
background-image: url("/assets/img/correct9.png");
|
|
143
|
+
background-image: url("/assets/img/correct9.svg");
|
|
144
|
+
background-position: 100%;
|
|
145
|
+
background-repeat: no-repeat;
|
|
146
|
+
background-size: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
Variables ported over from Formation so that we can keep those stylesheets
|
|
151
|
+
working while we work on deprecation.
|
|
152
|
+
**/
|
|
153
|
+
body .row {
|
|
154
|
+
max-width: 62.5em;
|
|
155
|
+
}
|
|
156
|
+
body .row-padded {
|
|
157
|
+
max-width: 62.5rem;
|
|
158
|
+
padding: 0 0.625rem;
|
|
159
|
+
margin: 0 auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
163
|
+
.form-panel {
|
|
164
|
+
max-width: 20rem;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.progress-box button {
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.progress-box {
|
|
173
|
+
border: 1px solid #f1f1f1;
|
|
174
|
+
margin: 0.9375rem 0;
|
|
175
|
+
padding: 0.625rem 1.25rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.button-icon {
|
|
179
|
+
font-size: 1.0625rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.input-section {
|
|
183
|
+
margin-bottom: 2em;
|
|
184
|
+
}
|
|
185
|
+
.input-section .row {
|
|
186
|
+
margin: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.usa-input-error select {
|
|
190
|
+
border: 3px solid #cd2026;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.hidden {
|
|
194
|
+
display: none !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.csp-inline-patch-footer {
|
|
198
|
+
display: none;
|
|
199
|
+
visibility: hidden;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.csp-inline-patch-page-react {
|
|
203
|
+
padding: 2em 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
207
|
+
.usa-grid .usa-width-one-fourth {
|
|
208
|
+
margin-right: 2.35765%;
|
|
209
|
+
width: 23.23176%;
|
|
210
|
+
}
|
|
211
|
+
.usa-grid .usa-width-three-fourths {
|
|
212
|
+
width: 74.41059%;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
input[type=checkbox],
|
|
216
|
+
input[type=radio] {
|
|
217
|
+
margin-left: -1.25rem;
|
|
218
|
+
opacity: 0;
|
|
219
|
+
position: absolute;
|
|
220
|
+
left: auto;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
[hidden=false] {
|
|
224
|
+
display: block !important;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@media screen and (min-width: 768px), print and (min-width: 768px) {
|
|
228
|
+
form [type=submit] {
|
|
229
|
+
padding-left: 1.25rem;
|
|
230
|
+
padding-right: 1.25rem;
|
|
231
|
+
width: 100%;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
#top-of-page-alert-container {
|
|
236
|
+
width: 100%;
|
|
237
|
+
background-color: #fef0c8;
|
|
238
|
+
position: relative;
|
|
239
|
+
}
|
|
240
|
+
#top-of-page-alert-container:before {
|
|
241
|
+
background-color: #fdb81e;
|
|
242
|
+
content: "";
|
|
243
|
+
height: 100%;
|
|
244
|
+
left: 0;
|
|
245
|
+
position: absolute;
|
|
246
|
+
top: 0;
|
|
247
|
+
width: 0.625rem;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
#top-of-page-alert {
|
|
251
|
+
max-width: 62.5em;
|
|
252
|
+
margin: 0 auto;
|
|
253
|
+
}
|
|
254
|
+
#top-of-page-alert.usa-alert::before {
|
|
255
|
+
content: none;
|
|
256
|
+
}
|
|
257
|
+
#top-of-page-alert .usa-alert-body {
|
|
258
|
+
margin: 0 auto;
|
|
259
|
+
text-align: left;
|
|
260
|
+
}
|
|
261
|
+
#top-of-page-alert .usa-alert-body .usa-alert-heading {
|
|
262
|
+
margin: 0 auto;
|
|
263
|
+
padding: 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/*# sourceMappingURL=shame.css.map */
|
|
@@ -4192,7 +4192,7 @@ Sets:
|
|
|
4192
4192
|
|
|
4193
4193
|
https://designsystem.digital.gov/design-tokens/typesetting/overview/
|
|
4194
4194
|
*/
|
|
4195
|
-
p, ol, ul, li, dl, dt, dd, form, label {
|
|
4195
|
+
p, a, ol, ul, li, dl, dt, dd, form, label, button {
|
|
4196
4196
|
font-family: Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;
|
|
4197
4197
|
font-size: 1.06rem;
|
|
4198
4198
|
line-height: 1.5;
|
package/package.json
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@department-of-veterans-affairs/css-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Department of Veterans Affairs stylesheets, tokens, and utilities",
|
|
5
5
|
"packageManager": "yarn@3.2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist/**/*.css",
|
|
8
8
|
"dist/**/*.scss",
|
|
9
|
-
"dist/**/*.json"
|
|
9
|
+
"dist/**/*.json",
|
|
10
|
+
"dist/fonts/*"
|
|
10
11
|
],
|
|
11
12
|
"scripts": {
|
|
12
13
|
"build:tokens": "style-dictionary build",
|
|
13
|
-
"build:stylesheets": "sass --load-path=./node_modules/@uswds/uswds/packages/ src/stylesheets:dist/",
|
|
14
|
+
"build:stylesheets": "sass --load-path=./node_modules/@uswds/uswds/packages/ src/stylesheets:dist/stylesheets",
|
|
14
15
|
"build:minify": "yarn build:stylesheets --style compressed",
|
|
15
16
|
"build:minify-core": "sass --style compressed dist/core.css:dist/core.min.css",
|
|
16
|
-
"build": "yarn run clean-dist && yarn run copy && yarn build:tokens && yarn build:stylesheets",
|
|
17
|
+
"build": "yarn run clean-dist && yarn run copy && yarn build:tokens && yarn build:stylesheets && yarn copy:scss-files",
|
|
17
18
|
"clean-dist": "rimraf dist/*",
|
|
19
|
+
"copy:scss-files": "cp -rv src/stylesheets/_mixins.scss dist/stylesheets/_mixins.scss && cp -rv src/stylesheets/formation-overrides/_variables.scss dist/stylesheets/formation-overrides/_variables.scss",
|
|
18
20
|
"copy-assets": "cp -rv src/assets/fonts dist/fonts/ && cp -rv src/assets/img dist/img/",
|
|
19
21
|
"copy": "node ./copy-uswds-color-tokens.js && yarn run copy-assets"
|
|
20
22
|
},
|
|
21
23
|
"devDependencies": {
|
|
22
|
-
"@uswds/uswds": "^3.7.1",
|
|
23
24
|
"sass": "^1.64.1",
|
|
24
|
-
"style-dictionary": "
|
|
25
|
+
"style-dictionary": "3.8.0"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"@divriots/style-dictionary-to-figma": "^0.4.0",
|
|
29
|
+
"@uswds/uswds": "^3.7.1",
|
|
28
30
|
"rimraf": "^5.0.5"
|
|
29
31
|
}
|
|
30
32
|
}
|
|
File without changes
|
|
File without changes
|