@ilo-org/styles 0.1.0 → 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
  }
@@ -78,6 +78,11 @@
78
78
 
79
79
  &--logo {
80
80
  display: block;
81
+ max-width: 150px;
82
+
83
+ @include breakpoint("large") {
84
+ max-width: 200px;
85
+ }
81
86
 
82
87
  &-link {
83
88
  display: block;
@@ -27,13 +27,23 @@
27
27
  }
28
28
 
29
29
  &--inline {
30
- width: 100%;
30
+ max-width: 340px;
31
31
 
32
32
  .ilo--notification--content {
33
- align-items: center;
34
- display: flex;
35
- justify-items: space-between;
36
- padding: px-to-rem(14px) px-to-rem($spacing-padding-3);
33
+ padding: calc(px-to-rem($spacing-padding-3) + 2px)
34
+ px-to-rem($spacing-padding-3);
35
+ }
36
+
37
+ @include breakpoint("medium") {
38
+ max-width: 100%;
39
+ width: 100%;
40
+
41
+ .ilo--notification--content {
42
+ align-items: center;
43
+ display: flex;
44
+ justify-items: space-between;
45
+ padding: px-to-rem(14px) px-to-rem($spacing-padding-3);
46
+ }
37
47
  }
38
48
  }
39
49
 
@@ -54,8 +64,10 @@
54
64
  width: px-to-rem($spacing-padding-5);
55
65
  top: 0;
56
66
 
57
- .ilo--notification--inline & {
58
- background-position: center;
67
+ @include breakpoint("medium") {
68
+ .ilo--notification--inline & {
69
+ background-position: center;
70
+ }
59
71
  }
60
72
 
61
73
  .icon--error & {
@@ -84,8 +96,12 @@
84
96
  font-weight: 700;
85
97
  @include font-styles("body-small");
86
98
 
87
- .ilo--notification--dialog & {
88
- margin-bottom: px-to-rem($spacing-padding-1-5);
99
+ margin-bottom: px-to-rem($spacing-padding-1-5);
100
+
101
+ @include breakpoint("medium") {
102
+ .ilo--notification--inline & {
103
+ margin-bottom: 0;
104
+ }
89
105
  }
90
106
  }
91
107
 
@@ -93,20 +109,23 @@
93
109
  font-weight: 400;
94
110
  @include font-styles("body-xs");
95
111
 
96
- .ilo--notification--inline & {
97
- margin-left: px-to-rem($spacing-padding-3);
112
+ @include breakpoint("medium") {
113
+ .ilo--notification--inline & {
114
+ margin-left: px-to-rem($spacing-padding-3);
115
+ }
98
116
  }
99
117
 
100
118
  &:not(:last-child) {
101
- .ilo--notification--dialog & {
102
- margin-bottom: px-to-rem($spacing-padding-3);
103
- }
119
+ margin-bottom: px-to-rem($spacing-padding-3);
104
120
 
105
- .ilo--notification--inline & {
106
- max-width: 24%;
121
+ @include breakpoint("medium") {
122
+ .ilo--notification--inline & {
123
+ margin-bottom: 0;
124
+ max-width: 24%;
107
125
 
108
- @include breakpoint("large") {
109
- max-width: 40%;
126
+ @include breakpoint("large") {
127
+ max-width: 40%;
128
+ }
110
129
  }
111
130
  }
112
131
  }
@@ -118,20 +137,28 @@
118
137
  font-weight: 400;
119
138
  @include font-styles("body-xs");
120
139
 
121
- .ilo--notification--inline & {
122
- margin-left: px-to-rem($spacing-padding-2);
140
+ @include breakpoint("medium") {
141
+ .ilo--notification--inline & {
142
+ margin-left: px-to-rem($spacing-padding-2);
143
+ }
123
144
  }
124
145
 
125
146
  &:not(:last-child) {
126
- .ilo--notification--dialog & {
127
- margin-bottom: px-to-rem(19px);
147
+ margin-bottom: px-to-rem(19px);
148
+ }
149
+
150
+ @include breakpoint("medium") {
151
+ .ilo--notification--inline & {
152
+ margin-bottom: 0;
128
153
  }
129
154
  }
130
155
  }
131
156
 
132
157
  &--cta {
133
- .ilo--notification--inline & {
134
- margin-left: px-to-rem($spacing-padding-3);
158
+ @include breakpoint("medium") {
159
+ .ilo--notification--inline & {
160
+ margin-left: px-to-rem($spacing-padding-3);
161
+ }
135
162
  }
136
163
  }
137
164
 
@@ -48,6 +48,7 @@
48
48
  font-family: $fonts-display;
49
49
  font-weight: 700;
50
50
  @include font-styles("body-xs");
51
+ letter-spacing: -0.02em;
51
52
  padding: $spacing-ux-table-head-padding-top
52
53
  $spacing-ux-table-head-padding-right
53
54
  $spacing-ux-table-head-padding-bottom
@@ -55,6 +56,13 @@
55
56
  pointer-events: none;
56
57
  text-align: left;
57
58
 
59
+ .ilo--table--small & {
60
+ padding: $spacing-ux-table-smallhead-padding-top
61
+ $spacing-ux-table-smallhead-padding-right
62
+ $spacing-ux-table-smallhead-padding-bottom
63
+ $spacing-ux-table-smallhead-padding-left;
64
+ }
65
+
58
66
  &:first-of-type {
59
67
  border-left: none;
60
68
  }
@@ -113,6 +121,13 @@
113
121
  $spacing-ux-table-cell-padding-left;
114
122
  position: relative;
115
123
 
124
+ .ilo--table--small & {
125
+ padding: $spacing-ux-table-smallcell-padding-top
126
+ $spacing-ux-table-smallcell-padding-right
127
+ $spacing-ux-table-smallcell-padding-bottom
128
+ $spacing-ux-table-smallcell-padding-left;
129
+ }
130
+
116
131
  &:first-of-type {
117
132
  border-left: none;
118
133
  }
@@ -121,10 +136,17 @@
121
136
  text-align: right;
122
137
  }
123
138
 
139
+ &:hover {
140
+ background-color: $color-ux-table-selected-background;
141
+ border-bottom: 2px solid $color-ux-labels-hover;
142
+ color: $color-ux-labels-hover;
143
+ }
144
+
124
145
  &.selected {
125
146
  background-color: $color-ux-table-selected-background;
126
147
  border-bottom: 2px solid $color-ux-labels-hover;
127
148
  color: $color-ux-labels-hover;
149
+ cursor: pointer;
128
150
  }
129
151
 
130
152
  &.column--selected {
@@ -145,6 +167,7 @@
145
167
  }
146
168
 
147
169
  &--description {
170
+ color: $color-base-neutrals-medium;
148
171
  font-family: $fonts-copy;
149
172
  font-weight: 400;
150
173
  @include font-styles("body-xxs");
@@ -167,11 +190,20 @@
167
190
  border-left: px-to-rem(1px) solid $color-base-neutrals-white;
168
191
 
169
192
  &:hover,
170
- &:focus,
171
- &.selected {
193
+ &:focus {
172
194
  background-color: $color-ux-table-selected-background;
173
195
  }
174
196
  }
197
+
198
+ &.selected {
199
+ .ilo--table--body--cell {
200
+ background-color: $color-ux-table-hover-background;
201
+
202
+ &.selected {
203
+ background-color: $color-ux-table-selected-background;
204
+ }
205
+ }
206
+ }
175
207
  }
176
208
  }
177
209
  }