@ilo-org/styles 0.0.3 → 0.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.
@@ -1,12 +1,15 @@
1
1
  @use "../tokens" as *;
2
2
  @use "../functions" as *;
3
+ @import "../animations";
3
4
  @import "../mixins";
4
5
 
5
6
  .ilo--footer {
7
+ border-bottom: px-to-rem(3px) solid $color-base-neutrals-light;
8
+
6
9
  &--main {
7
10
  background-color: $color-base-blue-dark;
8
11
  border-bottom: px-to-rem(6px) solid $color-base-red-medium;
9
- padding: 0 px-to-rem(32px);
12
+ padding: px-to-rem(40px) px-to-rem(32px) 0 px-to-rem(32px);
10
13
  position: relative;
11
14
 
12
15
  & > * {
@@ -15,21 +18,31 @@
15
18
  }
16
19
 
17
20
  &:after {
18
- background-color: $color-base-blue-medium;
19
- clip-path: polygon(63.75% 0%, 100% 63.75%, 100% 0);
21
+ background-size: contain;
22
+ background-repeat: no-repeat;
23
+ bottom: 0;
20
24
  content: "";
21
25
  height: 100%;
22
- left: 0;
26
+ min-width: 409.5px;
27
+ right: 0;
23
28
  position: absolute;
24
- top: 0;
25
- width: 100%;
29
+ transform: scaleY(-1);
30
+ width: 28.8%;
26
31
  z-index: 0;
32
+ @include dataurlicon("footertriangle", $color-base-blue-medium);
27
33
  }
28
34
  }
29
35
 
36
+ &--logo {
37
+ max-width: 100%;
38
+ }
39
+
30
40
  &--secondary {
31
41
  background-color: $color-base-neutrals-white;
32
42
  padding: px-to-rem(36px) px-to-rem(16px) 0 px-to-rem(16px);
43
+ min-height: px-to-rem(
44
+ map-get($spacing, "ux", "readmore", "default", "height")
45
+ );
33
46
  }
34
47
 
35
48
  &--headline {
@@ -90,17 +103,6 @@
90
103
  margin-bottom: px-to-rem(45px);
91
104
  }
92
105
 
93
- .social--links--item {
94
- height: px-to-rem(16px);
95
- margin-right: px-to-rem(20px);
96
- position: relative;
97
- width: px-to-rem(16px);
98
-
99
- &:last-of-type {
100
- margin-right: none;
101
- }
102
- }
103
-
104
106
  .social--links--link {
105
107
  background-repeat: no-repeat;
106
108
  background-size: contain;
@@ -131,6 +133,45 @@
131
133
  }
132
134
  }
133
135
 
136
+ .social--links--item {
137
+ align-items: center;
138
+ background-color: transparent;
139
+ border-radius: px-to-rem(3px);
140
+ display: flex;
141
+ height: px-to-rem(24px);
142
+ justify-content: center;
143
+ margin-right: px-to-rem(20px);
144
+ position: relative;
145
+ width: px-to-rem(24px);
146
+
147
+ &:last-of-type {
148
+ margin-right: none;
149
+ }
150
+
151
+ &:hover,
152
+ &:focus {
153
+ background-color: $color-base-blue-light;
154
+
155
+ .social--links--link {
156
+ &.facebook {
157
+ @include dataurlicon("facebook", $color-base-blue-medium);
158
+ }
159
+
160
+ &.instagram {
161
+ @include dataurlicon("instagram", $color-base-blue-medium);
162
+ }
163
+
164
+ &.twitter {
165
+ @include dataurlicon("twitter", $color-base-blue-medium);
166
+ }
167
+
168
+ &.youtube {
169
+ @include dataurlicon("youtube", $color-base-blue-medium);
170
+ }
171
+ }
172
+ }
173
+ }
174
+
134
175
  .legal,
135
176
  .secondarylinks {
136
177
  color: $color-base-neutrals-medium;
@@ -153,23 +194,28 @@
153
194
 
154
195
  .secondarylinks--list--item a {
155
196
  color: $color-base-neutrals-medium;
197
+ @include globaltransition("color, border-color");
156
198
 
157
199
  &:visited {
158
200
  color: map-get($color, "link", "text-footer", "visited");
201
+ @include globaltransition("color, border-color");
159
202
  }
160
203
 
161
204
  &:hover {
162
205
  color: map-get($color, "link", "text-footer", "hover");
206
+ @include globaltransition("color, border-color");
163
207
  }
164
208
 
165
209
  &:active {
166
210
  color: map-get($color, "link", "text-footer", "active");
167
211
  outline: none;
212
+ @include globaltransition("color, border-color");
168
213
  }
169
214
 
170
215
  &:focus {
171
216
  color: map-get($color, "link", "text-footer", "focus");
172
217
  outline: none;
218
+ @include globaltransition("color, border-color");
173
219
  }
174
220
  }
175
221
 
@@ -208,8 +254,7 @@
208
254
  border-bottom: 0.1071811361rem solid $color-base-blue-medium;
209
255
  color: $color-ux-labels-hover;
210
256
  cursor: pointer;
211
- transition: background 150ms linear, border 150ms linear,
212
- color 150ms linear;
257
+ @include globaltransition("color, background-color, border-color");
213
258
 
214
259
  &:after {
215
260
  @include dataurlicon("arrow", $color-ux-labels-hover);
@@ -286,6 +331,13 @@
286
331
  "site-info address connect"
287
332
  "site-info links connect";
288
333
  padding: px-to-rem(56px) px-to-rem(70px) px-to-rem(64px) px-to-rem(70px);
334
+
335
+ &:after {
336
+ background-position: right top;
337
+ bottom: auto;
338
+ top: 0;
339
+ transform: scaleY(1);
340
+ }
289
341
  }
290
342
 
291
343
  &--logo {
@@ -326,4 +378,61 @@
326
378
  top: 0;
327
379
  }
328
380
  }
381
+
382
+ .right-to-left & {
383
+ * {
384
+ text-align: right;
385
+ }
386
+
387
+ .social--links {
388
+ flex-direction: row-reverse;
389
+ }
390
+
391
+ .social--links--link {
392
+ text-indent: 999em;
393
+ }
394
+
395
+ &--main {
396
+ &:after {
397
+ bottom: 0;
398
+ left: 0;
399
+ right: auto;
400
+ top: auto;
401
+ transform: scale(-1, -1);
402
+ }
403
+ }
404
+
405
+ @include breakpoint("medium") {
406
+ &--main {
407
+ grid-template-areas:
408
+ "address site-info"
409
+ "links site-info"
410
+ "connect site-info";
411
+ }
412
+ }
413
+
414
+ @include breakpoint("large") {
415
+ &--main {
416
+ grid-template-columns: calc(32.5% + 64px) 25.1% 19.2%;
417
+ grid-template-areas:
418
+ "connect address site-info"
419
+ "connect links site-info";
420
+
421
+ &:after {
422
+ left: 0;
423
+ right: auto;
424
+ transform: scale(-1, 1);
425
+ }
426
+ }
427
+
428
+ .connect {
429
+ grid-template-columns: 60%, minmax(0, 40%);
430
+ margin: 0 calc(18.9% + 64px) 0 0;
431
+ }
432
+
433
+ .ilo--button {
434
+ justify-self: end;
435
+ }
436
+ }
437
+ }
329
438
  }
@@ -3,6 +3,8 @@
3
3
  @import "../mixins";
4
4
 
5
5
  .ilo--hero {
6
+ background: map-get($color, "ux", "pagination", "default", "background");
7
+
6
8
  &--home {
7
9
  @include breakpoint("large") {
8
10
  position: relative;
@@ -13,8 +15,6 @@
13
15
  position: relative;
14
16
 
15
17
  @include breakpoint("large") {
16
- padding-top: 128px;
17
-
18
18
  .ilo--image {
19
19
  height: calc(100% - 80px);
20
20
  left: 0;
@@ -41,7 +41,7 @@
41
41
  }
42
42
  }
43
43
  }
44
- background: map-get($color, "ux", "pagination", "default", "background");
44
+
45
45
  &--article {
46
46
  background: map-get($color, "hero", "article");
47
47
  padding: 88px 0 0 0;
@@ -108,11 +108,10 @@
108
108
  background-color: map-get($color, "hero", "image");
109
109
 
110
110
  @include breakpoint("large") {
111
- padding-top: 128px;
112
-
113
111
  .ilo--image {
114
112
  height: 100%;
115
113
  max-height: 592px;
114
+ overflow: hidden;
116
115
  width: 100%;
117
116
  }
118
117
 
@@ -1,5 +1,6 @@
1
1
  @use "../tokens" as *;
2
2
  @use "../functions" as *;
3
+ @import "../animations";
3
4
  @import "../mixins";
4
5
 
5
6
  .ilo--link-list {
@@ -82,11 +83,13 @@
82
83
 
83
84
  &:visited {
84
85
  color: map-get($color, "link", "text", "default");
86
+ @include globaltransition("color");
85
87
  }
86
88
 
87
89
  &:active {
88
90
  color: map-get($color, "link", "text", "active");
89
91
  outline: none;
92
+ @include globaltransition("color");
90
93
  }
91
94
 
92
95
  &:hover,
@@ -97,6 +100,17 @@
97
100
  color: map-get($color, "link", "text", "hover");
98
101
  outline: none;
99
102
  @include dataurlicon("arrowright", $color-link-text-hover);
103
+ @include globaltransition("color, background-color, border-color");
104
+ }
105
+
106
+ .right-to-left & {
107
+ background-position: $spacing-padding-0-5 center;
108
+ @include dataurlicon("arrowleft", $color-link-text-default);
109
+
110
+ &:hover,
111
+ &:focus {
112
+ @include dataurlicon("arrowleft", $color-link-text-hover);
113
+ }
100
114
  }
101
115
  }
102
116
 
@@ -123,6 +137,7 @@
123
137
  &:visited {
124
138
  .ilo--link-list--label {
125
139
  color: $color-base-neutrals-white;
140
+ @include globaltransition("color");
126
141
  }
127
142
  }
128
143
 
@@ -131,6 +146,7 @@
131
146
 
132
147
  .ilo--link-list--label {
133
148
  color: map-get($color, "link", "text", "active");
149
+ @include globaltransition("color");
134
150
  }
135
151
  }
136
152
 
@@ -141,8 +157,25 @@
141
157
 
142
158
  .ilo--link-list--label {
143
159
  color: $color-base-blue-medium;
160
+ @include globaltransition("color");
144
161
  }
145
162
  }
163
+
164
+ .right-to-left & {
165
+ background-position: $spacing-padding-0-5 center;
166
+ @include dataurlicon("arrowleft", $color-base-neutrals-white);
167
+
168
+ &:hover,
169
+ &:focus {
170
+ @include dataurlicon("arrowleft", $color-base-blue-medium);
171
+ }
172
+ }
173
+ }
174
+ }
175
+
176
+ .right-to-left & {
177
+ * {
178
+ text-align: right;
146
179
  }
147
180
  }
148
181
  }