swedbank-pay-design-guide-jekyll-theme 2.2.1 → 2.2.3

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: fe62136a504cd460e0e0dd88e09e0a9ba82fbab9f548080ed824314330659000
4
+ data.tar.gz: 921841fe70dee3bf66aae1b4f8ca51e06ee6f6f4f89af124f88366b76ac07758
5
5
  SHA512:
6
- metadata.gz: da769977bdc3b77efb7aeb4423bea7bcd8110ab760eb9e2a5c5143746502647fc3cc7b69a4d7218a02e8c752063c4c66aef6dc05965b9ee0b597f8a39e2c26c6
7
- data.tar.gz: ff5291a099ef729ae37ee01379961b3eb974ac2fba330788f689845aba78ce218b4704c9a1f042769e47dcda3fd9c1e1c25c1ca7f8eb5d16639ec25dd4ef2f3f
6
+ metadata.gz: 12511e24595d839de209ee7cee1f98c9c8d5135cb158a05fe42927e2b8d88c0667922ff77da7ec2d0d9e45c6424f09740011c054d9bd11fb62ce010604c9d7a0
7
+ data.tar.gz: cd1c5deb08e2f7e2bb70ff325404b1e1cf197953b68a4a2fb3264d1050e99d21d6feb936a88d7c78fbad3a10df3a198435385b64fe3d687b9503b2a608bc5e1d
@@ -0,0 +1,18 @@
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 aria-describedby="tooltipCopy" class="code-view-copy tooltip" aria-label="Copy json to clipboard" value='{{include.json}}' onclick='javascript:navigator.clipboard.writeText(this.value)'><i class="at-clipboard small" aria-hidden="true"></i><div role="tooltip">Copy json to clipboard</div></button>
11
+ </p>
12
+ ````http
13
+ {{include.header}}
14
+ ````
15
+
16
+ ````jsonc
17
+ {{include.json}}
18
+ ````
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,35 @@
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
+ pre {
57
+ margin-bottom: 0;
58
+ }
59
+ }
60
+ }
61
+ }
@@ -1,7 +1,7 @@
1
1
  .highlight .hll { background-color: #ffffcc }
2
2
  .highlight { background: #ffffff; }
3
3
  .highlight .c { color: #aaaaaa; font-style: italic } /* Comment */
4
- .highlight .err { color: #E7F8D2; } /* Error */
4
+ .highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
5
5
  .highlight .k { color: #0000aa } /* Keyword */
6
6
  .highlight .ch { color: #aaaaaa; font-style: italic } /* Comment.Hashbang */
7
7
  .highlight .cm { color: #aaaaaa; font-style: italic } /* Comment.Multiline */
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.3'
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.3
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-05 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