govuk_publishing_components 0.3.1 → 0.4.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/component_guide.scss +14 -2
- data/app/views/govuk_publishing_components/component_guide/component_doc/_call.html.erb +1 -1
- data/app/views/layouts/govuk_publishing_components/application.html.erb +3 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dbabca1a1eeb881b9e7ba94ee077902d90c24fc
|
4
|
+
data.tar.gz: 6a2756fa3cc6fd228a5a055a36120fb644c6dc19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd46aa23b8bffd47696c46871e2a800ff254cec274665590d28f60b20a9b8ce16895d9aabfecfd6f61891340c2357099c520aa898987bf6f56be1192f214b5df
|
7
|
+
data.tar.gz: 22608ecd27cf1fcb9feccf699c1a543f0318419d2bfaf80fe5dd284a9c12402caea415eb3a83096444fcd842b2260cd37f26d01b82dc46d33cec13d8a71d8e16
|
@@ -64,22 +64,34 @@ $border-color: #ccc;
|
|
64
64
|
|
65
65
|
.code-block {
|
66
66
|
margin: 30px 0;
|
67
|
-
padding: $gutter;
|
68
67
|
@extend %outdent-to-full-width;
|
69
|
-
overflow: scroll;
|
70
68
|
max-height: 300px;
|
71
69
|
|
72
70
|
// Match Prism styles to avoid a flash as it renders
|
73
71
|
background: $prism-background;
|
74
72
|
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
73
|
+
font-size: 16px;
|
74
|
+
line-height: 1.5;
|
75
75
|
|
76
76
|
&[contenteditable]:hover {
|
77
77
|
cursor: text;
|
78
78
|
}
|
79
79
|
|
80
|
+
&[contenteditable]:focus {
|
81
|
+
outline: 3px solid $focus-colour;
|
82
|
+
}
|
83
|
+
|
84
|
+
pre[class*=language-] {
|
85
|
+
padding: $gutter;
|
86
|
+
}
|
87
|
+
|
80
88
|
code {
|
81
89
|
display: block;
|
82
90
|
}
|
91
|
+
|
92
|
+
.token.operator {
|
93
|
+
background: none;
|
94
|
+
}
|
83
95
|
}
|
84
96
|
|
85
97
|
.component-guide-preview {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<div class="component-call code-block" contenteditable>
|
2
|
-
<
|
2
|
+
<pre class="language-ruby"><code><%= render 'components/<%= component_doc.id %>'<% if fixture.data? %>, <%= fixture.pretty_data %><% end %> %></code></pre>
|
3
3
|
</div>
|
@@ -24,5 +24,8 @@
|
|
24
24
|
<%= render 'govuk_component/breadcrumbs', breadcrumbs: @guide_breadcrumbs %>
|
25
25
|
<%= yield %>
|
26
26
|
</main>
|
27
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/themes/prism.min.css" integrity="sha256-vtR0hSWRc3Tb26iuN2oZHt3KRUomwTufNIf5/4oeCyg=" crossorigin="anonymous" />
|
28
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/prism.min.js" integrity="sha256-Zb9yKJ/cfs+jG/zIOFL0QEuXr2CDKF7FR5YBJY3No+c=" crossorigin="anonymous"></script>
|
29
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/components/prism-ruby.min.js" integrity="sha256-e0SYaLys07GcwuYiWJ0aewa3AOR3hHFY1mNTppYPb34=" crossorigin="anonymous"></script>
|
27
30
|
</body>
|
28
31
|
</html>
|
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: 0.
|
4
|
+
version: 0.4.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: 2017-
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|