swedbank-pay-design-guide-jekyll-theme 2.4.0 → 2.4.2
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 +4 -4
- data/_includes/card-list.html +14 -6
- data/_includes/card-table.html +2 -2
- data/_includes/card.html +6 -6
- data/_includes/doc-container.html +1 -1
- data/_layouts/front-page.html +4 -3
- data/_sass/front-page.scss +43 -22
- data/_sass/swedbank-pay-design-guide-theme.scss +26 -0
- data/lib/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daec6e16bfca9b810fbd8c87388d41a35c8f03a4c6d07a5f04ead988799446f8
|
4
|
+
data.tar.gz: 00036ea6565dedcea30f47b678683008def0d2cb0bfd6419871fa07c761edccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcac90d5efb9ba85a26210bbb4ebf7fb5dc2a9d6c6451a8f8ae99dd22f1227a09427da0c06566acc575dff6bdb007da9a2cff5b9c51ecff36ba199892b68ab63
|
7
|
+
data.tar.gz: bb1ab6ad245a02d00f134da18a37fa025d3c10ddf77af8ae0de70933549fd5bb71203838f0518916e4833caaaa833395bde75492e0a830b7a5fcccf08f63f6c7
|
data/_includes/card-list.html
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
{%- comment -%}
|
2
2
|
**Parameters
|
3
|
-
card_list(required): An array with items having the attributes
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
card_list(required): An array with items having the attributes
|
4
|
+
title(required): Title of the card
|
5
|
+
image_src: Image source for the card
|
6
|
+
image_alt_text: Alt text for the image
|
7
|
+
icon_content: Used to generate content of dx-card-icon
|
8
|
+
description: Text content of the card
|
9
|
+
cta_text: Text for the call to action.
|
10
|
+
use_wide: Used when dx-card-horizontal is needed
|
11
|
+
open_in_new_tab: Used to open the link in a new tab
|
12
|
+
url(required): Url to the page to be directed to on click
|
13
|
+
type: sdk | module - Empty type result in default card styling
|
14
|
+
Works with site.pages.
|
7
15
|
col_class(required): Describes what grid column class(es) each card should be wrapped in
|
8
16
|
{%- endcomment -%}
|
9
17
|
|
@@ -22,10 +30,10 @@ col_class(required): Describes what grid column class(es) each card should be wr
|
|
22
30
|
<div class="{{ col_class }}">
|
23
31
|
{% include card.html
|
24
32
|
title=title
|
25
|
-
|
33
|
+
description=card.description
|
26
34
|
cta_text=card.cta_text
|
27
35
|
icon_content=icon_content
|
28
|
-
|
36
|
+
url=link_to
|
29
37
|
type=card_type
|
30
38
|
use_wide=use_wide
|
31
39
|
%}
|
data/_includes/card-table.html
CHANGED
@@ -54,10 +54,10 @@ type: sdk | module - Empty type result in default card styling
|
|
54
54
|
{% include card.html
|
55
55
|
cta_text=include.cta_text
|
56
56
|
title=include.title
|
57
|
-
|
57
|
+
description=card_content
|
58
58
|
use_wide=true
|
59
59
|
icon_content=include.icon_content
|
60
|
-
|
60
|
+
url=include.to
|
61
61
|
type=include.type
|
62
62
|
%}
|
63
63
|
</div>
|
data/_includes/card.html
CHANGED
@@ -4,11 +4,11 @@ title(required): Title of the card
|
|
4
4
|
image_src: Image source for the card
|
5
5
|
image_alt_text: Alt text for the image
|
6
6
|
icon_content: Used to generate content of dx-card-icon
|
7
|
-
|
7
|
+
description: Text content of the card
|
8
8
|
cta_text: Text for the call to action.
|
9
9
|
use_wide: Used when dx-card-horizontal is needed
|
10
10
|
open_in_new_tab: Used to open the link in a new tab
|
11
|
-
|
11
|
+
url(required): Url to the page to be directed to on click
|
12
12
|
type: sdk | module - Empty type result in default card styling
|
13
13
|
{%- endcomment -%}
|
14
14
|
|
@@ -16,11 +16,11 @@ type: sdk | module - Empty type result in default card styling
|
|
16
16
|
{% assign image_alt_text = include.image_alt_text %}
|
17
17
|
{% assign image_ratio = 'ratio-16-9'%}
|
18
18
|
{% assign icon_content = include.icon_content %}
|
19
|
-
{% assign
|
19
|
+
{% assign description = include.description %}
|
20
20
|
{% assign cta_text = include.cta_text %}
|
21
21
|
{% assign use_wide = include.use_wide | default: false %}
|
22
22
|
{% assign open_in_new_tab = include.open_in_new_tab | default: false %}
|
23
|
-
{% assign
|
23
|
+
{% assign url = include.url %}
|
24
24
|
|
25
25
|
{% if include.type %}
|
26
26
|
{% assign type = include.type %}
|
@@ -42,7 +42,7 @@ type: sdk | module - Empty type result in default card styling
|
|
42
42
|
{% assign target = '_blank' %}
|
43
43
|
{% endif %}
|
44
44
|
|
45
|
-
{% capture card_attributes %}href="{{
|
45
|
+
{% capture card_attributes %}href="{{ url }}"{% endcapture %}
|
46
46
|
|
47
47
|
<a {{ card_attributes }} class="{{ card_class }}" target="{{target}}" >
|
48
48
|
{% if image_src %}
|
@@ -55,7 +55,7 @@ type: sdk | module - Empty type result in default card styling
|
|
55
55
|
|
56
56
|
<span class="h4">{{ include.title }}</span>
|
57
57
|
<div class="cards-content">
|
58
|
-
{{
|
58
|
+
{{ description | markdownify }}
|
59
59
|
</div>
|
60
60
|
<div class="cards-cta">
|
61
61
|
{% if cta_text %}
|
data/_layouts/front-page.html
CHANGED
@@ -9,15 +9,12 @@ layout: default
|
|
9
9
|
{% assign front_page_ingress = page.front_page.ingress | default: "The complete toolbox for integrating our easy and safe omnichannel payment solutions" %}
|
10
10
|
|
11
11
|
<div class="front-page">
|
12
|
-
{% include github.html %}
|
13
12
|
<div class="front-page-top">
|
14
13
|
<div class="front-page-hero">
|
15
14
|
<h3>{{ front_page_hero1 }}
|
16
15
|
<span class="d-block">
|
17
16
|
<span class="front-page-hero-jumbo">{{ front_page_hero2 }}</span>
|
18
|
-
<span class="front-page-hero-name"> {</span>
|
19
17
|
<span class="front-page-hero-lean">{{ front_page_title }}</span>
|
20
|
-
<span class="front-page-hero-name">}</span>
|
21
18
|
</span>
|
22
19
|
</h3>
|
23
20
|
<p>{{ front_page_ingress }}</p>
|
@@ -65,6 +62,10 @@ layout: default
|
|
65
62
|
<div class="front-page-container">
|
66
63
|
{% contentblock intro_cards%}
|
67
64
|
|
65
|
+
<div class="front-page-playground">
|
66
|
+
{% contentblock playground %}
|
67
|
+
</div>
|
68
|
+
|
68
69
|
<div class="front-page-cards-sdk">
|
69
70
|
{% contentblock sdks %}
|
70
71
|
</div>
|
data/_sass/front-page.scss
CHANGED
@@ -57,11 +57,12 @@ $front-page-max-width: $breakpoint-lg;
|
|
57
57
|
|
58
58
|
#github {
|
59
59
|
top: 2.5rem;
|
60
|
+
|
60
61
|
path {
|
61
62
|
fill: $black;
|
62
63
|
}
|
63
64
|
}
|
64
|
-
|
65
|
+
|
65
66
|
.front-page-top {
|
66
67
|
position: relative;
|
67
68
|
margin: 0 4rem;
|
@@ -70,55 +71,74 @@ $front-page-max-width: $breakpoint-lg;
|
|
70
71
|
z-index: 0;
|
71
72
|
border-radius: 1rem;
|
72
73
|
|
74
|
+
@media screen and (max-width: $breakpoint-md) {
|
75
|
+
margin: 0;
|
76
|
+
}
|
77
|
+
|
73
78
|
.front-page-hero {
|
74
79
|
position: relative;
|
75
80
|
margin-bottom: 1.5rem;
|
76
81
|
z-index: 1;
|
77
82
|
padding: 1.5rem;
|
78
83
|
|
84
|
+
@media screen and (max-width: $breakpoint-md) {
|
85
|
+
padding: 0;
|
86
|
+
}
|
87
|
+
|
79
88
|
h3 {
|
80
89
|
color: $brown;
|
81
90
|
font-family: $font_headline;
|
82
91
|
margin-bottom: 2rem;
|
83
92
|
font-size: 2.5rem;
|
84
93
|
line-height: 3.5rem;
|
85
|
-
|
86
94
|
|
95
|
+
@media screen and (max-width: $breakpoint-md) {
|
96
|
+
font-size: 1.25rem;
|
97
|
+
line-height: 2.25rem;
|
98
|
+
margin-bottom: 1rem;
|
99
|
+
}
|
100
|
+
|
87
101
|
}
|
88
102
|
|
89
103
|
p {
|
90
104
|
color: $brown;
|
91
105
|
font-size: 1.125rem;
|
92
106
|
}
|
93
|
-
|
107
|
+
|
94
108
|
a {
|
95
109
|
color: #43d0dd;
|
96
110
|
}
|
97
111
|
|
98
|
-
.front-page-hero-
|
99
|
-
|
100
|
-
font-
|
101
|
-
|
102
|
-
|
103
|
-
margin-bottom: 1rem;
|
104
|
-
|
112
|
+
.front-page-hero-jumbo {
|
113
|
+
color: $brown;
|
114
|
+
font-family: $font_headline;
|
115
|
+
margin-bottom: 2rem;
|
116
|
+
font-size: 3.5rem;
|
105
117
|
|
106
|
-
|
107
|
-
|
118
|
+
@media screen and (max-width: $breakpoint-md) {
|
119
|
+
font-size: 2.25rem;
|
108
120
|
}
|
109
121
|
}
|
110
122
|
|
111
|
-
.front-page-hero-jumbo {
|
112
|
-
color: $brown;
|
113
|
-
font-family: $font_headline;
|
114
|
-
margin-bottom: 2rem;
|
115
|
-
font-size: 3.5rem;
|
116
|
-
}
|
117
|
-
|
118
123
|
.front-page-hero-lean {
|
119
124
|
font-family: $font_mono;
|
125
|
+
white-space: nowrap;
|
126
|
+
|
127
|
+
&::before {
|
128
|
+
content: ' {';
|
129
|
+
font-family: $font_mono;
|
130
|
+
font-weight: bold;
|
131
|
+
color: $yellow;
|
132
|
+
}
|
133
|
+
|
134
|
+
&::after {
|
135
|
+
content: '} ';
|
136
|
+
font-family: $font_mono;
|
137
|
+
font-weight: bold;
|
138
|
+
color: $yellow;
|
139
|
+
}
|
120
140
|
}
|
121
|
-
|
141
|
+
|
122
142
|
|
123
143
|
}
|
124
144
|
|
@@ -139,13 +159,14 @@ $front-page-max-width: $breakpoint-lg;
|
|
139
159
|
}
|
140
160
|
|
141
161
|
@media screen and (min-width: $breakpoint-xxl) {
|
142
|
-
|
162
|
+
|
143
163
|
.front-page-intro-cards {
|
144
164
|
left: 0;
|
145
165
|
width: 100%;
|
146
166
|
}
|
147
167
|
}
|
148
168
|
}
|
169
|
+
|
149
170
|
.front-page-container {
|
150
171
|
max-width: $front-page-max-width;
|
151
172
|
margin: $front-page-padding;
|
@@ -243,4 +264,4 @@ $front-page-max-width: $breakpoint-lg;
|
|
243
264
|
|
244
265
|
}
|
245
266
|
}
|
246
|
-
}
|
267
|
+
}
|
@@ -480,4 +480,30 @@ body {
|
|
480
480
|
display: block;
|
481
481
|
position: absolute;
|
482
482
|
}
|
483
|
+
}
|
484
|
+
|
485
|
+
.playground-cta {
|
486
|
+
margin-top: 2.5rem;
|
487
|
+
|
488
|
+
@media screen and (max-width: $breakpoint-lg) {
|
489
|
+
margin-top: 0;
|
490
|
+
}
|
491
|
+
}
|
492
|
+
|
493
|
+
.video-container {
|
494
|
+
width: 100%;
|
495
|
+
max-width: 330px;
|
496
|
+
padding: 0.5rem;
|
497
|
+
|
498
|
+
@media screen and (max-width: $breakpoint-lg) {
|
499
|
+
display: none !important;
|
500
|
+
}
|
501
|
+
}
|
502
|
+
|
503
|
+
.video-container video {
|
504
|
+
margin: 0;
|
505
|
+
height: 100%;
|
506
|
+
width: 100%;
|
507
|
+
aspect-ratio: 872 / 1080;
|
508
|
+
object-fit: cover;
|
483
509
|
}
|
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.4.
|
4
|
+
version: 2.4.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: 2025-03-
|
11
|
+
date: 2025-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|