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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6908bc4568f643746fd848c5a72df898f3e0950853f060eeb19b369ce030d0fd
|
4
|
+
data.tar.gz: 94a4794035fab7ffdf245f0f07a9da2e4f792fb105df8cdb29503b8f1f300818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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">
|
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
|
+
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-
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|