@ilo-org/styles 0.11.3-next.3 → 0.12.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.
Files changed (111) hide show
  1. package/build/css/components/index.css +499 -681
  2. package/build/css/components/index.css.map +1 -1
  3. package/build/css/global.css +1 -1
  4. package/build/css/global.css.map +1 -1
  5. package/build/css/index.css +499 -681
  6. package/build/css/index.css.map +1 -1
  7. package/build/css/monorepo.css +499 -681
  8. package/build/css/monorepo.css.map +1 -1
  9. package/build/minified/index.css +1 -1
  10. package/build/minified/index.css.map +1 -1
  11. package/build/minified/monorepo.css +1 -1
  12. package/build/minified/monorepo.css.map +1 -1
  13. package/css/components/accordion.css +1 -1
  14. package/css/components/breadcrumb.css +1 -1
  15. package/css/components/button.css +1 -1
  16. package/css/components/callout.css +1 -1
  17. package/css/components/card.css +1 -1
  18. package/css/components/cardgroup.css +1 -1
  19. package/css/components/credit.css +1 -1
  20. package/css/components/datacard.css +1 -1
  21. package/css/components/datepicker.css +1 -1
  22. package/css/components/detailcard.css +1 -1
  23. package/css/components/dropdown.css +1 -1
  24. package/css/components/factlistcard.css +1 -1
  25. package/css/components/featurecard.css +1 -1
  26. package/css/components/fieldset.css +1 -1
  27. package/css/components/file-upload.css +1 -1
  28. package/css/components/footer.css +1 -1
  29. package/css/components/form.css +1 -1
  30. package/css/components/formcontrol.css +1 -1
  31. package/css/components/hero.css +1 -1
  32. package/css/components/herocard.css +1 -1
  33. package/css/components/image.css +1 -1
  34. package/css/components/input.css +1 -1
  35. package/css/components/linklist.css +1 -1
  36. package/css/components/list.css +1 -1
  37. package/css/components/multilinkcard.css +1 -1
  38. package/css/components/navigation.css +1 -1
  39. package/css/components/notification.css +1 -1
  40. package/css/components/pagination.css +1 -1
  41. package/css/components/profile.css +1 -1
  42. package/css/components/promocard.css +1 -1
  43. package/css/components/readmore.css +1 -1
  44. package/css/components/richtext.css +1 -1
  45. package/css/components/searchfield.css +1 -1
  46. package/css/components/socialmedia.css +1 -1
  47. package/css/components/statcard.css +1 -1
  48. package/css/components/table.css +1 -1
  49. package/css/components/tableofcontents.css +1 -1
  50. package/css/components/tabs.css +1 -1
  51. package/css/components/tag.css +1 -1
  52. package/css/components/textarea.css +1 -1
  53. package/css/components/textcard.css +1 -1
  54. package/css/components/textinput.css +1 -1
  55. package/css/components/tooltip.css +1 -1
  56. package/css/components/video.css +1 -1
  57. package/css/global.css.map +1 -1
  58. package/css/index.css +2 -8
  59. package/css/index.css.map +1 -1
  60. package/css/monorepo.css +2 -8
  61. package/css/monorepo.css.map +1 -1
  62. package/package.json +2 -2
  63. package/scss/_functions.scss +7 -7
  64. package/scss/_mixins.scss +11 -3
  65. package/scss/components/_accordion.scss +7 -11
  66. package/scss/components/_breadcrumb.scss +19 -27
  67. package/scss/components/_button.scss +27 -27
  68. package/scss/components/_callout.scss +10 -9
  69. package/scss/components/_card.scss +1 -6
  70. package/scss/components/_cardgroup.scss +0 -4
  71. package/scss/components/_contextmenu.scss +4 -4
  72. package/scss/components/_credit.scss +1 -1
  73. package/scss/components/_datacard.scss +5 -5
  74. package/scss/components/_datepicker.scss +4 -0
  75. package/scss/components/_detailcard.scss +12 -9
  76. package/scss/components/_dropdown.scss +16 -5
  77. package/scss/components/_factlistcard.scss +4 -17
  78. package/scss/components/_featurecard.scss +11 -7
  79. package/scss/components/_fieldset.scss +6 -2
  80. package/scss/components/_file-upload.scss +4 -7
  81. package/scss/components/_footer.scss +34 -54
  82. package/scss/components/_form.scss +1 -1
  83. package/scss/components/_formcontrol.scss +10 -2
  84. package/scss/components/_hero.scss +26 -118
  85. package/scss/components/_herocard.scss +2 -6
  86. package/scss/components/_image.scss +6 -7
  87. package/scss/components/_input.scss +5 -7
  88. package/scss/components/_linklist.scss +24 -20
  89. package/scss/components/_list.scss +15 -20
  90. package/scss/components/_loading.scss +8 -8
  91. package/scss/components/_multilinkcard.scss +17 -68
  92. package/scss/components/_navigation.scss +44 -57
  93. package/scss/components/_notification.scss +19 -28
  94. package/scss/components/_pagination.scss +6 -12
  95. package/scss/components/_profile.scss +3 -3
  96. package/scss/components/_promocard.scss +24 -72
  97. package/scss/components/_readmore.scss +7 -6
  98. package/scss/components/_richtext.scss +32 -38
  99. package/scss/components/_searchfield.scss +8 -11
  100. package/scss/components/_socialmedia.scss +6 -22
  101. package/scss/components/_statcard.scss +5 -5
  102. package/scss/components/_table.scss +10 -26
  103. package/scss/components/_tableofcontents.scss +19 -50
  104. package/scss/components/_tabs.scss +7 -13
  105. package/scss/components/_tag.scss +3 -8
  106. package/scss/components/_textarea.scss +8 -14
  107. package/scss/components/_textcard.scss +11 -10
  108. package/scss/components/_textinput.scss +5 -14
  109. package/scss/components/_toggle.scss +2 -6
  110. package/scss/components/_tooltip.scss +22 -29
  111. package/scss/components/_video.scss +65 -57
@@ -20,13 +20,10 @@
20
20
  font-weight: map-get($type, "weights", "section");
21
21
  @include font-styles("label-medium");
22
22
  height: px-to-rem(45px);
23
- @include spacingvalues("margin", "input", "formelements");
23
+ margin: spacing(0);
24
24
  outline: none;
25
25
  overflow: hidden;
26
- padding-left: 16px;
27
- padding-right: 56px;
28
- padding-bottom: 0;
29
- padding-top: 0;
26
+ padding: 0 spacing(14) 0 spacing(4);
30
27
  text-overflow: ellipsis;
31
28
  white-space: nowrap;
32
29
  width: calc(100% - 78px);
@@ -130,4 +127,18 @@
130
127
  );
131
128
  @include bordervalues("input", "formelements", "error");
132
129
  }
130
+ [dir="rtl"] & {
131
+ padding: 0 spacing(4) 0 spacing(14);
132
+ background-position: calc(0% + 14px) center, 0% center;
133
+ background-image: url("#{colortodataurlicon('arrow', $color-ux-labels-actionable)}"),
134
+ linear-gradient(
135
+ to left,
136
+ transparent 0%,
137
+ transparent calc(50% - 0.81px),
138
+ $color-formelements-input-default-border-right calc(50% - 0.8px),
139
+ $color-formelements-input-default-border-right calc(50% + 0.8px),
140
+ rgba(237, 240, 242, 1) calc(50% + 0.81px),
141
+ rgba(237, 240, 242, 1) 100%
142
+ );
143
+ }
133
144
  }
@@ -11,43 +11,30 @@
11
11
  --max-width: #{px-to-rem(375px)};
12
12
 
13
13
  border-bottom: px-to-rem(3px) solid $brand-ilo-grey-ui;
14
- padding: px-to-rem(24px) px-to-rem(48px);
14
+ padding: spacing(10) spacing(6) spacing(12);
15
15
 
16
16
  @include cornercut(72px, 40px);
17
17
 
18
18
  @include breakpoint("large") {
19
- padding: px-to-rem(40px) px-to-rem(56px);
19
+ padding: spacing(12) spacing(10) spacing(14);
20
20
  }
21
21
 
22
22
  &#{$self}__size {
23
23
  &__wide {
24
24
  --max-width: #{px-to-rem(856px)};
25
25
 
26
- padding: px-to-rem(40px) px-to-rem(52px);
26
+ padding: spacing(12) spacing(10) spacing(14);
27
27
 
28
28
  @include breakpoint("medium") {
29
- padding: px-to-rem(40px) px-to-rem(60px);
30
29
  @include cornercut(87px, 48px);
31
30
  }
32
31
  }
33
32
 
34
- // &__standard {
35
- // padding: px-to-rem(40px) px-to-rem(52px);
36
-
37
- // @include breakpoint("medium") {
38
- // padding: px-to-rem(40px) px-to-rem(60px);
39
- // }
40
- // }
41
-
42
33
  &__narrow {
43
34
  --max-width: #{px-to-rem(375px)};
44
35
 
45
- padding: px-to-rem(24px) px-to-rem(48px);
36
+ padding: spacing(10) spacing(6) spacing(12);
46
37
  @include cornercut(72px, 40px);
47
-
48
- @include breakpoint("medium") {
49
- padding: px-to-rem(24px) px-to-rem(48px);
50
- }
51
38
  }
52
39
  }
53
40
 
@@ -24,6 +24,10 @@
24
24
  &--link {
25
25
  color: $brand-ilo-white;
26
26
  @include dataurlicon("arrowright", $brand-ilo-white);
27
+
28
+ [dir="rtl"] & {
29
+ @include dataurlicon("arrowleft", $brand-ilo-white);
30
+ }
27
31
  }
28
32
  }
29
33
 
@@ -34,6 +38,10 @@
34
38
  &--link {
35
39
  color: $brand-ilo-blue;
36
40
  @include dataurlicon("arrowright", $brand-ilo-blue);
41
+
42
+ [dir="rtl"] & {
43
+ @include dataurlicon("arrowleft", $brand-ilo-blue);
44
+ }
37
45
  }
38
46
  }
39
47
  }
@@ -72,8 +80,8 @@
72
80
  &--link,
73
81
  &--link:hover {
74
82
  border-bottom: none;
75
- padding-left: px-to-rem(24px);
76
- padding-right: px-to-rem(24px);
83
+ padding-left: spacing(6);
84
+ padding-right: spacing(6);
77
85
  }
78
86
  }
79
87
 
@@ -101,10 +109,6 @@
101
109
  @include breakpoint("medium") {
102
110
  #{$self}--wrap {
103
111
  flex-direction: row;
104
-
105
- .right-to-left & {
106
- flex-direction: row-reverse;
107
- }
108
112
  }
109
113
 
110
114
  #{$self}--content {
@@ -178,7 +182,7 @@
178
182
  display: flex;
179
183
  flex: 1 1 auto;
180
184
  flex-direction: column;
181
- padding: px-to-rem(24px) px-to-rem(24px) px-to-rem(40px);
185
+ padding: spacing(6) spacing(6) spacing(10);
182
186
  }
183
187
 
184
188
  &#{$self}__linklist {
@@ -1,5 +1,6 @@
1
1
  @use "../tokens" as *;
2
2
  @use "../functions" as *;
3
+ @use "sass:math";
3
4
  @import "../mixins";
4
5
 
5
6
  .ilo--fieldset {
@@ -19,6 +20,10 @@
19
20
 
20
21
  &--legend-wrapper {
21
22
  @include textmargin("margin-bottom", $gap, "label-medium", "display", 0, 0);
23
+
24
+ .ilo--tooltip--wrapper {
25
+ top: math.div(spacing(1), 2);
26
+ }
22
27
  }
23
28
 
24
29
  &--legend {
@@ -103,7 +108,6 @@
103
108
  }
104
109
 
105
110
  .ilo--tooltip--wrapper {
106
- margin-left: 8px;
107
- margin-top: 3px;
111
+ margin-left: spacing(1);
108
112
  }
109
113
  }
@@ -20,7 +20,6 @@
20
20
  display: inline-block;
21
21
  font-family: $fonts-display;
22
22
  font-weight: map-get($type, "weights", "label");
23
- padding: 0;
24
23
  @include borderradius("button");
25
24
  @include boxpadding("button", "medium");
26
25
  @include font-styles("label-medium");
@@ -80,8 +79,8 @@
80
79
  order: 4;
81
80
  display: flex;
82
81
  flex-flow: column;
83
- padding-top: px-to-rem($spacing-padding-1);
84
- gap: px-to-rem($spacing-padding-1);
82
+ padding-top: spacing(2);
83
+ gap: spacing(2);
85
84
  }
86
85
 
87
86
  &--list-item {
@@ -92,10 +91,8 @@
92
91
  font-family: $fonts-display;
93
92
  font-weight: map-get($type, "weights", "section");
94
93
  @include font-styles("label-medium");
95
- height: px-to-rem(
96
- map-get($spacing, "formelements", "uploadedfile", "default", "height")
97
- );
94
+ height: px-to-rem(48px);
98
95
  outline: none;
99
- @include spacingvalues("padding", "uploadedfile", "formelements");
96
+ padding: spacing(3) spacing(3) spacing(4);
100
97
  }
101
98
  }
@@ -69,7 +69,7 @@
69
69
  overflow: hidden;
70
70
 
71
71
  &--main {
72
- padding: px-to-rem(40px) px-to-rem(32px);
72
+ padding: spacing(10) spacing(8) spacing(12);
73
73
  position: relative;
74
74
 
75
75
  @include footer-triangle(bottom-right);
@@ -95,11 +95,13 @@
95
95
  }
96
96
 
97
97
  &--secondary {
98
+ [class*="container"] {
99
+ padding: 0;
100
+ }
101
+
98
102
  background-color: $color-base-neutrals-lighter;
99
- padding-top: px-to-rem(36px);
100
- min-height: px-to-rem(
101
- map-get($spacing, "ux", "readmore", "default", "height")
102
- );
103
+ padding: spacing(8) spacing(4) 0;
104
+ min-height: px-to-rem(56px);
103
105
  }
104
106
 
105
107
  &--headline {
@@ -116,21 +118,21 @@
116
118
  "body-xxs",
117
119
  "display"
118
120
  );
119
- margin-top: px-to-rem(22px);
121
+ margin-top: spacing(5);
120
122
  }
121
123
 
122
124
  &--subhead {
123
125
  color: #bedcfa;
124
126
  font-family: $fonts-display;
125
127
  font-weight: map-get($type, "weights", "section");
126
- margin-top: px-to-rem(10px);
128
+ margin-top: spacing(1);
127
129
  @include font-styles("body-xxs");
128
130
  line-height: px-to-rem(18.56px);
129
- margin-bottom: px-to-rem(45px);
131
+ margin-bottom: spacing(12);
130
132
  }
131
133
 
132
134
  .address {
133
- margin-bottom: px-to-rem(39px);
135
+ margin-bottom: spacing(5);
134
136
  }
135
137
 
136
138
  .address--line {
@@ -147,11 +149,11 @@
147
149
  }
148
150
 
149
151
  .connect {
150
- margin: px-to-rem(55px) 0;
152
+ margin: spacing(12) 0 spacing(10);
151
153
  }
152
154
 
153
155
  .social--links {
154
- margin-bottom: px-to-rem(45px);
156
+ margin-bottom: spacing(10);
155
157
  }
156
158
 
157
159
  .legal,
@@ -171,7 +173,7 @@
171
173
  .secondarylinks--list--item {
172
174
  &:before {
173
175
  content: "|";
174
- margin: px-to-rem(4px);
176
+ margin: spacing(1);
175
177
  }
176
178
  }
177
179
 
@@ -216,16 +218,15 @@
216
218
  // Mobile styles
217
219
  justify-content: center;
218
220
  border-bottom: 0.1071811361rem solid $brand-ilo-grey-light;
219
- margin: px-to-rem(12px) auto 0 auto;
220
- padding: px-to-rem($spacing-padding-2) px-to-rem($spacing-padding-2)
221
- px-to-rem($spacing-padding-2) px-to-rem($spacing-padding-2);
221
+ margin: spacing(3) auto 0 auto;
222
+ padding: spacing(4);
222
223
 
223
224
  &:after {
224
225
  background-repeat: no-repeat;
225
226
  content: "";
226
227
  height: px-to-rem(24px);
227
228
  position: relative;
228
- margin-left: px-to-rem(8px);
229
+ margin-left: spacing(2);
229
230
  bottom: px-to-rem(3px);
230
231
  transform: rotateX(180deg);
231
232
  transform-origin: center;
@@ -250,7 +251,7 @@
250
251
  &--main {
251
252
  display: grid;
252
253
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
253
- gap: 0px 64px;
254
+ gap: 0px spacing(16);
254
255
  grid-template-areas:
255
256
  "site-info address"
256
257
  "site-info links"
@@ -258,7 +259,7 @@
258
259
  "site-info subscribe";
259
260
  align-content: start;
260
261
  align-items: start;
261
- padding: px-to-rem(40px) px-to-rem(20px);
262
+ padding: spacing(10) spacing(5) spacing(24);
262
263
  }
263
264
 
264
265
  .site--info {
@@ -283,8 +284,8 @@
283
284
  }
284
285
 
285
286
  &--secondary {
286
- padding-top: px-to-rem(18px);
287
- padding-bottom: px-to-rem(18px);
287
+ padding-top: spacing(4);
288
+ padding-bottom: spacing(4);
288
289
  position: relative;
289
290
  z-index: 1;
290
291
  }
@@ -301,13 +302,13 @@
301
302
  display: grid;
302
303
  grid-template-columns: 0.25fr 0.33fr 0.09fr 0.33fr;
303
304
  grid-template-rows: auto auto;
304
- gap: 0px 64px;
305
+ gap: 0px spacing(16);
305
306
  grid-template-areas:
306
307
  "site-info address . connect"
307
308
  "site-info links . subscribe";
308
309
 
309
- padding-top: px-to-rem(44px);
310
- padding-bottom: px-to-rem(51px);
310
+ padding-top: spacing(10);
311
+ padding-bottom: spacing(24);
311
312
 
312
313
  &:before {
313
314
  content: none;
@@ -333,9 +334,13 @@
333
334
  justify-self: start;
334
335
  }
335
336
 
337
+ .address {
338
+ margin-bottom: spacing(5);
339
+ }
340
+
336
341
  &--secondary {
337
- padding-top: px-to-rem(18px);
338
- padding-bottom: px-to-rem(18px);
342
+ padding-top: spacing(4);
343
+ padding-bottom: spacing(4);
339
344
  position: relative;
340
345
 
341
346
  [class*="container"] {
@@ -354,7 +359,7 @@
354
359
 
355
360
  .secondarylinks--list--item {
356
361
  &:before {
357
- margin: px-to-rem(8px);
362
+ margin: spacing(2);
358
363
  }
359
364
  }
360
365
  }
@@ -362,7 +367,7 @@
362
367
  .anchorlink {
363
368
  margin: 0;
364
369
  border: none;
365
- padding: 0.25rem;
370
+ padding: spacing(1);
366
371
 
367
372
  &:hover {
368
373
  margin-bottom: -0.1071811361rem;
@@ -371,36 +376,11 @@
371
376
  }
372
377
 
373
378
  /* RTL Styles */
374
- .right-to-left & {
375
- * {
376
- text-align: right;
377
- }
378
-
379
+ &[dir="rtl"] & {
379
380
  &--main {
380
381
  @include footer-triangle(bottom-left);
381
382
  }
382
383
 
383
- .subscribe a {
384
- align-self: flex-end;
385
- }
386
-
387
- &--secondary {
388
- [class*="container"] {
389
- flex-direction: row-reverse;
390
- }
391
-
392
- &--details {
393
- display: flex;
394
- flex-flow: row-reverse wrap;
395
- }
396
- }
397
-
398
- .secondarylinks {
399
- &--list {
400
- flex-direction: row-reverse;
401
- }
402
- }
403
-
404
384
  .secondarylinks--list--item {
405
385
  &:before {
406
386
  content: none;
@@ -408,7 +388,7 @@
408
388
 
409
389
  &:after {
410
390
  content: "|";
411
- margin: px-to-rem(4px);
391
+ margin: spacing(1);
412
392
  }
413
393
  }
414
394
 
@@ -3,7 +3,7 @@
3
3
  @import "../mixins";
4
4
 
5
5
  .ilo--form {
6
- $gap: 32px;
6
+ $gap: spacing(8);
7
7
  $c: &;
8
8
 
9
9
  box-sizing: border-box;
@@ -10,7 +10,7 @@
10
10
  display: inline-grid;
11
11
  grid-template-rows: auto;
12
12
  grid-template-columns: auto;
13
- gap: px-to-rem($spacing-padding-1);
13
+ gap: spacing(2);
14
14
 
15
15
  &__label-placement {
16
16
  // Label is to the flex start of form element
@@ -169,7 +169,11 @@
169
169
  }
170
170
 
171
171
  div[class*="tooltip"] {
172
- margin-left: px-to-rem(math.div($spacing-padding-1, 2));
172
+ margin-left: spacing(2);
173
+
174
+ [dir="rtl"] & {
175
+ margin-right: spacing(2);
176
+ }
173
177
  }
174
178
  }
175
179
 
@@ -179,4 +183,8 @@
179
183
  font-family: $fonts-copy;
180
184
  @include font-styles("body-xxs");
181
185
  }
186
+
187
+ .ilo--tooltip--wrapper {
188
+ bottom: math.div(spacing(1), 2);
189
+ }
182
190
  }
@@ -6,7 +6,7 @@
6
6
  $c: &;
7
7
 
8
8
  // Additional offset to add for justify: offset
9
- --added-offset: 0;
9
+ --added-offset: 0px;
10
10
 
11
11
  // Total offset from the edge of the window
12
12
  --base-offset: calc(((100vw - #{$layout-max-width}) / 2));
@@ -16,7 +16,7 @@
16
16
  // or `offset`
17
17
  --card-padding-start: #{$spacing-hero-card-padding-x-lg};
18
18
 
19
- // Squishy padding makes it so we can have a flexible padding value
19
+ // Squeezy padding makes it so we can have a flexible padding value
20
20
  // that will be somewhere between 16px and the card's fixed padding
21
21
  // depending on how far the card is from the edge of the screen
22
22
  $squeezy-padding-start: max(
@@ -38,19 +38,21 @@
38
38
  width: 100%;
39
39
  display: grid;
40
40
  position: relative;
41
- grid-template-rows:
42
- minmax($spacing-hero-image-max-height, 1fr)
43
- $spacing-hero-tooltip-height
44
- $spacing-hero-card-corner-cut-height-sm
45
- auto;
46
41
  grid-template-columns: 1fr;
47
42
  overflow: hidden;
43
+ @include hero-grid-rows(1rem);
44
+
45
+ &--image {
46
+ display: grid;
47
+ @include hero-grid-rows();
48
+ }
48
49
 
49
50
  &--breadcrumbs {
50
51
  display: none;
51
52
  }
52
53
 
53
- &--figure {
54
+ &--background {
55
+ display: grid;
54
56
  background-color: map-get($color, "base", "blue", "light");
55
57
  position: relative;
56
58
  grid-area: 1 / 1 / 4 / 2;
@@ -239,7 +241,7 @@
239
241
  }
240
242
  }
241
243
 
242
- &--figure {
244
+ &--background {
243
245
  grid-area: 1 / 1 / 5 / 5;
244
246
 
245
247
  #{$c}__card-align__center & {
@@ -345,8 +347,7 @@
345
347
  }
346
348
  }
347
349
 
348
- // Layout for RTL languages
349
- .right-to-left & {
350
+ [dir="rtl"] & {
350
351
  &--caption {
351
352
  &--wrapper {
352
353
  @include caption-icon-wrapper(
@@ -354,122 +355,29 @@
354
355
  $spacing-hero-tooltip-width,
355
356
  $spacing-hero-tooltip-height
356
357
  );
357
- position: absolute;
358
358
  right: 0;
359
+ position: absolute;
359
360
  }
360
361
  }
361
362
 
362
363
  @include breakpoint("large") {
363
- &__card-justify {
364
- &__start {
365
- --col-1-lg: 1fr;
366
- --col-2-lg: #{$spacing-hero-tooltip-width};
367
- --col-3-lg: var(--card-width);
368
- --col-4-lg: #{$card-offset};
369
- }
370
-
371
- &__offset {
372
- --col-1-lg: 1fr;
373
- --col-2-lg: #{$spacing-hero-tooltip-width};
374
- --col-3-lg: var(--card-width);
375
- --col-4-lg: #{$card-offset};
376
- }
377
-
378
- &__center {
379
- --col-1-lg: calc(
380
- ((100% - var(--card-width)) / 2) - #{$spacing-hero-tooltip-width}
381
- );
382
- --col-2-lg: #{$spacing-hero-tooltip-width};
383
- --col-3-lg: var(--card-width);
384
- --col-4-lg: calc((100% - var(--card-width)) / 2);
385
- }
386
- }
387
-
388
- &__card-align {
389
- &__center {
390
- #{$c}--card {
391
- grid-area: 3 / 3 / 4 / 4;
392
- }
393
-
394
- #{$c}--caption {
395
- grid-area: 5 / 4 / 6 / 5;
396
-
397
- &--wrapper {
398
- right: 0;
399
- left: initial;
400
- position: absolute;
401
- }
402
- }
403
- }
404
-
405
- &__bottom {
406
- #{$c}--caption {
407
- grid-area: 4 / 4 / 5 / 5;
408
-
409
- &--wrapper {
410
- position: absolute;
411
- right: 0;
412
- bottom: 0;
413
- left: initial;
414
- }
415
- }
416
- }
364
+ &__card-align__bottom {
365
+ &#{$c}__card-justify__start,
366
+ &#{$c}__card-justify__offset {
367
+ #{$c}--caption--wrapper {
368
+ @include caption-icon-wrapper(
369
+ "left",
370
+ $spacing-hero-tooltip-width,
371
+ $spacing-hero-tooltip-height
372
+ );
417
373
 
418
- &__bottom#{$c}__card-justify__start {
419
- #{$c}--caption {
420
- grid-area: 2 / 3 / 3 / 4;
421
-
422
- &--wrapper {
423
- @include caption-icon-wrapper(
424
- "left",
425
- $spacing-hero-tooltip-width,
426
- $spacing-hero-tooltip-height
427
- );
428
-
429
- position: absolute;
430
- left: initial;
431
- right: 0;
432
- }
374
+ position: absolute;
375
+ left: initial;
376
+ right: 0;
377
+ bottom: 0;
433
378
  }
434
379
  }
435
380
  }
436
-
437
- &--card-offset {
438
- grid-area: 3 / 4 / 6 / 5;
439
-
440
- &:after {
441
- right: initial;
442
- left: -1px;
443
- }
444
- }
445
-
446
- &--card {
447
- grid-area: 3 / 3 / 6 / 4;
448
- }
449
-
450
- &--breadcrumbs-offset {
451
- grid-area: 1 / 4 / 2 / 5;
452
- }
453
-
454
- &--breadcrumbs {
455
- grid-area: 1 / 4 / 2 / 1;
456
- flex-direction: row-reverse;
457
- }
458
-
459
- &--caption {
460
- grid-area: 4 / 2 / 5 / 3;
461
-
462
- &--wrapper {
463
- right: 2px;
464
- left: initial;
465
-
466
- @include caption-icon-wrapper(
467
- "left",
468
- $spacing-hero-tooltip-width,
469
- $spacing-hero-tooltip-height
470
- );
471
- }
472
- }
473
381
  }
474
382
  }
475
383
  }
@@ -15,10 +15,6 @@
15
15
  padding-inline-start: var(--card-padding-start);
16
16
  }
17
17
 
18
- .right-to-left & {
19
- direction: rtl;
20
- }
21
-
22
18
  &--title-link {
23
19
  color: inherit;
24
20
  text-decoration: none;
@@ -78,7 +74,7 @@
78
74
  $spacing-hero-card-corner-cut-height-sm
79
75
  );
80
76
 
81
- .right-to-left & {
77
+ [dir="rtl"] & {
82
78
  @include cornercut(
83
79
  $spacing-hero-card-corner-cut-width-sm,
84
80
  $spacing-hero-card-corner-cut-height-sm,
@@ -92,7 +88,7 @@
92
88
  $spacing-hero-card-corner-cut-height-lg
93
89
  );
94
90
 
95
- .right-to-left & {
91
+ [dir="rtl"] & {
96
92
  @include cornercut(
97
93
  $spacing-hero-card-corner-cut-width-lg,
98
94
  $spacing-hero-card-corner-cut-height-lg,