uswds-jekyll 2.0.1 → 2.1.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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -3
  3. data/_includes/analytics.html +20 -0
  4. data/_includes/components/header--basic.html +2 -2
  5. data/_includes/components/header--extended.html +3 -3
  6. data/_includes/components/hero.html +1 -1
  7. data/_includes/subnav.html +1 -1
  8. data/_layouts/default.html +3 -0
  9. data/_sass/uswds/components/_accordions.scss +11 -11
  10. data/_sass/uswds/components/_alerts.scss +60 -29
  11. data/_sass/uswds/components/_footer.scss +176 -40
  12. data/_sass/uswds/components/_header.scss +6 -9
  13. data/_sass/uswds/components/_hero.scss +1 -7
  14. data/_sass/uswds/components/_navigation.scss +115 -20
  15. data/_sass/uswds/components/_search.scss +32 -27
  16. data/_sass/uswds/core/_base.scss +5 -0
  17. data/_sass/uswds/core/_utilities.scss +25 -5
  18. data/_sass/uswds/core/_variables.scss +77 -45
  19. data/_sass/uswds/elements/_buttons.scss +76 -50
  20. data/_sass/uswds/elements/_inputs.scss +49 -44
  21. data/_sass/uswds/elements/_labels.scss +2 -2
  22. data/_sass/uswds/elements/_table.scss +30 -22
  23. data/_sass/uswds/elements/_typography.scss +11 -8
  24. data/_sass/uswds/uswds.scss +1 -1
  25. data/assets/uswds/CONTRIBUTING.md +33 -0
  26. data/assets/uswds/LICENSE.md +0 -8
  27. data/assets/uswds/README.md +2 -2
  28. data/assets/uswds/css/uswds.css +862 -476
  29. data/assets/uswds/css/uswds.min.css +2 -2
  30. data/assets/uswds/css/uswds.min.css.map +1 -1
  31. data/assets/uswds/img/arrow-both.png +0 -0
  32. data/assets/uswds/img/arrow-both.svg +1 -0
  33. data/assets/uswds/img/close-primary.png +0 -0
  34. data/assets/uswds/img/close-primary.svg +16 -0
  35. data/assets/uswds/img/close.png +0 -0
  36. data/assets/uswds/img/close.svg +12 -1
  37. data/assets/uswds/img/search-primary.png +0 -0
  38. data/assets/uswds/img/search-primary.svg +12 -0
  39. data/assets/uswds/js/uswds.js +45 -13
  40. data/assets/uswds/js/uswds.min.js +1 -1
  41. data/assets/uswds/js/uswds.min.js.map +1 -1
  42. data/assets/uswds/scss/components/_accordions.scss +11 -11
  43. data/assets/uswds/scss/components/_alerts.scss +60 -29
  44. data/assets/uswds/scss/components/_footer.scss +176 -40
  45. data/assets/uswds/scss/components/_header.scss +6 -9
  46. data/assets/uswds/scss/components/_hero.scss +1 -7
  47. data/assets/uswds/scss/components/_navigation.scss +115 -20
  48. data/assets/uswds/scss/components/_search.scss +32 -27
  49. data/assets/uswds/scss/core/_base.scss +5 -0
  50. data/assets/uswds/scss/core/_utilities.scss +25 -5
  51. data/assets/uswds/scss/core/_variables.scss +77 -45
  52. data/assets/uswds/scss/elements/_buttons.scss +76 -50
  53. data/assets/uswds/scss/elements/_inputs.scss +49 -44
  54. data/assets/uswds/scss/elements/_labels.scss +2 -2
  55. data/assets/uswds/scss/elements/_table.scss +30 -22
  56. data/assets/uswds/scss/elements/_typography.scss +11 -8
  57. data/assets/uswds/scss/uswds.scss +1 -1
  58. data/assets/uswds/{uswds-1.3.1.zip → uswds-1.4.3.zip} +0 -0
  59. metadata +11 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ce13f7aee1894d2116e27d8fa978039abcc020d
4
- data.tar.gz: 53f3017cee4c8007cb42db39ed22de9f3302df40
3
+ metadata.gz: d3d4aa52f913bd4a0b760324b43996840285c53f
4
+ data.tar.gz: 450957c0f9fef3d03461a5f6b213f60f0e8bd15f
5
5
  SHA512:
6
- metadata.gz: 5f0bcb8fe1a0dcd1539ac2e69f4822fbcfaa7702312ec52ffd3c31f8c2bf07beeea112a165ae8d6c72f8b65149042b7cda68f0059dae783a29d24bee7d58ad34
7
- data.tar.gz: 71e8f7c44997742dce26b905ce1c957c71cbff4ce1a57534f444389557b5bb55c03032beb8578da9a8d3cc931d1c96d37fd97f74cf6bebeca718c19ebf4c4205
6
+ metadata.gz: 2382fd40f45a68957133865e9ba04fd6b342c2e9d24565db605d795c2f245857220d9f4ee5af881eaca0553352dc29be27cfc09009f4fb4bd5a47eb4db3c1aea
7
+ data.tar.gz: 1a5e9d69080abca26e89c7358cafa2836f8978684f741e808e78f8b6ba410016c960a5a3de04f37f688d1bd6bc6c7a2a3f6a55c8bc73bcd50ea2935480dced67
data/README.md CHANGED
@@ -15,6 +15,7 @@ This is a [Jekyll theme](https://jekyllrb.com/docs/themes/) for the
15
15
  - [Navigation](#navigation)
16
16
  - [Page subnavigation](#page-subnavigation)
17
17
  - [Search](#search)
18
+ - [Analytics](#analytics)
18
19
  1. [Assets](#assets)
19
20
  - [Stylesheets](#stylesheets)
20
21
  - [Scripts](#scripts)
@@ -101,10 +102,8 @@ You will need to restart your Jekyll server to see the effects.
101
102
  To develop this theme and/or test it locally:
102
103
 
103
104
  1. Clone this repo
104
-
105
105
  1. Run Jekyll (`jekyll serve`) in the local clone of this repo;
106
106
  **or**
107
-
108
107
  1. Create a new Jekyll project, follow the
109
108
  [installation](#installation) instructions, then change your
110
109
  `Gemfile` to point at the local clone of this repo:
@@ -112,6 +111,13 @@ To develop this theme and/or test it locally:
112
111
  ```ruby
113
112
  gem 'uswds-jekyll', :path => '../path/to/uswds-jekyll'
114
113
  ```
114
+ ### Publish to Rubygems
115
+ 1. Update `spec.version = "NUMBER HERE"` in the uswds-jekyll.gemspec file to the version you want to publish
116
+ 1. Run `bundle install`
117
+ 1. Add a PR for the update and get it merged
118
+ 1. Run `bundle exec rake release`
119
+ 1. Add a GitHub release to the releases page with the same version number
120
+ 1. You should see the latest version here https://rubygems.org/gems/uswds-jekyll
115
121
 
116
122
  ### Versioning
117
123
 
@@ -119,7 +125,6 @@ To reference a specific version of this plugin:
119
125
 
120
126
  1. Visit the [releases page](https://github.com/18F/uswds-jekyll/releases) and
121
127
  decide which version you want to use.
122
-
123
128
  1. Specify the version in your `Gemfile`.
124
129
 
125
130
  ```ruby
@@ -240,6 +245,26 @@ Search uses the [Search results](#search-results) page layout.
240
245
 
241
246
  **Pro tip:** use [Jekyll front matter defaults](https://jekyllrb.com/docs/configuration/#front-matter-defaults) to hide directories from showing in search results.
242
247
 
248
+ ### Analytics
249
+
250
+ #### Google Analytics
251
+
252
+ You can add Google Analytics to your site by uncommenting the `google_analytics_ua` line and replacing `UA-????????-??` with your Google analytics UA code.
253
+
254
+ ```
255
+ # Configuration for Google Analytics, add your UA code here:
256
+ # google_analytics_ua: UA-????????-??
257
+ ```
258
+
259
+ #### Digital Analytics Program (DAP)
260
+
261
+ You can add DAP to your site by uncommenting the `dap_agency` line and, if need be, replacing `GSA` with the appropriate agency key. For more information visit <https://www.digitalgov.gov/services/dap/>
262
+
263
+ ```
264
+ # Configuration for DAP, add your agency ID here:
265
+ # dap_agency: GSA
266
+ ```
267
+
243
268
  ## Assets
244
269
 
245
270
  The [stylesheet](_includes/styles.html) and [script](_includes/scripts.html)
@@ -0,0 +1,20 @@
1
+ {% if site.google_analytics_ua %}
2
+ <!-- Google Analytics -->
3
+ <script>
4
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
8
+ ga('create', '{{ site.google_analytics_ua }}', 'auto');
9
+
10
+ // anonymize user IPs (chops off the last IP triplet)
11
+ ga('set', 'anonymizeIp', true);
12
+ ga('set', 'forceSSL', true);
13
+ ga('send', 'pageview');
14
+ </script>
15
+ {% endif %}
16
+
17
+ {% if site.dap_agency %}
18
+ <!-- Digital Analytics Program roll-up, see https://analytics.usa.gov for data -->
19
+ <script id="_fed_an_ua_tag" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency={{ site.dap_agency }}"></script>
20
+ {% endif %}
@@ -35,12 +35,12 @@
35
35
  <ul id="{{ _section_id }}" class="usa-nav-submenu">
36
36
  {% for _link in section_links %}
37
37
  <li>
38
- <a href="{% if _link.external == true %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">{{ _link.text }}</a>
38
+ <a href="{% if _link.external %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">{{ _link.text }}</a>
39
39
  </li>
40
40
  {% endfor %}
41
41
  </ul>
42
42
  {% else %}
43
- <a class="usa-nav-link{% if _section.href == page.permalink %} usa-current{% endif %}" href="{% if _section.external == true %}{{ _section.href }}{% else %}{{ _section.href | relative_url }}{% endif %}">
43
+ <a class="usa-nav-link{% if _section.href == page.permalink %} usa-current{% endif %}" href="{% if _section.external %}{{ _section.href }}{% else %}{{ _section.href | relative_url }}{% endif %}">
44
44
  <span>{{ _section.text }}</span>
45
45
  </a>
46
46
  {% endif %}
@@ -34,12 +34,12 @@
34
34
  <ul id="{{ _section_id }}" class="usa-nav-submenu">
35
35
  {% for _link in section_links %}
36
36
  <li>
37
- <a href="{% if _link.external == true %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">{{ _link.text }}</a>
37
+ <a href="{% if _link.external %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">{{ _link.text }}</a>
38
38
  </li>
39
39
  {% endfor %}
40
40
  </ul>
41
41
  {% else %}
42
- <a class="usa-nav-link{% if _section.href == page.permalink %} usa-current{% endif %}" href="{% if _section.external == true %}{{ _section.href }}{% else %}{{ _section.href | relative_url }}{% endif %}">
42
+ <a class="usa-nav-link{% if _section.href == page.permalink %} usa-current{% endif %}" href="{% if _section.external %}{{ _section.href }}{% else %}{{ _section.href | relative_url }}{% endif %}">
43
43
  <span>{{ _section.text }}</span>
44
44
  </a>
45
45
  {% endif %}
@@ -71,7 +71,7 @@
71
71
  {% assign secondary_links = site.data.navigation[_secondary.links] | default: _secondary.links %}
72
72
  {% for _link in secondary_links %}
73
73
  <li>
74
- <a href="{% if _link.external == true %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">{{ _link.text }}</a>
74
+ <a href="{% if _link.external %}{{ _link.href }}{% else %}{{ _link.href | relative_url }}{% endif %}">{{ _link.text }}</a>
75
75
  </li>
76
76
  {% endfor %}
77
77
  </ul>
@@ -21,7 +21,7 @@
21
21
  {{ hero.content | markdownify }}
22
22
 
23
23
  {% if hero.button %}
24
- <a class="usa-button usa-button-big usa-button-secondary"
24
+ <a class="usa-button"
25
25
  href="{{ hero.button.href | relative_url }}">
26
26
  {{ hero.button.text }}
27
27
  </a>
@@ -1,5 +1,5 @@
1
1
  {% for link in include.links %}
2
2
  <li>
3
- <a href="{% if link.external == true %}{{ link.href }}{% else %}{{ link.href | relative_url }}{% endif %}">{{ link.text }}</a>
3
+ <a href="{% if link.external == true %}{{ link.href }}{% else %}{{ link.href }}{% endif %}">{{ link.text }}</a>
4
4
  </li>
5
5
  {% endfor %}
@@ -16,6 +16,9 @@
16
16
  </main>
17
17
 
18
18
  {% include footer.html %}
19
+ {% if site.google_analytics_ua or site.dap_agency %}
20
+ {% include analytics.html %}
21
+ {% endif %}
19
22
  {% include scripts.html %}
20
23
  </body>
21
24
  </html>
@@ -4,6 +4,10 @@ $accordion-border: 3px solid $color-gray-lightest;
4
4
 
5
5
  // Accordion Styles
6
6
 
7
+ $icon-size: $spacing-md-small;
8
+ $h-padding: $spacing-medium;
9
+ $v-padding: $spacing-md-small;
10
+
7
11
  @mixin accordion-list-styles {
8
12
  @include unstyled-list;
9
13
  color: $color-base;
@@ -16,7 +20,7 @@ $accordion-border: 3px solid $color-gray-lightest;
16
20
  background-color: $color-gray-lightest;
17
21
  font-family: $font-sans;
18
22
  list-style: none;
19
- margin-bottom: 6px;
23
+ margin-bottom: $spacing-x-small;
20
24
  width: 100%;
21
25
  }
22
26
 
@@ -26,22 +30,18 @@ $accordion-border: 3px solid $color-gray-lightest;
26
30
  background-color: $color-gray-lightest;
27
31
  background-image: url('#{$image-path}/minus.png');
28
32
  background-image: url('#{$image-path}/minus.svg');
29
- background-position: right 3rem center;
33
+ background-position: right $h-padding center;
30
34
  background-repeat: no-repeat;
31
- background-size: 13px;
35
+ background-size: $icon-size;
32
36
  color: $color-base;
33
37
  cursor: pointer;
34
38
  display: inline-block;
35
39
  font-family: $font-sans;
36
40
  font-weight: $font-bold;
37
41
  margin: 0;
38
- padding: 1.5rem 5.5rem 1.5rem 3rem;
42
+ padding: $v-padding ($h-padding * 2 + $icon-size) $v-padding $h-padding;
39
43
  width: 100%;
40
44
 
41
- &:focus {
42
- box-shadow: $focus-shadow;
43
- }
44
-
45
45
  &:hover {
46
46
  background-color: $color-gray-lighter;
47
47
  color: $color-base;
@@ -62,7 +62,7 @@ $accordion-border: 3px solid $color-gray-lightest;
62
62
  background-image: url('#{$image-path}/plus.png');
63
63
  background-image: url('#{$image-path}/plus.svg');
64
64
  background-repeat: no-repeat;
65
- background-size: 1.3rem;
65
+ background-size: $icon-size;
66
66
  }
67
67
 
68
68
  @mixin accordion-nested-list {
@@ -84,7 +84,7 @@ $accordion-border: 3px solid $color-gray-lightest;
84
84
 
85
85
  + .usa-accordion,
86
86
  + .usa-accordion-bordered {
87
- margin-top: 1rem;
87
+ margin-top: $spacing-small;
88
88
  }
89
89
 
90
90
  // TODO deprecated ruleset based on old accordion.
@@ -124,7 +124,7 @@ $accordion-border: 3px solid $color-gray-lightest;
124
124
  .usa-accordion-content {
125
125
  background-color: $color-white;
126
126
  overflow: auto;
127
- padding: 3rem;
127
+ padding: $spacing-md-small $spacing-medium;
128
128
 
129
129
  > *:first-child {
130
130
  margin-top: 0;
@@ -1,5 +1,6 @@
1
1
  // Alert variables ---------- //
2
2
  $usa-custom-alerts: () !default;
3
+ $usa-custom-alerts-bar: () !default;
3
4
 
4
5
  $usa-alerts: (
5
6
  success: $color-green-lightest,
@@ -8,18 +9,40 @@ $usa-alerts: (
8
9
  info: $color-primary-alt-lightest
9
10
  );
10
11
 
12
+ $usa-alerts-bar: (
13
+ success: $color-green,
14
+ warning: $color-gold,
15
+ error: $color-secondary,
16
+ info: $color-primary-alt
17
+ );
18
+
11
19
  $alerts: map-merge($usa-alerts, $usa-custom-alerts);
20
+ $alerts-bar: map-merge($usa-alerts-bar, $usa-custom-alerts-bar);
21
+
22
+ $h-padding: $spacing-medium;
23
+ $bar-size: $spacing-small;
24
+ $left-padding: $h-padding + $bar-size;
25
+ $icon-size: 3rem;
12
26
 
13
27
  .usa-alert {
14
28
  background-color: $color-gray-lightest;
15
- background-position: 1rem 2rem;
29
+ background-position: $h-padding $h-padding;
16
30
  background-repeat: no-repeat;
17
- background-size: 4rem;
18
- margin-top: 1.5em;
19
- padding: 1em;
20
-
21
- @include media($medium-screen) {
22
- background-size: 5.2rem;
31
+ background-size: 5.2rem; // TODO abrituary number based on svg size maybe?
32
+ padding-bottom: $h-padding * 0.7;
33
+ padding-left: $left-padding;
34
+ padding-right: $h-padding;
35
+ padding-top: $h-padding;
36
+ position: relative;
37
+
38
+ &::before {
39
+ background-color: darken($color-gray-lightest, 40%);
40
+ content: '';
41
+ height: 100%;
42
+ left: 0;
43
+ position: absolute;
44
+ top: 0;
45
+ width: $bar-size;
23
46
  }
24
47
 
25
48
  a {
@@ -33,41 +56,36 @@ $alerts: map-merge($usa-alerts, $usa-custom-alerts);
33
56
 
34
57
  ul {
35
58
  margin-bottom: 0;
36
- margin-top: 1em;
37
- padding-left: 1em;
59
+ margin-top: $spacing-small;
60
+ padding-left: $spacing-small;
61
+ }
62
+ }
63
+
64
+ .usa-alert-slim {
65
+ background-position: $h-padding $spacing-small;
66
+ padding-bottom: $spacing-small;
67
+ padding-top: $spacing-small;
68
+
69
+ .usa-alert-text:only-child {
70
+ margin-bottom: $spacing-x-small;
71
+ padding-top: $spacing-x-small;
38
72
  }
39
73
  }
40
74
 
41
75
  .usa-alert-icon {
42
76
  display: table-cell;
43
- padding-right: 1rem;
77
+ padding-right: $spacing-small;
44
78
  }
45
79
 
46
80
  .usa-alert-body {
47
81
  display: table-cell;
48
- padding-left: 3.5rem;
82
+ padding-left: $icon-size + $h-padding;
49
83
  vertical-align: top;
50
-
51
- @include media($medium-screen) {
52
- padding-left: 5rem;
53
- }
54
-
55
- p:first-child {
56
- margin-top: 0.8rem;
57
- }
58
-
59
- p:last-child {
60
- margin-bottom: 0.8rem;
61
- }
62
84
  }
63
85
 
64
86
  .usa-alert-heading {
65
- margin-bottom: .3rem;
66
87
  margin-top: 0;
67
-
68
- @include media($medium-screen) {
69
- margin-top: .3rem;
70
- }
88
+ margin-bottom: 0;
71
89
  }
72
90
 
73
91
  .usa-alert-text {
@@ -76,11 +94,20 @@ $alerts: map-merge($usa-alerts, $usa-custom-alerts);
76
94
  margin-top: 0;
77
95
  }
78
96
 
97
+ .usa-alert-text:only-child {
98
+ margin-bottom: $spacing-small;
99
+ padding-top: $spacing-x-small;
100
+ }
101
+
79
102
  @each $name, $bgcolor in $alerts {
80
103
  .usa-alert-#{$name} {
81
104
  background-color: $bgcolor;
82
105
  background-image: url('#{$image-path}/alerts/#{$name}.png');
83
106
  background-image: url('#{$image-path}/alerts/#{$name}.svg');
107
+
108
+ &::before {
109
+ background-color: map-get($alerts-bar, $name);
110
+ }
84
111
  }
85
112
  }
86
113
 
@@ -90,5 +117,9 @@ $alerts: map-merge($usa-alerts, $usa-custom-alerts);
90
117
 
91
118
  .usa-alert-paragraph {
92
119
  width: $text-max-width;
93
- padding: 1em 3em 1em 1em;
120
+ }
121
+
122
+ // Deprecated
123
+ .usa-alert {
124
+ margin-top: 1.5em; // TODO deprecate
94
125
  }
@@ -8,8 +8,8 @@
8
8
  display: block;
9
9
  font-weight: $font-bold;
10
10
  margin-top: 0;
11
- padding-bottom: 2rem;
12
- padding-top: 2rem;
11
+ padding-bottom: $spacing-medium;
12
+ padding-top: $spacing-medium;
13
13
  text-decoration: none;
14
14
 
15
15
  @include media($medium-screen) {
@@ -21,21 +21,37 @@
21
21
  }
22
22
  }
23
23
 
24
+ .usa-footer-primary-link ~ li a,
25
+ .usa-footer-secondary-link {
26
+ text-decoration: none;
27
+ }
28
+ }
29
+
30
+ .usa-footer-contact_info {
31
+ display: inline-block;
32
+
24
33
  a {
25
- font-weight: normal;
34
+ color: $color-base;
35
+ text-decoration: none;
36
+ }
37
+
38
+ &:hover {
39
+ text-decoration: underline;
26
40
  }
27
41
  }
28
42
 
29
43
  .usa-footer-return-to-top {
30
- padding-bottom: 2rem;
31
- padding-top: 2rem;
44
+ color: $color-primary;
45
+ padding-bottom: $spacing-medium;
46
+ padding-top: $spacing-medium;
47
+ text-decoration: underline;
32
48
  }
33
49
 
34
50
  .usa-footer-primary-section {
35
51
  background-color: $color-gray-lightest;
36
52
 
37
53
  .usa-footer-primary-content {
38
- padding-left: 2.5rem;
54
+ padding-left: 1.5rem;
39
55
  padding-right: 2.5rem;
40
56
 
41
57
  @include media($medium-screen) {
@@ -61,17 +77,51 @@
61
77
  }
62
78
 
63
79
  .usa-footer-medium {
64
- .usa-footer-primary-section {
65
- padding: 0;
80
+ .usa-footer-contact_info {
81
+ p {
82
+ margin: 0 $spacing-small 0 0;
83
+
84
+ @include media($medium-screen) {
85
+ margin: 0 0 0 $spacing-small;
86
+ }
87
+ }
88
+ }
89
+
90
+ .usa-footer-contact-heading {
91
+ margin-top: 0;
66
92
 
67
93
  @include media($medium-screen) {
68
- padding-bottom: 1rem;
69
- padding-top: 1rem;
94
+ margin-top: $spacing-x-small;
95
+ margin-bottom: $spacing-x-small;
96
+ }
97
+ }
98
+
99
+ .usa-footer-logo {
100
+ padding: $spacing-small 0;
101
+
102
+ @include media($medium-screen) {
103
+ padding: $spacing-medium 0;
104
+ }
105
+ }
106
+
107
+ .usa-footer-primary-link {
108
+ padding-bottom: $spacing-md-small;
109
+ padding-top: $spacing-md-small;
110
+ }
111
+
112
+ .usa-footer-primary-section {
113
+ > .usa-grid {
114
+ padding: 0;
115
+
116
+ @include media($medium-screen) {
117
+ padding-left: $spacing-large;
118
+ padding-right: $spacing-large;
119
+ }
70
120
  }
71
121
 
72
122
  .usa-footer-primary-content {
73
123
  @include media($large-screen) {
74
- margin-right: 6%;
124
+ margin-right: 5%;
75
125
  width: inherit;
76
126
  }
77
127
 
@@ -98,7 +148,7 @@
98
148
 
99
149
  .usa-footer-primary-content {
100
150
  @include media($large-screen) {
101
- margin-right: 9%;
151
+ margin-right: 5%;
102
152
  width: inherit;
103
153
  }
104
154
 
@@ -110,12 +160,24 @@
110
160
  }
111
161
  }
112
162
 
163
+ .usa-footer-primary-link {
164
+ padding-bottom: $spacing-md-small;
165
+ padding-top: $spacing-md-small;
166
+ }
167
+
113
168
  .usa-footer-primary-section {
114
- padding-bottom: 2rem;
169
+ > .usa-grid {
170
+ padding: 0;
171
+
172
+ @include media($medium-screen) {
173
+ padding-left: $spacing-large;
174
+ padding-right: $spacing-large;
175
+ }
176
+ }
115
177
 
116
178
  @include media($medium-screen) {
117
- padding-bottom: 1rem;
118
- padding-top: 1rem;
179
+ padding-bottom: 0;
180
+ padding-top: 0;
119
181
 
120
182
  .usa-grid-full {
121
183
  align-items: center;
@@ -131,7 +193,7 @@
131
193
  }
132
194
 
133
195
  @include media($medium-screen) {
134
- @include padding (2rem null);
196
+ @include padding ($spacing-md-small null);
135
197
  }
136
198
 
137
199
  @include media($medium-screen) {
@@ -148,14 +210,14 @@
148
210
  ul.usa-footer-primary-content,
149
211
  li.usa-footer-primary-content,
150
212
  li.usa-footer-primary-content {
151
- border-top: 1px solid $color-base;
213
+ border-top: 1px solid $color-gray-light;
152
214
 
153
215
  @include media($medium-screen) {
154
216
  border: none;
155
217
  }
156
218
 
157
219
  &:last-child {
158
- border-bottom: 1px solid $color-base;
220
+ border-bottom: 1px solid $color-gray-light;
159
221
 
160
222
  @include media($medium-screen) {
161
223
  border-bottom: none;
@@ -165,9 +227,9 @@ li.usa-footer-primary-content {
165
227
  /* stylelint-enable */
166
228
 
167
229
  .usa-sign_up-block {
168
- padding-bottom: 2rem;
169
- padding-left: 2.5rem;
170
- padding-right: 2.5rem;
230
+ padding-bottom: 4.5rem;
231
+ padding-left: 1.5rem;
232
+ padding-right: 1.5rem;
171
233
 
172
234
  @include media($medium-screen) {
173
235
  float: right;
@@ -191,8 +253,8 @@ li.usa-footer-primary-content {
191
253
 
192
254
  .usa-footer-secondary_section {
193
255
  background-color: $color-gray-lighter;
194
- padding-bottom: 3rem;
195
- padding-top: 3rem;
256
+ padding-bottom: $spacing-medium;
257
+ padding-top: $spacing-medium;
196
258
 
197
259
  a {
198
260
  color: $color-base;
@@ -201,7 +263,8 @@ li.usa-footer-primary-content {
201
263
 
202
264
  .usa-footer-big-secondary-section {
203
265
  @include media($medium-screen) {
204
- padding-top: 5rem;
266
+ padding-top: $spacing-medium;
267
+ padding-bottom: $spacing-medium;
205
268
  }
206
269
  }
207
270
 
@@ -218,30 +281,84 @@ li.usa-footer-primary-content {
218
281
  }
219
282
 
220
283
  .usa-footer-big {
284
+ .usa-footer-contact_info {
285
+ display: block;
286
+
287
+ p {
288
+ margin: 0 $spacing-small 0 0;
289
+
290
+ @include media($medium-screen) {
291
+ margin: $spacing-x-small 0 0 $spacing-small;
292
+ }
293
+ }
294
+ }
295
+
296
+ .usa-footer-contact-links {
297
+ @include media($medium-screen) {
298
+ padding-top: $spacing-medium;
299
+ }
300
+ }
301
+
302
+ .usa-footer-logo {
303
+ padding: $spacing-small 0;
304
+
305
+ @include media($medium-screen) {
306
+ padding: $spacing-medium 0;
307
+ }
308
+ }
309
+
221
310
  .usa-footer-primary-section {
222
311
  @include media($medium-screen) {
223
312
  padding-bottom: 4rem;
224
313
  padding-top: 3rem;
225
314
  }
315
+
316
+ > .usa-grid {
317
+ padding: 0;
318
+
319
+ @include media($medium-screen) {
320
+ padding-left: $spacing-large;
321
+ padding-right: $spacing-large;
322
+ }
323
+ }
324
+
325
+ .usa-footer-primary-content {
326
+ padding-left: 0;
327
+ padding-right: 0;
328
+
329
+ li {
330
+ margin-left: $spacing-md-small;
331
+
332
+ @include media($medium-screen) {
333
+ margin-left: 0;
334
+ }
335
+ }
336
+
337
+ .usa-footer-primary-link {
338
+ margin-left: 0;
339
+ }
340
+ }
226
341
  }
227
342
 
228
343
  ul {
229
- padding-bottom: 2.5rem;
344
+ padding-bottom: 2.4rem;
230
345
 
231
346
  @include media($medium-screen) {
232
347
  padding-bottom: 0;
233
348
  }
234
349
 
235
350
  &:last-child {
236
- border-bottom: 1px solid $color-base;
351
+ border-bottom: 1px solid $color-gray-light;
237
352
 
238
353
  @include media($medium-screen) {
239
354
  border-bottom: none;
240
355
  }
241
356
  }
242
357
 
243
- li {
244
- line-height: 2em;
358
+ li:not(.usa-footer-primary-link) {
359
+ line-height: $heading-line-height;
360
+ padding-bottom: 0.35em;
361
+ padding-top: 0.35em;
245
362
  }
246
363
 
247
364
  .usa-footer-primary-link {
@@ -300,33 +417,52 @@ li.usa-footer-primary-content {
300
417
  }
301
418
 
302
419
  .usa-footer-logo-img {
303
- max-width: 14rem;
420
+ max-width: 8rem;
421
+
422
+ @include media($medium-screen) {
423
+ float: left;
424
+ }
425
+ }
426
+
427
+ .usa-footer-big-logo-img {
428
+ max-width: 10rem;
304
429
  }
305
430
 
306
431
  .usa-footer-slim-logo-img {
307
432
  float: left;
308
- max-width: 10rem;
433
+ max-width: 5rem;
309
434
  }
310
435
 
311
436
  .usa-footer-logo-heading {
312
- margin-top: 2rem;
437
+ display: block;
438
+ margin-top: $spacing-small;
439
+
440
+ @include media($medium-screen) {
441
+ display: inline-block;
442
+ margin-top: $spacing-large;
443
+ padding-left: $spacing-md-small;
444
+ }
313
445
  }
314
446
 
315
- .usa-footer-contact-heading {
316
- margin-top: 0;
447
+ .usa-footer-big-logo-heading {
448
+ margin-top: $spacing-md-small;
317
449
 
318
450
  @include media($medium-screen) {
319
- margin-top: 1rem;
451
+ margin-top: $spacing-medium;
320
452
  }
321
453
  }
322
454
 
323
455
  .usa-footer-slim-logo-heading {
324
- display: block;
325
- padding-top: 1rem;
456
+ display: inline-block;
457
+ margin-top: $spacing-md-small;
458
+ padding-left: $spacing-md-small;
459
+ }
460
+
461
+ .usa-footer-contact-heading {
462
+ margin-top: 0;
326
463
 
327
464
  @include media($medium-screen) {
328
- display: inline-block;
329
- padding-left: 1em;
465
+ margin-top: 1rem;
330
466
  }
331
467
  }
332
468
 
@@ -348,8 +484,8 @@ li.usa-footer-primary-content {
348
484
  width: $hit-area;
349
485
 
350
486
  @include media($medium-screen) {
351
- @include margin(0 0 0 1rem);
352
- left: 1.2rem;
487
+ @include margin(0 0 0 $spacing-x-small);
488
+ left: $spacing-md-small;
353
489
  }
354
490
 
355
491
  span {