swedbank-pay-design-guide-jekyll-theme 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/code-example.html +20 -0
- data/_sass/code-view.scss +45 -1
- data/lib/gem_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: 3c9edb790d2b95aa747c43b475ca512883458285565f1c502a460130b73da958
|
4
|
+
data.tar.gz: 0cbe8e2ea1640b9d35589c9a321c03ece463ca30d0e7faf901ec67cade0ee7d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289d79c416db7d7d084894cd3f6ec0dd443599c20d81c8e36f28350441d3f1138030b5c72e3f8574926031b8f00eef71431277d92d66e644a9312f1eac6558d8
|
7
|
+
data.tar.gz: e30133b04a0305fadfcf94a95b00f7a07735a3ea8e87304683cfd99045b268193f559ca021448e618e00eee31c40661e86388fa3e65f27c3490e270f899ec108
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{%- comment -%}
|
2
|
+
**Parameters
|
3
|
+
title: Title
|
4
|
+
header: header content
|
5
|
+
json: json content
|
6
|
+
{%- endcomment -%}
|
7
|
+
|
8
|
+
<p class="code-view-header">
|
9
|
+
{{ include.title}}
|
10
|
+
<button class="code-view-copy" aria-label="Copy content to clipboard" value='{{include.json}}' onclick='javascript:navigator.clipboard.writeText(this.value)'>
|
11
|
+
copy json
|
12
|
+
</button>
|
13
|
+
</p>
|
14
|
+
````http
|
15
|
+
{{include.header}}
|
16
|
+
````
|
17
|
+
|
18
|
+
````jsonc
|
19
|
+
{{include.json}}
|
20
|
+
````
|
data/_sass/code-view.scss
CHANGED
@@ -1,9 +1,25 @@
|
|
1
1
|
@import 'colors.scss';
|
2
|
+
.code-view-copy {
|
3
|
+
display: flex;
|
4
|
+
font-family: Akkurat Mono,monospace;
|
5
|
+
font-size: .875rem;
|
6
|
+
font-weight: 400;
|
7
|
+
line-height: 1.25rem;
|
8
|
+
margin: 0;
|
9
|
+
padding: 0;
|
10
|
+
border:none;
|
11
|
+
background-color: #493c3b;
|
12
|
+
color: #FFFFFF;
|
13
|
+
text-decoration: underline;
|
14
|
+
}
|
15
|
+
|
16
|
+
.code-view-copy:hover {
|
17
|
+
text-decoration: none;
|
18
|
+
}
|
2
19
|
|
3
20
|
.code-view {
|
4
21
|
.code-view-table {
|
5
22
|
.code-view-code {
|
6
|
-
|
7
23
|
.nc,
|
8
24
|
.nf {
|
9
25
|
color: $code-green;
|
@@ -11,3 +27,31 @@
|
|
11
27
|
}
|
12
28
|
}
|
13
29
|
}
|
30
|
+
|
31
|
+
.language-http {
|
32
|
+
.code-view {
|
33
|
+
.code-view-table {
|
34
|
+
.code-view-numbers {
|
35
|
+
display: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
.code-view-code {
|
39
|
+
padding-left: 1rem;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.language-http:has(+ .language-js)
|
46
|
+
.language-http:has(+ .language-json),
|
47
|
+
.language-http:has(+ .language-jsonc) {
|
48
|
+
margin-bottom: 0 !important;
|
49
|
+
|
50
|
+
.code-view {
|
51
|
+
margin-bottom: 0;
|
52
|
+
|
53
|
+
.code-view-table {
|
54
|
+
border-radius: 0px;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
data/lib/gem_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swedbank-pay-design-guide-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swedbank Pay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02
|
11
|
+
date: 2024-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -403,6 +403,7 @@ files:
|
|
403
403
|
- _includes/card-overview.html
|
404
404
|
- _includes/card-table.html
|
405
405
|
- _includes/card.html
|
406
|
+
- _includes/code-example.html
|
406
407
|
- _includes/doc-container.html
|
407
408
|
- _includes/github.html
|
408
409
|
- _includes/google_analytics.html
|