@ilo-org/styles 0.11.3-next.2 → 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 +501 -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 +501 -681
  6. package/build/css/index.css.map +1 -1
  7. package/build/css/monorepo.css +501 -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 +7 -2
  80. package/scss/components/_file-upload.scss +4 -7
  81. package/scss/components/_footer.scss +34 -54
  82. package/scss/components/_form.scss +2 -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
@@ -21,12 +21,11 @@
21
21
  }
22
22
 
23
23
  &--caption {
24
- border-left: $spacing-ux-caption-border-left solid
25
- $color-ux-caption-border-left;
24
+ border-left: px-to-rem(3px) solid $color-ux-caption-border-left;
26
25
  color: $color-font-caption;
27
26
  font-weight: 400;
28
- margin-top: px-to-rem(map-get($spacing, "padding-2"));
29
- padding-left: px-to-rem(map-get($spacing, "padding-1"));
27
+ margin-top: spacing(4);
28
+ padding-left: spacing(2);
30
29
  @include font-styles("image-caption");
31
30
  }
32
31
 
@@ -36,16 +35,16 @@
36
35
  position: absolute;
37
36
 
38
37
  @include breakpoint("large") {
39
- bottom: -#{px-to-rem(map-get($spacing, "padding-0-5"))};
38
+ bottom: -#{px-to-rem(4px)};
40
39
  }
41
40
  }
42
41
 
43
- .right-to-left & {
42
+ [dir="rtl"] & {
44
43
  .ilo--image--caption {
45
44
  border-left: none;
46
45
  border-right: 3px solid #b8c4cc;
47
46
  padding-left: 0;
48
- padding-right: px-to-rem(map-get($spacing, "padding-1"));
47
+ padding-right: spacing(2);
49
48
  }
50
49
 
51
50
  .ilo--credit {
@@ -18,13 +18,11 @@
18
18
  font-family: $fonts-copy;
19
19
  font-weight: map-get($type, "weights", "section");
20
20
  @include font-styles("label-medium");
21
- height: px-to-rem(
22
- map-get($spacing, "formelements", "input", "default", "height")
23
- );
24
- @include spacingvalues("margin", "input", "formelements");
21
+ height: px-to-rem(48px);
22
+ margin: spacing(0);
25
23
  outline: none;
26
- @include spacingvalues("padding", "input", "formelements");
27
- width: map-get($spacing, "formelements", "input", "default", "width");
24
+ padding: spacing(4) spacing(3) spacing(4) spacing(3);
25
+ width: 100%;
28
26
 
29
27
  &:focus {
30
28
  background-color: map-get(
@@ -35,7 +33,7 @@
35
33
  "background"
36
34
  );
37
35
  @include bordervalues("input", "formelements", "focus");
38
- padding-left: calc($spacing-formelements-input-default-padding-left - 1px);
36
+ padding-left: spacing(3);
39
37
  outline: none;
40
38
  }
41
39
 
@@ -19,7 +19,7 @@
19
19
  @include textmargin("margin-bottom", 27px, "headline-6", "display", 0, 0);
20
20
  @include textmargin(
21
21
  "margin-top",
22
- $spacing-padding-6,
22
+ $spacing-spacing-12,
23
23
  "headline-6",
24
24
  "display",
25
25
  0,
@@ -30,11 +30,11 @@
30
30
 
31
31
  &--links--item {
32
32
  &.indented {
33
- padding-left: px-to-rem($spacing-padding-4);
33
+ padding-left: spacing(8);
34
34
 
35
35
  .ilo--link-list--label {
36
36
  display: block;
37
- padding-left: px-to-rem($spacing-padding-3);
37
+ padding-left: spacing(5);
38
38
  position: relative;
39
39
 
40
40
  &:before {
@@ -43,18 +43,27 @@
43
43
  background-size: contain;
44
44
  content: "";
45
45
  display: block;
46
- height: px-to-rem($spacing-padding-1-5);
46
+ height: px-to-rem(12px);
47
47
  left: 0;
48
48
  position: absolute;
49
49
  top: 50%;
50
50
  transform: translateY(-50%) rotate(-90deg);
51
51
  transform-origin: center;
52
- width: px-to-rem($spacing-padding-1-5);
52
+ width: px-to-rem(12px);
53
53
  @include dataurlicon(
54
54
  "equilateraltriangle",
55
55
  $color-base-neutrals-light
56
56
  );
57
57
  }
58
+
59
+ [dir="rtl"] & {
60
+ padding-right: spacing(6);
61
+ &:before {
62
+ transform: translateY(-50%) rotate(90deg);
63
+ left: unset;
64
+ right: 0;
65
+ }
66
+ }
58
67
  }
59
68
 
60
69
  & .ilo--link-list--link:hover,
@@ -69,18 +78,18 @@
69
78
  }
70
79
 
71
80
  &--link {
72
- background-position: calc(100% - $spacing-padding-0-5) center;
81
+ background-position: calc(100% - 4px) center;
73
82
  background-repeat: no-repeat;
74
- background-size: px-to-rem($spacing-padding-3) px-to-rem($spacing-padding-3);
83
+ background-size: px-to-rem(24px) px-to-rem(24px);
75
84
  border-bottom: px-to-rem($borders-base) solid $color-base-neutrals-lighter;
76
85
  color: map-get($color, "link", "text", "default");
77
86
  display: block;
78
87
  font-family: $fonts-display;
79
88
  font-weight: map-get($type, "weights", "section");
80
89
  @include font-styles("body-small");
81
- @include textmargin("padding-bottom", 25px, "body-small", "display", 0, 0);
82
- @include textmargin("padding-top", 25px, "body-small", "display", 0, 0);
83
- padding-right: px-to-rem($spacing-padding-4);
90
+ padding-top: spacing(4);
91
+ padding-bottom: spacing(4);
92
+ padding-right: spacing(8);
84
93
  text-decoration: none;
85
94
  @include dataurlicon("arrowright", $color-link-text-default);
86
95
  @include globaltransition("color, background-color, border-color");
@@ -107,9 +116,10 @@
107
116
  @include globaltransition("color, background-color, border-color");
108
117
  }
109
118
 
110
- .right-to-left & {
111
- background-position: $spacing-padding-0-5 center;
119
+ [dir="rtl"] & {
120
+ background-position: px-to-rem(4px) center;
112
121
  @include dataurlicon("arrowleft", $color-link-text-default);
122
+ padding-right: 0;
113
123
 
114
124
  &:hover,
115
125
  &:focus {
@@ -165,8 +175,8 @@
165
175
  }
166
176
  }
167
177
 
168
- .right-to-left & {
169
- background-position: $spacing-padding-0-5 center;
178
+ [dir="rtl"] & {
179
+ background-position: px-to-rem(4px) center;
170
180
  @include dataurlicon("arrowleft", $color-base-neutrals-white);
171
181
 
172
182
  &:hover,
@@ -176,12 +186,6 @@
176
186
  }
177
187
  }
178
188
  }
179
-
180
- .right-to-left & {
181
- * {
182
- text-align: right;
183
- }
184
- }
185
189
  }
186
190
 
187
191
  .wingsuit-body .ilo--link-list--dark {
@@ -22,9 +22,8 @@
22
22
  width: px-to-rem(12px);
23
23
  @include dataurlicon("listarrow", $color-base-neutrals-light);
24
24
  }
25
- margin-bottom: px-to-rem(map-get($spacing, "padding-4"));
26
- margin-left: px-to-rem(12px);
27
- padding-left: px-to-rem(12px);
25
+ margin-left: spacing(3);
26
+ padding-left: spacing(2);
28
27
  position: relative;
29
28
  }
30
29
  }
@@ -39,33 +38,37 @@
39
38
  }
40
39
 
41
40
  &--horizontal {
41
+ li {
42
+ &::before {
43
+ content: none;
44
+ }
45
+ }
42
46
  align-items: center;
43
47
  display: flex;
44
48
  flex-wrap: wrap;
45
49
  list-style: none;
46
50
 
47
51
  .ilo--list__title {
48
- margin-bottom: px-to-rem(map-get($spacing, "base"));
49
- margin-right: px-to-rem(map-get($spacing, "ui-padding-xxl") - 3px);
52
+ margin-bottom: spacing(2);
53
+ margin-right: spacing(9);
50
54
  }
51
55
 
52
56
  .ilo--list__item {
53
- margin-bottom: px-to-rem(map-get($spacing, "base"));
57
+ margin-bottom: spacing(2);
54
58
  margin-left: 0;
55
- margin-right: px-to-rem(map-get($spacing, "ui-padding-xxl") - 3px);
59
+ margin-right: spacing(10);
56
60
  padding-left: 0;
57
61
  }
58
62
  }
59
63
 
60
64
  &__title {
61
65
  @include font-styles("headline-6");
62
- margin-bottom: px-to-rem(21px);
66
+ margin-bottom: spacing(6);
63
67
  font-family: $fonts-display;
64
68
  font-weight: 700;
65
69
 
66
70
  @include breakpoint("medium") {
67
71
  @include font-styles("headline-5");
68
- margin-bottom: px-to-rem(27px);
69
72
  }
70
73
  }
71
74
 
@@ -73,16 +76,9 @@
73
76
  @include font-styles("body-small");
74
77
 
75
78
  font-family: $fonts-copy;
76
- @include textmargin(
77
- "margin-bottom",
78
- map-get($spacing, "ui-padding-lg"),
79
- "body-small",
80
- "copy",
81
- 0,
82
- 0
83
- );
84
- margin-left: px-to-rem(map-get($spacing, "ui-padding-lg"));
85
- padding-left: px-to-rem(map-get($spacing, "base") - 5px);
79
+ margin-bottom: spacing(4);
80
+ margin-left: spacing(5);
81
+ padding-left: spacing(1);
86
82
 
87
83
  b,
88
84
  strong {
@@ -92,7 +88,6 @@
92
88
 
93
89
  @include breakpoint("medium") {
94
90
  @include font-styles("base");
95
- @include textmargin("margin-bottom", 20px, "base", "copy", 0, 0);
96
91
  }
97
92
  }
98
93
  }
@@ -36,8 +36,8 @@
36
36
  background-size: contain;
37
37
  content: "";
38
38
  display: block;
39
- height: px-to-rem($spacing-padding-12);
40
- width: px-to-rem($spacing-padding-12);
39
+ height: px-to-rem(96px);
40
+ width: px-to-rem(96px);
41
41
  }
42
42
  }
43
43
  }
@@ -65,9 +65,9 @@
65
65
  background-size: contain;
66
66
  content: "";
67
67
  display: block;
68
- height: px-to-rem($spacing-padding-3);
69
- margin-right: px-to-rem($spacing-padding-1-5);
70
- width: px-to-rem($spacing-padding-3);
68
+ height: px-to-rem(24px);
69
+ margin-right: spacing(3);
70
+ width: px-to-rem(24px);
71
71
  }
72
72
  }
73
73
 
@@ -79,9 +79,9 @@
79
79
  background-size: contain;
80
80
  content: "";
81
81
  display: block;
82
- height: px-to-rem($spacing-padding-3);
83
- margin-right: px-to-rem($spacing-padding-1-5);
84
- width: px-to-rem($spacing-padding-3);
82
+ height: px-to-rem(24px);
83
+ margin-right: spacing(3);
84
+ width: px-to-rem(24px);
85
85
  }
86
86
  }
87
87
  }
@@ -11,7 +11,7 @@
11
11
  // Defaults to standard size
12
12
  --max-width: #{px-to-rem(536px)};
13
13
 
14
- padding: px-to-rem(24px);
14
+ padding: spacing(6);
15
15
 
16
16
  #{$self}--image--wrapper {
17
17
  display: none;
@@ -20,50 +20,35 @@
20
20
  #{$self}--content {
21
21
  #{$self}--image--wrapper {
22
22
  display: block;
23
+ margin-bottom: spacing(8);
23
24
  }
24
25
  }
25
26
 
26
27
  @include breakpoint("medium") {
27
- padding: px-to-rem(40px);
28
+ padding: spacing(10);
28
29
  }
29
30
 
30
31
  @include breakpoint("large") {
31
- padding: px-to-rem(56px) px-to-rem(48px);
32
+ padding: spacing(14) spacing(12);
32
33
  }
33
34
 
34
35
  #{$self}--title {
35
36
  @include font-styles("headline-5");
36
- @include textmargin(
37
- "margin-bottom",
38
- 24px,
39
- "headline-5",
40
- "display",
41
- 0,
42
- 0
43
- );
37
+ margin-bottom: spacing(8);
44
38
  color: $brand-ilo-grey-charcoal;
45
39
 
46
40
  @include breakpoint("medium") {
47
41
  @include font-styles("headline-4");
48
- @include textmargin(
49
- "margin-bottom",
50
- 24px,
51
- "headline-4",
52
- "display",
53
- 0,
54
- 0
55
- );
56
42
  }
57
43
  }
58
44
 
59
45
  #{$self}--intro {
60
46
  @include font-styles("body-small");
61
- @include textmargin("margin-bottom", 40px, "body-small", "copy", 0, 0);
47
+ margin-bottom: spacing(8);
62
48
  color: $brand-ilo-grey-charcoal;
63
49
 
64
50
  @include breakpoint("medium") {
65
51
  @include font-styles("base");
66
- @include textmargin("margin-bottom", 40px, "base", "copy", 0, 0);
67
52
  }
68
53
  }
69
54
 
@@ -71,30 +56,13 @@
71
56
  &__standard {
72
57
  --max-width: #{px-to-rem(536px)};
73
58
 
74
- padding: px-to-rem(48px) px-to-rem(40px);
75
-
76
- @include breakpoint("medium") {
77
- padding: px-to-rem(48px) px-to-rem(40px);
78
- }
79
-
80
- @include breakpoint("large") {
81
- padding: px-to-rem(48px) px-to-rem(40px);
82
- }
59
+ padding: spacing(12) spacing(10);
83
60
  }
84
61
 
85
62
  &__narrow {
86
63
  --max-width: #{px-to-rem(375px)};
87
64
 
88
- padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
89
-
90
- @include breakpoint("medium") {
91
- padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
92
- }
93
-
94
- @include breakpoint("large") {
95
- padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
96
- }
97
-
65
+ padding: spacing(10) spacing(6) spacing(12);
98
66
  #{$self}--image--wrapper {
99
67
  display: none;
100
68
  }
@@ -102,35 +70,21 @@
102
70
  #{$self}--content {
103
71
  #{$self}--image--wrapper {
104
72
  display: block;
105
- margin-bottom: px-to-rem(24px);
73
+ margin-bottom: spacing(6);
106
74
  }
107
75
  }
108
76
 
109
77
  #{$self}--title {
110
78
  @include breakpoint("medium") {
111
79
  @include font-styles("headline-5");
112
- @include textmargin(
113
- "margin-bottom",
114
- 24px,
115
- "headline-5",
116
- "display",
117
- 0,
118
- 0
119
- );
80
+ margin-bottom: spacing(6);
120
81
  }
121
82
  }
122
83
 
123
84
  #{$self}--intro {
124
85
  @include breakpoint("medium") {
125
86
  @include font-styles("body-small");
126
- @include textmargin(
127
- "margin-bottom",
128
- 40px,
129
- "body-small",
130
- "copy",
131
- 0,
132
- 0
133
- );
87
+ margin-bottom: spacing(6);
134
88
  }
135
89
  }
136
90
  }
@@ -139,28 +93,24 @@
139
93
  &__fluid {
140
94
  --max-width: #{px-to-rem(1104px)};
141
95
 
142
- padding: px-to-rem(40px) px-to-rem(24px) px-to-rem(48px);
96
+ padding: spacing(10) spacing(6) spacing(12);
97
+
98
+ #{$self}--title {
99
+ margin-bottom: spacing(3);
100
+ }
143
101
 
144
102
  @include breakpoint("medium") {
145
- padding: px-to-rem(56px) px-to-rem(48px);
103
+ padding: spacing(14) spacing(12);
146
104
 
147
105
  &#{$self}__align__right {
148
106
  #{$self}--wrap {
149
107
  flex-direction: row-reverse;
150
-
151
- .right-to-left & {
152
- flex-direction: row;
153
- }
154
108
  }
155
109
  }
156
110
 
157
111
  #{$self}--wrap {
158
112
  display: flex;
159
113
  column-gap: px-to-rem(32px);
160
-
161
- .right-to-left & {
162
- flex-direction: row-reverse;
163
- }
164
114
  }
165
115
 
166
116
  #{$self}--image--wrapper {
@@ -180,7 +130,6 @@
180
130
  }
181
131
 
182
132
  .ilo--link-list {
183
- margin-top: px-to-rem(35px);
184
133
  position: relative;
185
134
  z-index: 3;
186
135
  }