platformscode-new-react 0.0.3 → 0.0.4
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/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Bold.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Medium.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-Regular.woff2 +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff +0 -0
- package/dist/assets/fonts/IBM-Plex-Sans-Arabic/IBMPlexSansArabic-SemiBold.woff2 +0 -0
- package/dist/style.css +1 -0
- package/package.json +5 -3
- package/src/assets/styles/abstracts/_functions.scss +3 -0
- package/src/assets/styles/abstracts/_mixins.scss +60 -0
- package/src/assets/styles/abstracts/_variables.scss +46 -0
- package/src/assets/styles/abstracts/variables/_colors.scss +145 -0
- package/src/assets/styles/abstracts/variables/_radius.scss +19 -0
- package/src/assets/styles/abstracts/variables/_shadows.scss +9 -0
- package/src/assets/styles/abstracts/variables/_spacing.scss +35 -0
- package/src/assets/styles/abstracts/variables/_widths.scss +306 -0
- package/src/assets/styles/base/_animation.scss +0 -0
- package/src/assets/styles/base/_base.scss +29 -0
- package/src/assets/styles/base/_typography.scss +73 -0
- package/src/assets/styles/base/_utilities.scss +260 -0
- package/src/assets/styles/components/_accordions.scss +184 -0
- package/src/assets/styles/components/_avatar.scss +87 -0
- package/src/assets/styles/components/_breadcrumbs.scss +63 -0
- package/src/assets/styles/components/_btns.scss +815 -0
- package/src/assets/styles/components/_card.scss +91 -0
- package/src/assets/styles/components/_checkbox.scss +241 -0
- package/src/assets/styles/components/_content-switcher.scss +108 -0
- package/src/assets/styles/components/_data-table.scss +155 -0
- package/src/assets/styles/components/_date-picker.scss +257 -0
- package/src/assets/styles/components/_dropdown.scss +479 -0
- package/src/assets/styles/components/_featured-icons.scss +127 -0
- package/src/assets/styles/components/_file-upload.scss +164 -0
- package/src/assets/styles/components/_icons.scss +3 -0
- package/src/assets/styles/components/_inline-alert.scss +166 -0
- package/src/assets/styles/components/_input.scss +473 -0
- package/src/assets/styles/components/_links.scss +130 -0
- package/src/assets/styles/components/_list.scss +130 -0
- package/src/assets/styles/components/_loading.scss +135 -0
- package/src/assets/styles/components/_menu.scss +85 -0
- package/src/assets/styles/components/_modals.scss +108 -0
- package/src/assets/styles/components/_notification-toast.scss +177 -0
- package/src/assets/styles/components/_notifications.scss +139 -0
- package/src/assets/styles/components/_pagination.scss +79 -0
- package/src/assets/styles/components/_progress-indicator.scss +230 -0
- package/src/assets/styles/components/_radio.scss +183 -0
- package/src/assets/styles/components/_rating.scss +77 -0
- package/src/assets/styles/components/_shadows.scss +23 -0
- package/src/assets/styles/components/_structured-list.scss +95 -0
- package/src/assets/styles/components/_switch.scss +192 -0
- package/src/assets/styles/components/_tabs.scss +231 -0
- package/src/assets/styles/components/_tag.scss +191 -0
- package/src/assets/styles/components/_textarea.scss +294 -0
- package/src/assets/styles/components/_tooltip.scss +257 -0
- package/src/assets/styles/layout/_footer.scss +186 -0
- package/src/assets/styles/layout/_grid.scss +73 -0
- package/src/assets/styles/layout/_header.scss +0 -0
- package/src/assets/styles/layout/_layouts.scss +33 -0
- package/src/assets/styles/layout/_nav-header.scss +449 -0
- package/src/assets/styles/layout/_sidepanel.scss +340 -0
- package/src/assets/styles/layout/_table-of-content.scss +179 -0
- package/src/assets/styles/main.scss +54 -0
- package/src/assets/styles/themes/_dark.scss +416 -0
- package/src/assets/styles/themes/_light.scss +404 -0
- package/src/index.ts +1 -0
- package/vite.config.ts +21 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// desktop 1280px
|
|
2
|
+
// tablet 768px
|
|
3
|
+
// iphone 375px
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// $container-width:1216px;
|
|
7
|
+
// $columns-number:12;
|
|
8
|
+
// $column-width:72px;
|
|
9
|
+
// $gutter-width: 32px;
|
|
10
|
+
|
|
11
|
+
// @include responsive(tab-port) {
|
|
12
|
+
// $container-width: 704px;
|
|
13
|
+
// $columns-number: 6;
|
|
14
|
+
// $column-width: 90.66px;
|
|
15
|
+
// $gutter-width: 32px;
|
|
16
|
+
// }
|
|
17
|
+
|
|
18
|
+
// @include responsive(phone) {
|
|
19
|
+
// $container-width: 343px;
|
|
20
|
+
// $columns-number: 4;
|
|
21
|
+
// $column-width: 73.75px;
|
|
22
|
+
// $gutter-width: 16px;
|
|
23
|
+
// }
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// .grid {
|
|
28
|
+
// display: grid;
|
|
29
|
+
// grid-template-columns: repeat($columns-number, minmax($column-width, 1fr));
|
|
30
|
+
// column-gap: $gutter-width;
|
|
31
|
+
|
|
32
|
+
// @include responsive(tab-port) {
|
|
33
|
+
// grid-template-columns: repeat(6, minmax(90.66px, 1fr));
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
// @include responsive(phone) {
|
|
37
|
+
// // margin: 16px;
|
|
38
|
+
// grid-template-columns: repeat(4, minmax(73.75px, 1fr));
|
|
39
|
+
// column-gap: 16px;
|
|
40
|
+
// }
|
|
41
|
+
// }
|
|
42
|
+
|
|
43
|
+
// .grid-1x2 {
|
|
44
|
+
// grid-template-columns: repeat(2, minmax($column-width, 1fr));
|
|
45
|
+
// // column-gap: $gutter-width;
|
|
46
|
+
// gap: $gutter-width;
|
|
47
|
+
|
|
48
|
+
// @include responsive(tab-port) {
|
|
49
|
+
// grid-template-columns: repeat(1, minmax(90.66px, 1fr));
|
|
50
|
+
// }
|
|
51
|
+
|
|
52
|
+
// @include responsive(phone) {
|
|
53
|
+
// // margin: 16px;
|
|
54
|
+
// grid-template-columns: repeat(1, minmax(73.75px, 1fr));
|
|
55
|
+
// column-gap: 16px;
|
|
56
|
+
// }
|
|
57
|
+
// }
|
|
58
|
+
|
|
59
|
+
// .grid-1x4 {
|
|
60
|
+
// grid-template-columns: repeat(4, minmax($column-width, 1fr));
|
|
61
|
+
// // column-gap: $gutter-width;
|
|
62
|
+
// gap: $gutter-width;
|
|
63
|
+
|
|
64
|
+
// @include responsive(tab-port) {
|
|
65
|
+
// grid-template-columns: repeat(2, minmax(90.66px, 1fr));
|
|
66
|
+
// }
|
|
67
|
+
|
|
68
|
+
// @include responsive(phone) {
|
|
69
|
+
// margin: 16px;
|
|
70
|
+
// grid-template-columns: repeat(1, minmax(73.75px, 1fr));
|
|
71
|
+
// column-gap: 16px;
|
|
72
|
+
// }
|
|
73
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// .container {
|
|
2
|
+
// // margin: $gutter-width;
|
|
3
|
+
// width: 95%;
|
|
4
|
+
// // max-width: var(--container-max-width-desktop);
|
|
5
|
+
// min-width: 375px;
|
|
6
|
+
// padding: var(--container-padding-desktop);
|
|
7
|
+
// margin: auto;
|
|
8
|
+
|
|
9
|
+
// @include responsive(tab-port) {
|
|
10
|
+
// width: 95%;
|
|
11
|
+
// padding: var(--container-padding-mobile);
|
|
12
|
+
// }
|
|
13
|
+
|
|
14
|
+
// @include responsive(tab-port) {
|
|
15
|
+
// width: 98%;
|
|
16
|
+
// padding: var(--container-padding-mobile);
|
|
17
|
+
// }
|
|
18
|
+
// }
|
|
19
|
+
|
|
20
|
+
// main {
|
|
21
|
+
// flex: 1;
|
|
22
|
+
// min-height: 100vh;
|
|
23
|
+
|
|
24
|
+
// &>div {
|
|
25
|
+
|
|
26
|
+
// padding: 2rem;
|
|
27
|
+
// padding-top: 72px;
|
|
28
|
+
// }
|
|
29
|
+
|
|
30
|
+
// @media only screen and (min-width: 56.25em) {
|
|
31
|
+
// padding-left: calc($tab-width + var(--spacing-xl) + var(--spacing-xl) + $scrollbar-width);
|
|
32
|
+
// }
|
|
33
|
+
// }
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
.header {
|
|
2
|
+
position: fixed;
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-height: 72px;
|
|
5
|
+
display: flex;
|
|
6
|
+
height: 72px;
|
|
7
|
+
z-index: 99;
|
|
8
|
+
background-color: var(--colors-base-white);
|
|
9
|
+
|
|
10
|
+
&--divider {
|
|
11
|
+
// position: relative;
|
|
12
|
+
|
|
13
|
+
&::after {
|
|
14
|
+
content: "";
|
|
15
|
+
position: absolute;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
height: 1px;
|
|
19
|
+
width: 100%;
|
|
20
|
+
display: block;
|
|
21
|
+
background-color: var(--colors-gray-neutral-300);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-nav {
|
|
26
|
+
display: flex;
|
|
27
|
+
// padding: var(--spacing-none);
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
align-items: center;
|
|
30
|
+
min-height: 72px;
|
|
31
|
+
height: 72px;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
|
|
34
|
+
&--full {
|
|
35
|
+
width: 100%;
|
|
36
|
+
max-width: 100vw;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
align-items: center;
|
|
40
|
+
padding-inline: var(--spacing-4xl);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&--fixed {
|
|
44
|
+
margin-inline: auto;
|
|
45
|
+
max-width: 1280px;
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
align-items: center;
|
|
49
|
+
|
|
50
|
+
@include responsive(tab-land) {
|
|
51
|
+
width: 100%;
|
|
52
|
+
max-width: 100vw;
|
|
53
|
+
padding-inline: var(--spacing-8xl);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__main {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: var(--spacing-xl);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__branding {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
// gap: var(--spacing-xl);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&__menu,
|
|
70
|
+
&__actions {
|
|
71
|
+
list-style: none;
|
|
72
|
+
padding: 0;
|
|
73
|
+
margin: 0;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
|
|
77
|
+
@include responsive(tab-port) {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__menu {
|
|
83
|
+
@include responsive(tab-port) {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&-menu {
|
|
90
|
+
&__item {
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
height: 72px;
|
|
93
|
+
padding: var(--spacing-md) var(--spacing-3xl);
|
|
94
|
+
justify-content: center;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: var(--spacing-xs);
|
|
97
|
+
background-color: transparent;
|
|
98
|
+
border-radius: var(--radius-xs);
|
|
99
|
+
|
|
100
|
+
&:hover,
|
|
101
|
+
&:active {
|
|
102
|
+
position: relative;
|
|
103
|
+
|
|
104
|
+
&::after {
|
|
105
|
+
content: "";
|
|
106
|
+
display: block;
|
|
107
|
+
width: calc(100% - var(--spacing-md) * 2);
|
|
108
|
+
height: 8px;
|
|
109
|
+
border-radius: var(--radius-full);
|
|
110
|
+
position: absolute;
|
|
111
|
+
bottom: 0;
|
|
112
|
+
left: 50%;
|
|
113
|
+
transform: translateX(-50%);
|
|
114
|
+
background-color: var(--colors-fg-quinary-400);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
& .header-menu__item-label,
|
|
118
|
+
& .header-menu__item-icon,
|
|
119
|
+
& .header-menu__item-arrow {
|
|
120
|
+
color: var(--colors-text-primary);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:hover {
|
|
125
|
+
background: var(--colors-gray-neutral-100);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:focus {
|
|
129
|
+
background-color: transparent;
|
|
130
|
+
outline: 2px solid var(--colors-base-black);
|
|
131
|
+
|
|
132
|
+
&::after {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:active {
|
|
138
|
+
background-color: var(--colors-gray-neutral-300);
|
|
139
|
+
outline: none;
|
|
140
|
+
|
|
141
|
+
&::after {
|
|
142
|
+
display: block;
|
|
143
|
+
background-color: var(--colors-fg-tertiary-600);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&-label,
|
|
148
|
+
&-icon,
|
|
149
|
+
&-arrow {
|
|
150
|
+
color: var(--colors-text-secondary);
|
|
151
|
+
@extend .text-md-medium;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&-icon {
|
|
155
|
+
color: var(--colors-text-secondary);
|
|
156
|
+
// to be edited later
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&-arrow {
|
|
162
|
+
color: var(--colors-text-secondary);
|
|
163
|
+
// to be edited later
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&--active {
|
|
169
|
+
& + .header__sub-menu {
|
|
170
|
+
// padding: var(--spacing-none) var(--spacing-4xl);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&,
|
|
174
|
+
&:hover,
|
|
175
|
+
&:focus,
|
|
176
|
+
&:active {
|
|
177
|
+
position: relative;
|
|
178
|
+
background: var(--colors-brand-800);
|
|
179
|
+
outline: none;
|
|
180
|
+
|
|
181
|
+
.header-menu__item-label,
|
|
182
|
+
.header-menu__item-icon,
|
|
183
|
+
.header-menu__item-arrow {
|
|
184
|
+
color: var(--colors-text-primary_on-brand);
|
|
185
|
+
@extend .text-md-semibold;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&::after {
|
|
189
|
+
content: "";
|
|
190
|
+
display: block;
|
|
191
|
+
width: calc(100% - var(--spacing-md) * 2);
|
|
192
|
+
height: 8px;
|
|
193
|
+
border-radius: var(--radius-full);
|
|
194
|
+
position: absolute;
|
|
195
|
+
bottom: 0;
|
|
196
|
+
left: 50%;
|
|
197
|
+
transform: translateX(-50%);
|
|
198
|
+
background-color: var(--colors-brand-400);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&::before {
|
|
202
|
+
border: 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&:focus {
|
|
207
|
+
outline: 2px solid var(--colors-base-black);
|
|
208
|
+
|
|
209
|
+
&::before {
|
|
210
|
+
content: "";
|
|
211
|
+
display: block;
|
|
212
|
+
background-color: transparent;
|
|
213
|
+
width: 100%;
|
|
214
|
+
height: 100%;
|
|
215
|
+
position: absolute;
|
|
216
|
+
bottom: 0;
|
|
217
|
+
left: 0;
|
|
218
|
+
z-index: 2;
|
|
219
|
+
border: 1px solid #fff;
|
|
220
|
+
border-radius: var(--radius-xs);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&:active {
|
|
225
|
+
outline: none;
|
|
226
|
+
|
|
227
|
+
&::before {
|
|
228
|
+
border: 0;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&.header-menu__item--disabled {
|
|
233
|
+
&::after {
|
|
234
|
+
content: "";
|
|
235
|
+
display: block !important;
|
|
236
|
+
width: calc(100% - var(--spacing-md) * 2);
|
|
237
|
+
height: 8px;
|
|
238
|
+
border-radius: var(--radius-full);
|
|
239
|
+
position: absolute;
|
|
240
|
+
bottom: 0;
|
|
241
|
+
left: 50%;
|
|
242
|
+
transform: translateX(-50%);
|
|
243
|
+
background-color: var(--colors-gray-neutral-300);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&::before {
|
|
247
|
+
border: 0 !important;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
&--disabled {
|
|
253
|
+
&,
|
|
254
|
+
&:hover,
|
|
255
|
+
&:focus,
|
|
256
|
+
&:active {
|
|
257
|
+
position: relative;
|
|
258
|
+
background-color: transparent;
|
|
259
|
+
outline: none;
|
|
260
|
+
|
|
261
|
+
.header-menu__item-label,
|
|
262
|
+
.header-menu__item-icon,
|
|
263
|
+
.header-menu__item-arrow {
|
|
264
|
+
color: var(--colors-gray-neutral-300);
|
|
265
|
+
@extend .text-md-semibold;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&::after {
|
|
269
|
+
display: none;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&__btn {
|
|
276
|
+
display: none;
|
|
277
|
+
// height: 72px;
|
|
278
|
+
// min-width: 72px;
|
|
279
|
+
// padding: var(--spacing-md) var(--spacing-xl);
|
|
280
|
+
// flex-direction: column;
|
|
281
|
+
// justify-content: center;
|
|
282
|
+
// align-items: center;
|
|
283
|
+
// gap: var(--spacing-xs);
|
|
284
|
+
// background-color: transparent;
|
|
285
|
+
// border-radius: var(--radius-xs);
|
|
286
|
+
|
|
287
|
+
&:hover {
|
|
288
|
+
// background-color: var(--colors-gray-neutral-100);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&:focus {
|
|
292
|
+
// background-color: transparent;
|
|
293
|
+
// outline: 2px solid var(--colors-base-black);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
&:active {
|
|
297
|
+
// background-color: var(--colors-gray-neutral-300);
|
|
298
|
+
// outline: none;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&-icon {
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@include responsive(tab-port) {
|
|
305
|
+
display: inline-flex;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&__sub-menu {
|
|
311
|
+
position: absolute;
|
|
312
|
+
display: flex;
|
|
313
|
+
max-height: 0;
|
|
314
|
+
overflow: hidden;
|
|
315
|
+
padding: 0;
|
|
316
|
+
// max-width: 1440px;
|
|
317
|
+
padding: var(--spacing-none) var(--spacing-4xl);
|
|
318
|
+
flex-direction: column;
|
|
319
|
+
align-items: center;
|
|
320
|
+
@extend .shadow-lg;
|
|
321
|
+
transition: all 0.3s ease-in-out;
|
|
322
|
+
|
|
323
|
+
&--bg-brand {
|
|
324
|
+
background-color: var(--colors-brand-900);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&--full {
|
|
328
|
+
width: 100%;
|
|
329
|
+
left: 0;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.sub-menu {
|
|
335
|
+
&__container {
|
|
336
|
+
display: flex;
|
|
337
|
+
// max-width: var(--container-max-width-desktop, 1280px);
|
|
338
|
+
padding: var(--spacing-4xl) var(--spacing-none);
|
|
339
|
+
align-items: flex-start;
|
|
340
|
+
align-content: flex-start;
|
|
341
|
+
gap: var(--spacing-3xl);
|
|
342
|
+
align-self: stretch;
|
|
343
|
+
flex-wrap: wrap;
|
|
344
|
+
width: 100%;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
&__column {
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&__column-title {
|
|
351
|
+
color: var(--colors-text-brand-secondary);
|
|
352
|
+
@extend .text-lg-bold;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
&__link {
|
|
356
|
+
padding: var(--spacing-lg);
|
|
357
|
+
border-radius: var(--radius-md);
|
|
358
|
+
display: flex;
|
|
359
|
+
gap: var(--spacing-xl);
|
|
360
|
+
align-items: center;
|
|
361
|
+
background-color: transparent;
|
|
362
|
+
min-width: 320px;
|
|
363
|
+
|
|
364
|
+
&:hover,
|
|
365
|
+
&:focus,
|
|
366
|
+
&:active {
|
|
367
|
+
background-color: var(--colors-gray-neutral-50);
|
|
368
|
+
|
|
369
|
+
.sub-menu__link-label {
|
|
370
|
+
text-decoration: underline;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
&:focus {
|
|
375
|
+
background-color: transparent;
|
|
376
|
+
outline: 2px solid var(--colors-base-black);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
&:active {
|
|
380
|
+
background-color: var(--colors-gray-neutral-200);
|
|
381
|
+
outline: none;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
&-icon {
|
|
385
|
+
color: var(--colors-brand-600);
|
|
386
|
+
|
|
387
|
+
&--bg {
|
|
388
|
+
display: flex;
|
|
389
|
+
align-items: center;
|
|
390
|
+
justify-content: center;
|
|
391
|
+
background-color: var(--colors-brand-100);
|
|
392
|
+
border-radius: var(--radius-md);
|
|
393
|
+
padding: var(--spacing-lg);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
&-label {
|
|
398
|
+
color: var(--colors-text-primary);
|
|
399
|
+
@extend .text-md-semibold;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
&-helper {
|
|
403
|
+
color: var(--colors-text-tertiary);
|
|
404
|
+
@extend .text-sm-regular;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// on color styles
|
|
408
|
+
&--on-color {
|
|
409
|
+
&.sub-menu__link {
|
|
410
|
+
&:hover,
|
|
411
|
+
&:focus,
|
|
412
|
+
&:active {
|
|
413
|
+
background-color: hsla(var(--colors-alpha-white) / 10%);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
&:focus {
|
|
417
|
+
background-color: transparent;
|
|
418
|
+
outline: 2px solid var(--colors-base-white);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
&:active {
|
|
422
|
+
background-color: hsla(var(--colors-alpha-white) / 40%);
|
|
423
|
+
outline: none;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.sub-menu__link {
|
|
428
|
+
&-icon {
|
|
429
|
+
color: var(--colors-brand-400);
|
|
430
|
+
|
|
431
|
+
&--bg {
|
|
432
|
+
background-color: var(--colors-brand-800);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&-label {
|
|
437
|
+
color: var(--colors-text-primary_on-brand);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&-helper {
|
|
441
|
+
color: hsla(var(--colors-alpha-white) / 70%);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
@include responsive(tab-port) {
|
|
449
|
+
}
|