govuk_publishing_components 9.5.0 → 9.5.1
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/_step-by-step-nav-related.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +11 -1
- data/app/views/govuk_publishing_components/components/_title.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/docs/title.yml +8 -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: 5554f431d5b1d929b511ee4cb9f2ed30d990062a39861d0556a5212c13a86597
|
|
4
|
+
data.tar.gz: 243b8ef4f539bb630c088ddd4a55d28588a5fff283bc91258ffc10cffe4d0a1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 863f52e9ed306056b3f03ced2083aefa5bea0b5ac2e3b4c7c52bba68c3b94c4057ac915f23ddd3034a9ace4cf7daba0396124a1724d34add81f59addf75f1fb1
|
|
7
|
+
data.tar.gz: 57836f091c4053a419d9a4e5c9ec945f35d71f2f005e62b92b37e8ea8e07e2c426a5b46e12bd9b295590cd0f01d547a32ea940c8807056f885c78c0a64c3e6d8
|
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
@include responsive-top-margin;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// margins would ideally be handled by a general model for all components
|
|
6
|
+
// but we don't have one yet, so this is in anticipation of that
|
|
7
|
+
// suggested scale is as follows, not fully implemented
|
|
8
|
+
// no margin = 0
|
|
9
|
+
// $gutter = 4
|
|
10
|
+
// responsive-bottom-margin = 5
|
|
11
|
+
.gem-c-title--margin-bottom-4 {
|
|
12
|
+
margin-bottom: $gutter;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.gem-c-title--margin-bottom-5 {
|
|
6
16
|
@include responsive-bottom-margin;
|
|
7
17
|
}
|
|
8
18
|
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
context_data = context.is_a?(Hash) ? context[:data] : false
|
|
7
7
|
|
|
8
8
|
inverse ||= false
|
|
9
|
-
margin_bottom ||=
|
|
10
|
-
margin_bottom_class = "gem-c-title--bottom
|
|
9
|
+
margin_bottom ||= 5
|
|
10
|
+
margin_bottom_class = "gem-c-title--margin-bottom-#{margin_bottom}" if [4, 5].include? margin_bottom
|
|
11
11
|
%>
|
|
12
12
|
<div class="gem-c-title
|
|
13
13
|
<% if inverse %>gem-c-title--inverse<% end %>
|
|
@@ -41,6 +41,14 @@ examples:
|
|
|
41
41
|
context: Publication
|
|
42
42
|
title: My page title which is often really long and verbose and has lots of extra words it doesn't need
|
|
43
43
|
average_title_length: long
|
|
44
|
+
with_margin:
|
|
45
|
+
description: |
|
|
46
|
+
Configurable bottom margin for the component. This has been built in anticipation of being compatible with a theoretical future model for component margins.
|
|
47
|
+
|
|
48
|
+
Accepted parameters for this option are 0 (no margin), 4 (gives a margin of gutter) and 5 ([responsive-margin](https://github.com/alphagov/govuk_publishing_components/blob/a325cbebf93def14a4f8d55e86426ea16b15f2ee/app/assets/stylesheets/govuk_publishing_components/components/mixins/_margins.scss#L1), which is also the default). See the Sass file for more detail.
|
|
49
|
+
data:
|
|
50
|
+
title: 'Margin bottom of 30px'
|
|
51
|
+
margin_bottom: 4
|
|
44
52
|
in_html_publication:
|
|
45
53
|
description: Page titles are used in HTML Publications ([see example](https://www.gov.uk/government/publications/fees-for-civil-and-family-courts/court-fees-for-the-high-court-county-court-and-family-court))
|
|
46
54
|
data:
|
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: 9.5.
|
|
4
|
+
version: 9.5.1
|
|
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-07-
|
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govuk_app_config
|