swedbank-pay-design-guide-jekyll-theme 1.10.0 → 1.10.1

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: 9d75a81c46fdd8b54db9bdedbd6f2ab116f3c5b39da55fe1e394b1194a44ecff
4
- data.tar.gz: a5f07b043e51424f139e61eb40aac49f227a26dfd9b3976e634882836d2bd2d2
3
+ metadata.gz: 19ee08d9790dff4e1cb23a6a83e6fd3dc4aacc4ce3e525512e48c44e308f410a
4
+ data.tar.gz: 7f4aba83c60b9e3479309b0dd4ded8a4d2252fdd1a353513ef945159b66ab49d
5
5
  SHA512:
6
- metadata.gz: eb181bd3f5a33e421344f7dfa84991551dd3897a10f0cb3dbaaede72007ac4008d347d925e6b38290f8451e770bb59ffb1c8a2cf74210357118f2a9ce52755ee
7
- data.tar.gz: d96ffc9da54916d3dbdc9cf8319e0091ccedcd37a6ab7488b4adecccfe2fc1423cde1b8a86a0d62fc95654b7afc1d03106eeacbd529319d7f55b7a74226f7207
6
+ metadata.gz: 794b358433885c1c8f814fa28ba0b740c0198ae79028e51efd7ea231b6f030361a8096636be0e7ce30e36e3b4fff2ceaa030af0bbe52ee67a46a75c6ed6cc8a2
7
+ data.tar.gz: 3c58bb6a40ba660b993356b9e182e7d67f833458bd9f78b00fe20f015210f5c69b8d78e15bf29affe548616a5b1604908d1f01dd12f03f6b1c78eb6363b33af2
@@ -11,10 +11,13 @@ col_class(required): Describes what grid column class(es) each card should be wr
11
11
  {% for card in include.card_list %}
12
12
  {% assign title = card.title | split: '–' | last %}
13
13
  {% assign link_to = card.extensionless_path | default: card.url %}
14
- {% assign card_type = card.card_type | default: include.type %}
14
+ {% assign card_type = card.card.type | default: card.card_type | default: include.type %}
15
15
  {% assign icon_content = card.card.icon.content | default: card.icon.content %}
16
16
  {% assign icon_outlined = card.card.icon.outlined | default: card.icon.outlined %}
17
17
  {% assign icon_svg = card.card.icon.svg | default: card.icon.svg %}
18
+ {% assign no_icon = card.card.icon.no_icon | default: card.icon.no_icon %}
19
+ {% assign horizontal = card.card.horizontal | default: false %}
20
+ {% assign disabled = card.card.disabled | default: false %}
18
21
 
19
22
  <div class="{{ include.col_class }}">
20
23
  {% include card.html
@@ -23,8 +26,11 @@ col_class(required): Describes what grid column class(es) each card should be wr
23
26
  icon_content=icon_content
24
27
  icon_outlined=icon_outlined
25
28
  icon_svg=icon_svg
29
+ no_icon=no_icon
26
30
  to=link_to
27
31
  type=card_type
32
+ horizontal=horizontal
33
+ disabled=disabled
28
34
  %}
29
35
  </div>
30
36
  {% endfor %}
@@ -7,6 +7,7 @@
7
7
  {% assign header = header | markdownify %}
8
8
  {% include anchor_headings.html html=header anchorClass='header-anchor' %}
9
9
  {% assign col_class = child.card.col_class | default: 'col-lg-4' %}
10
- {% include card-list.html card_list=child.children col_class=col_class %}
10
+ {% assign card_type = child.card.type %}
11
+ {% include card-list.html card_list=child.children col_class=col_class type=card_type %}
11
12
  {% endif %}
12
13
  {% endfor %}
data/_includes/card.html CHANGED
@@ -12,7 +12,6 @@ to(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
 
15
- {% assign title = include.title %}
16
15
  {% assign title_type = include.title_type | default: 'h4', %}
17
16
  {% assign icon_content = include.icon_content %}
18
17
  {% assign icon_outlined = include.icon_outlined | default: false %}
@@ -21,53 +20,49 @@ type: sdk | module - Empty type result in default card styling
21
20
  {% assign text = include.text %}
22
21
  {% assign horizontal = include.horizontal | default: false %}
23
22
  {% assign to = include.to %}
23
+ {% assign disabled = include.disabled %}
24
+
24
25
  {% if include.type %}
25
- {% assign type = include.type %}
26
- {% assign type_class = 'dx-card-' | append: type %}
26
+ {% assign type = include.type %}
27
+ {% assign type_class = 'dx-card-' | append: type %}
27
28
  {% else %}
28
- {% assign type_class = '' %}
29
+ {% assign type_class = '' %}
29
30
  {% endif %}
30
31
 
31
- {% comment %}
32
- card.html is structured this way due to issues with rendering
33
- when Liquid is mixed in between and the cards are not wrapped in a div
34
- {% endcomment %}
32
+ {% unless icon_svg %}
33
+ {% if icon_content contains '/' or icon_content contains '.svg' %}
34
+ {% assign icon_svg = true %}
35
+ {% endif %}
36
+ {% endunless %}
35
37
 
38
+ {% assign card_class = 'dx-card ' | append: type_class | strip %}
36
39
  {% if horizontal %}
37
- <a href="{{ to }}" class="dx-card dx-card-horizontal {{type_class}}">
38
- <span class="dx-card-icon{% if no_icon %} d-none{% endif %}">
39
- {{ icon_content }}
40
- </span>
41
- <span class="dx-card-content">
42
- <span class="{{ title_type }}">{{ title }}</span>
43
- <span>{{ text }}</span>
44
- </span>
45
- <i class="material-icons">arrow_forward</i>
46
- </a>
47
- {% else %}
48
- {% if icon_svg %}
49
- <a href="{{ to }}" class="dx-card {{type_class}}">
50
- <span class="dx-card-icon">
51
- {% include {{ icon_content }} %}
52
- </span>
53
- <span class="dx-card-content">
54
- <span class="{{ title_type }}">{{ title }}</span>
55
- <span>{{ text }}</span>
56
- </span>
57
- <i class="material-icons">arrow_forward</i>
58
- </a>
40
+ {% assign card_class = card_class | append: ' dx-card-horizontal' | strip %}
41
+ {% endif %}
42
+
43
+ {% if disabled %}
44
+ {% assign card_class = card_class | append: ' dx-card-disabled' | strip %}
45
+ {% assign card_tag = 'span' %}
59
46
  {% else %}
60
- <a href="{{ to }}" class="dx-card {{type_class}}">
47
+ {% assign card_tag = 'a' %}
48
+ {% capture card_attributes %}href="{{ to }}"{% endcapture %}
49
+ {% endif %}
50
+
51
+ <{{ card_tag }} {{ card_attributes }} class="{{ card_class }}">
61
52
  <span class="dx-card-icon{% if no_icon %} d-none{% endif %}">
62
- <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
63
- {{ icon_content }}
64
- </i>
53
+ {% if icon_svg %}
54
+ {% include {{ icon_content }} %}
55
+ {% else %}
56
+ <i class="material-icons{% if icon_outlined %}-outlined{% endif %}">
57
+ {{ icon_content }}
58
+ </i>
59
+ {% endif %}
65
60
  </span>
66
61
  <span class="dx-card-content">
67
- <span class="{{ title_type }}">{{ title }}</span>
62
+ <span class="{{ title_type }}">{{ include.title }}</span>
68
63
  <span>{{ text }}</span>
69
64
  </span>
70
- <i class="material-icons">arrow_forward</i>
71
- </a>
72
- {% endif %}
73
- {% endif %}
65
+ {% unless disabled %}
66
+ <i class="material-icons">arrow_forward</i>
67
+ {% endunless %}
68
+ </{{ card_tag }}>
data/_sass/card.scss CHANGED
@@ -95,10 +95,8 @@
95
95
  }
96
96
 
97
97
  &.dx-card-sdk {
98
-
99
98
  &:hover,
100
99
  &:focus {
101
-
102
100
  &:after {
103
101
  border-bottom: 4px solid $turquoise;
104
102
  }
@@ -116,13 +114,21 @@
116
114
  fill: $white;
117
115
  }
118
116
  }
117
+
118
+ &.dx-card-disabled {
119
+ &, .h1, .h2, .h3, .h4, h5, .h6 {
120
+ color: $soft-turquoise;
121
+ }
122
+
123
+ .dx-card-icon {
124
+ background-color: $soft-turquoise;
125
+ }
126
+ }
119
127
  }
120
128
 
121
129
  &.dx-card-module {
122
-
123
130
  &:hover,
124
131
  &:focus {
125
-
126
132
  &:after {
127
133
  border-bottom: 4px solid $card-pink;
128
134
  }
@@ -140,8 +146,36 @@
140
146
  fill: $white;
141
147
  }
142
148
  }
149
+
150
+ &.dx-card-disabled {
151
+ &, .h1, .h2, .h3, .h4, h5, .h6 {
152
+ color: $soft-card-pink;
153
+ }
154
+
155
+ .dx-card-icon {
156
+ background-color: $soft-card-pink;
157
+ }
158
+ }
143
159
  }
144
160
 
161
+ &.dx-card-disabled {
162
+ &, .h1, .h2, .h3, .h4, h5, .h6 {
163
+ color: $soft-brown;
164
+ }
165
+
166
+ &:hover,
167
+ &:focus {
168
+ box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.1);
169
+
170
+ &:after {
171
+ border-bottom: none;
172
+ }
173
+ }
174
+
175
+ .dx-card-icon {
176
+ background-color: $soft-yellow;
177
+ }
178
+ }
145
179
  }
146
180
 
147
181
 
data/_sass/colors.scss CHANGED
@@ -1,4 +1,5 @@
1
1
  $yellow: #fdc129;
2
+ $soft-yellow: #fff3d5;
2
3
  $light-turquoise: #ebf8f2;
3
4
  $apricot: #fbf2ea;
4
5
  $pink: #efb7b6;
@@ -7,12 +8,15 @@ $brand-info-light: #e8eff9;
7
8
  $brand-success: #51971b;
8
9
  $brand-success-light: #f2f7eb;
9
10
  $turquoise: #31a3ae;
11
+ $soft-turquoise: #98d0d6;
10
12
  $turquoise-link: #257886;
11
13
  $brown: #512b2b;
12
14
  $dark-brown: #493c3b;
13
15
  $medium-brown: #72605e;
16
+ $soft-brown: #a38b80;
14
17
  $white: #fff;
15
18
  $card-pink: #c5569a;
19
+ $soft-card-pink: #d698c8;
16
20
  $background-gray: #ebE7E2;
17
21
  $background-front-page: #fefcfa;
18
22
  $code-green: #9c6;
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.10.0'
7
+ '1.10.1'
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: 1.10.0
4
+ version: 1.10.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: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday