swedbank-pay-design-guide-jekyll-theme 2.4.1 → 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 -1
- data/_sass/front-page.scss +20 -7
- data/_sass/swedbank-pay-design-guide-theme.scss +8 -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,7 +9,6 @@ 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 }}
|
@@ -63,6 +62,10 @@ layout: default
|
|
63
62
|
<div class="front-page-container">
|
64
63
|
{% contentblock intro_cards%}
|
65
64
|
|
65
|
+
<div class="front-page-playground">
|
66
|
+
{% contentblock playground %}
|
67
|
+
</div>
|
68
|
+
|
66
69
|
<div class="front-page-cards-sdk">
|
67
70
|
{% contentblock sdks %}
|
68
71
|
</div>
|
data/_sass/front-page.scss
CHANGED
@@ -71,12 +71,20 @@ $front-page-max-width: $breakpoint-lg;
|
|
71
71
|
z-index: 0;
|
72
72
|
border-radius: 1rem;
|
73
73
|
|
74
|
+
@media screen and (max-width: $breakpoint-md) {
|
75
|
+
margin: 0;
|
76
|
+
}
|
77
|
+
|
74
78
|
.front-page-hero {
|
75
79
|
position: relative;
|
76
80
|
margin-bottom: 1.5rem;
|
77
81
|
z-index: 1;
|
78
82
|
padding: 1.5rem;
|
79
83
|
|
84
|
+
@media screen and (max-width: $breakpoint-md) {
|
85
|
+
padding: 0;
|
86
|
+
}
|
87
|
+
|
80
88
|
h3 {
|
81
89
|
color: $brown;
|
82
90
|
font-family: $font_headline;
|
@@ -84,7 +92,12 @@ $front-page-max-width: $breakpoint-lg;
|
|
84
92
|
font-size: 2.5rem;
|
85
93
|
line-height: 3.5rem;
|
86
94
|
|
87
|
-
|
95
|
+
@media screen and (max-width: $breakpoint-md) {
|
96
|
+
font-size: 1.25rem;
|
97
|
+
line-height: 2.25rem;
|
98
|
+
margin-bottom: 1rem;
|
99
|
+
}
|
100
|
+
|
88
101
|
}
|
89
102
|
|
90
103
|
p {
|
@@ -101,6 +114,10 @@ $front-page-max-width: $breakpoint-lg;
|
|
101
114
|
font-family: $font_headline;
|
102
115
|
margin-bottom: 2rem;
|
103
116
|
font-size: 3.5rem;
|
117
|
+
|
118
|
+
@media screen and (max-width: $breakpoint-md) {
|
119
|
+
font-size: 2.25rem;
|
120
|
+
}
|
104
121
|
}
|
105
122
|
|
106
123
|
.front-page-hero-lean {
|
@@ -108,21 +125,17 @@ $front-page-max-width: $breakpoint-lg;
|
|
108
125
|
white-space: nowrap;
|
109
126
|
|
110
127
|
&::before {
|
111
|
-
content: ' {
|
128
|
+
content: ' {';
|
112
129
|
font-family: $font_mono;
|
113
130
|
font-weight: bold;
|
114
|
-
font-size: 2.5rem;
|
115
131
|
color: $yellow;
|
116
|
-
margin-bottom: 1rem;
|
117
132
|
}
|
118
133
|
|
119
134
|
&::after {
|
120
|
-
content: '
|
135
|
+
content: '} ';
|
121
136
|
font-family: $font_mono;
|
122
137
|
font-weight: bold;
|
123
|
-
font-size: 2.5rem;
|
124
138
|
color: $yellow;
|
125
|
-
margin-bottom: 1rem;
|
126
139
|
}
|
127
140
|
}
|
128
141
|
|
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
|