@ilo-org/styles 1.9.0 → 1.10.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.
- package/css/components/accordion.css +1 -1
- package/css/components/blockquote.css +1 -1
- package/css/components/breadcrumb.css +1 -1
- package/css/components/button.css +1 -1
- package/css/components/callout.css +1 -1
- package/css/components/card.css +1 -1
- package/css/components/cardgroup.css +1 -1
- package/css/components/checkbox.css +1 -1
- package/css/components/container.css +1 -1
- package/css/components/contextmenu.css +1 -1
- package/css/components/datacard.css +1 -1
- package/css/components/datepicker.css +1 -1
- package/css/components/detailcard.css +1 -1
- package/css/components/dropdown.css +1 -1
- package/css/components/empty.css +1 -1
- package/css/components/factlistcard.css +1 -1
- package/css/components/featurecard.css +1 -1
- package/css/components/fieldset.css +1 -1
- package/css/components/file-upload.css +1 -1
- package/css/components/footer.css +1 -1
- package/css/components/form.css +1 -1
- package/css/components/formcontrol.css +1 -1
- package/css/components/hero.css +1 -1
- package/css/components/herocard.css +1 -1
- package/css/components/image.css +1 -1
- package/css/components/input.css +1 -1
- package/css/components/languagetoggle.css +1 -1
- package/css/components/link.css +1 -1
- package/css/components/linklist.css +1 -1
- package/css/components/list.css +1 -1
- package/css/components/loading.css +1 -1
- package/css/components/logogrid.css +1 -1
- package/css/components/modal.css +1 -1
- package/css/components/multilinkcard.css +1 -1
- package/css/components/navigation.css +1 -1
- package/css/components/notification.css +1 -1
- package/css/components/pagination.css +1 -1
- package/css/components/profile.css +1 -1
- package/css/components/promocard.css +1 -1
- package/css/components/radio.css +1 -1
- package/css/components/readmore.css +1 -1
- package/css/components/richtext.css +1 -1
- package/css/components/scorecard.css +1 -1
- package/css/components/searchfield.css +1 -1
- package/css/components/socialmedia.css +1 -1
- package/css/components/statcard.css +1 -1
- package/css/components/status.css +1 -1
- package/css/components/table.css +1 -1
- package/css/components/tableofcontents.css +1 -1
- package/css/components/tabs.css +1 -1
- package/css/components/tag.css +1 -1
- package/css/components/textarea.css +1 -1
- package/css/components/textcard.css +1 -1
- package/css/components/textinput.css +1 -1
- package/css/components/toggle.css +1 -1
- package/css/components/tooltip.css +1 -1
- package/css/components/video.css +1 -1
- package/css/global.css.map +1 -1
- package/css/index.css +3 -3
- package/css/index.css.map +1 -1
- package/css/monorepo.css +3 -3
- package/css/monorepo.css.map +1 -1
- package/package.json +2 -2
- package/scss/_animations.scss +25 -1
- package/scss/_mixins.scss +9 -0
- package/scss/components/_card.scss +1 -0
- package/scss/components/_datacard.scss +23 -0
- package/scss/components/_detailcard.scss +77 -0
- package/scss/components/_factlistcard.scss +10 -0
- package/scss/components/_featurecard.scss +23 -1
- package/scss/components/_footer.scss +26 -64
- package/scss/components/_languagetoggle.scss +7 -1
- package/scss/components/_multilinkcard.scss +57 -1
- package/scss/components/_promocard.scss +28 -0
- package/scss/components/_scorecard.scss +23 -0
- package/scss/components/_socialmedia.scss +43 -35
- package/scss/components/_statcard.scss +24 -0
- package/scss/components/_textcard.scss +19 -0
- package/scss/components/navigation/_nav-complex.scss +16 -161
- package/scss/components/navigation/_nav-main.scss +127 -0
- package/scss/components/navigation/index.scss +2 -4
- package/scss/components/navigation/{_nav-dropdown.scss → internal/_nav-dropdown.scss} +4 -4
- package/scss/components/navigation/{_nav-grid.scss → internal/_nav-grid.scss} +4 -4
- package/scss/components/navigation/{_nav-menu.scss → internal/_nav-menu.scss} +31 -6
- package/scss/components/navigation/internal/_nav-shared.scss +206 -0
- package/scss/components/navigation/internal/index.scss +5 -0
- package/scss/components/navigation/{mobile → internal/mobile}/_nav-mobile-drawer.scss +4 -4
- package/scss/components/navigation/{mobile → internal/mobile}/_nav-mobile-menu.scss +4 -4
- package/scss/components/navigation/{mobile → internal/mobile}/_nav-mobile.scss +25 -4
- /package/scss/components/navigation/{mobile → internal/mobile}/index.scss +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
@use "../../../tokens" as *;
|
|
2
|
+
@use "../../../functions" as *;
|
|
3
|
+
@import "../../../mixins";
|
|
4
|
+
@import "../../../config";
|
|
5
|
+
|
|
6
|
+
// Base navigation container
|
|
7
|
+
@mixin nav-base {
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
@include breakpoint("lg", true) {
|
|
12
|
+
height: px-to-rem(70px);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin nav-container {
|
|
17
|
+
max-width: px-to-rem(1296px);
|
|
18
|
+
margin-left: auto;
|
|
19
|
+
margin-right: auto;
|
|
20
|
+
padding-inline: spacing(4);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin nav-widgets-bar-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: flex-end;
|
|
26
|
+
align-items: center;
|
|
27
|
+
height: px-to-rem(32px);
|
|
28
|
+
position: relative;
|
|
29
|
+
padding-inline-end: 0;
|
|
30
|
+
|
|
31
|
+
@include breakpoint("lg", true) {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&::after {
|
|
36
|
+
content: "";
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 0;
|
|
39
|
+
left: 100%;
|
|
40
|
+
width: 100vw;
|
|
41
|
+
height: 100%;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
|
|
44
|
+
[dir="rtl"] & {
|
|
45
|
+
left: auto;
|
|
46
|
+
right: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin nav-widgets-corner($bg-color) {
|
|
52
|
+
display: block;
|
|
53
|
+
background-color: $bg-color;
|
|
54
|
+
width: px-to-rem(32px);
|
|
55
|
+
height: px-to-rem(32px);
|
|
56
|
+
clip-path: polygon(0 0, 100% 0, 99% 100%);
|
|
57
|
+
margin-right: -1px;
|
|
58
|
+
transform: skewY(0.001deg);
|
|
59
|
+
|
|
60
|
+
[dir="rtl"] & {
|
|
61
|
+
@include cornercut(spacing(10), 100%, "left");
|
|
62
|
+
margin-right: 0;
|
|
63
|
+
margin-left: -1px;
|
|
64
|
+
clip-path: polygon(0 0, 100% 0, 1% 100%);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@mixin nav-widgets-bar($bg-color) {
|
|
69
|
+
background-color: $bg-color;
|
|
70
|
+
height: 100%;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: spacing(4);
|
|
74
|
+
padding-inline-end: spacing(4);
|
|
75
|
+
height: px-to-rem(32px);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin nav-widgets-link($hover-bg-color) {
|
|
79
|
+
@include typography("highlight-small-bold");
|
|
80
|
+
height: inherit;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
padding-inline: spacing(2);
|
|
84
|
+
text-decoration: none;
|
|
85
|
+
color: var(--ilo-color-white);
|
|
86
|
+
|
|
87
|
+
&:hover,
|
|
88
|
+
&:focus {
|
|
89
|
+
background-color: $hover-bg-color;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@mixin nav-branding {
|
|
94
|
+
display: flex;
|
|
95
|
+
justify-content: space-between;
|
|
96
|
+
align-items: center;
|
|
97
|
+
padding-bottom: spacing(6);
|
|
98
|
+
|
|
99
|
+
@include breakpoint("lg", true) {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@mixin nav-branding-main {
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
|
|
109
|
+
&__logo img {
|
|
110
|
+
height: 100%;
|
|
111
|
+
height: px-to-rem(72px);
|
|
112
|
+
width: auto;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__name {
|
|
116
|
+
@include typography("heading-2");
|
|
117
|
+
padding-inline-start: spacing(4);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin nav-branding-tag {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
text-align: right;
|
|
125
|
+
|
|
126
|
+
&__main {
|
|
127
|
+
@include typography("heading-4");
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&__sub {
|
|
131
|
+
@include typography("body-xsmall");
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@mixin nav-core {
|
|
136
|
+
display: flex;
|
|
137
|
+
justify-content: space-between;
|
|
138
|
+
align-items: center;
|
|
139
|
+
height: px-to-rem(64px);
|
|
140
|
+
|
|
141
|
+
@include breakpoint("lg", true) {
|
|
142
|
+
height: px-to-rem(70px);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@mixin nav-menu {
|
|
147
|
+
height: 100%;
|
|
148
|
+
@include breakpoint("lg", true) {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@mixin nav-mobile {
|
|
154
|
+
justify-content: center;
|
|
155
|
+
align-items: center;
|
|
156
|
+
display: none;
|
|
157
|
+
|
|
158
|
+
@include breakpoint("lg", true) {
|
|
159
|
+
display: flex;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&__logo {
|
|
163
|
+
padding-inline-end: spacing(4);
|
|
164
|
+
height: px-to-rem(38px);
|
|
165
|
+
|
|
166
|
+
img {
|
|
167
|
+
height: 100%;
|
|
168
|
+
width: auto;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@mixin nav-search {
|
|
174
|
+
height: 100%;
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
padding-inline: spacing(2);
|
|
178
|
+
|
|
179
|
+
@include breakpoint("lg", true) {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&__icon {
|
|
184
|
+
width: px-to-rem(32px);
|
|
185
|
+
height: px-to-rem(32px);
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@mixin nav-burger {
|
|
191
|
+
display: none;
|
|
192
|
+
|
|
193
|
+
@include breakpoint("lg", true) {
|
|
194
|
+
display: flex;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
margin-block: px-to-rem(20px);
|
|
198
|
+
align-items: center;
|
|
199
|
+
border: none;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
|
|
202
|
+
&__icon {
|
|
203
|
+
width: px-to-rem(32px);
|
|
204
|
+
height: px-to-rem(32px);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
3
|
-
@import "
|
|
4
|
-
@import "
|
|
1
|
+
@use "../../../../tokens" as *;
|
|
2
|
+
@use "../../../../functions" as *;
|
|
3
|
+
@import "../../../../mixins";
|
|
4
|
+
@import "../../../../config";
|
|
5
5
|
|
|
6
6
|
.ilo--nav-mobile-drawer {
|
|
7
7
|
position: fixed;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
3
|
-
@import "
|
|
4
|
-
@import "
|
|
1
|
+
@use "../../../../tokens" as *;
|
|
2
|
+
@use "../../../../functions" as *;
|
|
3
|
+
@import "../../../../mixins";
|
|
4
|
+
@import "../../../../config";
|
|
5
5
|
|
|
6
6
|
.ilo--nav-mobile-menu {
|
|
7
7
|
display: flex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
3
|
-
@import "
|
|
4
|
-
@import "
|
|
1
|
+
@use "../../../../tokens" as *;
|
|
2
|
+
@use "../../../../functions" as *;
|
|
3
|
+
@import "../../../../mixins";
|
|
4
|
+
@import "../../../../config";
|
|
5
5
|
|
|
6
6
|
.ilo--nav-mobile {
|
|
7
7
|
&__branding {
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&__widgets {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
margin: px-to-rem(2px);
|
|
26
|
+
|
|
23
27
|
&-search {
|
|
24
28
|
padding: spacing(4) 0;
|
|
25
29
|
display: flex;
|
|
@@ -43,6 +47,23 @@
|
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
|
|
50
|
+
&-search-input {
|
|
51
|
+
// Form control overrides can be deleted when form control hides label conditionally
|
|
52
|
+
.ilo--fieldset {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ilo--form-control {
|
|
57
|
+
width: 100%;
|
|
58
|
+
display: inline;
|
|
59
|
+
}
|
|
60
|
+
.ilo--form-control--label {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
padding-block: spacing(5);
|
|
65
|
+
}
|
|
66
|
+
|
|
46
67
|
&-link {
|
|
47
68
|
@include typography("highlight-medium");
|
|
48
69
|
padding: spacing(4) 0;
|
|
File without changes
|