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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43558fe24b46f24fdb821f14619f1d89af01cb82d72d6449c8687b1e4d25c5da
4
- data.tar.gz: 8e37d2fac1d7e874803db6b8576218e672a626fdb6803021f06de95c74368d5d
3
+ metadata.gz: 3c9edb790d2b95aa747c43b475ca512883458285565f1c502a460130b73da958
4
+ data.tar.gz: 0cbe8e2ea1640b9d35589c9a321c03ece463ca30d0e7faf901ec67cade0ee7d8
5
5
  SHA512:
6
- metadata.gz: da769977bdc3b77efb7aeb4423bea7bcd8110ab760eb9e2a5c5143746502647fc3cc7b69a4d7218a02e8c752063c4c66aef6dc05965b9ee0b597f8a39e2c26c6
7
- data.tar.gz: ff5291a099ef729ae37ee01379961b3eb974ac2fba330788f689845aba78ce218b4704c9a1f042769e47dcda3fd9c1e1c25c1ca7f8eb5d16639ec25dd4ef2f3f
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
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '2.2.1'
7
+ '2.2.2'
8
8
  end
9
9
  end
10
10
  end
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.1
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-27 00:00:00.000000000 Z
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