swedbank-pay-design-guide-jekyll-theme 1.5.1.pre.article.pre.no.pre.main0001
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 +7 -0
- data/LICENSE +201 -0
- data/README.md +103 -0
- data/_assets/css/pygments-autumn.css +66 -0
- data/_assets/scss/card.scss +170 -0
- data/_assets/scss/code-view.scss +13 -0
- data/_assets/scss/colors.scss +19 -0
- data/_assets/scss/fonts.scss +2 -0
- data/_assets/scss/front-page.scss +312 -0
- data/_assets/scss/heading.scss +79 -0
- data/_assets/scss/paragraph-highlight.scss +8 -0
- data/_assets/scss/sidebar.scss +72 -0
- data/_assets/scss/swedbank-pay-design-guide-theme.scss +290 -0
- data/_assets/scss/title-header.scss +39 -0
- data/_assets/scss/variables.scss +1 -0
- data/_includes/alert.html +34 -0
- data/_includes/anchor_headings.html +100 -0
- data/_includes/apple-mobile-headers.html +6 -0
- data/_includes/apple-touch-icon.html +4 -0
- data/_includes/apple-touch-icons.md +9 -0
- data/_includes/apple-touch-startup-image.html +23 -0
- data/_includes/apple-touch-startup-images.md +31 -0
- data/_includes/card-horizontal-list.html +33 -0
- data/_includes/card-list.html +28 -0
- data/_includes/card.html +73 -0
- data/_includes/front-page.html +255 -0
- data/_includes/google_analytics.html +9 -0
- data/_includes/img/merchants/logo-coop.svg +3 -0
- data/_includes/img/merchants/logo-elkjop.svg +23 -0
- data/_includes/img/merchants/logo-ica.svg +57 -0
- data/_includes/img/merchants/logo-schibsted.svg +30 -0
- data/_includes/img/merchants/logo-skanetrafiken.svg +5 -0
- data/_includes/img/merchants/logo-svenskaspel.svg +23 -0
- data/_includes/img/merchants/logo-synsam.svg +12 -0
- data/_includes/img/modules/logo-episerver.svg +15 -0
- data/_includes/img/modules/logo-magento2.svg +5 -0
- data/_includes/img/modules/logo-woocommerce.svg +16 -0
- data/_includes/img/sdks/logo-android.svg +3 -0
- data/_includes/img/sdks/logo-ios.svg +3 -0
- data/_includes/img/sdks/logo-net.svg +15 -0
- data/_includes/img/sdks/logo-nodejs.svg +3 -0
- data/_includes/img/sdks/logo-php.svg +5 -0
- data/_includes/img/sdks/logo-swift.svg +10 -0
- data/_includes/iterator.html +18 -0
- data/_includes/jumbotron.html +6 -0
- data/_includes/paragraph-highlight.html +7 -0
- data/_includes/release_notes.html +29 -0
- data/_includes/sidebar.html +116 -0
- data/_includes/toc.html +100 -0
- data/_layouts/default.html +145 -0
- data/_plugins/jekyll_asset_pipeline.rb +19 -0
- data/_plugins/sidebar.rb +211 -0
- data/assets/img/demoshop-mobile.svg +18 -0
- data/assets/img/demoshop-mobile2.svg +23 -0
- data/assets/img/demoshop-web.svg +31 -0
- data/assets/img/demoshop.svg +27 -0
- data/assets/img/external-url.svg +1 -0
- data/assets/js/mermaid.min.js +19 -0
- data/assets/js/swedbank-pay-design-guide-theme.js +136 -0
- data/assets/tipuesearch/search.png +0 -0
- data/assets/tipuesearch/tipuesearch.min.js +179 -0
- data/assets/tipuesearch/tipuesearch_content.js +83 -0
- data/assets/tipuesearch/tipuesearch_set.js +80 -0
- metadata +293 -0
@@ -0,0 +1,290 @@
|
|
1
|
+
@import 'colors.scss';
|
2
|
+
@import 'fonts.scss';
|
3
|
+
@import 'variables.scss';
|
4
|
+
|
5
|
+
@import 'card.scss';
|
6
|
+
@import 'code-view.scss';
|
7
|
+
@import 'front-page.scss';
|
8
|
+
@import 'heading.scss';
|
9
|
+
@import 'paragraph-highlight.scss';
|
10
|
+
@import 'sidebar.scss';
|
11
|
+
@import 'title-header.scss';
|
12
|
+
|
13
|
+
$bg: #f5f2f0;
|
14
|
+
$darkened-bg: darken($bg, 10%);
|
15
|
+
|
16
|
+
img {
|
17
|
+
max-width: 100%;
|
18
|
+
}
|
19
|
+
|
20
|
+
.table {
|
21
|
+
|
22
|
+
th,
|
23
|
+
td {
|
24
|
+
>.material-icons {
|
25
|
+
float: none;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.jumbotron {
|
31
|
+
/* TODO: Make .jumbotron @extend .slab. */
|
32
|
+
font-family: Roboto, sans-serif;
|
33
|
+
font-size: 21px;
|
34
|
+
font-weight: 1;
|
35
|
+
min-height: 1rem;
|
36
|
+
padding: 3rem;
|
37
|
+
margin-bottom: 1rem;
|
38
|
+
border-radius: 4px;
|
39
|
+
background-color: #ebe7e2;
|
40
|
+
|
41
|
+
strong {
|
42
|
+
font-weight: bold;
|
43
|
+
}
|
44
|
+
|
45
|
+
p:last-of-type {
|
46
|
+
margin-bottom: 0;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
a[href ^='//']:not([href *='{{ site.url }}']):after,
|
51
|
+
a[href ^='http://']:not([href *='{{ site.url }}']):after,
|
52
|
+
a[href ^='https://']:not([href *='{{ site.url }}']):after {
|
53
|
+
content: url('../img/external-url.svg');
|
54
|
+
margin-left: .3rem;
|
55
|
+
display: inline-block;
|
56
|
+
width: .8rem;
|
57
|
+
background-repeat: none;
|
58
|
+
color: #257886;
|
59
|
+
|
60
|
+
&.front-page-demoshop {
|
61
|
+
display: none;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
#designguide .designguide-header .topbar-info a {
|
66
|
+
margin-left: 5px;
|
67
|
+
color: rgba(34, 34, 34, .75);
|
68
|
+
fill: rgba(34, 34, 34, .75);
|
69
|
+
border: none
|
70
|
+
}
|
71
|
+
|
72
|
+
#designguide .designguide-header .topbar-info a:after {
|
73
|
+
content: none;
|
74
|
+
display: inline;
|
75
|
+
}
|
76
|
+
|
77
|
+
#designguide .designguide-header .topbar-info a svg {
|
78
|
+
overflow: visible;
|
79
|
+
width: 2rem;
|
80
|
+
height: 2rem;
|
81
|
+
display: inline-block;
|
82
|
+
vertical-align: top;
|
83
|
+
}
|
84
|
+
|
85
|
+
#designguide .designguide-header .topbar-info a:hover {
|
86
|
+
color: rgba(0, 0, 0, .75);
|
87
|
+
fill: rgba(0, 0, 0, .75)
|
88
|
+
}
|
89
|
+
|
90
|
+
.iterator {
|
91
|
+
margin: 1rem 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
.iterator a.btn {
|
95
|
+
justify-content: center;
|
96
|
+
width: 49%;
|
97
|
+
min-width: 8rem;
|
98
|
+
}
|
99
|
+
|
100
|
+
.iterator a.btn[rel='prev']:before {
|
101
|
+
content: '❮';
|
102
|
+
position: absolute;
|
103
|
+
left: 1rem;
|
104
|
+
}
|
105
|
+
|
106
|
+
.iterator a.btn[rel='next']:after {
|
107
|
+
content: '❯';
|
108
|
+
position: absolute;
|
109
|
+
right: 1rem;
|
110
|
+
}
|
111
|
+
|
112
|
+
#designguide {
|
113
|
+
.dg-sidebar {
|
114
|
+
border-right: 1px solid $background-gray;
|
115
|
+
|
116
|
+
.main-nav-ul {
|
117
|
+
border-bottom: 1px solid $background-gray;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.documentation {
|
123
|
+
code[data-processed='true'].language-mermaid {
|
124
|
+
background: none;
|
125
|
+
border: none;
|
126
|
+
padding: 0px
|
127
|
+
}
|
128
|
+
|
129
|
+
.highlighter-rouge {
|
130
|
+
margin-bottom: 1rem;
|
131
|
+
|
132
|
+
code {
|
133
|
+
padding: 0;
|
134
|
+
background-color: none;
|
135
|
+
border: none;
|
136
|
+
font-size: 1rem;
|
137
|
+
}
|
138
|
+
|
139
|
+
pre.highlight {
|
140
|
+
background-color: #f5f2f0;
|
141
|
+
margin: 0;
|
142
|
+
}
|
143
|
+
|
144
|
+
.rouge-table {
|
145
|
+
position: relative;
|
146
|
+
|
147
|
+
&,
|
148
|
+
tbody,
|
149
|
+
tr {
|
150
|
+
display: block;
|
151
|
+
}
|
152
|
+
|
153
|
+
pre {
|
154
|
+
font-family: 'Akkurat Mono', monospace;
|
155
|
+
}
|
156
|
+
|
157
|
+
.rouge-gutter {
|
158
|
+
text-align: right;
|
159
|
+
padding: 0 .7rem;
|
160
|
+
position: absolute;
|
161
|
+
left: 0;
|
162
|
+
top: 0;
|
163
|
+
background-color: #f5f2f0;
|
164
|
+
border-right: 1px solid #e1d7d1;
|
165
|
+
}
|
166
|
+
|
167
|
+
.rouge-code {
|
168
|
+
padding-left: 50px;
|
169
|
+
display: block;
|
170
|
+
overflow-x: auto;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.no-padding {
|
176
|
+
padding: 0;
|
177
|
+
padding-bottom: 5rem;
|
178
|
+
}
|
179
|
+
|
180
|
+
.normal-padding {
|
181
|
+
padding: 3rem 1rem 5rem;
|
182
|
+
}
|
183
|
+
|
184
|
+
.max-width {
|
185
|
+
max-width: $max-width;
|
186
|
+
}
|
187
|
+
|
188
|
+
.max-width-card-overview {
|
189
|
+
max-width: 880px;
|
190
|
+
}
|
191
|
+
|
192
|
+
|
193
|
+
.language-mermaid {
|
194
|
+
$apricot: #fbf2ea;
|
195
|
+
$pink: #efb7b6;
|
196
|
+
$brand-info-light: #e8eff9;
|
197
|
+
$brand-success-light: #f2f7eb;
|
198
|
+
$darker-apricot: darken($apricot, 10%);
|
199
|
+
$black: #222;
|
200
|
+
$brown: #2f2424;
|
201
|
+
|
202
|
+
svg {
|
203
|
+
width: 100% !important;
|
204
|
+
height: 100%;
|
205
|
+
}
|
206
|
+
|
207
|
+
rect.actor {
|
208
|
+
fill: $apricot !important;
|
209
|
+
stroke: $darker-apricot !important;
|
210
|
+
}
|
211
|
+
|
212
|
+
.activation0,
|
213
|
+
.activation1,
|
214
|
+
.activation2 {
|
215
|
+
fill: $brand-success-light !important;
|
216
|
+
stroke: darken($brand-success-light, 10%) !important;
|
217
|
+
}
|
218
|
+
|
219
|
+
text.actor {
|
220
|
+
font-family: Arial, sans-serif !important;
|
221
|
+
font-size: 1rem !important;
|
222
|
+
}
|
223
|
+
|
224
|
+
.actor-line {
|
225
|
+
stroke: $apricot !important;
|
226
|
+
stroke-width: 4 !important;
|
227
|
+
}
|
228
|
+
|
229
|
+
.messageLine0 {
|
230
|
+
stroke-width: 2 !important;
|
231
|
+
stroke-dasharray: "2 2";
|
232
|
+
marker-end: "url(#arrowhead)";
|
233
|
+
stroke: $black !important;
|
234
|
+
}
|
235
|
+
|
236
|
+
.messageLine1 {
|
237
|
+
stroke-width: 1.5;
|
238
|
+
stroke-dasharray: "2 2";
|
239
|
+
stroke: $brown !important;
|
240
|
+
}
|
241
|
+
|
242
|
+
#arrowhead {
|
243
|
+
fill: $brown !important;
|
244
|
+
}
|
245
|
+
|
246
|
+
.messageText {
|
247
|
+
fill: $black !important;
|
248
|
+
stroke: none;
|
249
|
+
font-family: Arial, sans-serif !important;
|
250
|
+
font-size: 1rem !important;
|
251
|
+
}
|
252
|
+
|
253
|
+
.labelBox {
|
254
|
+
stroke: $pink !important;
|
255
|
+
fill: $pink !important;
|
256
|
+
}
|
257
|
+
|
258
|
+
.labelText {
|
259
|
+
fill: $black !important;
|
260
|
+
stroke: none;
|
261
|
+
font-family: Arial, sans-serif !important;
|
262
|
+
}
|
263
|
+
|
264
|
+
.loopText {
|
265
|
+
fill: $black !important;
|
266
|
+
stroke: none;
|
267
|
+
font-family: Arial, sans-serif !important;
|
268
|
+
font-size: 1rem !important;
|
269
|
+
}
|
270
|
+
|
271
|
+
.loopLine {
|
272
|
+
stroke-width: 2;
|
273
|
+
stroke-dasharray: "2 2";
|
274
|
+
marker-end: "url(#arrowhead)";
|
275
|
+
stroke: $pink !important;
|
276
|
+
}
|
277
|
+
|
278
|
+
.note {
|
279
|
+
stroke: darken($brand-info-light, 20%) !important;
|
280
|
+
fill: $brand-info-light !important;
|
281
|
+
}
|
282
|
+
|
283
|
+
.noteText {
|
284
|
+
fill: $black !important;
|
285
|
+
stroke: none;
|
286
|
+
font-family: Arial, sans-serif !important;
|
287
|
+
font-size: 1rem !important;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
@import 'colors.scss';
|
2
|
+
|
3
|
+
.title-header {
|
4
|
+
display: flex;
|
5
|
+
justify-content: center;
|
6
|
+
background-color: $dark-brown;
|
7
|
+
|
8
|
+
.title-header-container {
|
9
|
+
width: 100%;
|
10
|
+
padding: 3rem 1rem;
|
11
|
+
|
12
|
+
h1,
|
13
|
+
h4,
|
14
|
+
p {
|
15
|
+
color: $white;
|
16
|
+
}
|
17
|
+
|
18
|
+
h1 {
|
19
|
+
margin-top: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
p {
|
23
|
+
font-size: 1.125rem;
|
24
|
+
}
|
25
|
+
|
26
|
+
.title-header-estimated-read {
|
27
|
+
color: $yellow;
|
28
|
+
display: flex;
|
29
|
+
margin-bottom: 0.75rem;
|
30
|
+
|
31
|
+
i {
|
32
|
+
margin-right: 0.5rem;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
$max-width: 704px;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{% assign type = include.type | default: 'default' %}
|
2
|
+
{% assign type_class = 'alert-' | append: type %}
|
3
|
+
{% assign icon = include.icon | strip %}
|
4
|
+
{% assign header = include.header | markdownify | remove: '<p>' | remove: '</p>' | strip %}
|
5
|
+
{% assign body = include.body | markdownify | remove: '<p>' | remove: '</p>' | strip %}
|
6
|
+
|
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 %}
|
20
|
+
{% if icon != blank and icon != empty and icon != nil %}
|
21
|
+
<i class="material-icons alert-icon">{{ icon }}</i>
|
22
|
+
{% endif %}
|
23
|
+
{% endif %}
|
24
|
+
|
25
|
+
{% if body != blank and body != empty and body != nil %}
|
26
|
+
{% if header != blank and header != empty and header != nil %}
|
27
|
+
<div class="alert-body">
|
28
|
+
<p>{{ body }}</p>
|
29
|
+
</div>
|
30
|
+
{% else %}
|
31
|
+
<p>{{ body }}</p>
|
32
|
+
{% endif %}
|
33
|
+
{% endif %}
|
34
|
+
</div>
|
@@ -0,0 +1,100 @@
|
|
1
|
+
{% capture headingsWorkspace %}
|
2
|
+
{% comment %}
|
3
|
+
Version 1.0.3
|
4
|
+
https://github.com/allejo/jekyll-anchor-headings
|
5
|
+
|
6
|
+
"Be the pull request you wish to see in the world." ~Ben Balter
|
7
|
+
|
8
|
+
Usage:
|
9
|
+
{% include anchor_headings.html html=content %}
|
10
|
+
|
11
|
+
Parameters:
|
12
|
+
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
|
13
|
+
|
14
|
+
Optional Parameters:
|
15
|
+
* beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content
|
16
|
+
* anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available
|
17
|
+
* anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space
|
18
|
+
* anchorTitle (string) : '' - The `title` attribute that will be used for anchors
|
19
|
+
* h_min (int) : 1 - The minimum header level to build an anchor for; any header lower than this value will be ignored
|
20
|
+
* h_max (int) : 6 - The maximum header level to build an anchor for; any header greater than this value will be ignored
|
21
|
+
* bodyPrefix (string) : '' - Anything that should be inserted inside of the heading tag _before_ its anchor and content
|
22
|
+
* bodySuffix (string) : '' - Anything that should be inserted inside of the heading tag _after_ its anchor and content
|
23
|
+
|
24
|
+
Output:
|
25
|
+
The original HTML with the addition of anchors inside of all of the h1-h6 headings.
|
26
|
+
{% endcomment %}
|
27
|
+
|
28
|
+
{% assign minHeader = include.h_min | default: 1 %}
|
29
|
+
{% assign maxHeader = include.h_max | default: 6 %}
|
30
|
+
{% assign beforeHeading = include.beforeHeading %}
|
31
|
+
{% assign nodes = include.html | split: '<h' %}
|
32
|
+
|
33
|
+
{% capture edited_headings %}{% endcapture %}
|
34
|
+
|
35
|
+
{% for _node in nodes %}
|
36
|
+
{% capture node %}{{ _node | strip }}{% endcapture %}
|
37
|
+
|
38
|
+
{% if node == "" %}
|
39
|
+
{% continue %}
|
40
|
+
{% endif %}
|
41
|
+
|
42
|
+
{% assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 %}
|
43
|
+
{% assign headerLevel = nextChar | times: 1 %}
|
44
|
+
|
45
|
+
<!-- If the level is cast to 0, it means it's not a h1-h6 tag, so let's try to fix it -->
|
46
|
+
{% if headerLevel == 0 %}
|
47
|
+
{% if nextChar != '<' and nextChar != '' %}
|
48
|
+
{% capture node %}<h{{ node }}{% endcapture %}
|
49
|
+
{% endif %}
|
50
|
+
|
51
|
+
{% capture edited_headings %}{{ edited_headings }}{{ node }}{% endcapture %}
|
52
|
+
{% continue %}
|
53
|
+
{% endif %}
|
54
|
+
|
55
|
+
{% assign _workspace = node | split: '</h' %}
|
56
|
+
{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
|
57
|
+
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
|
58
|
+
{% assign html_id = _idWorkspace[0] %}
|
59
|
+
|
60
|
+
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
|
61
|
+
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
|
62
|
+
|
63
|
+
<!-- Build the anchor to inject for our heading -->
|
64
|
+
{% capture anchor %}{% endcapture %}
|
65
|
+
|
66
|
+
{% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
|
67
|
+
{% capture anchor %}href="#{{ html_id}}"{% endcapture %}
|
68
|
+
|
69
|
+
{% if include.anchorClass %}
|
70
|
+
{% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}
|
71
|
+
{% endif %}
|
72
|
+
|
73
|
+
{% if include.anchorTitle %}
|
74
|
+
{% capture anchor %}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', header }}"{% endcapture %}
|
75
|
+
{% endif %}
|
76
|
+
|
77
|
+
{% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', header | default: '' }}</a>{% endcapture %}
|
78
|
+
|
79
|
+
<!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it -->
|
80
|
+
{% if beforeHeading %}
|
81
|
+
{% capture anchor %}{{ anchor }} {% endcapture %}
|
82
|
+
{% else %}
|
83
|
+
{% capture anchor %} {{ anchor }}{% endcapture %}
|
84
|
+
{% endif %}
|
85
|
+
{% endif %}
|
86
|
+
|
87
|
+
{% capture new_heading %}
|
88
|
+
<h{{ _hAttrToStrip }}
|
89
|
+
{{ include.bodyPrefix }}
|
90
|
+
{% if beforeHeading %}
|
91
|
+
{{ anchor }}{{ header }}
|
92
|
+
{% else %}
|
93
|
+
{{ header }}{{ anchor }}
|
94
|
+
{% endif %}
|
95
|
+
{{ include.bodySuffix }}
|
96
|
+
</h{{ _workspace | last }}
|
97
|
+
{% endcapture %}
|
98
|
+
{% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %}
|
99
|
+
{% endfor %}
|
100
|
+
{% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
|