govuk_publishing_components 11.1.0 → 11.2.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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +37 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +8 -0
- data/app/assets/stylesheets/govuk_publishing_components/components/_taxonomy-navigation.scss +8 -0
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +7 -3
- data/app/views/govuk_publishing_components/components/_taxonomy_navigation.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/docs/machine_readable_metadata.yml +1 -0
- data/app/views/govuk_publishing_components/components/docs/metadata.yml +0 -1
- data/app/views/govuk_publishing_components/components/related_navigation/_section.html.erb +1 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8c9d9ec6c6487bdef155ae590798d937c6a5107cae8844c82b734d228401519
|
4
|
+
data.tar.gz: 2652dac3fae86a01a886daea03ec694ed975290b5ccd2629a34b99e020a05720
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2b354947e964e18326d7077b0ff9bae41db3fd5aa5b1775abd115a30dd1514c04ef1dc7e30d255f7ebf64b3ce059477ea796c60bc1b1f536d7ec0780564fd72
|
7
|
+
data.tar.gz: 4c3d8b859c0d3de97bd21c82754e2538c98721d03a91bf3f8ba16a2ff28fa528c2ca3dae21ba5f7aeb56e772d33e3372137cdd8fb6d6cfa97d9bb40426c70863
|
@@ -1,6 +1,10 @@
|
|
1
1
|
@import "helpers/govuk-frontend-settings";
|
2
2
|
@import "govuk-frontend/components/header/header";
|
3
3
|
|
4
|
+
.gem-c-layout-header--production .govuk-header__container {
|
5
|
+
border-bottom-color: govuk-colour("bright-red");
|
6
|
+
}
|
7
|
+
|
4
8
|
.gem-c-layout-header--integration .govuk-header__container,
|
5
9
|
.gem-c-layout-header--staging .govuk-header__container {
|
6
10
|
border-bottom-color: govuk-colour("yellow");
|
@@ -10,3 +14,36 @@
|
|
10
14
|
.gem-c-layout-header--test .govuk-header__container {
|
11
15
|
border-bottom-color: govuk-colour("grey-1");
|
12
16
|
}
|
17
|
+
|
18
|
+
.govuk-header__logo {
|
19
|
+
white-space: nowrap;
|
20
|
+
}
|
21
|
+
|
22
|
+
.govuk-header__product-name {
|
23
|
+
display: none;
|
24
|
+
|
25
|
+
@include govuk-media-query($from: tablet) {
|
26
|
+
display: inline-block;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.gem-c-environment-tag {
|
31
|
+
padding: 2px 5px 0;
|
32
|
+
margin-left: 3px;
|
33
|
+
vertical-align: middle;
|
34
|
+
@include govuk-font($size: 14, $weight: "bold");
|
35
|
+
}
|
36
|
+
|
37
|
+
.gem-c-environment-tag--production {
|
38
|
+
background-color: govuk-colour("bright-red");
|
39
|
+
}
|
40
|
+
|
41
|
+
.gem-c-environment-tag--development {
|
42
|
+
background-color: govuk-colour("grey-1");
|
43
|
+
}
|
44
|
+
|
45
|
+
.gem-c-environment-tag--staging,
|
46
|
+
.gem-c-environment-tag--integration {
|
47
|
+
background-color: govuk-colour("yellow");
|
48
|
+
color: govuk-colour("black");
|
49
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%
|
2
|
-
product_name ||=
|
2
|
+
product_name ||= "Publishing"
|
3
3
|
navigation_items ||= []
|
4
4
|
%>
|
5
5
|
<header class="gem-c-layout-header govuk-header gem-c-layout-header--<%= environment %>" role="banner" data-module="header">
|
@@ -18,12 +18,16 @@
|
|
18
18
|
GOV.UK
|
19
19
|
</span>
|
20
20
|
</span>
|
21
|
-
|
21
|
+
|
22
22
|
<span class="govuk-header__product-name">
|
23
23
|
<%= product_name %>
|
24
24
|
</span>
|
25
|
-
|
25
|
+
|
26
|
+
<span class="gem-c-environment-tag govuk-tag gem-c-environment-tag--<%= environment %>">
|
27
|
+
<%= environment %>
|
28
|
+
</span>
|
26
29
|
</a>
|
30
|
+
|
27
31
|
</div><div class="govuk-header__content">
|
28
32
|
|
29
33
|
<% if navigation_items.any? %>
|
@@ -92,6 +92,7 @@
|
|
92
92
|
<% if hidden_links.any? %>
|
93
93
|
<li class="gem-c-taxonomy-navigation__link toggle-wrap">
|
94
94
|
<a href="#"
|
95
|
+
class="gem-c-taxonomy-navigation__toggle"
|
95
96
|
data-controls="toggle_<%= section_name %>"
|
96
97
|
data-expanded="false"
|
97
98
|
data-toggled-text="<%= t("govuk_component.metadata.toggle_less", default: "Show fewer") %>">
|
@@ -44,6 +44,7 @@
|
|
44
44
|
<% if links.length > section_link_limit %>
|
45
45
|
<li class="gem-c-related-navigation__link toggle-wrap">
|
46
46
|
<a href="#"
|
47
|
+
class="gem-c-related-navigation__toggle"
|
47
48
|
data-controls="toggle_<%= section_title %>"
|
48
49
|
data-expanded="false"
|
49
50
|
data-toggled-text="<%= t("govuk_component.metadata.toggle_less", default: "Show fewer") %>">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|