swedbank-pay-design-guide-jekyll-theme 1.15.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7cb0c7f262f986b0b6e0465c09eb4838227d6ecc64e1d9103462f496292b8a1
4
- data.tar.gz: d43e5f38baadce7c34bf574c99cc934ccc02259ebd90633fdc382b086f2c8abf
3
+ metadata.gz: d0075af9f0a1d6743c7550de726441447d0feaac584b2b77b29dad1a274400f1
4
+ data.tar.gz: 41c4f2093da95ea6aded0d4be2fc8fead4f12c87bfc3c465d85ab5418dc252dd
5
5
  SHA512:
6
- metadata.gz: 8d2e62e06dea189130d560cf2ef7b7bbdc3aea9b2b3ff5c1e9f3c493b7e7372f9ff0e6ffc7a165cc44580e14ad673c252c04426ba718dd7fe896eab66bfe0eda
7
- data.tar.gz: d1711c10253f51471baec2fceeacf9c256d0aa9ff7cef78ca17057e28129cb99c3322063bb4ca38eaf45c456d9326a92b9d188bbbf3381d2766deb9e4c3cf744
6
+ metadata.gz: ca96c2f5c4e2d30d1f18ee2378cfc1cff600bb761a0128dc3379fb97fa4ca522ea5a81bc45cb37e3cbdcc9895322783ac7d9c4b97c2bcc9ad56adc2cd7d2eaae
7
+ data.tar.gz: 1e9e928391508c7eb86a52abbdd7cf0042170e1c47161996a6ebe39597ab35393f4f209b45d6c7ec65182f4d9cc67f4e09dda58d8cc35b54038f601061479c9d
data/_includes/alert.html CHANGED
@@ -5,28 +5,14 @@
5
5
  {% assign body = include.body | markdownify | remove: '<p>' | remove: '</p>' | strip %}
6
6
 
7
7
  <div
8
- class="alert {% if header != blank and header != empty and header != nil %}alert-complex{% endif %} {{ type_class }}">
9
- {% if header != blank and header != empty and header != nil %}
10
- <header class="alert-header">
11
- {% if icon != blank and icon != empty and icon != nil %}
12
- <i class="material-icons alert-icon">{{ icon }}</i>
13
- {% endif %}
14
-
15
- {% if header != blank and header != empty and header != nil %}
16
- <h3>{{ header }}</h3>
17
- {% endif %}
18
- </header>
19
- {% else %}
8
+ class="alert {{ type_class }}">
20
9
  {% if icon != blank and icon != empty and icon != nil %}
21
10
  <i class="material-icons alert-icon mr-3">{{ icon }}</i>
22
11
  {% endif %}
23
- {% endif %}
24
12
 
25
13
  {% if body != blank and body != empty and body != nil %}
26
14
  {% if header != blank and header != empty and header != nil %}
27
- <div class="alert-body">
28
- <p>{{ body }}</p>
29
- </div>
15
+ <p><b>{{ header }}:</b> {{ body }}</p>
30
16
  {% else %}
31
17
  <p>{{ body }}</p>
32
18
  {% endif %}
@@ -31,7 +31,7 @@ type: sdk | module - Empty type result in default card styling
31
31
  {% assign card_class = 'cards cards-wide' | strip %}
32
32
 
33
33
  <div class="{{ card_class }}">
34
- {% if no_icon==false %}
34
+ {% unless no_icon %}
35
35
  <span class="cards-icon">
36
36
  {% if icon_svg %}
37
37
  {% include {{ icon_content }} %}
@@ -39,59 +39,19 @@ type: sdk | module - Empty type result in default card styling
39
39
  <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
40
40
  {{ icon_content }}
41
41
  </i>
42
- {% endif %}
42
+ {% endif %}
43
43
  </span>
44
- {% endif %}
44
+ {% endunless %}
45
45
  {% if include.container_content %}
46
46
  <div>
47
47
  {% endif %}
48
- <span class="cards-content">
49
- <span class="{{ title_type }}">{{ include.title }}</span>
50
- {% if margin_right %}
51
- <span class="text-box">{{ text | markdownify }}</span>
52
- {% else %}
53
- <span>{{ text | markdownify }}</span>
54
- {% endif %}
55
- <table class="table table-plain">
56
- <thead>
57
- <tr>
58
- {% for header in include.header %}
59
- <th> {% if header.badge_type %}
60
- <span class="badge badge-{{header.badge_type}}">{{header.table_header}}</span>
61
- {% else %}
62
- {{ header.table_header }}
63
- {% endif %}
64
- </th>
65
- {% endfor %}
66
- </tr>
67
- </thead>
68
- <tbody>
69
- {% for table_content in include.table_content %}
70
- <tr>
71
-
72
- <th scope="row">
73
- <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
74
- {{table_content.icon}}
75
- </i> {{table_content.label}}
76
- <td>
77
- {% if table_content.swedbankPay %}
78
- <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
79
- check_circle_outline
80
- </i>
81
- {% endif %}
82
- </td>
83
- <td>
84
- {% if table_content.merchantSide %}
85
- <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
86
- check_circle_outline
87
- </i>
88
- {% endif %}
89
- </td>
90
- </th>
91
- </tr>
92
- {% endfor %}
93
- </tbody>
94
- </table>
48
+ <span class="cards-content">
49
+ <span class="{{ title_type }}">{{ include.title }}</span>
50
+ {% if margin_right %}
51
+ <span class="text-box-extended">{{ text | markdownify }}</span>
52
+ {% else %}
53
+ <span>{{ text | markdownify }}</span>
54
+ {% endif %}
95
55
  </span>
96
56
  {% unless disabled %}
97
57
  <a class="btn btn-{{include.button_type}} {{include.button_alignment}}" href="{{to}}" type="button">{{ include.button_content }}<i class="material-icons ml-2"> arrow_forward</i></a>
@@ -0,0 +1,112 @@
1
+ {%- comment -%}
2
+
3
+ **About this card
4
+ This card offers the table component from Design Guide
5
+
6
+ **Parameters
7
+ title(required): Title of the card
8
+ title_type: Determines size of the title
9
+ icon_content: Used to generate content of cards-icon
10
+ icon_outlined: Make icon_content outlined if icon_content is material-icon
11
+ icon_svg: Handles value of icon_content as a reference to a svg-file
12
+ no_icon: Hides cards-icon
13
+ text: Text content of the card
14
+ to(required): Url to the page to be directed to on click
15
+ type: sdk | module - Empty type result in default card styling
16
+ {%- endcomment -%}
17
+
18
+ {% assign title_type = include.title_type | default: 'h2', %}
19
+ {% assign icon_content = include.icon_content %}
20
+ {% assign icon_outlined = include.icon_outlined | default: false %}
21
+ {% assign icon_svg = include.icon_svg | default: false %}
22
+ {% assign no_icon = include.no_icon | default: false %}
23
+ {% assign text = include.text %}
24
+ {% assign to = include.to %}
25
+ {% assign disabled = include.disabled %}
26
+ {% assign margin_right = include.margin_right | default false %}
27
+
28
+
29
+ {% unless icon_svg %}
30
+ {% if icon_content contains '/' or icon_content contains '.svg' %}
31
+ {% assign icon_svg = true %}
32
+ {% endif %}
33
+ {% endunless %}
34
+
35
+ {% assign card_class = 'cards cards-wide' | strip %}
36
+
37
+ <div class="{{ card_class }}">
38
+ {% unless no_icon %}
39
+ <span class="cards-icon">
40
+ {% if icon_svg %}
41
+ {% include {{ icon_content }} %}
42
+ {% else %}
43
+ <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
44
+ {{ icon_content }}
45
+ </i>
46
+ {% endif %}
47
+ </span>
48
+ {% endunless %}
49
+ {% if include.container_content %}
50
+ <div>
51
+ {% endif %}
52
+ <span class="cards-content">
53
+ <span class="{{ title_type }}">{{ include.title }}</span>
54
+ {% if margin_right %}
55
+ <span class="text-box">{{ text | markdownify }}</span>
56
+ {% else %}
57
+ <span>{{ text | markdownify }}</span>
58
+ {% endif %}
59
+ <div class="d-flex">
60
+ <table class="table table-plain">
61
+ <thead>
62
+ <tr>
63
+ {% for header in include.header %}
64
+ <th> {% if header.badge_type %}
65
+ <span class="badge badge-{{header.badge_type}}">{{header.table_header}}</span>
66
+ {% else %}
67
+ {{ header.table_header }}
68
+ {% endif %}
69
+ </th>
70
+ {% endfor %}
71
+ </tr>
72
+ </thead>
73
+ <tbody>
74
+ {% for table_content in include.table_content %}
75
+ <tr>
76
+
77
+ <th scope="row">
78
+ <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
79
+ {{table_content.icon}}
80
+ </i> {{table_content.label}}
81
+ <td>
82
+ {% if table_content.swedbankPay %}
83
+ <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
84
+ check_circle_outline
85
+ </i>
86
+ {% endif %}
87
+ </td>
88
+ <td>
89
+ {% if table_content.merchantSide %}
90
+ <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
91
+ check_circle_outline
92
+ </i>
93
+ {% endif %}
94
+ </td>
95
+ </th>
96
+ </tr>
97
+ {% endfor %}
98
+ </tbody>
99
+ </table>
100
+ {% unless disabled %}
101
+ <a class="btn btn-{{include.button_type}} {{include.button_alignment}}" href="{{to}}" type="button">{{ include.button_content }}<i class="material-icons ml-2"> arrow_forward</i></a>
102
+ {% endunless %}
103
+ </div>
104
+ </span>
105
+ {% if include.container_content %}
106
+ </div>
107
+ <div class="container-right">
108
+ {{ include.container_content | markdownify }}
109
+ </div>
110
+ {% endif %}
111
+ </div>
112
+
@@ -1,7 +1,7 @@
1
1
  {% assign github_branch = site.github.branch | default : "develop" %}
2
2
 
3
3
  <a href="{{ site.github.repository_url }}/tree/{{ github_branch }}/{{ page.path }}"
4
- class="github" target="_blank"
4
+ id="github" target="_blank"
5
5
  rel="noopener noreferrer" title="Edit '{{ page.title }}' on GitHub">
6
6
  <svg aria-labelledby="simpleicons-github-icon" role="img" width="40" viewBox="0 0 24 24"
7
7
  xmlns="http://www.w3.org/2000/svg">
@@ -10,6 +10,7 @@ layout: default
10
10
  {% assign front_page_start_heading = page.front_page.start_heading | default: "Let's get you started with easy, flexible and safe payments on you e-commerce website!" %}
11
11
 
12
12
  <div class="front-page">
13
+ {% include github.html %}
13
14
  <div class="front-page-top">
14
15
  <div class="front-page-hero">
15
16
  <h3>{{ front_page_hero1 }}
@@ -27,7 +28,6 @@ layout: default
27
28
  {% contentblock start %}
28
29
  </div>
29
30
 
30
- {% include github.html %}
31
31
  </div>
32
32
 
33
33
 
data/_sass/card.scss CHANGED
@@ -1,17 +1,21 @@
1
1
  @import 'colors.scss';
2
2
 
3
3
  .cards {
4
- .text-box {
5
- margin-right: 4.875rem;
6
- }
4
+ cursor: default;
7
5
 
8
6
  &.cards-wide {
9
7
  margin-top: 4rem;
10
8
 
11
9
  .btn {
12
10
  margin-bottom: 2rem;
11
+ margin-top: 5rem;
12
+ }
13
+
14
+ .text-box-extended {
15
+ margin-right: 4.875rem;
13
16
  }
14
17
  }
18
+
15
19
  .table {
16
20
 
17
21
  &.table-plain {
@@ -23,6 +27,7 @@
23
27
 
24
28
  th:not(:first-child) {
25
29
  text-align: center;
30
+ padding: 0 0.5rem;
26
31
 
27
32
  .badge {
28
33
  &.badge-default {
@@ -55,6 +55,13 @@ $front-page-max-width: $breakpoint-lg;
55
55
  display: flex;
56
56
  flex-direction: column;
57
57
  align-items: center;
58
+
59
+ #github {
60
+ top: 2.5rem;
61
+ path {
62
+ fill: $black;
63
+ }
64
+ }
58
65
 
59
66
  .front-page-top {
60
67
  position: relative;
@@ -81,7 +88,7 @@ $front-page-max-width: $breakpoint-lg;
81
88
  }
82
89
 
83
90
  p {
84
- color: $black;
91
+ color: $brown;
85
92
  font-size: 1.125rem;
86
93
  }
87
94
 
@@ -118,8 +125,9 @@ $front-page-max-width: $breakpoint-lg;
118
125
 
119
126
  .front-page-intro-cards {
120
127
  h2 {
121
- color: $black;
128
+ color: $brown;
122
129
  padding: 1.5rem;
130
+ padding-bottom: 0;
123
131
 
124
132
  .header-anchor {
125
133
  display: none;
@@ -310,7 +310,7 @@ body {
310
310
  text-align: center;
311
311
  }
312
312
 
313
- .github {
313
+ #github {
314
314
  opacity: .5;
315
315
  position: absolute;
316
316
  right: 4rem;
@@ -318,11 +318,11 @@ body {
318
318
  transition: opacity .3s;
319
319
  }
320
320
 
321
- a.github:after {
321
+ a#github:after {
322
322
  display: none;
323
323
  }
324
324
 
325
- a.github:hover {
325
+ a#github:hover {
326
326
  opacity: 1;
327
327
  }
328
328
  }
@@ -49,6 +49,12 @@
49
49
  display: flex;
50
50
  justify-content: center;
51
51
 
52
+ #github {
53
+ path {
54
+ fill: $black;
55
+ }
56
+ }
57
+
52
58
  .title-header-container {
53
59
  width: 100%;
54
60
  padding: 3rem 1rem;
@@ -93,6 +99,8 @@
93
99
  content: url(../img/external-url-dark-bg.svg);
94
100
  }
95
101
  }
102
+
103
+
96
104
  }
97
105
 
98
106
 
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
- '1.15.0'
7
+ '1.16.1'
8
8
  end
9
9
  end
10
10
  end
@@ -55,7 +55,7 @@ module SwedbankPay
55
55
  begin
56
56
  sidebar_html = @html_builder.build(page)
57
57
 
58
- File.open('_site/sidebar.html', 'w') { |f| f.write(sidebar_html) }
58
+ File.write('_site/sidebar.html', sidebar_html)
59
59
  rescue StandardError => e
60
60
  name = page.filename || page.name || page.to_s
61
61
  SidebarLogger.error("Unable to render sidebar for '#{name}'.")
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: 1.15.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swedbank Pay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3'
33
- - !ruby/object:Gem::Dependency
34
- name: html-proofer
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '3'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: '3.19'
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '3'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: '3.19'
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: jekyll
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -172,20 +152,6 @@ dependencies:
172
152
  - - "~>"
173
153
  - !ruby/object:Gem::Version
174
154
  version: '1.11'
175
- - !ruby/object:Gem::Dependency
176
- name: rake
177
- requirement: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - "~>"
180
- - !ruby/object:Gem::Version
181
- version: '13.0'
182
- type: :runtime
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - "~>"
187
- - !ruby/object:Gem::Version
188
- version: '13.0'
189
155
  - !ruby/object:Gem::Dependency
190
156
  name: sass
191
157
  requirement: !ruby/object:Gem::Requirement
@@ -226,6 +192,166 @@ dependencies:
226
192
  - - ">="
227
193
  - !ruby/object:Gem::Version
228
194
  version: '2.2'
195
+ - !ruby/object:Gem::Dependency
196
+ name: codecov
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: html-proofer
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '3.19'
216
+ - - "<"
217
+ - !ruby/object:Gem::Version
218
+ version: '5'
219
+ type: :development
220
+ prerelease: false
221
+ version_requirements: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ version: '3.19'
226
+ - - "<"
227
+ - !ruby/object:Gem::Version
228
+ version: '5'
229
+ - !ruby/object:Gem::Dependency
230
+ name: html-proofer-unrendered-markdown
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: '0.2'
236
+ type: :development
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ version: '0.2'
243
+ - !ruby/object:Gem::Dependency
244
+ name: its
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
257
+ - !ruby/object:Gem::Dependency
258
+ name: rake
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: '13.0'
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - "~>"
269
+ - !ruby/object:Gem::Version
270
+ version: '13.0'
271
+ - !ruby/object:Gem::Dependency
272
+ name: rspec
273
+ requirement: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - ">="
276
+ - !ruby/object:Gem::Version
277
+ version: '0'
278
+ type: :development
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - ">="
283
+ - !ruby/object:Gem::Version
284
+ version: '0'
285
+ - !ruby/object:Gem::Dependency
286
+ name: rspec-html-matchers
287
+ requirement: !ruby/object:Gem::Requirement
288
+ requirements:
289
+ - - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: '0'
292
+ type: :development
293
+ prerelease: false
294
+ version_requirements: !ruby/object:Gem::Requirement
295
+ requirements:
296
+ - - ">="
297
+ - !ruby/object:Gem::Version
298
+ version: '0'
299
+ - !ruby/object:Gem::Dependency
300
+ name: rubocop
301
+ requirement: !ruby/object:Gem::Requirement
302
+ requirements:
303
+ - - ">="
304
+ - !ruby/object:Gem::Version
305
+ version: '0'
306
+ type: :development
307
+ prerelease: false
308
+ version_requirements: !ruby/object:Gem::Requirement
309
+ requirements:
310
+ - - ">="
311
+ - !ruby/object:Gem::Version
312
+ version: '0'
313
+ - !ruby/object:Gem::Dependency
314
+ name: rubocop-performance
315
+ requirement: !ruby/object:Gem::Requirement
316
+ requirements:
317
+ - - ">="
318
+ - !ruby/object:Gem::Version
319
+ version: '0'
320
+ type: :development
321
+ prerelease: false
322
+ version_requirements: !ruby/object:Gem::Requirement
323
+ requirements:
324
+ - - ">="
325
+ - !ruby/object:Gem::Version
326
+ version: '0'
327
+ - !ruby/object:Gem::Dependency
328
+ name: rubocop-rake
329
+ requirement: !ruby/object:Gem::Requirement
330
+ requirements:
331
+ - - ">="
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
334
+ type: :development
335
+ prerelease: false
336
+ version_requirements: !ruby/object:Gem::Requirement
337
+ requirements:
338
+ - - ">="
339
+ - !ruby/object:Gem::Version
340
+ version: '0'
341
+ - !ruby/object:Gem::Dependency
342
+ name: rubocop-rspec
343
+ requirement: !ruby/object:Gem::Requirement
344
+ requirements:
345
+ - - ">="
346
+ - !ruby/object:Gem::Version
347
+ version: '0'
348
+ type: :development
349
+ prerelease: false
350
+ version_requirements: !ruby/object:Gem::Requirement
351
+ requirements:
352
+ - - ">="
353
+ - !ruby/object:Gem::Version
354
+ version: '0'
229
355
  description:
230
356
  email:
231
357
  - opensource@swedbankpay.com
@@ -247,6 +373,7 @@ files:
247
373
  - _includes/card-horizontal-list.html
248
374
  - _includes/card-list.html
249
375
  - _includes/card-overview.html
376
+ - _includes/card-table.html
250
377
  - _includes/card.html
251
378
  - _includes/doc-container.html
252
379
  - _includes/github.html
@@ -328,7 +455,8 @@ files:
328
455
  homepage: https://github.com/SwedbankPay/swedbank-pay-design-guide-jekyll-theme
329
456
  licenses:
330
457
  - Apache-2.0
331
- metadata: {}
458
+ metadata:
459
+ rubygems_mfa_required: 'true'
332
460
  post_install_message:
333
461
  rdoc_options: []
334
462
  require_paths: