@ilo-org/styles 1.3.4 → 1.4.0
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/css/components/blockquote.css +1 -0
- package/css/components/card.css +1 -1
- package/css/components/datacard.css +1 -1
- package/css/components/featurecard.css +1 -1
- package/css/components/languagetoggle.css +1 -0
- package/css/components/list.css +1 -1
- package/css/components/multilinkcard.css +1 -1
- package/css/components/richtext.css +1 -1
- package/css/components/socialmedia.css +1 -1
- package/css/global.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +2 -2
- package/css/index.css.map +1 -1
- package/css/monorepo.css +2 -2
- package/css/monorepo.css.map +1 -1
- package/package.json +2 -2
- package/scss/_mixins.scss +9 -11
- package/scss/components/_blockquote.scss +88 -81
- package/scss/components/_card.scss +38 -37
- package/scss/components/_datacard.scss +11 -0
- package/scss/components/_featurecard.scss +19 -29
- package/scss/components/_languagetoggle.scss +77 -0
- package/scss/components/_list.scss +1 -1
- package/scss/components/_multilinkcard.scss +55 -24
- package/scss/components/_richtext.scss +3 -1
- package/scss/components/_socialmedia.scss +24 -0
- package/scss/components/index.scss +2 -0
- package/scss/theme/_foundation.scss +1 -0
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
&__type {
|
|
10
10
|
&__multilink {
|
|
11
|
+
--standard-spacing: #{spacing(8)};
|
|
12
|
+
--narrow-spacing: #{spacing(6)};
|
|
11
13
|
// Defaults to standard size
|
|
12
14
|
--max-width: #{px-to-rem(536px)};
|
|
13
15
|
|
|
@@ -15,27 +17,35 @@
|
|
|
15
17
|
|
|
16
18
|
#{$self}--image--wrapper {
|
|
17
19
|
display: none;
|
|
20
|
+
background-color: var(--ilo-color-blue-lighter);
|
|
21
|
+
height: 0;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
padding-top: 56.25%;
|
|
24
|
+
position: relative;
|
|
25
|
+
margin-bottom: var(--standard-spacing);
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
picture,
|
|
29
|
+
img {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 50%;
|
|
32
|
+
left: 50%;
|
|
33
|
+
transform: translate(-50%, -50%);
|
|
34
|
+
height: auto;
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
18
37
|
}
|
|
19
38
|
|
|
20
39
|
#{$self}--content {
|
|
21
40
|
#{$self}--image--wrapper {
|
|
22
41
|
display: block;
|
|
23
|
-
margin-bottom: spacing(8);
|
|
24
42
|
}
|
|
25
43
|
}
|
|
26
44
|
|
|
27
|
-
@include breakpoint("md") {
|
|
28
|
-
padding: spacing(10);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@include breakpoint("lg") {
|
|
32
|
-
padding: spacing(14) spacing(12);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
45
|
#{$self}--title {
|
|
36
46
|
@include font-styles("headline-5");
|
|
37
|
-
margin-bottom: spacing
|
|
38
|
-
color:
|
|
47
|
+
margin-bottom: var(--standard-spacing);
|
|
48
|
+
color: var(--ilo-color-gray-charcoal);
|
|
39
49
|
|
|
40
50
|
@include breakpoint("md") {
|
|
41
51
|
@include font-styles("headline-4");
|
|
@@ -44,8 +54,8 @@
|
|
|
44
54
|
|
|
45
55
|
#{$self}--intro {
|
|
46
56
|
@include font-styles("body-small");
|
|
47
|
-
margin-bottom: spacing
|
|
48
|
-
color:
|
|
57
|
+
margin-bottom: var(--standard-spacing);
|
|
58
|
+
color: var(--ilo-color-gray-charcoal);
|
|
49
59
|
|
|
50
60
|
@include breakpoint("md") {
|
|
51
61
|
@include font-styles("base");
|
|
@@ -55,7 +65,6 @@
|
|
|
55
65
|
&#{$self}__size {
|
|
56
66
|
&__standard {
|
|
57
67
|
--max-width: #{px-to-rem(536px)};
|
|
58
|
-
|
|
59
68
|
padding: spacing(12) spacing(10);
|
|
60
69
|
}
|
|
61
70
|
|
|
@@ -70,21 +79,21 @@
|
|
|
70
79
|
#{$self}--content {
|
|
71
80
|
#{$self}--image--wrapper {
|
|
72
81
|
display: block;
|
|
73
|
-
margin-bottom: spacing
|
|
82
|
+
margin-bottom: var(--narrow-spacing);
|
|
74
83
|
}
|
|
75
84
|
}
|
|
76
85
|
|
|
77
86
|
#{$self}--title {
|
|
78
87
|
@include breakpoint("md") {
|
|
79
88
|
@include font-styles("headline-5");
|
|
80
|
-
margin-bottom: spacing
|
|
89
|
+
margin-bottom: var(--narrow-spacing);
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
#{$self}--intro {
|
|
85
94
|
@include breakpoint("md") {
|
|
86
95
|
@include font-styles("body-small");
|
|
87
|
-
margin-bottom: spacing
|
|
96
|
+
margin-bottom: var(--narrow-spacing);
|
|
88
97
|
}
|
|
89
98
|
}
|
|
90
99
|
}
|
|
@@ -104,23 +113,26 @@
|
|
|
104
113
|
|
|
105
114
|
&#{$self}__align__right {
|
|
106
115
|
#{$self}--wrap {
|
|
107
|
-
|
|
116
|
+
grid-template-areas: "content image";
|
|
108
117
|
}
|
|
109
118
|
}
|
|
110
119
|
|
|
111
120
|
#{$self}--wrap {
|
|
112
|
-
display:
|
|
113
|
-
|
|
121
|
+
display: grid;
|
|
122
|
+
grid-template-areas: "image content";
|
|
123
|
+
grid-template-columns: 1fr 1fr;
|
|
124
|
+
gap: px-to-rem(32px);
|
|
114
125
|
}
|
|
115
126
|
|
|
116
127
|
#{$self}--image--wrapper {
|
|
117
|
-
|
|
118
|
-
|
|
128
|
+
grid-area: image;
|
|
129
|
+
display: inline-block;
|
|
130
|
+
margin-bottom: 0;
|
|
131
|
+
width: 100%;
|
|
119
132
|
}
|
|
120
133
|
|
|
121
134
|
#{$self}--content {
|
|
122
|
-
|
|
123
|
-
|
|
135
|
+
grid-area: content;
|
|
124
136
|
#{$self}--image--wrapper {
|
|
125
137
|
display: none;
|
|
126
138
|
}
|
|
@@ -141,6 +153,25 @@
|
|
|
141
153
|
position: relative;
|
|
142
154
|
z-index: 3;
|
|
143
155
|
}
|
|
156
|
+
|
|
157
|
+
@include breakpoint("md") {
|
|
158
|
+
padding: spacing(10);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@include breakpoint("lg") {
|
|
162
|
+
padding: spacing(14) spacing(12);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Make list links white on hover when blue theme is set
|
|
168
|
+
&__theme__soft#{&}__type__multilink {
|
|
169
|
+
.ilo--link-list {
|
|
170
|
+
a {
|
|
171
|
+
&:hover {
|
|
172
|
+
background-color: var(--ilo-color-white);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
144
175
|
}
|
|
145
176
|
}
|
|
146
177
|
}
|
|
@@ -153,6 +153,30 @@
|
|
|
153
153
|
@include get-icon("social_tiktok", "dark");
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
|
|
157
|
+
&__bluesky {
|
|
158
|
+
@include get-icon("social_bluesky");
|
|
159
|
+
|
|
160
|
+
#{$c}__theme__dark & {
|
|
161
|
+
@include get-icon("social_bluesky", "dark");
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&__weibo {
|
|
166
|
+
@include get-icon("social_weibo");
|
|
167
|
+
|
|
168
|
+
#{$c}__theme__dark & {
|
|
169
|
+
@include get-icon("social_weibo", "dark");
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&__wechat {
|
|
174
|
+
@include get-icon("social_wechat");
|
|
175
|
+
|
|
176
|
+
#{$c}__theme__dark & {
|
|
177
|
+
@include get-icon("social_wechat", "dark");
|
|
178
|
+
}
|
|
179
|
+
}
|
|
156
180
|
}
|
|
157
181
|
}
|
|
158
182
|
}
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
--ilo-color-gray-charcoal: rgba(45, 45, 45, 1);
|
|
41
41
|
--ilo-color-gray-accessible: rgba(109, 109, 109, 1);
|
|
42
42
|
--ilo-color-gray-light: rgba(237, 240, 242, 1);
|
|
43
|
+
--ilo-color-gray-light-semi-transparent: rgba(237, 240, 242, 0.25);
|
|
43
44
|
--ilo-color-gray-base: rgba(184, 196, 204, 1);
|
|
44
45
|
--ilo-color-red: rgba(250, 60, 75, 1);
|
|
45
46
|
--ilo-color-red-light: rgba(254, 216, 219, 1);
|