govuk_publishing_components 6.1.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +5 -1
- data/app/views/govuk_publishing_components/components/_inverse_header.html.erb +5 -4
- data/app/views/govuk_publishing_components/components/docs/inverse_header.yml +1 -0
- data/lib/govuk_publishing_components/presenters/navigation_type.rb +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: 34285d5cb5c081751784ac345982132dc747756854e258428010f277a9c01fa5
|
4
|
+
data.tar.gz: d5c1f26c16b66ee943513822e4ba1dae26f820ae86790ab4122f88c16b4da8b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d17167dd84b0f8ce4a4cdcb2280dfab376a6e30b50b15606e8ba93b61b4f1386fed7a4ab0d437c3c17e2c2efabced7ec5bf20e05455311d26f20f951118a3413
|
7
|
+
data.tar.gz: 0cedea047da2ee69a35df7cbd546c50f2fde34c776d668fb54beb3670c37398facb4bd5041315a0a477a6e973f7a402e04b038dddb89dbaa4685e1e9355a6e05
|
@@ -3,7 +3,7 @@
|
|
3
3
|
background-color: $govuk-blue;
|
4
4
|
color: $white;
|
5
5
|
margin-bottom: $gutter;
|
6
|
-
padding:
|
6
|
+
padding: 0 $gutter $gutter;
|
7
7
|
box-sizing: border-box;
|
8
8
|
}
|
9
9
|
|
@@ -16,3 +16,7 @@
|
|
16
16
|
padding-right: 0;
|
17
17
|
padding-bottom: $gutter-half;
|
18
18
|
}
|
19
|
+
|
20
|
+
.gem-c-inverse-header--padding-top {
|
21
|
+
padding-top: $gutter-half;
|
22
|
+
}
|
@@ -1,10 +1,11 @@
|
|
1
1
|
<%
|
2
|
-
|
3
|
-
|
2
|
+
css_classes = []
|
3
|
+
css_classes << " gem-c-inverse-header--full-width" if local_assigns[:full_width]
|
4
|
+
css_classes << " gem-c-inverse-header--padding-top" unless local_assigns[:padding_top].eql?(false)
|
4
5
|
%>
|
5
6
|
<% block = yield %>
|
6
7
|
<% unless block.empty? %>
|
7
|
-
<header class="gem-c-inverse-header <%=
|
8
|
+
<header class="gem-c-inverse-header <%= css_classes.join(' ') %> ">
|
8
9
|
<%= block %>
|
9
10
|
</header>
|
10
|
-
<% end %>
|
11
|
+
<% end %>
|
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: 6.
|
4
|
+
version: 6.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-03-
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|