govuk_publishing_components 21.38.4 → 21.38.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/govuk_publishing_components/component_guide_controller.rb +1 -1
- data/app/views/govuk_publishing_components/component_guide/_application_stylesheet.html.erb +4 -0
- data/app/views/govuk_publishing_components/component_guide/example.html.erb +6 -0
- data/app/views/govuk_publishing_components/component_guide/preview.html.erb +6 -0
- data/app/views/govuk_publishing_components/component_guide/show.html.erb +6 -0
- data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a7edfd107e1b914f95537b4f3ecf8cceefaae7900ff94d81296bdc60866c5ed
|
4
|
+
data.tar.gz: 736a87969e9c91c34d4f2abe47b9b9cf4e0f859724c9f839122376a62bedc1cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 883f64ccd919032503da65cb84b58f72d9f31e6e8a7f8f9cd485383690fd5b9f4fddd6bdb2557431c2bcc7334e65dd00713810f7d8002f02fa793289ba22fc29
|
7
|
+
data.tar.gz: e335ecfbbee31121c58a070e173db9c978132d8522f464c660d3648eb77ec90a16efd19565bdd932df06dd2d626d3a9e0e9643f7814c8f5b0c520adbb16872a6
|
@@ -58,7 +58,7 @@ module GovukPublishingComponents
|
|
58
58
|
components = components.flatten.uniq.sort
|
59
59
|
|
60
60
|
components.map { |component|
|
61
|
-
"@import 'govuk_publishing_components/components/#{print_path}
|
61
|
+
"@import 'govuk_publishing_components/components/#{print_path}#{component.gsub('_', '-')}';" if component_has_sass_file(component.gsub("_", "-"), print_styles)
|
62
62
|
}.compact.uniq.sort.join("\n").squeeze("\n").prepend(additional_files)
|
63
63
|
end
|
64
64
|
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_stylesheet}" %>
|
2
|
+
<% if GovukPublishingComponents::Config.application_print_stylesheet %>
|
3
|
+
<%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_print_stylesheet}", media: "print" %>
|
4
|
+
<% end %>
|
@@ -1,4 +1,10 @@
|
|
1
1
|
<% content_for :title, "#{@component_example.name} example - #{@component_doc.name} component" %>
|
2
|
+
<% content_for :application_stylesheet do %>
|
3
|
+
<% if @component_doc.source == "application" %>
|
4
|
+
<%= render 'application_stylesheet' %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
|
2
8
|
<%= render 'govuk_publishing_components/components/title', title: @component_example.name, context: "#{@component_doc.name} example", margin_top: 0 %>
|
3
9
|
|
4
10
|
<div class="component-show">
|
@@ -1,3 +1,9 @@
|
|
1
|
+
<% content_for :application_stylesheet do %>
|
2
|
+
<% if @component_doc.source == "application" %>
|
3
|
+
<%= render 'application_stylesheet' %>
|
4
|
+
<% end %>
|
5
|
+
<% end %>
|
6
|
+
|
1
7
|
<% @component_examples.each do |example| %>
|
2
8
|
<div class="component-guide-preview-page">
|
3
9
|
<% if @component_examples.length > 1 %>
|
@@ -1,4 +1,10 @@
|
|
1
1
|
<% content_for :title, "#{@component_doc.name} component" %>
|
2
|
+
<% content_for :application_stylesheet do %>
|
3
|
+
<% if @component_doc.source == "application" %>
|
4
|
+
<%= render 'application_stylesheet' %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
|
2
8
|
<%= render 'govuk_publishing_components/components/title', title: @component_doc.name, context: "Component", margin_top: 0; %>
|
3
9
|
|
4
10
|
<div class="component-show">
|
@@ -16,6 +16,7 @@
|
|
16
16
|
<%= csrf_meta_tags %>
|
17
17
|
<%= favicon_link_tag "govuk_publishing_components/favicon-production.png" %>
|
18
18
|
|
19
|
+
<%= yield :application_stylesheet %>
|
19
20
|
<%= stylesheet_link_tag "component_guide/application", media: "screen" %>
|
20
21
|
<%= stylesheet_link_tag "component_guide/print", media: "print" %>
|
21
22
|
|
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: 21.38.
|
4
|
+
version: 21.38.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: 2020-04-
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gds-api-adapters
|
@@ -572,6 +572,7 @@ files:
|
|
572
572
|
- app/models/govuk_publishing_components/component_docs.rb
|
573
573
|
- app/models/govuk_publishing_components/component_example.rb
|
574
574
|
- app/models/govuk_publishing_components/shared_accessibility_criteria.rb
|
575
|
+
- app/views/govuk_publishing_components/component_guide/_application_stylesheet.html.erb
|
575
576
|
- app/views/govuk_publishing_components/component_guide/component_doc/_call.html.erb
|
576
577
|
- app/views/govuk_publishing_components/component_guide/component_doc/_component.html.erb
|
577
578
|
- app/views/govuk_publishing_components/component_guide/component_doc/_component_output.html.erb
|