govuk_tech_docs 5.2.2 → 6.0.0.beta
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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +15 -0
- data/README.md +11 -3
- data/example/config/tech-docs.yml +1 -1
- data/govuk_tech_docs.gemspec +1 -1
- data/lib/assets/stylesheets/_core.scss +1 -0
- data/lib/assets/stylesheets/_govuk_tech_docs.scss +13 -15
- data/lib/assets/stylesheets/modules/_app-pane.scss +3 -3
- data/lib/assets/stylesheets/modules/_page-review.scss +4 -4
- data/lib/assets/stylesheets/modules/_search.scss +3 -3
- data/lib/assets/stylesheets/modules/_service-navigation.scss +5 -0
- data/lib/assets/stylesheets/modules/_technical-documentation.scss +7 -7
- data/lib/assets/stylesheets/modules/_toc.scss +13 -13
- data/lib/assets/stylesheets/palette/_syntax-highlighting.scss +9 -7
- data/lib/govuk_tech_docs/meta_tags.rb +1 -1
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/lib/source/layouts/_header.erb +2 -16
- data/lib/source/layouts/_service_navigation.erb +27 -0
- data/lib/source/layouts/core.erb +7 -7
- data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +87 -229
- data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +88 -229
- data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +18 -15
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +1 -126
- data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +1 -126
- data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +18 -21
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +20 -135
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +20 -135
- data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +19 -9
- data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
- data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
- data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
- data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +1 -126
- data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +1 -126
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +30 -38
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +36 -132
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +36 -132
- data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +35 -6
- data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +30 -27
- data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +89 -449
- data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +14 -20
- data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +10 -8
- data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +12 -11
- data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +4 -4
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +1 -126
- data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +1 -126
- data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
- data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +8 -7
- data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +6 -11
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +55 -76
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +30 -2
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +30 -2
- data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +30 -2
- data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -2
- data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +25 -21
- data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
- data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +9 -6
- data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
- data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
- data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +5 -10
- data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +5 -4
- data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +6 -20
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
- data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
- data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +168 -82
- data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +41 -6
- data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +24 -40
- data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +172 -33
- data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +6 -30
- data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +1 -126
- data/node_modules/govuk-frontend/dist/govuk/init.mjs +1 -2
- data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +3 -7
- data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +2 -2
- data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +1 -1
- data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
- data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +5 -5
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +9 -255
- data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
- data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
- data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
- data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -9
- data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
- data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +4 -2
- data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
- data/package-lock.json +3228 -4
- data/package.json +1 -1
- metadata +10 -26
- data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +0 -1
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +0 -39
- data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
- data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
- data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
- data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
- data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
- data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
- data/node_modules/govuk-frontend/dist/govuk/vendor/_sass-mq.scss +0 -349
- data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7c54295459ed7567f6875bd16dc72e50292cf62950b1e3de986a57fc484e5f7
|
|
4
|
+
data.tar.gz: 39cb5a0065d9eba0e24c8cc78a021855ccc90992107ffdf216cacb4726d233c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43f176a4af66287f94c76a926292ffd10504c17af60497af29e002b54edfa25ca8b67e2028e4bc894b252c0b2e5b8e2c6ad01825d70b7d23d1f73377748fbe81
|
|
7
|
+
data.tar.gz: c201066eb4c5104e1889475f9f95d417eafffd617b165c341af9bf6531a8f79da342be8b4abbea06efccf400f9643684f30e2a4998c30e0cad7ad435784cde8b
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.2.6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
|
+
## 6.0.0
|
|
2
|
+
|
|
3
|
+
- [Bump Design System to V6](https://github.com/alphagov/tech-docs-gem/pull/442), which brings in:
|
|
4
|
+
- changes to the colour palette
|
|
5
|
+
- replacement of the smallest font size, used for smaller screens, with next one up
|
|
6
|
+
- introduction of service navigation component, with header links moved to it
|
|
7
|
+
- all changes listed in https://github.com/alphagov/govuk-frontend/releases/tag/v6.0.0
|
|
8
|
+
|
|
9
|
+
Note: whereas before all tech docs could optionally turn on the new branding, this removes that
|
|
10
|
+
ability, we're marking it as a major bump.
|
|
11
|
+
|
|
1
12
|
## 5.2.2
|
|
2
13
|
|
|
3
14
|
- [Unpin middleman](https://github.com/alphagov/tech-docs-gem/pull/457)
|
|
15
|
+
- [Bump jasmine-browser-runner from 2.5.0 to 3.0.0 #450](- https://github.com/alphagov/tech-docs-gem/pull/450)
|
|
16
|
+
- [Bump jasmine-core from 5.5.0 to 5.13.0 #448](https://github.com/alphagov/tech-docs-gem/pull/448)
|
|
17
|
+
- [Ban pre|post-install NPM scripts #453](https://github.com/alphagov/tech-docs-gem/pull/453)
|
|
18
|
+
|
|
4
19
|
|
|
5
20
|
## 5.2.1
|
|
6
21
|
|
data/README.md
CHANGED
|
@@ -110,14 +110,22 @@ For more information on previewing your documentation locally, see the [Tech Doc
|
|
|
110
110
|
|
|
111
111
|
## Tests
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
Use this command to run the linting and tests for the Ruby and JavaScript code:
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
```sh
|
|
116
|
+
bundle exec rake
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### JavaScript tests
|
|
120
|
+
|
|
121
|
+
The JavaScript tests use the [Jasmine test framework][jas].
|
|
122
|
+
|
|
123
|
+
You can run these tests on their own and see the results in your browser.
|
|
116
124
|
|
|
117
125
|
1. Run `bundle exec rake jasmine:server`.
|
|
118
126
|
2. Go to `http://localhost:8888` in your browser.
|
|
119
127
|
|
|
120
|
-
To run the tests and see the results in your terminal, run:
|
|
128
|
+
To run the JavaScript tests and see the results in your terminal, run:
|
|
121
129
|
|
|
122
130
|
```
|
|
123
131
|
bundle exec rake jasmine:ci
|
data/govuk_tech_docs.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ require "govuk_tech_docs/version"
|
|
|
7
7
|
`npm ci`
|
|
8
8
|
abort "npm ci failed" unless $CHILD_STATUS.success?
|
|
9
9
|
|
|
10
|
-
unless File.exist?("node_modules/govuk-frontend/dist/govuk/
|
|
10
|
+
unless File.exist?("node_modules/govuk-frontend/dist/govuk/_base.scss")
|
|
11
11
|
abort "govuk-frontend npm package not installed"
|
|
12
12
|
end
|
|
13
13
|
|
|
@@ -7,27 +7,25 @@ $govuk-suppressed-warnings: (
|
|
|
7
7
|
);
|
|
8
8
|
$govuk-assets-path: "/assets/govuk/assets/" !default;
|
|
9
9
|
|
|
10
|
-
// legacy palette is getting deprecated so new one needs to be used
|
|
11
|
-
$govuk-new-organisation-colours: true;
|
|
12
|
-
|
|
13
10
|
// Include only the bits of GOV.UK Frontend we need
|
|
14
11
|
$govuk-new-link-styles: true;
|
|
15
12
|
@import "govuk/base";
|
|
16
13
|
|
|
17
|
-
@import "govuk/core
|
|
18
|
-
@import "govuk/objects
|
|
14
|
+
@import "govuk/core";
|
|
15
|
+
@import "govuk/objects";
|
|
19
16
|
|
|
20
|
-
@import "govuk/components/cookie-banner
|
|
21
|
-
@import "govuk/components/footer
|
|
22
|
-
@import "govuk/components/header
|
|
23
|
-
@import "govuk/components/
|
|
24
|
-
@import "govuk/components/
|
|
25
|
-
@import "govuk/components/
|
|
26
|
-
@import "govuk/components/
|
|
27
|
-
@import "govuk/components/
|
|
17
|
+
@import "govuk/components/cookie-banner";
|
|
18
|
+
@import "govuk/components/footer";
|
|
19
|
+
@import "govuk/components/header";
|
|
20
|
+
@import "govuk/components/service-navigation";
|
|
21
|
+
@import "govuk/components/inset-text";
|
|
22
|
+
@import "govuk/components/input";
|
|
23
|
+
@import "govuk/components/tag";
|
|
24
|
+
@import "govuk/components/skip-link";
|
|
25
|
+
@import "govuk/components/warning-text";
|
|
28
26
|
|
|
29
|
-
@import "govuk/utilities
|
|
30
|
-
@import "govuk/overrides
|
|
27
|
+
@import "govuk/utilities";
|
|
28
|
+
@import "govuk/overrides";
|
|
31
29
|
|
|
32
30
|
@import "core";
|
|
33
31
|
@import "vendor/fixedsticky";
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
.app-pane__toc {
|
|
41
41
|
flex: 0 0 auto;
|
|
42
42
|
width: $toc-width;
|
|
43
|
-
border-right: 1px solid
|
|
43
|
+
border-right: 1px solid govuk-functional-colour(border);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.app-pane__content {
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
.app-pane__content:has(main:focus-visible) {
|
|
66
66
|
outline: $govuk-focus-width solid transparent;
|
|
67
67
|
box-shadow:
|
|
68
|
-
0 0 0 4px
|
|
69
|
-
0 0 0 8px
|
|
68
|
+
0 0 0 4px govuk-functional-colour(focus),
|
|
69
|
+
0 0 0 8px govuk-functional-colour(focus-text);
|
|
70
70
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
padding: govuk-spacing(3);
|
|
5
5
|
margin-top: govuk-spacing(6);
|
|
6
6
|
margin-bottom: govuk-spacing(6);
|
|
7
|
-
background-color:
|
|
7
|
+
background-color: govuk-functional-colour(brand);
|
|
8
8
|
color: govuk-colour("white");
|
|
9
9
|
|
|
10
10
|
@include govuk-media-query(tablet) {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
a:active {
|
|
22
|
-
color:
|
|
22
|
+
color: govuk-functional-colour(link-active);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.page-expiry--expired {
|
|
27
27
|
padding: govuk-spacing(3);
|
|
28
28
|
margin-top: govuk-spacing(9);
|
|
29
|
-
border: govuk-spacing(1) solid
|
|
29
|
+
border: govuk-spacing(1) solid govuk-functional-colour(error);
|
|
30
30
|
background-color: govuk-colour("white");
|
|
31
|
-
color:
|
|
31
|
+
color: govuk-functional-colour(text);
|
|
32
32
|
}
|
|
@@ -42,7 +42,7 @@ $input-size: 40px;
|
|
|
42
42
|
text-indent: -5000px;
|
|
43
43
|
overflow: hidden;
|
|
44
44
|
&:focus {
|
|
45
|
-
outline: $govuk-focus-width solid
|
|
45
|
+
outline: $govuk-focus-width solid govuk-functional-colour(focus);
|
|
46
46
|
outline-offset: 0;
|
|
47
47
|
box-shadow: inset 0 0 0 $govuk-border-width-form-element * 2 govuk-colour("black");
|
|
48
48
|
}
|
|
@@ -87,12 +87,12 @@ $input-size: 40px;
|
|
|
87
87
|
}
|
|
88
88
|
.search-results__inner {
|
|
89
89
|
background: govuk-colour("white");
|
|
90
|
-
border-top: 1px solid govuk-colour("
|
|
90
|
+
border-top: 1px solid govuk-colour("black", $variant: "tint-80");
|
|
91
91
|
max-width: 40rem;
|
|
92
92
|
padding: 15px;
|
|
93
93
|
@include govuk-media-query(tablet) {
|
|
94
94
|
padding: 15px 200px 50px 40px;
|
|
95
|
-
border: 1px solid govuk-colour("
|
|
95
|
+
border: 1px solid govuk-colour("black", $variant: "tint-80");
|
|
96
96
|
&::after {
|
|
97
97
|
content: '';
|
|
98
98
|
position: absolute;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
margin: govuk-spacing(3);
|
|
6
6
|
max-width: 40em;
|
|
7
7
|
|
|
8
|
-
color:
|
|
8
|
+
color: govuk-functional-colour(text);
|
|
9
9
|
|
|
10
10
|
@include govuk-media-query(tablet) {
|
|
11
11
|
margin: 0 govuk-spacing(6) govuk-spacing(6);
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
|
|
99
99
|
blockquote {
|
|
100
100
|
@include govuk-font($size: 19);
|
|
101
|
-
background: govuk-colour("
|
|
101
|
+
background: govuk-colour("black", $variant: "tint-95");
|
|
102
102
|
padding: govuk-spacing(3);
|
|
103
103
|
margin: govuk-spacing(3);
|
|
104
|
-
border-left: govuk-spacing(2) solid govuk-colour("
|
|
104
|
+
border-left: govuk-spacing(2) solid govuk-colour("black", $variant: "tint-80");
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// http://code.iamkate.com/html-and-css/fixing-browsers-broken-monospace-font-handling/
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
|
|
126
126
|
&:focus {
|
|
127
127
|
padding: $padding - ($govuk-focus-width - $border-width);
|
|
128
|
-
border: $govuk-focus-width solid
|
|
129
|
-
outline: $govuk-focus-width solid
|
|
128
|
+
border: $govuk-focus-width solid govuk-functional-colour(focus-text);
|
|
129
|
+
outline: $govuk-focus-width solid govuk-functional-colour(focus);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
h1, h2, h3, h4, h5, h6 {
|
|
170
170
|
code {
|
|
171
171
|
font-size: inherit;
|
|
172
|
-
color:
|
|
172
|
+
color: govuk-functional-colour(text);
|
|
173
173
|
background: none;
|
|
174
174
|
padding: 0;
|
|
175
175
|
}
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
|
|
205
205
|
|
|
206
206
|
background-color: transparent;
|
|
207
|
-
border-bottom: 1px solid
|
|
207
|
+
border-bottom: 1px solid govuk-functional-colour(border);
|
|
208
208
|
border-width: 0 0 1px 0;
|
|
209
209
|
|
|
210
210
|
@include govuk-font($size: 16);
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
@include govuk-media-query(tablet) {
|
|
32
32
|
&.toc-link--in-view {
|
|
33
|
-
color:
|
|
34
|
-
border-left-color:
|
|
35
|
-
background-color: govuk-colour("
|
|
33
|
+
color: govuk-functional-colour(link-hover);
|
|
34
|
+
border-left-color: govuk-functional-colour(link-hover);
|
|
35
|
+
background-color: govuk-colour("black", $variant: "tint-95");
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -131,15 +131,15 @@
|
|
|
131
131
|
width: 100%;
|
|
132
132
|
padding: govuk-spacing(3) govuk-spacing(3) 10px;
|
|
133
133
|
|
|
134
|
-
background: govuk-colour("
|
|
134
|
+
background: govuk-colour("black", $variant: "tint-95");
|
|
135
135
|
@supports(backdrop-filter: blur(2px)) {
|
|
136
|
-
background: transparentize(govuk-colour("
|
|
136
|
+
background: transparentize(govuk-colour("black", $variant: "tint-95"), 0.05);
|
|
137
137
|
backdrop-filter: blur(2px);
|
|
138
138
|
}
|
|
139
139
|
border: 0;
|
|
140
|
-
border-bottom: 1px solid govuk-colour("
|
|
140
|
+
border-bottom: 1px solid govuk-colour("black", $variant: "tint-80");
|
|
141
141
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
|
142
|
-
color:
|
|
142
|
+
color: govuk-functional-colour(text);
|
|
143
143
|
text-decoration: none;
|
|
144
144
|
text-align: left;
|
|
145
145
|
|
|
@@ -189,16 +189,16 @@
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
&:focus {
|
|
192
|
-
background-color:
|
|
192
|
+
background-color: govuk-functional-colour(focus);
|
|
193
193
|
outline: $govuk-focus-width solid transparent;
|
|
194
|
-
box-shadow: inset 0 0 0 1px
|
|
194
|
+
box-shadow: inset 0 0 0 1px govuk-functional-colour(focus);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
&:focus:not(:active):not(:hover) {
|
|
198
|
-
border-color:
|
|
199
|
-
color:
|
|
200
|
-
background-color:
|
|
201
|
-
box-shadow: 0 2px 0
|
|
198
|
+
border-color: govuk-functional-colour(focus);
|
|
199
|
+
color: govuk-functional-colour(focus-text);
|
|
200
|
+
background-color: govuk-functional-colour(focus);
|
|
201
|
+
box-shadow: 0 2px 0 govuk-functional-colour(focus-text);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
// A Base16 palette
|
|
2
2
|
// https://github.com/chriskempson/base16
|
|
3
3
|
|
|
4
|
-
$code-00: scale-color(govuk-colour("
|
|
4
|
+
$code-00: scale-color(govuk-colour("black", $variant: "tint-95"), $lightness:50%); /* Default Background */
|
|
5
5
|
$code-01: #f5f5f5; /* Lighter Background (Unused) */
|
|
6
6
|
$code-02: #bfc1c3; /* Selection Background */
|
|
7
|
-
|
|
7
|
+
// we should be using govuk-functional-colour but it outputs a variable, but darken only takes numbers
|
|
8
|
+
// instead, we use the colour returned by govuk-functional-colour(secondary-text)
|
|
9
|
+
$code-03: darken( govuk-colour("black", $variant: "tint-95"), 2%);; /* Comments, Invisibles, Line Highlighting */
|
|
8
10
|
$code-04: #e8e8e8; /* Dark Foreground (Unused) */
|
|
9
|
-
$code-05:
|
|
10
|
-
$code-06:
|
|
11
|
-
$code-07:
|
|
11
|
+
$code-05: govuk-functional-colour(text); /* Default Foreground, Caret, Delimiters, Operators */
|
|
12
|
+
$code-06: govuk-functional-colour(body-background); /* Light Foreground (Unused) */
|
|
13
|
+
$code-07: govuk-functional-colour(body-background); /* Light Background (Unused) */
|
|
12
14
|
|
|
13
15
|
$code-08: #d4351c; /* Variables, XML Tags, Markup Link Text, Markup Lists */
|
|
14
16
|
$code-09: #0E7754; /* Integers, Boolean, Constants, XML Attributes, Markup Link Url */
|
|
15
17
|
$code-0A: #4C4077; /* Classes, Markup Bold, Search Text Background */
|
|
16
|
-
$code-0B:
|
|
17
|
-
$code-0C:
|
|
18
|
+
$code-0B: govuk-functional-colour(brand); /* Strings, Inherited Class, Markup Code */
|
|
19
|
+
$code-0C: govuk-functional-colour(brand); /* Support, Regular Expressions, Escape Characters, Markup Quotes */
|
|
18
20
|
$code-0D: #4C4077; /* Functions, Methods, Attribute IDs, Headings */
|
|
19
21
|
$code-0E: #a71d5d; /* Keywords, Storage, Selector, Markup Italic */
|
|
20
22
|
$code-0F: #C92424; /* Deprecated, Opening/Closing Embedded Language Tags e.g. <?php ?> (Unused) */
|
|
@@ -49,7 +49,7 @@ module GovukTechDocs
|
|
|
49
49
|
|
|
50
50
|
def page_image
|
|
51
51
|
if config[:tech_docs][:show_govuk_logo]
|
|
52
|
-
"#{host}/assets/govuk/assets/
|
|
52
|
+
"#{host}/assets/govuk/assets/images/govuk-opengraph-image.png"
|
|
53
53
|
else
|
|
54
54
|
"#{host}/images/opengraph-image.png"
|
|
55
55
|
end
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<div class="govuk-header__container govuk-header__container--full-width">
|
|
3
3
|
<div class="govuk-header__logo">
|
|
4
4
|
<% if config[:tech_docs][:service_link] %>
|
|
5
|
-
<a href="<%= get_path_to_resource config, config[:tech_docs][:service_link], current_page %>" class="govuk-header__link govuk-
|
|
5
|
+
<a href="<%= get_path_to_resource config, config[:tech_docs][:service_link], current_page %>" class="govuk-header__link govuk-header__homepage-link">
|
|
6
6
|
<% else %>
|
|
7
|
-
<span class="govuk-header__link govuk-
|
|
7
|
+
<span class="govuk-header__link govuk-header__homepage-link">
|
|
8
8
|
<% end %>
|
|
9
9
|
<% if config[:tech_docs][:show_govuk_logo] %>
|
|
10
10
|
<svg
|
|
@@ -45,19 +45,5 @@
|
|
|
45
45
|
<strong class="govuk-tag"><%= config[:tech_docs][:phase] %></strong>
|
|
46
46
|
<% end %>
|
|
47
47
|
</div>
|
|
48
|
-
<% if config[:tech_docs][:header_links] %>
|
|
49
|
-
<div class="govuk-header__content">
|
|
50
|
-
<nav class="govuk-header__navigation govuk-header__navigation--end" aria-label="Menu">
|
|
51
|
-
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" hidden>Menu</button>
|
|
52
|
-
<ul id="navigation" class="govuk-header__navigation-list">
|
|
53
|
-
<% config[:tech_docs][:header_links].each do |title, path| %>
|
|
54
|
-
<li class="govuk-header__navigation-item<% if active_page(path) %> govuk-header__navigation-item--active<% end %>">
|
|
55
|
-
<a class="govuk-header__link" href="<%= get_path_to_resource config, path, current_page %>"<% if active_page(path) %> aria-current="page"<% end %>><%= title %></a>
|
|
56
|
-
</li>
|
|
57
|
-
<% end %>
|
|
58
|
-
</ul>
|
|
59
|
-
</nav>
|
|
60
|
-
</div>
|
|
61
|
-
<% end %>
|
|
62
48
|
</div>
|
|
63
49
|
</header>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<% if config[:tech_docs][:header_links] %>
|
|
2
|
+
<div class="govuk-service-navigation app-pane__navigation"
|
|
3
|
+
data-module="govuk-service-navigation">
|
|
4
|
+
<div class="govuk-width-container">
|
|
5
|
+
<div class="govuk-service-navigation__container">
|
|
6
|
+
<nav aria-label="Menu" class="govuk-service-navigation__wrapper">
|
|
7
|
+
<button type="button" class="govuk-service-navigation__toggle govuk-js-service-navigation-toggle" aria-controls="navigation" hidden aria-hidden="true">
|
|
8
|
+
Menu
|
|
9
|
+
</button>
|
|
10
|
+
<ul class="govuk-service-navigation__list" id="navigation">
|
|
11
|
+
<% config[:tech_docs][:header_links].each do |title, path| %>
|
|
12
|
+
<li class="govuk-service-navigation__item <% if active_page(path) %> govuk-service-navigation__item--active<% end %>">
|
|
13
|
+
<a class="govuk-service-navigation__link" href="<%= get_path_to_resource config, path, current_page %>"<% if active_page(path) %> aria-current="page"<% end %>>
|
|
14
|
+
<% if active_page(path) %>
|
|
15
|
+
<strong class="govuk-service-navigation__active-fallback"><%= title %></strong>
|
|
16
|
+
<% else %>
|
|
17
|
+
<%= title %>
|
|
18
|
+
<% end %>
|
|
19
|
+
</a>
|
|
20
|
+
</li>
|
|
21
|
+
<% end %>
|
|
22
|
+
</ul>
|
|
23
|
+
</nav>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<% end %>
|
data/lib/source/layouts/core.erb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
|
-
<html lang="en" class="govuk-template
|
|
2
|
+
<html lang="en" class="govuk-template no-js">
|
|
3
3
|
<head>
|
|
4
4
|
<%= partial 'layouts/analytics_ga4_gtag' %>
|
|
5
5
|
<%= partial 'layouts/analytics_ga4_gtm' %>
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
'/'
|
|
28
28
|
end
|
|
29
29
|
%>
|
|
30
|
-
<link rel="icon" sizes="48x48" href="<%= path_prefix %>assets/govuk/assets/
|
|
31
|
-
<link rel="icon" sizes="any" href="<%= path_prefix %>assets/govuk/assets/
|
|
32
|
-
<link rel="mask-icon" href="<%= path_prefix %>assets/govuk/assets/
|
|
33
|
-
<link rel="apple-touch-icon" href="<%= path_prefix %>assets/govuk/assets/
|
|
34
|
-
<link rel="manifest" href="<%= path_prefix %>assets/govuk/assets/
|
|
30
|
+
<link rel="icon" sizes="48x48" href="<%= path_prefix %>assets/govuk/assets/images/favicon.ico">
|
|
31
|
+
<link rel="icon" sizes="any" href="<%= path_prefix %>assets/govuk/assets/images/favicon.svg" type="image/svg+xml">
|
|
32
|
+
<link rel="mask-icon" href="<%= path_prefix %>assets/govuk/assets/images/govuk-icon-mask.svg" color="#0b0c0c">
|
|
33
|
+
<link rel="apple-touch-icon" href="<%= path_prefix %>assets/govuk/assets/images/govuk-icon-180.png">
|
|
34
|
+
<link rel="manifest" href="<%= path_prefix %>assets/govuk/assets/manifest.json">
|
|
35
35
|
<% else %>
|
|
36
36
|
<link rel="icon" sizes="48x48" href="/images/favicon.ico">
|
|
37
37
|
<link rel="icon" sizes="any" href="/images/favicon.svg" type="image/svg+xml">
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
<%= partial 'layouts/cookie_banner' %>
|
|
56
56
|
<div class="app-pane__header toc-open-disabled">
|
|
57
57
|
<a href="#content" class="govuk-skip-link" data-module="govuk-skip-link">Skip to main content</a>
|
|
58
|
-
|
|
59
58
|
<%= partial 'layouts/header' %>
|
|
59
|
+
<%= partial 'layouts/service_navigation' %>
|
|
60
60
|
</div>
|
|
61
61
|
|
|
62
62
|
<% if content_for? :sidebar %>
|