@ilo-org/twig 1.0.5 → 1.1.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.
- package/dist/components/accordion/accordion.twig +1 -1
- package/dist/components/accordion/accordion.wingsuit.yml +3 -6
- package/dist/components/button/button.twig +2 -2
- package/dist/components/button/button.wingsuit.yml +6 -15
- package/dist/components/callout/callout.twig +2 -2
- package/dist/components/callout/callout.wingsuit.yml +4 -10
- package/dist/components/card/card.wingsuit.yml +4 -7
- package/dist/components/card_detail/card_detail.twig +1 -1
- package/dist/components/card_detail/card_detail.wingsuit.yml +2 -5
- package/dist/components/card_feature/card_feature.twig +1 -1
- package/dist/components/card_feature/card_feature.wingsuit.yml +2 -5
- package/dist/components/card_multilink/card_multilink.twig +1 -1
- package/dist/components/card_multilink/card_multilink.wingsuit.yml +2 -5
- package/dist/components/card_promo/card_promo.twig +1 -1
- package/dist/components/card_promo/card_promo.wingsuit.yml +2 -5
- package/dist/components/cardgroup/cardgroup.twig +1 -1
- package/dist/components/cardgroup/cardgroup.wingsuit.yml +2 -5
- package/dist/components/contextmenu/contextmenu.twig +1 -1
- package/dist/components/contextmenu/contextmenu.wingsuit.yml +1 -1
- package/dist/components/fileupload/fileupload.twig +1 -1
- package/dist/components/fileupload/fileupload.wingsuit.yml +1 -4
- package/dist/components/footer/footer.wingsuit.yml +3 -3
- package/dist/components/hero/hero.twig +1 -1
- package/dist/components/hero/hero.wingsuit.yml +8 -8
- package/dist/components/herocard/herocard.twig +1 -1
- package/dist/components/herocard/herocard.wingsuit.yml +3 -6
- package/dist/components/icon/icon.behavior.js +1 -1
- package/dist/components/image/image.wingsuit.yml +2 -5
- package/dist/components/linklist/linklist.twig +1 -1
- package/dist/components/linklist/linklist.wingsuit.yml +3 -3
- package/dist/components/localnav/localnav.wingsuit.yml +1 -1
- package/dist/components/navigation/navigation.wingsuit.yml +1 -1
- package/dist/components/readmore/readmore.twig +1 -1
- package/dist/components/readmore/readmore.wingsuit.yml +2 -5
- package/dist/components/socialmedia/socialmedia.css +1 -1
- package/dist/components/socialmedia/socialmedia.twig +1 -1
- package/dist/components/socialmedia/socialmedia.wingsuit.yml +12 -3
- package/dist/components/table/table.twig +1 -1
- package/dist/components/table/table.wingsuit.yml +4 -10
- package/dist/components/tag/tag.wingsuit.yml +2 -5
- package/dist/components/tags/tags.wingsuit.yml +2 -5
- package/dist/components/tooltip/tooltip.twig +2 -2
- package/dist/components/tooltip/tooltip.wingsuit.yml +2 -5
- package/dist/global/styles.css +1 -1
- package/package.json +4 -4
- package/src/patterns/components/accordion/accordion.twig +1 -1
- package/src/patterns/components/accordion/accordion.wingsuit.yml +3 -6
- package/src/patterns/components/button/button.twig +2 -2
- package/src/patterns/components/button/button.wingsuit.yml +6 -15
- package/src/patterns/components/callout/callout.twig +2 -2
- package/src/patterns/components/callout/callout.wingsuit.yml +4 -10
- package/src/patterns/components/card/card.wingsuit.yml +4 -7
- package/src/patterns/components/card_detail/card_detail.twig +1 -1
- package/src/patterns/components/card_detail/card_detail.wingsuit.yml +2 -5
- package/src/patterns/components/card_feature/card_feature.twig +1 -1
- package/src/patterns/components/card_feature/card_feature.wingsuit.yml +2 -5
- package/src/patterns/components/card_multilink/card_multilink.twig +1 -1
- package/src/patterns/components/card_multilink/card_multilink.wingsuit.yml +2 -5
- package/src/patterns/components/card_promo/card_promo.twig +1 -1
- package/src/patterns/components/card_promo/card_promo.wingsuit.yml +2 -5
- package/src/patterns/components/cardgroup/cardgroup.twig +1 -1
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +2 -5
- package/src/patterns/components/contextmenu/contextmenu.twig +1 -1
- package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +1 -1
- package/src/patterns/components/fileupload/fileupload.twig +1 -1
- package/src/patterns/components/fileupload/fileupload.wingsuit.yml +1 -4
- package/src/patterns/components/footer/footer.wingsuit.yml +3 -3
- package/src/patterns/components/hero/hero.twig +1 -1
- package/src/patterns/components/hero/hero.wingsuit.yml +8 -8
- package/src/patterns/components/herocard/herocard.twig +1 -1
- package/src/patterns/components/herocard/herocard.wingsuit.yml +3 -6
- package/src/patterns/components/image/image.wingsuit.yml +2 -5
- package/src/patterns/components/linklist/linklist.twig +1 -1
- package/src/patterns/components/linklist/linklist.wingsuit.yml +3 -3
- package/src/patterns/components/localnav/localnav.wingsuit.yml +1 -1
- package/src/patterns/components/navigation/navigation.wingsuit.yml +1 -1
- package/src/patterns/components/readmore/readmore.twig +1 -1
- package/src/patterns/components/readmore/readmore.wingsuit.yml +2 -5
- package/src/patterns/components/socialmedia/socialmedia.twig +1 -1
- package/src/patterns/components/socialmedia/socialmedia.wingsuit.yml +12 -3
- package/src/patterns/components/table/table.twig +1 -1
- package/src/patterns/components/table/table.wingsuit.yml +4 -10
- package/src/patterns/components/tags/tag.wingsuit.yml +2 -5
- package/src/patterns/components/tags/tags.wingsuit.yml +2 -5
- package/src/patterns/components/tooltip/tooltip.twig +2 -2
- package/src/patterns/components/tooltip/tooltip.wingsuit.yml +2 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{# accordion.twig #}
|
|
2
2
|
|
|
3
|
-
<ul class="ilo--accordion" data-loadcomponent="Accordion"
|
|
3
|
+
<ul class="ilo--accordion" data-loadcomponent="Accordion"{{ allowMultipleExpanded|boolval ? ' data-multipleexpanded' }}>
|
|
4
4
|
{% for item in items %}
|
|
5
5
|
{% include "@components/accordion/accordion-item.twig" with {
|
|
6
6
|
label: item.label,
|
|
@@ -33,13 +33,10 @@ accordion:
|
|
|
33
33
|
large: Large
|
|
34
34
|
preview: small
|
|
35
35
|
allowMultipleExpanded:
|
|
36
|
-
type:
|
|
36
|
+
type: boolean
|
|
37
37
|
label: Allow Multiple Expanded
|
|
38
|
-
description: Allow
|
|
39
|
-
|
|
40
|
-
"true": "true"
|
|
41
|
-
"false": "false"
|
|
42
|
-
preview: "true"
|
|
38
|
+
description: Allow multiple accordion items to be expandable at once.
|
|
39
|
+
preview: true
|
|
43
40
|
required: false
|
|
44
41
|
variants:
|
|
45
42
|
default:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
BUTTON COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
{% if url %}
|
|
5
|
-
<a class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target
|
|
5
|
+
<a class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" href="{{url}}" {% if target %} target="{{target}}" rel="noopener noreferrer"{% endif %}{{ disabled|boolval ? ' disabled' }}>
|
|
6
6
|
<span class="link__label">{{label}}</span>
|
|
7
7
|
{% block button_icon %}
|
|
8
8
|
{% if icon %}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{% endblock %}
|
|
17
17
|
</a>
|
|
18
18
|
{% else %}
|
|
19
|
-
<button class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal %} aria-haspopup="dialog" {% endif %}
|
|
19
|
+
<button class="ilo--button ilo--button--{{size}} ilo--button--{{type}}{% if icon %} icon icon__position--{{iconPosition}}{% endif %}{% if icononly|boolval %} icon--only{% endif %}{% if className %} {{className}}{% endif %}" {% if kind %} type="{{kind}}" {% endif %} {% if opensmodal|boolval %} aria-haspopup="dialog" {% endif %}{{ disabled|boolval ? ' disabled' }}{% if name %} name="{{name}}" {% endif %}>
|
|
20
20
|
<span class="button__label">{{label}}</span>
|
|
21
21
|
{{ block("button_icon") }}
|
|
22
22
|
</button>
|
|
@@ -66,14 +66,11 @@ button:
|
|
|
66
66
|
icononly: Icon Only
|
|
67
67
|
preview: "primary"
|
|
68
68
|
disabled:
|
|
69
|
-
type:
|
|
69
|
+
type: boolean
|
|
70
70
|
label: Disabled
|
|
71
71
|
description: The disabled state of the button.
|
|
72
72
|
required: false
|
|
73
|
-
|
|
74
|
-
"true": "true"
|
|
75
|
-
"false": "false"
|
|
76
|
-
preview: "false"
|
|
73
|
+
preview: false
|
|
77
74
|
kind:
|
|
78
75
|
type: select
|
|
79
76
|
label: Kind
|
|
@@ -94,21 +91,15 @@ button:
|
|
|
94
91
|
preview: left
|
|
95
92
|
required: false
|
|
96
93
|
icononly:
|
|
97
|
-
type:
|
|
94
|
+
type: boolean
|
|
98
95
|
label: Icon Only
|
|
99
96
|
description: Is this an icon-only button?
|
|
100
|
-
|
|
101
|
-
"true": "true"
|
|
102
|
-
"false": "false"
|
|
103
|
-
preview: "false"
|
|
97
|
+
preview: false
|
|
104
98
|
required: false
|
|
105
99
|
opensmodal:
|
|
106
|
-
type:
|
|
100
|
+
type: boolean
|
|
107
101
|
label: Opens Modal
|
|
108
102
|
description: Does this button trigger open a modal?
|
|
109
|
-
|
|
110
|
-
"true": "true"
|
|
111
|
-
"false": "false"
|
|
112
|
-
preview: "false"
|
|
103
|
+
preview: false
|
|
113
104
|
required: false
|
|
114
105
|
visibility: storybook
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{#
|
|
2
2
|
CALLOUT COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<div class="ilo--callout ilo--callout--{{alert}} {% if isCollapsible
|
|
4
|
+
<div class="ilo--callout ilo--callout--{{alert}} {% if isCollapsible|boolval and isOpen|boolval %} ilo--callout--open {% endif %} {% if isCollapsible|boolval %} ilo--callout--collapse {% endif %}" data-loadcomponent="Callout">
|
|
5
5
|
<div class="ilo--callout--sidebar">
|
|
6
6
|
<span class="ilo--callout--icon icon icon--{{alert}}"></span>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="ilo--callout--content">
|
|
9
9
|
<div class="ilo--callout--header">
|
|
10
10
|
<h5 class="ilo--callout--title">{{ title }}</h5>
|
|
11
|
-
{% if isCollapsible
|
|
11
|
+
{% if isCollapsible|boolval %}
|
|
12
12
|
<button class="ilo--callout--toggle" type="button" data-open="{{ toggleOpenLabel }}" data-closed="{{ toggleClosedLabel }}">
|
|
13
13
|
<span class="ilo--callout--button-text">
|
|
14
14
|
{% if isOpen %}
|
|
@@ -52,21 +52,15 @@ callout:
|
|
|
52
52
|
warning: Warning
|
|
53
53
|
preview: "info"
|
|
54
54
|
isCollapsible:
|
|
55
|
-
type:
|
|
55
|
+
type: boolean
|
|
56
56
|
label: Is Collapsible?
|
|
57
57
|
description: Whether or not the callout is collapsible
|
|
58
|
-
required:
|
|
59
|
-
options:
|
|
60
|
-
"true": "true"
|
|
61
|
-
"false": "false"
|
|
58
|
+
required: true
|
|
62
59
|
preview: false
|
|
63
60
|
isOpen:
|
|
64
|
-
type:
|
|
61
|
+
type: boolean
|
|
65
62
|
label: Is Open
|
|
66
63
|
description: Whether or not a collapsible callout is open on page load. If callout is not collapsible then the callout will be open always.
|
|
67
64
|
required: false
|
|
68
|
-
|
|
69
|
-
"true": "true"
|
|
70
|
-
"false": "false"
|
|
71
|
-
preview: "true"
|
|
65
|
+
preview: true
|
|
72
66
|
visibility: storybook
|
|
@@ -150,14 +150,11 @@ card:
|
|
|
150
150
|
two: two
|
|
151
151
|
preview: "one"
|
|
152
152
|
cornercut:
|
|
153
|
-
type:
|
|
154
|
-
label:
|
|
155
|
-
description: Allows user to
|
|
153
|
+
type: boolean
|
|
154
|
+
label: Corner cut
|
|
155
|
+
description: Allows user to display a corner cut on the card. This is only used by the `Promo Card`.
|
|
156
156
|
required: false
|
|
157
|
-
preview:
|
|
158
|
-
options:
|
|
159
|
-
"true": "true"
|
|
160
|
-
"false": "false"
|
|
157
|
+
preview: true
|
|
161
158
|
size:
|
|
162
159
|
type: select
|
|
163
160
|
label: Size
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
DETAIL CARD COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
|
|
5
|
-
<div class="ilo--card ilo--card__type__detail ilo--card__action ilo--card__size__{{size}} {% if isvideo %} ilo--card__isvideo {% endif %}">
|
|
5
|
+
<div class="ilo--card ilo--card__type__detail ilo--card__action ilo--card__size__{{size}} {% if isvideo|boolval %} ilo--card__isvideo {% endif %}">
|
|
6
6
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
7
7
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
8
8
|
</a>
|
|
@@ -62,13 +62,10 @@ detailcard:
|
|
|
62
62
|
wide: wide
|
|
63
63
|
fluid: fluid
|
|
64
64
|
isvideo:
|
|
65
|
-
type:
|
|
65
|
+
type: boolean
|
|
66
66
|
label: Is a Video
|
|
67
67
|
description: Whether the card should display a video icon (for Feature card)
|
|
68
|
-
preview:
|
|
69
|
-
options:
|
|
70
|
-
"true": "true"
|
|
71
|
-
"false": "false"
|
|
68
|
+
preview: false
|
|
72
69
|
titleLevel:
|
|
73
70
|
type: select
|
|
74
71
|
label: Title Element
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
FEATURE CARD COMPONENT
|
|
3
3
|
#}
|
|
4
4
|
|
|
5
|
-
<div class="ilo--card ilo--card__type__feature ilo--card__action ilo--card__theme__{{theme}} ilo--card__size__{{ size }} {% if isvideo %} ilo--card__isvideo {% endif %} {% if cta %} ilo--card__linklist {% endif %}">
|
|
5
|
+
<div class="ilo--card ilo--card__type__feature ilo--card__action ilo--card__theme__{{theme}} ilo--card__size__{{ size }} {% if isvideo|boolval %} ilo--card__isvideo {% endif %} {% if cta %} ilo--card__linklist {% endif %}">
|
|
6
6
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
7
7
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
8
8
|
</a>
|
|
@@ -52,13 +52,10 @@ featurecard:
|
|
|
52
52
|
preview: Can digital technology be an equality machine?
|
|
53
53
|
settings:
|
|
54
54
|
isvideo:
|
|
55
|
-
type:
|
|
55
|
+
type: boolean
|
|
56
56
|
label: Is a Video
|
|
57
57
|
description: Whether the card should display a video icon (for Feature card)
|
|
58
|
-
preview:
|
|
59
|
-
options:
|
|
60
|
-
"true": "true"
|
|
61
|
-
"false": "false"
|
|
58
|
+
preview: false
|
|
62
59
|
size:
|
|
63
60
|
type: select
|
|
64
61
|
label: size
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{# card_multilink.twig #}
|
|
2
2
|
|
|
3
|
-
<div class="ilo--card ilo--card__type__multilink {% if link|length > 0 %} ilo--card__action {% endif %} ilo--card__size__{{size}} {% if isvideo %} ilo--card__isvideo {% endif %} {% if linklist %} ilo--card__linklist {% endif %} {% if size == "wide" or size == "fluid" %} ilo--card__align__{{alignment}} {% endif %}">
|
|
3
|
+
<div class="ilo--card ilo--card__type__multilink {% if link|length > 0 %} ilo--card__action {% endif %} ilo--card__size__{{size}} {% if isvideo|boolval %} ilo--card__isvideo {% endif %} {% if linklist %} ilo--card__linklist {% endif %} {% if size == "wide" or size == "fluid" %} ilo--card__align__{{alignment}} {% endif %}">
|
|
4
4
|
{% if link|length > 0 %}
|
|
5
5
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
6
6
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
@@ -71,13 +71,10 @@ multilinkcard:
|
|
|
71
71
|
left: Left
|
|
72
72
|
right: Right
|
|
73
73
|
isvideo:
|
|
74
|
-
type:
|
|
74
|
+
type: boolean
|
|
75
75
|
label: is a Video
|
|
76
76
|
description: Whether the card should display a video icon (for Feature card)
|
|
77
|
-
preview:
|
|
78
|
-
options:
|
|
79
|
-
"true": "true"
|
|
80
|
-
"false": "false"
|
|
77
|
+
preview: false
|
|
81
78
|
size:
|
|
82
79
|
type: select
|
|
83
80
|
label: Size
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#}
|
|
4
4
|
|
|
5
5
|
<div class="ilo--card--wrapper ilo--card--wrapper__type__promo ilo--card--wrapper__type__promo__size__{{ size }}">
|
|
6
|
-
<div class="ilo--card ilo--card__type__promo ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}} {% if cornercut %}ilo--card__cornercut{% endif %}">
|
|
6
|
+
<div class="ilo--card ilo--card__type__promo ilo--card__size__{{ size }} ilo--card__action ilo--card__theme__{{theme}} {% if cornercut|boolval %}ilo--card__cornercut{% endif %}">
|
|
7
7
|
<a class="ilo--card--link" href="{{link}}" title="{{title}}">
|
|
8
8
|
<span class="ilo--card--link--text">{{title}}</span>
|
|
9
9
|
</a>
|
|
@@ -41,14 +41,11 @@ promocard:
|
|
|
41
41
|
preview: Can digital technology be an equality machine?
|
|
42
42
|
settings:
|
|
43
43
|
cornercut:
|
|
44
|
-
type:
|
|
44
|
+
type: boolean
|
|
45
45
|
label: cornercut
|
|
46
46
|
description: Sets the cornercut of the card. If not set, the card will appear as `square`.
|
|
47
47
|
required: false
|
|
48
|
-
preview:
|
|
49
|
-
options:
|
|
50
|
-
"true": "true"
|
|
51
|
-
"false": "false"
|
|
48
|
+
preview: true
|
|
52
49
|
size:
|
|
53
50
|
type: select
|
|
54
51
|
label: Size
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{% set cardcount = "three" %}
|
|
6
6
|
{% endif %}
|
|
7
7
|
|
|
8
|
-
<div class="ilo--cardgroup ilo--cardgroup__count__{{cardcount}} {% if collapsed %} ilo--cardgroup__collapsed {% endif %}">
|
|
8
|
+
<div class="ilo--cardgroup ilo--cardgroup__count__{{cardcount}} {% if collapsed|boolval %} ilo--cardgroup__collapsed {% endif %}">
|
|
9
9
|
<div class="ilo--cardgroup--inner">
|
|
10
10
|
{% for card in group %}
|
|
11
11
|
<div class="ilo--cardgroup--card">
|
|
@@ -6,14 +6,11 @@ cardgroup:
|
|
|
6
6
|
visibility: storybook
|
|
7
7
|
settings:
|
|
8
8
|
collapsed:
|
|
9
|
-
type:
|
|
9
|
+
type: boolean
|
|
10
10
|
label: collapsed
|
|
11
11
|
description: Optionally collapses margins between the cards.
|
|
12
12
|
required: false
|
|
13
|
-
preview:
|
|
14
|
-
options:
|
|
15
|
-
"true": "true"
|
|
16
|
-
"false": "false"
|
|
13
|
+
preview: false
|
|
17
14
|
cardcount:
|
|
18
15
|
type: select
|
|
19
16
|
label: collapsed
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#}
|
|
4
4
|
<ol class="ilo--context-menu">
|
|
5
5
|
{% for link in links %}
|
|
6
|
-
<li class="ilo--context-menu--item{
|
|
6
|
+
<li class="ilo--context-menu--item{{ link.endsection|boolval ? ' endsection'}}">
|
|
7
7
|
<a href="{{link.url}}" class="ilo--context-menu--link">
|
|
8
8
|
<span class="ilo--context-menu--label">{{link.label}}</span>
|
|
9
9
|
</a>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div class="{{ fileUploadClasses|join(' ') }}">
|
|
15
15
|
<label class="{{ inputClass }}">
|
|
16
16
|
{{ placeholder }}
|
|
17
|
-
<input id="{{ id|default(name) }}" name="{{ name }}" {% if disabled %} disabled {% endif %} {% if multiple %} multiple {% endif %} placeholder="{{ placeholder }}" {% if required %} required {% endif %} type="file" data-label="{{ placeholder }}" aria-describedby="{{ ariaDescribedBy }}" {% if accept %} accept="{{ accept }}" {% endif %} data-loadcomponent="FileUpload" data-prefix="ilo"/>
|
|
17
|
+
<input id="{{ id|default(name) }}" name="{{ name }}" {% if disabled %} disabled {% endif %} {% if multiple|boolval %} multiple {% endif %} placeholder="{{ placeholder }}" {% if required %} required {% endif %} type="file" data-label="{{ placeholder }}" aria-describedby="{{ ariaDescribedBy }}" {% if accept %} accept="{{ accept }}" {% endif %} data-loadcomponent="FileUpload" data-prefix="ilo"/>
|
|
18
18
|
</label>
|
|
19
19
|
</div>
|
|
20
20
|
{% endblock %}
|
|
@@ -50,9 +50,9 @@ footer:
|
|
|
50
50
|
preview:
|
|
51
51
|
headline: "Stay informed"
|
|
52
52
|
icons:
|
|
53
|
-
- icon: "
|
|
54
|
-
label: "
|
|
55
|
-
url: "https://
|
|
53
|
+
- icon: "x"
|
|
54
|
+
label: "X"
|
|
55
|
+
url: "https://x.com/ilo"
|
|
56
56
|
- icon: "facebook"
|
|
57
57
|
label: "Facebook"
|
|
58
58
|
url: "https://www.facebook.com/ilo.org"
|
|
@@ -45,16 +45,16 @@ hero:
|
|
|
45
45
|
title: "Child labour"
|
|
46
46
|
theme: "dark"
|
|
47
47
|
background: "solid"
|
|
48
|
-
cornercut:
|
|
48
|
+
cornercut: true
|
|
49
49
|
eyebrow: ILO Topics
|
|
50
50
|
socialmedia:
|
|
51
51
|
icons:
|
|
52
52
|
- label: "Facebook"
|
|
53
53
|
url: "https://www.facebook.com/ilo.org"
|
|
54
54
|
icon: "facebook"
|
|
55
|
-
- label: "
|
|
56
|
-
url: "https://www.
|
|
57
|
-
icon: "
|
|
55
|
+
- label: "X"
|
|
56
|
+
url: "https://www.x.com/ilo.org"
|
|
57
|
+
icon: "x"
|
|
58
58
|
- label: "Linkedin"
|
|
59
59
|
url: "https://www.linkedin.com/company/international-labour-organization-ilo"
|
|
60
60
|
icon: "linkedin"
|
|
@@ -164,16 +164,16 @@ hero:
|
|
|
164
164
|
datecopy: "11 February 2021"
|
|
165
165
|
theme: "light"
|
|
166
166
|
background: "solid"
|
|
167
|
-
cornercut:
|
|
167
|
+
cornercut: true
|
|
168
168
|
eyebrow: Women in management
|
|
169
169
|
socialmedia:
|
|
170
170
|
icons:
|
|
171
171
|
- label: "Facebook"
|
|
172
172
|
url: "https://www.facebook.com/ilo.org"
|
|
173
173
|
icon: "facebook"
|
|
174
|
-
- label: "
|
|
175
|
-
url: "https://www.
|
|
176
|
-
icon: "
|
|
174
|
+
- label: "X"
|
|
175
|
+
url: "https://www.x.com/ilo.org"
|
|
176
|
+
icon: "x"
|
|
177
177
|
- label: "Linkedin"
|
|
178
178
|
url: "https://www.linkedin.com/company/international-labour-organization-ilo"
|
|
179
179
|
icon: "linkedin"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{#
|
|
2
2
|
HEROCARD COMPONENT
|
|
3
3
|
#}
|
|
4
|
-
<div class="ilo--hero-card ilo--hero-card__theme__{{ theme }} ilo--hero-card__background__{{ background }} {% if cornercut
|
|
4
|
+
<div class="ilo--hero-card ilo--hero-card__theme__{{ theme }} ilo--hero-card__background__{{ background }} {% if cornercut|boolval %} ilo--hero-card__cornercut {% endif %}">
|
|
5
5
|
{% if eyebrow %}
|
|
6
6
|
<p class="{{ prefix }}--hero-card--eyebrow">{{ eyebrow }}</p>
|
|
7
7
|
{% endif %}
|
|
@@ -23,13 +23,10 @@ herocard:
|
|
|
23
23
|
transparent: transparent
|
|
24
24
|
preview: "solid"
|
|
25
25
|
cornercut:
|
|
26
|
-
type:
|
|
27
|
-
label:
|
|
26
|
+
type: boolean
|
|
27
|
+
label: Corner cut
|
|
28
28
|
description: Whether the card show have its right or left corner cut
|
|
29
|
-
|
|
30
|
-
"true": "true"
|
|
31
|
-
"false": "false"
|
|
32
|
-
preview: "true"
|
|
29
|
+
preview: true
|
|
33
30
|
fields:
|
|
34
31
|
url:
|
|
35
32
|
type: string
|