@ilo-org/styles 0.3.5 → 0.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.
@@ -0,0 +1,304 @@
1
+ @use "../tokens" as *;
2
+ @use "../functions" as *;
3
+ @import "../mixins";
4
+
5
+ .ilo--hero-card {
6
+ $c: &;
7
+ $semi-transparent: 0.6;
8
+ $padding-lg: 64px;
9
+ $padding-sm: 39px;
10
+
11
+ height: 100%;
12
+ position: relative;
13
+ padding: $padding-sm 16px;
14
+
15
+ @include breakpoint("large") {
16
+ padding: $padding-lg;
17
+ }
18
+
19
+ .right-to-left & {
20
+ direction: rtl;
21
+ }
22
+
23
+ &--title-link {
24
+ color: inherit;
25
+ text-decoration: none;
26
+
27
+ &:hover {
28
+ text-decoration: underline;
29
+ }
30
+ }
31
+
32
+ &__theme {
33
+ &__light {
34
+ color: map-get($color, "hero", "card", "light", "color");
35
+ background: map-get($color, "hero", "card", "light", "background");
36
+
37
+ @include breakpoint("large") {
38
+ &.ilo--hero-card__background__semi-transparent {
39
+ background: rgba(
40
+ map-get($color, "hero", "card", "light", "background"),
41
+ $semi-transparent
42
+ );
43
+ }
44
+ }
45
+ }
46
+
47
+ &__dark {
48
+ background: map-get($color, "hero", "card", "dark", "background");
49
+ color: map-get($color, "hero", "card", "dark", "color");
50
+
51
+ @include breakpoint("large") {
52
+ &.ilo--hero-card__background__semi-transparent {
53
+ background: rgba(
54
+ map-get($color, "hero", "card", "dark", "background"),
55
+ $semi-transparent
56
+ );
57
+ }
58
+ }
59
+ }
60
+
61
+ @include breakpoint("large") {
62
+ &__dark.ilo--hero-card__background__transparent,
63
+ &__light.ilo--hero-card__background__transparent {
64
+ color: map-get($color, "hero", "card", "dark", "color");
65
+ background: transparent;
66
+
67
+ * {
68
+ filter: drop-shadow(
69
+ 1px 1px 12px #{map-get($color, "base", "neutrals", "dark")}
70
+ );
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ &__cornercut {
77
+ clip-path: polygon(
78
+ 0 0,
79
+ calc(100% - $padding-lg) 0,
80
+ 100% $padding-sm,
81
+ 100% 100%,
82
+ 0 100%
83
+ );
84
+
85
+ @include breakpoint("large") {
86
+ clip-path: polygon(
87
+ 0 0,
88
+ calc(100% - $padding-lg) 0,
89
+ 100% $padding-lg,
90
+ 100% 100%,
91
+ 0 100%
92
+ );
93
+ }
94
+ }
95
+
96
+ &--datecopy {
97
+ @include font-styles("body-small");
98
+ margin-bottom: px-to-rem(28px);
99
+ color: map-get($color, "hero", "card", "light", "datecopy", "color");
100
+
101
+ #{$c}__theme__dark & {
102
+ color: map-get($color, "hero", "card", "dark", "datecopy", "color");
103
+ }
104
+
105
+ #{$c}__theme__light & {
106
+ color: map-get($color, "hero", "card", "light", "datecopy", "color");
107
+ }
108
+
109
+ .ilo--hero-card__background__transparent &,
110
+ .ilo--hero-card__background__semi-transparent & {
111
+ color: map-get($color, "hero", "card", "dark", "eyebrow", "color");
112
+ }
113
+ }
114
+
115
+ &--eyebrow {
116
+ @include font-styles("body-small");
117
+ margin-bottom: px-to-rem(16px);
118
+ color: map-get($color, "hero", "card", "light", "eyebrow", "color");
119
+
120
+ #{$c}__theme__dark & {
121
+ color: map-get($color, "hero", "card", "dark", "eyebrow", "color");
122
+ }
123
+
124
+ #{$c}__theme__light & {
125
+ color: map-get($color, "hero", "card", "light", "eyebrow", "color");
126
+ }
127
+
128
+ .ilo--hero-card__background__transparent & {
129
+ color: map-get($color, "hero", "card", "dark", "eyebrow", "color");
130
+ }
131
+ }
132
+
133
+ &--intro {
134
+ @include font-styles("body-small");
135
+ margin-bottom: px-to-rem(28px);
136
+
137
+ @include breakpoint("large") {
138
+ @include font-styles("base");
139
+ }
140
+ }
141
+
142
+ &--title {
143
+ @include font-styles("headline-3");
144
+ @include textmargin(
145
+ "margin-bottom",
146
+ 40px,
147
+ "headline-2",
148
+ "display",
149
+ "base",
150
+ "copy"
151
+ );
152
+
153
+ font-family: $fonts-display;
154
+ font-weight: 700;
155
+
156
+ @include breakpoint("large") {
157
+ @include font-styles("headline-2");
158
+ }
159
+ }
160
+
161
+ &--list {
162
+ display: flex;
163
+ flex-flow: row nowrap;
164
+ justify-content: flex-start;
165
+ align-items: center;
166
+ gap: 24px;
167
+ }
168
+
169
+ // @TODO: This should really be moved out into its own component
170
+ &--link {
171
+ color: map-get($color, "hero", "card", "light", "link", "color");
172
+ display: inline-block;
173
+ overflow: hidden;
174
+ padding: 0 5px;
175
+ text-indent: -999px;
176
+ width: 100%;
177
+
178
+ &.icon {
179
+ background-position: center;
180
+ background-repeat: no-repeat;
181
+ background-size: auto 16px;
182
+ border-radius: 2px;
183
+ display: inline-block;
184
+ color: map-get($color, "hero", "card", "light", "icon", "color");
185
+ height: 24px;
186
+ width: px-to-rem(24px);
187
+
188
+ &:hover {
189
+ background-color: map-get(
190
+ $color,
191
+ "hero",
192
+ "card",
193
+ "light",
194
+ "iconhover",
195
+ "background"
196
+ );
197
+ transition: all 0.1s ease-in-out;
198
+ }
199
+
200
+ #{$c}__theme__dark,
201
+ .ilo--hero-card__background__transparent & {
202
+ color: map-get($color, "hero", "card", "dark", "icon", "color");
203
+
204
+ &:hover {
205
+ background-color: map-get(
206
+ $color,
207
+ "hero",
208
+ "card",
209
+ "dark",
210
+ "iconhover",
211
+ "background"
212
+ );
213
+ }
214
+ }
215
+
216
+ &--facebook {
217
+ @include dataurlicon(
218
+ "facebook",
219
+ map-get($color, "hero", "card", "light", "icon", "color")
220
+ );
221
+
222
+ &:hover {
223
+ @include dataurlicon(
224
+ "facebook",
225
+ map-get($color, "hero", "card", "light", "iconhover", "color")
226
+ );
227
+ }
228
+
229
+ #{$c}__theme__dark &,
230
+ .ilo--hero-card__background__transparent & {
231
+ @include dataurlicon(
232
+ "facebook",
233
+ map-get($color, "hero", "card", "dark", "icon", "color")
234
+ );
235
+
236
+ &:hover {
237
+ @include dataurlicon(
238
+ "facebook",
239
+ map-get($color, "hero", "card", "dark", "iconhover", "color")
240
+ );
241
+ }
242
+ }
243
+ }
244
+
245
+ &--twitter {
246
+ @include dataurlicon(
247
+ "twitter",
248
+ map-get($color, "hero", "card", "light", "icon", "color")
249
+ );
250
+
251
+ &:hover {
252
+ @include dataurlicon(
253
+ "twitter",
254
+ map-get($color, "hero", "card", "light", "iconhover", "color")
255
+ );
256
+ }
257
+
258
+ #{$c}__theme__dark &,
259
+ .ilo--hero-card__background__transparent & {
260
+ @include dataurlicon(
261
+ "twitter",
262
+ map-get($color, "hero", "card", "dark", "icon", "color")
263
+ );
264
+
265
+ &:hover {
266
+ @include dataurlicon(
267
+ "twitter",
268
+ map-get($color, "hero", "card", "dark", "iconhover", "color")
269
+ );
270
+ }
271
+ }
272
+ }
273
+
274
+ &--linkedin {
275
+ @include dataurlicon(
276
+ "linkedin",
277
+ map-get($color, "hero", "card", "light", "icon", "color")
278
+ );
279
+
280
+ &:hover {
281
+ @include dataurlicon(
282
+ "linkedin",
283
+ map-get($color, "hero", "card", "light", "iconhover", "color")
284
+ );
285
+ }
286
+
287
+ #{$c}__theme__dark &,
288
+ .ilo--hero-card__background__transparent & {
289
+ @include dataurlicon(
290
+ "linkedin",
291
+ map-get($color, "hero", "card", "dark", "icon", "color")
292
+ );
293
+
294
+ &:hover {
295
+ @include dataurlicon(
296
+ "linkedin",
297
+ map-get($color, "hero", "card", "dark", "iconhover", "color")
298
+ );
299
+ }
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
@@ -4,6 +4,8 @@
4
4
  @import "../mixins";
5
5
 
6
6
  .ilo--tooltip {
7
+ $c: &;
8
+
7
9
  @include font-styles("body-xs");
8
10
  background: map-get($color, "tooltip", "default", "background");
9
11
  border: none;
@@ -35,6 +37,7 @@
35
37
  &--wrapper {
36
38
  display: inline-block;
37
39
  position: relative;
40
+ cursor: pointer;
38
41
 
39
42
  &.has-icon {
40
43
  background-repeat: no-repeat;
@@ -43,6 +46,12 @@
43
46
  min-width: px-to-rem($spacing-padding-2);
44
47
  @include dataurlicon("info", $color-ux-labels-actionable);
45
48
  }
49
+
50
+ &--dark {
51
+ &.has-icon {
52
+ @include dataurlicon("info", $color-tooltip-dark-icon);
53
+ }
54
+ }
46
55
  }
47
56
 
48
57
  &--arrow {
@@ -17,6 +17,7 @@
17
17
  @use "footer";
18
18
  @use "heading";
19
19
  @use "hero";
20
+ @use "herocard";
20
21
  @use "image";
21
22
  @use "input";
22
23
  @use "link";