govuk_publishing_components 5.5.4 → 5.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c5cff00abc4c09ed5cbd8a6ce373b486ba3a1c86d507f187be33ba595460c7e
4
- data.tar.gz: 7d814110d90db71eaa3e963f4d01686617c56182eb17dafaa8fb9e9b4da5dceb
3
+ metadata.gz: 6908bc4568f643746fd848c5a72df898f3e0950853f060eeb19b369ce030d0fd
4
+ data.tar.gz: 94a4794035fab7ffdf245f0f07a9da2e4f792fb105df8cdb29503b8f1f300818
5
5
  SHA512:
6
- metadata.gz: 67a6895a50bd0c8952f339a29be1c8cae89a6fce230ab13edebc332b9aa967748dad5b9709bf6079220718d6e26f6169e1ea61ba17afa335a9cc9e07c5d42001
7
- data.tar.gz: d7a259175c46e7aa9a3e60653a966916178eeb2de94f6c75adeab5baa6e436474c841bd8fdda4ef8cd92e67430ecd331e144ecba707e0975fea3d5197737080f
6
+ metadata.gz: 075ace54ef8d3cd1e0e7d5d2d587472fb7d33c75e1062d636fdeb4fe3b92db65db13f4c7cb1ee07657e4bde41a15aecbe2390ef00e31ec5c8ea978bc2ce3d95f
7
+ data.tar.gz: c243a4eae1a74d277bd447e7b274d45bae09f75012877fa01c99486ffcfb8fd03ceebdd0b0f74f35215a85c5fa02ce27e6fad1a00a373d6ac94537f2321682f2
@@ -20,3 +20,20 @@
20
20
  list-style: none;
21
21
  padding-right: $gutter-two-thirds;
22
22
  }
23
+
24
+ .gem-c-document-list--bottom-margin {
25
+ margin-bottom: $gutter-half;
26
+
27
+ @include media(tablet) {
28
+ margin-bottom: $gutter * 1.5;
29
+ }
30
+ }
31
+
32
+ .gem-c-document-list--top-margin {
33
+ margin-top: $gutter-half;
34
+
35
+ @include media(tablet) {
36
+ margin-top: $gutter * 1.5;
37
+ }
38
+ }
39
+
@@ -1,8 +1,10 @@
1
1
  <%
2
2
  items ||= []
3
+ margin_top_class = " gem-c-document-list--top-margin" if local_assigns[:margin_top]
4
+ margin_bottom_class = " gem-c-document-list--bottom-margin" if local_assigns[:margin_bottom]
3
5
  %>
4
6
  <% if items.any? %>
5
- <ol class="gem-c-document-list">
7
+ <ol class="gem-c-document-list<%= margin_bottom_class %><%= margin_top_class %>">
6
8
  <% items.each do |item| %>
7
9
  <li class="gem-c-document-list__item">
8
10
  <h3 class="gem-c-document-list__item-title">
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = '5.5.4'.freeze
2
+ VERSION = '5.5.5'.freeze
3
3
  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: 5.5.4
4
+ version: 5.5.5
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-13 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails