@department-of-veterans-affairs/css-library 0.19.0 → 0.20.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 (72) hide show
  1. package/dist/fonts/merriweather-bold-webfont.eot +0 -0
  2. package/dist/fonts/merriweather-bold-webfont.ttf +0 -0
  3. package/dist/fonts/merriweather-bold-webfont.woff +0 -0
  4. package/dist/fonts/merriweather-bold-webfont.woff2 +0 -0
  5. package/dist/fonts/merriweather-italic-webfont.eot +0 -0
  6. package/dist/fonts/merriweather-italic-webfont.ttf +0 -0
  7. package/dist/fonts/merriweather-italic-webfont.woff +0 -0
  8. package/dist/fonts/merriweather-italic-webfont.woff2 +0 -0
  9. package/dist/fonts/merriweather-light-webfont.eot +0 -0
  10. package/dist/fonts/merriweather-light-webfont.ttf +0 -0
  11. package/dist/fonts/merriweather-light-webfont.woff +0 -0
  12. package/dist/fonts/merriweather-light-webfont.woff2 +0 -0
  13. package/dist/fonts/merriweather-regular-webfont.eot +0 -0
  14. package/dist/fonts/merriweather-regular-webfont.ttf +0 -0
  15. package/dist/fonts/merriweather-regular-webfont.woff +0 -0
  16. package/dist/fonts/merriweather-regular-webfont.woff2 +0 -0
  17. package/dist/fonts/sourcesanspro-bold-webfont.eot +0 -0
  18. package/dist/fonts/sourcesanspro-bold-webfont.ttf +0 -0
  19. package/dist/fonts/sourcesanspro-bold-webfont.woff +0 -0
  20. package/dist/fonts/sourcesanspro-bold-webfont.woff2 +0 -0
  21. package/dist/fonts/sourcesanspro-italic-webfont.eot +0 -0
  22. package/dist/fonts/sourcesanspro-italic-webfont.ttf +0 -0
  23. package/dist/fonts/sourcesanspro-italic-webfont.woff +0 -0
  24. package/dist/fonts/sourcesanspro-italic-webfont.woff2 +0 -0
  25. package/dist/fonts/sourcesanspro-light-webfont.eot +0 -0
  26. package/dist/fonts/sourcesanspro-light-webfont.ttf +0 -0
  27. package/dist/fonts/sourcesanspro-light-webfont.woff +0 -0
  28. package/dist/fonts/sourcesanspro-light-webfont.woff2 +0 -0
  29. package/dist/fonts/sourcesanspro-regular-webfont.eot +0 -0
  30. package/dist/fonts/sourcesanspro-regular-webfont.ttf +0 -0
  31. package/dist/fonts/sourcesanspro-regular-webfont.woff +0 -0
  32. package/dist/fonts/sourcesanspro-regular-webfont.woff2 +0 -0
  33. package/dist/img/angle-arrow-down-primary-hover.png +0 -0
  34. package/dist/img/angle-arrow-down-primary-hover.svg +1 -0
  35. package/dist/img/angle-arrow-down-primary.png +0 -0
  36. package/dist/img/angle-arrow-down-primary.svg +1 -0
  37. package/dist/img/angle-arrow-up-primary-hover.png +0 -0
  38. package/dist/img/angle-arrow-up-primary-hover.svg +1 -0
  39. package/dist/img/angle-arrow-up-primary.png +0 -0
  40. package/dist/img/angle-arrow-up-primary.svg +1 -0
  41. package/dist/img/close.png +0 -0
  42. package/dist/img/correct8.png +0 -0
  43. package/dist/img/correct8.svg +0 -0
  44. package/dist/img/correct9.png +0 -0
  45. package/dist/img/correct9.svg +1 -0
  46. package/dist/img/error.png +0 -0
  47. package/dist/img/error.svg +0 -0
  48. package/dist/img/info.png +0 -0
  49. package/dist/img/info.svg +0 -0
  50. package/dist/img/success.png +0 -0
  51. package/dist/img/success.svg +0 -0
  52. package/dist/img/warning.png +0 -0
  53. package/dist/img/warning.svg +0 -0
  54. package/dist/stylesheets/base/va.css +1 -1
  55. package/dist/stylesheets/core.css +56 -52
  56. package/dist/stylesheets/elements/labels.css +1592 -0
  57. package/dist/stylesheets/formation-overrides/core/fonts.css +12 -8
  58. package/dist/stylesheets/formation-overrides/elements/inputs.css +6 -6
  59. package/dist/stylesheets/formation-overrides/elements/typography.css +8 -8
  60. package/dist/stylesheets/modules/m-action-link.css +2 -2
  61. package/dist/stylesheets/modules/m-alert.css +5 -5
  62. package/dist/stylesheets/modules/m-dropdown.css +2 -2
  63. package/dist/stylesheets/modules/m-external-link.css +1 -1
  64. package/dist/stylesheets/modules/m-eyebrow.css +10 -0
  65. package/dist/stylesheets/modules/m-hub-page-link-list.css +1 -1
  66. package/dist/stylesheets/modules/m-nav-sidebar.css +3 -3
  67. package/dist/stylesheets/shame.css +2 -2
  68. package/dist/stylesheets/site/_m-crisis-line.scss +121 -0
  69. package/dist/stylesheets/site/_m-vet-nav.scss +469 -0
  70. package/dist/tokens/css/variables.css +1 -1
  71. package/dist/tokens/scss/variables.scss +1 -1
  72. package/package.json +3 -3
@@ -21,25 +21,29 @@
21
21
  font-family: "Merriweather";
22
22
  font-style: normal;
23
23
  font-weight: 300;
24
- src: url("/assets/fonts/merriweather-light-webfont.eot?#iefix") format("embedded-opentype"), url("/assets/fonts/merriweather-light-webfont.woff2") format("woff2"), url("/assets/fonts/merriweather-light-webfont.woff") format("woff"), url("/assets/fonts/merriweather-light-webfont.ttf") format("truetype"), url("/assets/fonts/merriweather-light-webfont.svg#Merriweather") format("svg");
24
+ font-display: fallback;
25
+ src: url(~@uswds/uswds/fonts/merriweather/Latin-Merriweather-Light.woff2) format("woff2");
25
26
  }
26
27
  @font-face {
27
28
  font-family: "Merriweather";
28
29
  font-style: normal;
29
30
  font-weight: 400;
30
- src: url("/assets/fonts/merriweather-regular-webfont.eot?#iefix") format("embedded-opentype"), url("/assets/fonts/merriweather-regular-webfont.woff2") format("woff2"), url("/assets/fonts/merriweather-regular-webfont.woff") format("woff"), url("/assets/fonts/merriweather-regular-webfont.ttf") format("truetype"), url("/assets/fonts/merriweather-regular-webfont.svg#Merriweather") format("svg");
31
+ font-display: fallback;
32
+ src: url(~@uswds/uswds/fonts/merriweather/Latin-Merriweather-Regular.woff2) format("woff2");
31
33
  }
32
34
  @font-face {
33
35
  font-family: "Merriweather";
34
- font-style: italic;
35
- font-weight: 400;
36
- src: url("/assets/fonts/merriweather-italic-webfont.eot?#iefix") format("embedded-opentype"), url("/assets/fonts/merriweather-italic-webfont.woff2") format("woff2"), url("/assets/fonts/merriweather-italic-webfont.woff") format("woff"), url("/assets/fonts/merriweather-italic-webfont.ttf") format("truetype"), url("/assets/fonts/merriweather-italic-webfont.svg#Merriweather") format("svg");
36
+ font-style: normal;
37
+ font-weight: 700;
38
+ font-display: fallback;
39
+ src: url(~@uswds/uswds/fonts/merriweather/Latin-Merriweather-Bold.woff2) format("woff2");
37
40
  }
38
41
  @font-face {
39
42
  font-family: "Merriweather";
40
- font-style: normal;
41
- font-weight: 700;
42
- src: url("/assets/fonts/merriweather-bold-webfont.eot?#iefix") format("embedded-opentype"), url("/assets/fonts/merriweather-bold-webfont.woff2") format("woff2"), url("/assets/fonts/merriweather-bold-webfont.woff") format("woff"), url("/assets/fonts/merriweather-bold-webfont.ttf") format("truetype"), url("/assets/fonts/merriweather-bold-webfont.svg#Merriweather") format("svg");
43
+ font-style: italic;
44
+ font-weight: 400;
45
+ font-display: fallback;
46
+ src: url(~@uswds/uswds/fonts/merriweather/Latin-Merriweather-Italic.woff2) format("woff2");
43
47
  }
44
48
  /* stylelint-enable */
45
49
 
@@ -127,8 +127,8 @@ textarea {
127
127
  select {
128
128
  appearance: none;
129
129
  background-color: #ffffff;
130
- background-image: url("/img/arrow-both.png");
131
- background-image: none, url("/img/arrow-both.svg"), url("/img/arrow-both.png");
130
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/arrow-both.png);
131
+ background-image: none, url(~@department-of-veterans-affairs/css-library/dist/img/arrow-both.svg), url(~@department-of-veterans-affairs/css-library/dist/img/arrow-both.png);
132
132
  background-position: right 0.8125rem center;
133
133
  background-repeat: no-repeat;
134
134
  background-size: 0.625rem;
@@ -226,8 +226,8 @@ legend {
226
226
 
227
227
  [type=checkbox]:checked + label::before,
228
228
  [type=checkbox]:checked:disabled + label::before {
229
- background-image: url("/img/correct8.png");
230
- background-image: url("/img/correct8.svg");
229
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/correct8.png);
230
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/correct8.svg);
231
231
  background-position: 50%;
232
232
  background-repeat: no-repeat;
233
233
  }
@@ -258,8 +258,8 @@ legend {
258
258
  [type=checkbox]:checked:disabled + label::before {
259
259
  background-image: none;
260
260
  background-color: #ffffff;
261
- content: url("/img/correct8-alt.png");
262
- content: url("/img/correct8-alt.svg");
261
+ content: url(~@department-of-veterans-affairs/css-library/dist/img/correct8-alt.png);
262
+ content: url(~@department-of-veterans-affairs/css-library/dist/img/correct8-alt.svg);
263
263
  text-indent: 0;
264
264
  }
265
265
  [type=radio]:checked:disabled + label::before,
@@ -60,8 +60,8 @@ a:visited {
60
60
  }
61
61
 
62
62
  .usa-external_link::after {
63
- background: url("/img/external-link.png") no-repeat 0 0;
64
- background: url("/img/external-link.svg") no-repeat 0 0;
63
+ background: url(~@department-of-veterans-affairs/css-library/dist/img/external-link.png) no-repeat 0 0;
64
+ background: url(~@department-of-veterans-affairs/css-library/dist/img/external-link.svg) no-repeat 0 0;
65
65
  background-size: 100%;
66
66
  content: "";
67
67
  display: inline-block;
@@ -71,13 +71,13 @@ a:visited {
71
71
  width: 0.65em;
72
72
  }
73
73
  .usa-external_link:hover::after {
74
- background-image: url("/img/external-link-hover.png");
75
- background-image: url("/img/external-link-hover.svg");
74
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/external-link-hover.png);
75
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/external-link-hover.svg);
76
76
  }
77
77
 
78
78
  .usa-external_link-alt::after {
79
- background: url("/img/external-link-alt.png") no-repeat 0 0;
80
- background: url("/img/external-link-alt.svg") no-repeat 0 0;
79
+ background: url(~@department-of-veterans-affairs/css-library/dist/img/external-link.png) no-repeat 0 0;
80
+ background: url(~@department-of-veterans-affairs/css-library/dist/img/external-link.svg) no-repeat 0 0;
81
81
  background-size: 100%;
82
82
  content: "";
83
83
  display: inline-block;
@@ -87,8 +87,8 @@ a:visited {
87
87
  width: 0.65em;
88
88
  }
89
89
  .usa-external_link-alt:hover::after {
90
- background-image: url("/img/external-link-alt-hover.png");
91
- background-image: url("/img/external-link-alt-hover.svg");
90
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/external-link-hover.png);
91
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/external-link-hover.svg);
92
92
  }
93
93
 
94
94
  h1,
@@ -1405,7 +1405,7 @@ a.vads-c-action-link--blue, a.vads-c-action-link--green, a.vads-c-action-link--w
1405
1405
  display: inline-block;
1406
1406
  }
1407
1407
  a.vads-c-action-link--blue:before, a.vads-c-action-link--green:before, a.vads-c-action-link--white:before {
1408
- background-image: url("/img/arrow-right-white.svg");
1408
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/arrow-right-white.svg);
1409
1409
  background-size: 18px 18px;
1410
1410
  background-repeat: no-repeat;
1411
1411
  background-position: center;
@@ -1433,7 +1433,7 @@ a.vads-c-action-link--white {
1433
1433
  color: #ffffff;
1434
1434
  }
1435
1435
  a.vads-c-action-link--white:before {
1436
- background-image: url("/img/arrow-right.svg");
1436
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/arrow-right.svg);
1437
1437
  background-color: #ffffff;
1438
1438
  -webkit-transition-duration: 0.3s;
1439
1439
  transition-duration: 0.3s;
@@ -26,7 +26,7 @@
26
26
  width: 100%;
27
27
  }
28
28
  .usa-alert::before {
29
- background-image: url("/img/info.svg");
29
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/info.svg);
30
30
  background-size: 35px 35px;
31
31
  background-repeat: no-repeat;
32
32
  background-position: center;
@@ -79,7 +79,7 @@
79
79
  border-left-color: #00a6d2;
80
80
  }
81
81
  .usa-alert-info::before {
82
- background-image: url("/img/info.svg");
82
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/info.svg);
83
83
  }
84
84
  .usa-alert-info.background-color-only {
85
85
  background-color: #e1f3f8;
@@ -88,7 +88,7 @@
88
88
  border-left-color: #cd2026;
89
89
  }
90
90
  .usa-alert-error::before {
91
- background-image: url("/img/error.svg");
91
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/error.svg);
92
92
  }
93
93
  .usa-alert-error.background-color-only {
94
94
  background-color: #f9dede;
@@ -97,7 +97,7 @@
97
97
  border-left-color: #008817;
98
98
  }
99
99
  .usa-alert-success::before {
100
- background-image: url("/img/success.svg");
100
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/success.svg);
101
101
  }
102
102
  .usa-alert-success.background-color-only {
103
103
  background-color: #e7f4e4;
@@ -106,7 +106,7 @@
106
106
  border-left-color: #fdb81e;
107
107
  }
108
108
  .usa-alert-warning::before {
109
- background-image: url("/img/warning.svg");
109
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/warning.svg);
110
110
  }
111
111
  .usa-alert-warning.background-color-only {
112
112
  background-color: #fff1d2;
@@ -6,7 +6,7 @@
6
6
  position: relative;
7
7
  }
8
8
  .va-dropdown-trigger {
9
- background: transparent url("/img/arrow-down-white.svg") no-repeat;
9
+ background: transparent url(~@department-of-veterans-affairs/css-library/dist/img/arrow-down-white.svg) no-repeat;
10
10
  background-position: right 8px center;
11
11
  background-size: 10px 10px;
12
12
  border-radius: 0;
@@ -20,7 +20,7 @@
20
20
  .va-dropdown-trigger[aria-expanded=true] {
21
21
  border-top-color: #8a7237;
22
22
  background-color: #ffffff;
23
- background-image: url("/img/arrow-up.svg") !important;
23
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/arrow-up.svg) !important;
24
24
  color: #1b1b1b;
25
25
  }
26
26
  .va-dropdown-trigger[aria-expanded=true] path {
@@ -3,7 +3,7 @@
3
3
  working while we work on deprecation.
4
4
  **/
5
5
  .external-link-icon-black {
6
- background-image: url("/img/exit-icon.png");
6
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/exit-icon.png);
7
7
  background-position: 100% 50%;
8
8
  background-repeat: no-repeat;
9
9
  background-size: 1em auto;
@@ -0,0 +1,10 @@
1
+ .vads-c-eyebrow {
2
+ font-family: "Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
3
+ font-size: 1rem;
4
+ font-style: normal;
5
+ font-weight: 400;
6
+ color: #3d4551;
7
+ text-transform: uppercase;
8
+ }
9
+
10
+ /*# sourceMappingURL=m-eyebrow.css.map */
@@ -15,7 +15,7 @@
15
15
  }
16
16
  .hub-page-link-list__item > a:hover .all-link-arrow, .hub-page-link-list__item > a:focus .all-link-arrow {
17
17
  margin-left: 10px;
18
- content: url("/img/arrow-right.svg");
18
+ content: url(~@department-of-veterans-affairs/css-library/dist/img/arrow-right.svg);
19
19
  }
20
20
  .hub-page-link-list__item > a:hover .hub-page-link-list__header, .hub-page-link-list__item > a:focus .hub-page-link-list__header {
21
21
  text-decoration: underline;
@@ -268,11 +268,11 @@
268
268
  background-color: #e1f3f8;
269
269
  }
270
270
  .va-sidebarnav .usa-accordion .usa-accordion-button[aria-expanded=false] {
271
- background-image: url("/img/plus-blue.svg");
271
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/plus-blue.svg);
272
272
  }
273
273
  .va-sidebarnav .usa-accordion .usa-accordion-button[aria-expanded=true] {
274
274
  border-bottom: 0;
275
- background-image: url("/img/minus-blue.svg");
275
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/minus-blue.svg);
276
276
  }
277
277
  .va-sidebarnav .usa-accordion .usa-accordion-button[aria-expanded=true]:focus {
278
278
  border: 2px solid #fdb81e;
@@ -341,7 +341,7 @@
341
341
  }
342
342
 
343
343
  .va-btn-close-icon {
344
- background: transparent url("/img/close.svg") center no-repeat;
344
+ background: transparent url(~@department-of-veterans-affairs/css-library/dist/img/close.svg) center no-repeat;
345
345
  background-size: 0.625rem 0.625rem;
346
346
  height: 1.375rem;
347
347
  padding: 1.375rem;
@@ -139,8 +139,8 @@ fieldset {
139
139
  }
140
140
 
141
141
  .usa-checklist-checked::before {
142
- background-image: url("/img/correct9.png");
143
- background-image: url("/img/correct9.svg");
142
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/correct9.png);
143
+ background-image: url(~@department-of-veterans-affairs/css-library/dist/img/correct9.svg);
144
144
  background-position: 100%;
145
145
  background-repeat: no-repeat;
146
146
  background-size: 100%;
@@ -0,0 +1,121 @@
1
+ @import '../override-function';
2
+
3
+ .va-crisis-line {
4
+ @include media($medium-screen) {
5
+ position: absolute;
6
+ right: 0;
7
+ top: 0;
8
+ }
9
+ }
10
+
11
+ .va-crisis-panel {
12
+ // color: $color-primary-darkest;
13
+ list-style: none;
14
+ margin: 0;
15
+ top: 50%;
16
+ transform: translateY(-50%);
17
+ padding: scale-rem(2rem);
18
+ position: relative;
19
+ z-index: 1;
20
+ width: 100%;
21
+
22
+ li {
23
+ &:nth-child(odd) {
24
+ border-top: 1px solid $color-gray-lighter;
25
+ border-bottom: 1px solid $color-gray-lighter;
26
+ }
27
+
28
+ a {
29
+ color: $color-base;
30
+ display: block;
31
+ padding: scale-rule(1.5rem 0);
32
+ text-decoration: none;
33
+ }
34
+ }
35
+
36
+ @include media($medium-screen) {
37
+ margin: auto;
38
+ max-width: 50%;
39
+ }
40
+
41
+ a {
42
+ @include no-sr-content;
43
+
44
+ padding: 0;
45
+ background-image: none;
46
+
47
+ }
48
+ }
49
+
50
+ .va-crisis-panel-body {
51
+ background: $vads-color-white;
52
+ height: auto;
53
+ list-style: inherit;
54
+ margin: 0;
55
+ max-height: 100%;
56
+ padding: 0;
57
+
58
+ ul {
59
+ // font-size: scale-rem(1.7rem);
60
+ list-style: none;
61
+ margin: 0;
62
+ padding: 0;
63
+ text-align: center;
64
+ }
65
+ }
66
+
67
+ button.va-crisis-line-button {
68
+ background: $vads-color-white url(~@department-of-veterans-affairs/css-library/dist/img/arrow-right.svg) calc(100% - 0.5em) center no-repeat;
69
+ background-size: .8em auto;
70
+ border-radius: 0;
71
+ color: $color-base;
72
+ margin: auto;
73
+ padding: 0.4em 26px 0.3em 0;
74
+ font-size: 1em;
75
+ width: auto;
76
+ display: block;
77
+ text-decoration: none;
78
+ font-weight: bold;
79
+
80
+ @include media($medium-screen) {
81
+ border-radius: 0 0 0.2em 0.2em;
82
+ box-shadow: 0 2px 5px $color-base;
83
+ padding: 0 26px 0 0;
84
+ text-align: left;
85
+ }
86
+
87
+ &:hover {
88
+ background-color: $vads-color-white;
89
+ color: $color-base;
90
+ }
91
+
92
+ .vcl {
93
+ content: "";
94
+ background: url(~@department-of-veterans-affairs/css-library/dist/img/vcl-logo.png) no-repeat right 29%;
95
+ background-size: 100%;
96
+ display: inline-block;
97
+ width: 2em;
98
+ height: 2em;
99
+ margin: 0.3em 0.5em -0.3em 0.5em;
100
+ }
101
+
102
+ > .va-flex {
103
+ display: flex;
104
+ align-items: center;
105
+ pointer-events: none;
106
+ }
107
+ }
108
+
109
+ .va-footer-vcl-trigger {
110
+ background: transparent;
111
+ color: inherit;
112
+ font-size: inherit;
113
+ font-weight: normal;
114
+ text-decoration: underline;
115
+
116
+ &:hover {
117
+ background: inherit;
118
+ color: $color-gold;
119
+ text-decoration: inherit;
120
+ }
121
+ }