govuk_tech_docs 1.9.0.pre.rc2 → 2.0.0.pre.test.pre.release.pre.524

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 (66) hide show
  1. checksums.yaml +5 -5
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +4 -1
  4. data/CHANGELOG.md +7 -2
  5. data/example/.ruby-version +1 -1
  6. data/govuk_tech_docs.gemspec +23 -4
  7. data/lib/assets/javascripts/govuk_tech_docs.js +2 -0
  8. data/lib/assets/stylesheets/_core.scss +0 -48
  9. data/lib/assets/stylesheets/_govuk_tech_docs.scss +4 -8
  10. data/lib/assets/stylesheets/modules/_anchored-heading.scss +6 -6
  11. data/lib/assets/stylesheets/modules/_app-pane.scss +46 -47
  12. data/lib/assets/stylesheets/modules/_collapsible.scss +7 -3
  13. data/lib/assets/stylesheets/modules/_contribution-banner.scss +9 -7
  14. data/lib/assets/stylesheets/modules/_footer.scss +6 -127
  15. data/lib/assets/stylesheets/modules/_page-review.scss +15 -14
  16. data/lib/assets/stylesheets/modules/_search.scss +53 -42
  17. data/lib/assets/stylesheets/modules/_technical-documentation.scss +65 -95
  18. data/lib/assets/stylesheets/modules/_toc.scss +76 -47
  19. data/lib/assets/stylesheets/palette/_syntax-highlighting.scss +5 -5
  20. data/lib/govuk_tech_docs.rb +13 -11
  21. data/lib/govuk_tech_docs/api_reference/api_reference_extension.rb +1 -1
  22. data/lib/govuk_tech_docs/api_reference/api_reference_renderer.rb +1 -0
  23. data/lib/govuk_tech_docs/api_reference/templates/api_reference_full.html.erb +1 -1
  24. data/lib/govuk_tech_docs/page_review.rb +1 -0
  25. data/lib/govuk_tech_docs/pages.rb +1 -1
  26. data/lib/govuk_tech_docs/redirects.rb +1 -1
  27. data/lib/govuk_tech_docs/table_of_contents/heading_tree_renderer.rb +1 -1
  28. data/lib/govuk_tech_docs/table_of_contents/headings_builder.rb +1 -1
  29. data/lib/govuk_tech_docs/table_of_contents/helpers.rb +1 -0
  30. data/lib/govuk_tech_docs/version.rb +1 -1
  31. data/lib/source/layouts/_footer.erb +32 -7
  32. data/lib/source/layouts/_header.erb +41 -27
  33. data/lib/source/layouts/_search.erb +4 -2
  34. data/lib/source/layouts/core.erb +7 -8
  35. data/lib/source/stylesheets/manifest.css +3 -0
  36. data/package-lock.json +3 -3
  37. data/package.json +3 -2
  38. metadata +38 -33
  39. data/lib/assets/stylesheets/_accessibility.scss +0 -9
  40. data/lib/assets/stylesheets/govuk_frontend_toolkit/_colours.scss +0 -2
  41. data/lib/assets/stylesheets/govuk_frontend_toolkit/_conditionals.scss +0 -81
  42. data/lib/assets/stylesheets/govuk_frontend_toolkit/_css3.scss +0 -90
  43. data/lib/assets/stylesheets/govuk_frontend_toolkit/_device-pixels.scss +0 -10
  44. data/lib/assets/stylesheets/govuk_frontend_toolkit/_font_stack.scss +0 -19
  45. data/lib/assets/stylesheets/govuk_frontend_toolkit/_grid_layout.scss +0 -136
  46. data/lib/assets/stylesheets/govuk_frontend_toolkit/_helpers.scss +0 -16
  47. data/lib/assets/stylesheets/govuk_frontend_toolkit/_measurements.scss +0 -14
  48. data/lib/assets/stylesheets/govuk_frontend_toolkit/_shims.scss +0 -55
  49. data/lib/assets/stylesheets/govuk_frontend_toolkit/_typography.scss +0 -249
  50. data/lib/assets/stylesheets/govuk_frontend_toolkit/_url-helpers.scss +0 -16
  51. data/lib/assets/stylesheets/govuk_frontend_toolkit/colours/_organisation.scss +0 -103
  52. data/lib/assets/stylesheets/govuk_frontend_toolkit/colours/_palette.scss +0 -77
  53. data/lib/assets/stylesheets/govuk_frontend_toolkit/design-patterns/_alpha-beta.scss +0 -66
  54. data/lib/assets/stylesheets/govuk_frontend_toolkit/design-patterns/_breadcrumbs.scss +0 -53
  55. data/lib/assets/stylesheets/govuk_frontend_toolkit/design-patterns/_buttons.scss +0 -141
  56. data/lib/assets/stylesheets/govuk_frontend_toolkit/design-patterns/_media-player.scss +0 -242
  57. data/lib/assets/stylesheets/modules/_govuk-logo.scss +0 -47
  58. data/lib/assets/stylesheets/modules/_header.scss +0 -289
  59. data/lib/assets/stylesheets/modules/_skip-link.scss +0 -31
  60. data/lib/source/images/gov.uk_logotype_crown-2x.png +0 -0
  61. data/lib/source/images/gov.uk_logotype_crown.png +0 -0
  62. data/lib/source/images/gov.uk_logotype_crown_invert_trans.png +0 -0
  63. data/lib/source/images/govuk-crest-2x.png +0 -0
  64. data/lib/source/images/govuk-crest.png +0 -0
  65. data/lib/source/images/open-government-licence.png +0 -0
  66. data/lib/source/images/open-government-licence_2x.png +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6043a675efcea70664f45249f57ad63449cf23e0
4
- data.tar.gz: 970f900a0a08eaca4b3c1438144bf279b1e24f90
2
+ SHA256:
3
+ metadata.gz: dd5458318d29da0043ef81ea589997e758b06657df364ba8972f3aecef0c6827
4
+ data.tar.gz: 30a9902a8c2fbf4f41c92092f9c3a1db752454fb562ae734011c927fd213b630
5
5
  SHA512:
6
- metadata.gz: 4e1129e161f411a9a6d98739ce9dc914892db36d9f8dc9bcd194360267d39f242b53e75081a1f609719a9f323ebfb93ff95cc79eeda7afc948d745e15d3309ec
7
- data.tar.gz: 3d4e246b84a49d4a98bb8680a39b177c1bfe97f1d9cdf90a546f71d9222625bffa28bdbfdbd14fc75d1c7652bd5dcf1e571eb4b6003435bc1475d50a450e1b65
6
+ metadata.gz: 3bd5199f84615e0b0d0812f39a1a5b98bdb4fab604ccd0dc3d73cead385b0a17740df57f5523229e9d55baf51c22f22db5f09b87de8889d0ab9694515c516194
7
+ data.tar.gz: d27ff7ad83e36c34015b2ea2f9a7ed6546e592334c7c8687c8236fb5047811940d6065e156fb2d51276d4890b5922423e588be555b28a605c1d96a3b86577cdd
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.2
1
+ 2.6.3
data/.travis.yml CHANGED
@@ -1,4 +1,7 @@
1
1
  language: ruby
2
+ before_install:
3
+ - gem update --system
4
+ - gem install bundler
2
5
  before_script:
3
6
  - npm install
4
7
  deploy:
@@ -8,4 +11,4 @@ deploy:
8
11
  secure: CY9C+IUqUeYWqXSyQgfF5swdYw1rRtYi0ai1xasD3R5rwARF6Qr8CnmdSBjfT2S84fXQiMza45Jto4w1jiy3o4wpxuKN68xEB7J4W/YEpFcZectzsmXwcMJH+DXh720KFIX2xiHaG5N0nWzAoV+6zgw6Vq24IXYE33wO6BgCmTe3vtO+Apg0+wDRAOuJ4T5XfSyWUvG8JqLRb81t+WbrsOLcUgZn24DHvs+lrjXTDDTzrgwTuKeaKd+h+mfxlHZD+Xxbcy624qop5ICwOOP0koRXCdVmTOSZ4mNI10+loCyA1B5Tryj/2wweyc8CanqRMniF8p/BxLV1sAwihpCmCpuWUyxq2pTPSgjF1A1f5hXwkAT/HiaXLzXKyO1REnbtLHYvre10EIYIII4nDAtCZP0YLYvPoKQUrAydeWiQ4jL+cyEeN/8Dznx2OPrhcwxazsElMm0yOZDNXERNIf3IVnQshxMFxQfGW3NTG8XR4l5PHAI2XqKy/O/VGbiRcNV3EYVG5w/KumB698BGDGV2QPOlh3JOEkebXTGDsMJj/gzZik2BtvAqYatwgx7oiYzvhEPz0m9o/DTS7Gf/5Hkj3iV2mpcNtRMc0HKmS7bwkv8Cl6dWECt7PWQ8Kz5ttrCKRmTCJDgra2xLFuV8kbBISPkKKv87KCXzxthM8ps94WE=
9
12
  on:
10
13
  repo: alphagov/tech-docs-gem
11
- branch: master
14
+ branch: ensure-govuk-frontend-installed-via-npm
data/CHANGELOG.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 2.0.0
4
4
 
5
- This release adds [GOV.UK Frontend](https://github.com/alphagov/govuk-frontend) (part of the [GOV.UK Design System](https://design-system.service.gov.uk)). Converts the "phase tag" (the alpha/beta thing next to the logo) to use a GOV.UK Frontend component. Also adds [Standard JS](https://standardjs.com) to the code base to lint all Javascript.
5
+ This release adds [GOV.UK Frontend](https://github.com/alphagov/govuk-frontend) (part of the [GOV.UK Design System](https://design-system.service.gov.uk)) and remove the legacy framework [GOV.UK Frontend Toolkit](https://github.com/alphagov/govuk_frontend_toolkit). This required a lot of markup being ported over
6
+ to use the design system’s markup and all custom CSS to use new variables and mixins.
7
+
8
+ Custom components such as the table of contents (toc) were updated to use the WCAG 2.1 AA compliant focus states too.
9
+
10
+ It was also necessary to upgrade the Ruby version to `2.6.3` so that we could bump the gem versions of `govuk_lint`, `rubocop` and `sprockets`. The new version of sprockets allowed us to pull through assets from `node_modules/govuk-frontend` without having to manually include them as was the case before with govuk_frontend_toolkit.
6
11
 
7
12
  ## 1.8.3
8
13
 
@@ -1 +1 @@
1
- 2.4.2
1
+ 2.6.3
@@ -3,9 +3,15 @@ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require "govuk_tech_docs/version"
5
5
 
6
+ `npm install`
7
+ abort 'npm install failed' unless $?.success?
8
+
9
+ unless File.exist?('node_modules/govuk-frontend/govuk/all.scss')
10
+ abort 'govuk-frontend npm package not installed'
11
+ end
12
+
6
13
  Gem::Specification.new do |spec|
7
14
  spec.name = "govuk_tech_docs"
8
- spec.version = GovukTechDocs::VERSION
9
15
  spec.authors = ["Government Digital Service"]
10
16
  spec.email = ["govuk-dev@digital.cabinet-office.gov.uk"]
11
17
 
@@ -16,8 +22,8 @@ Gem::Specification.new do |spec|
16
22
 
17
23
  files_in_git = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
24
 
19
- # Include the CSS and JS from GOV.UK Frontend library
20
- govuk_frontend_assets = Dir["node_modules/govuk-frontend/**/*.{scss,js}"]
25
+ # Include assets from GOV.UK Frontend library in the distributed gem
26
+ govuk_frontend_assets = Dir["node_modules/govuk-frontend/**/*.{scss,js,woff,woff2}"]
21
27
 
22
28
  spec.files = files_in_git + govuk_frontend_assets
23
29
 
@@ -32,6 +38,8 @@ Gem::Specification.new do |spec|
32
38
  spec.add_dependency "middleman-compass", ">= 4.0.0"
33
39
  spec.add_dependency "middleman-livereload"
34
40
  spec.add_dependency "middleman-sprockets", "~> 4.0.0"
41
+ spec.add_dependency "sprockets", "4.0.0.beta10"
42
+ spec.add_dependency "sass"
35
43
  spec.add_dependency "middleman-syntax", "~> 3.0.0"
36
44
  spec.add_dependency "middleman-search-gds"
37
45
  spec.add_dependency "nokogiri"
@@ -43,8 +51,19 @@ Gem::Specification.new do |spec|
43
51
  spec.add_development_dependency "bundler", "~> 2.0.1"
44
52
  spec.add_development_dependency "rake", "~> 10.0"
45
53
  spec.add_development_dependency "capybara", "~> 2.18.0"
46
- spec.add_development_dependency "govuk-lint", "~> 3.7.0"
54
+ spec.add_development_dependency "govuk-lint", "~> 3.11.5"
47
55
  spec.add_development_dependency "jasmine", "~> 3.1.0"
48
56
  spec.add_development_dependency "rspec", "~> 3.7.0"
49
57
  spec.add_development_dependency "byebug"
58
+
59
+ if ENV.key?('TRAVIS')
60
+ test_version_prefix = GovukTechDocs::VERSION
61
+ test_version_fragment = 'test-release'
62
+ test_version_suffix = ENV.fetch('TRAVIS_BUILD_NUMBER')
63
+ spec.version = [
64
+ test_version_prefix, test_version_fragment, test_version_suffix
65
+ ].join('-')
66
+ else
67
+ spec.version = GovukTechDocs::VERSION
68
+ end
50
69
  end
@@ -4,7 +4,9 @@
4
4
  //= require _vendor/lodash
5
5
  //= require _analytics
6
6
  //= require _start-modules
7
+ //= require govuk/all.js
7
8
 
8
9
  $(function () {
9
10
  $('.fixedsticky').fixedsticky()
11
+ GOVUKFrontend.initAll()
10
12
  })
@@ -3,65 +3,17 @@
3
3
  $tablet-breakpoint: 768px !default;
4
4
  $desktop-breakpoint: 992px !default;
5
5
 
6
- @import "utilities/fonts";
7
6
  @import "utilities/printable";
8
7
 
9
- @import "govuk_frontend_toolkit/colours";
10
- @import "govuk_frontend_toolkit/conditionals";
11
- @import "govuk_frontend_toolkit/css3";
12
- @import "govuk_frontend_toolkit/device-pixels";
13
- @import "govuk_frontend_toolkit/font_stack";
14
- @import "govuk_frontend_toolkit/grid_layout";
15
- @import "govuk_frontend_toolkit/helpers";
16
- @import "govuk_frontend_toolkit/measurements";
17
- @import "govuk_frontend_toolkit/typography";
18
-
19
8
  @import "palette/syntax-highlighting";
20
9
  @import "syntax-highlighting";
21
10
 
22
11
  @import "modules/anchored-heading";
23
12
  @import "modules/app-pane";
24
13
  @import "modules/footer";
25
- @import "modules/govuk-logo";
26
- @import "modules/header";
27
14
  @import "modules/page-review";
28
- @import "modules/skip-link";
29
15
  @import "modules/search";
30
16
  @import "modules/contribution-banner";
31
17
  @import "modules/technical-documentation";
32
18
  @import "modules/toc";
33
19
  @import "modules/collapsible";
34
-
35
- @import "accessibility";
36
-
37
- html, body {
38
- color: $text-colour;
39
- background-color: $page-colour;
40
- margin: 0;
41
- -webkit-font-smoothing: antialiased;
42
- -moz-osx-font-smoothing: grayscale;
43
- @include core-19;
44
- }
45
-
46
- // basic styles for HTML5 and other elements
47
- html, body, div, h1, h2, h3, h4, h5, h6, article, aside, footer, header, hgroup, nav, section {
48
- margin: 0;
49
- padding: 0;
50
- vertical-align: baseline;
51
- }
52
-
53
- a:link {
54
- color: $link-colour;
55
- }
56
-
57
- a:visited {
58
- color: $link-visited-colour;
59
- }
60
-
61
- a:hover {
62
- color: $link-hover-colour;
63
- }
64
-
65
- a:active {
66
- color: $link-active-colour;
67
- }
@@ -1,10 +1,6 @@
1
- @import "core";
2
- @import "vendor/fixedsticky";
3
-
4
- $govuk-image-url-function: "image-url";
5
- $govuk-font-url-function: "font-url";
1
+ $govuk-assets-path: "/assets/govuk/assets/";
6
2
 
7
- $govuk-compatibility-govukfrontendtoolkit: true;
8
- $govuk-compatibility-govuktemplate: true;
3
+ @import "govuk/all";
9
4
 
10
- @import "../../../node_modules/govuk-frontend/govuk/all";
5
+ @import "core";
6
+ @import "vendor/fixedsticky";
@@ -18,16 +18,16 @@
18
18
  text-decoration: none;
19
19
  text-indent: -9999em;
20
20
 
21
- background-image: file-url('anchored-heading-icon.png');
21
+ background-image: url('/images/anchored-heading-icon.png');
22
22
  background-repeat: no-repeat;
23
23
  background-position: center center;
24
24
 
25
- @include device-pixel-ratio {
26
- background-image: file-url('anchored-heading-icon-2x.png');
25
+ @include govuk-device-pixel-ratio {
26
+ background-image: url('/images/anchored-heading-icon-2x.png');
27
27
  background-size: $icon-width $icon-height;
28
28
  }
29
29
 
30
- @include media(tablet) {
30
+ @include govuk-media-query(tablet) {
31
31
  display: block;
32
32
  }
33
33
 
@@ -39,13 +39,13 @@
39
39
  }
40
40
 
41
41
  &:hover &__icon {
42
- @include media(tablet) {
42
+ @include govuk-media-query(tablet) {
43
43
  opacity: 1;
44
44
  }
45
45
  }
46
46
 
47
47
  &__icon:focus {
48
- @include media(tablet) {
48
+ @include govuk-media-query(tablet) {
49
49
  opacity: 1;
50
50
  outline-width: 1px;
51
51
  padding: 0 ($icon-spacing - 1);
@@ -1,64 +1,63 @@
1
- @include screen {
2
- @include media(tablet) {
3
- $toc-width: 330px;
1
+ @include govuk-media-query(tablet, $media-type: screen) {
2
+ $toc-width: 330px;
4
3
 
5
- .flexbox, .flexboxtweener {
4
+ .flexbox, .flexboxtweener {
6
5
 
7
- body {
8
- overflow: hidden;
9
- }
6
+ body {
7
+ overflow: hidden;
8
+ }
10
9
 
11
- .app-pane {
12
- display: flex;
13
- flex-direction: column;
14
- overflow: hidden;
15
- height: 100vh;
16
- }
10
+ .app-pane {
11
+ display: flex;
12
+ flex-direction: column;
13
+ overflow: hidden;
14
+ height: 100vh;
15
+ }
17
16
 
18
- .app-pane__header {
19
- display: flex;
20
- flex-direction: column;
21
- flex: 1 0 auto;
17
+ .app-pane__header {
18
+ display: flex;
19
+ flex-direction: column;
20
+ flex: 1 0 auto;
22
21
 
23
- > * {
24
- flex: 1 0 auto;
25
- }
22
+ > * {
23
+ flex: 1 0 auto;
26
24
  }
25
+ }
27
26
 
28
- .app-pane__body {
29
- display: flex;
30
- flex: 1 1 100%;
31
- min-height: 0;
32
- position: relative;
27
+ .app-pane__body {
28
+ display: flex;
29
+ flex: 1 1 100%;
30
+ min-height: 0;
31
+ position: relative;
33
32
 
34
- > * {
35
- overflow-x: scroll;
36
- -webkit-overflow-scrolling: touch;
37
- -ms-overflow-style: none;
38
- }
33
+ > * {
34
+ overflow-x: scroll;
35
+ -webkit-overflow-scrolling: touch;
36
+ -ms-overflow-style: none;
39
37
  }
38
+ }
40
39
 
41
- .app-pane__toc {
42
- flex: 0 0 auto;
43
- width: $toc-width;
44
- border-right: 1px solid $grey-2;
45
- }
40
+ .app-pane__toc {
41
+ flex: 0 0 auto;
42
+ width: $toc-width;
43
+ border-right: 1px solid $govuk-border-colour;
44
+ }
46
45
 
47
- .app-pane__content {
48
- flex: 1 1 auto;
49
- }
46
+ .app-pane__content {
47
+ flex: 1 1 auto;
50
48
  }
49
+ }
51
50
 
52
- .no-flexbox.no-flexboxtweener,
53
- .no-js {
54
- .app-pane__toc {
55
- float: left;
56
- width: $toc-width;
57
- }
51
+ .no-flexbox.no-flexboxtweener,
52
+ .no-js {
53
+ .app-pane__toc {
54
+ float: left;
55
+ width: $toc-width;
56
+ }
58
57
 
59
- .app-pane__content {
60
- margin-left: $toc-width;
61
- }
58
+ .app-pane__content {
59
+ margin-left: $toc-width;
62
60
  }
63
61
  }
64
62
  }
63
+
@@ -11,10 +11,12 @@
11
11
  display: block
12
12
  }
13
13
  }
14
+
14
15
  .collapsible__heading,
15
16
  .toc__list > ul > li > a:link.collapsible__heading {
16
17
  margin-right: 30px;
17
18
  }
19
+
18
20
  .collapsible__toggle {
19
21
  position: absolute;
20
22
  top: 0;
@@ -27,18 +29,20 @@
27
29
  background: 0;
28
30
  color: inherit;
29
31
  padding: 0;
32
+
30
33
  &:focus {
31
- outline: 3px solid $focus-colour;
34
+ @include govuk-focused-text;
32
35
  }
33
36
  }
37
+
34
38
  .collapsible__toggle-icon {
35
39
  position: absolute;
36
40
  top: 0;
37
- right: 30px;
41
+ right: 20px;
38
42
  &::after {
39
43
  content: '';
40
44
  display: block;
41
- border: 2px solid $black;
45
+ border: 2px solid govuk-colour("black");
42
46
  border-width: 2px 2px 0 0;
43
47
  transform: rotate(135deg);
44
48
  width: 10px;
@@ -1,17 +1,19 @@
1
1
  .contribution-banner {
2
2
  padding: 0;
3
3
  max-width: 40em;
4
- margin-top: $gutter * 2;
5
- margin-left: $gutter-half;
6
- margin-right: $gutter-half;
4
+ margin-top: govuk-spacing(9);
5
+ margin-left: govuk-spacing(3);
6
+ margin-right: govuk-spacing(3);
7
7
 
8
- @include media(tablet) {
9
- margin-left: $gutter + 2px;
10
- margin-right: $gutter + 2px;
8
+ @include govuk-media-query(tablet) {
9
+ margin-left: govuk-spacing(6) + 2px;
10
+ margin-right: govuk-spacing(6) + 2px;
11
11
  }
12
12
 
13
13
  a {
14
- margin-right: $gutter-half;
14
+ margin-right: govuk-spacing(3);
15
+ @include govuk-link-common;
16
+ @include govuk-link-style-default;
15
17
  }
16
18
 
17
19
  li {
@@ -1,130 +1,9 @@
1
- /**
2
- * Footer Component
3
- *
4
- * Based on the existing GOV.UK footer in GOV.UK Template, built with flexbox
5
- * and with tweaked behaviour for the OGL logo for the smaller viewport (when
6
- * allowing for the table of contents)
7
- *
8
- * Example Usage:
9
- *
10
- * <footer class="footer">
11
- * <div class="footer__licence">
12
- * <a class="footer__licence-logo" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence</a>
13
- * <p class="footer__licence-description">All content is available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated</p>
14
- * </div>
15
- *
16
- * <div class="footer__copyright">
17
- * <a class="footer__copyright-logo" href="http://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/">© Crown copyright</a>
18
- * </div>
19
- * </footer>
20
- */
1
+ .app-footer {
2
+ padding-left: govuk-spacing(3);
3
+ padding-right: govuk-spacing(3);
21
4
 
22
- // Copied from govuk_template
23
- $footer-background: $grey-3;
24
- $footer-border-top: #a1acb2;
25
- $footer-link: #454a4c;
26
- $footer-link-hover: #171819;
27
- $footer-text: $footer-link;
28
-
29
- .footer {
30
- display: block;
31
- margin-top: $gutter * 2;
32
- padding: $gutter $gutter-half ($gutter * 2);
33
- border-top: 1px solid $footer-border-top;
34
- background: $footer-background;
35
- color: $footer-text;
36
-
37
- @include media(tablet) {
38
- padding: $gutter;
39
- display: flex;
40
- flex-shrink: 0;
41
- align-items: flex-end;
42
- justify-content: space-between;
43
- }
44
-
45
- a:link, a:visited {
46
- color: $footer-link;
47
- }
48
-
49
- a:hover, a:active {
50
- color: $footer-link-hover;
51
- }
52
- }
53
-
54
- .footer__licence {
55
- line-height: 1;
56
- margin-bottom: -1em;
57
- }
58
-
59
- .footer__licence-logo {
60
- margin-top: -2px; // Align baseline with paragraph
61
- margin-bottom: 1em;
62
- display: block;
63
- width: 41px;
64
- height: 17px;
65
- overflow: hidden;
66
- text-indent: -999em;
67
-
68
- background-image: file-url("/images/open-government-licence.png");
69
- background-repeat: no-repeat;
70
- background-size: 41px 17px;
71
-
72
- @include device-pixel-ratio() {
73
- background-image: file-url("/images/open-government-licence_2x.png");
74
- }
75
-
76
- @include media(tablet) {
77
- float: left;
78
- margin-right: 12px;
79
- }
80
- }
81
-
82
- .footer__licence-description {
83
- @include core-16;
84
- margin: 0 0 1em;
85
- display: inline-block;
86
- }
87
-
88
- .footer__copyright {
89
- @include core-16;
90
- margin-top: 30px;
91
- }
92
-
93
- .footer__copyright-logo {
94
- display: block;
95
- white-space: nowrap;
96
-
97
- padding: 115px 0 0 0;
98
- min-width: 125px;
99
-
100
- background-image: file-url("/images/govuk-crest.png");
101
- background-size: 125px 102px;
102
- background-repeat: no-repeat;
103
- background-position: 50% 0%;
104
-
105
- text-align: center;
106
- text-decoration: none;
107
-
108
- @include device-pixel-ratio() {
109
- background-image: file-url("/images/govuk-crest-2x.png");
110
- }
111
- }
112
-
113
- .flexbox, .flexboxtweener {
114
- @include media(tablet) {
115
-
116
- .footer__license {
117
- flex-shrink: 1;
118
- }
119
-
120
- .footer__copyright {
121
- margin-top: 0;
122
- display: inline-block;
123
- margin-left: $gutter;
124
- }
125
-
126
- .footer__copyright-logo {
127
- text-align: right;
128
- }
5
+ @include govuk-media-query($from: tablet) {
6
+ padding-left: govuk-spacing(6);
7
+ padding-right: govuk-spacing(6);
129
8
  }
130
9
  }