@scania/tegel-lite 0.0.1-beta.8 → 0.0.1-beta.9
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/components.css +1838 -2163
- package/dist/tl-button.css +0 -19
- package/dist/tl-dropdown.css +0 -4
- package/dist/tl-folder-tab.css +87 -0
- package/dist/tl-folder-tabs.css +0 -64
- package/dist/tl-footer.css +0 -3
- package/dist/tl-header.css +4 -165
- package/dist/tl-inline-tab.css +80 -0
- package/dist/tl-inline-tabs.css +20 -86
- package/dist/tl-navigation-tab.css +114 -0
- package/dist/tl-navigation-tabs.css +14 -92
- package/dist/tl-side-menu.css +43 -8
- package/dist/tl-slider.css +1508 -1034
- package/dist/tl-text-field.css +56 -46
- package/dist/tl-textarea-mixins.css +0 -0
- package/dist/tl-textarea.css +50 -35
- package/dist/tl-toggle.css +9 -2
- package/package.json +10 -3
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* Typography Usage mixins */
|
|
2
|
+
.tl-navigation-tabs__tab {
|
|
3
|
+
/* tds-navigation-tab variables */
|
|
4
|
+
--navigation-tabs-tab: var(--color-foreground-text-soft);
|
|
5
|
+
--navigation-tabs-tab-selected: var(--color-foreground-text-strong);
|
|
6
|
+
--navigation-tabs-tab-hover: var(--color-foreground-text-strong);
|
|
7
|
+
--navigation-tabs-tab-focus: var(--color-foreground-text-strong);
|
|
8
|
+
--navigation-tabs-tab-disabled: var(--color-foreground-text-disabled);
|
|
9
|
+
--navigation-tabs-tab-indicator-hover: var(--color-foreground-border-discrete);
|
|
10
|
+
--navigation-tabs-tab-indicator-active: var(--color-foreground-border-accent-focus);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.tl-navigation-tabs {
|
|
14
|
+
/* tds-navigation-tabs variables */
|
|
15
|
+
--navigation-tabs-horizontal-divider: var(--color-foreground-icon-discrete);
|
|
16
|
+
--navigation-tabs-tab-background-primary: var(--scania-color-transparent-invisible-light);
|
|
17
|
+
--navigation-tabs-tab-background-secondary: var(--scania-color-transparent-invisible-dark);
|
|
18
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-primary);
|
|
19
|
+
--navigation-tabs-scroll-button-icon: var(--color-foreground-icon-strong);
|
|
20
|
+
--navigation-tabs-scroll-button-background: var(--navigation-tabs-tab-background);
|
|
21
|
+
--navigation-tabs-scroll-button-background-hover: var(--navigation-tabs-tab-background);
|
|
22
|
+
--navigation-tabs-scroll-button-background-active: var(--navigation-tabs-tab-background);
|
|
23
|
+
}
|
|
24
|
+
.tl-navigation-tabs--primary {
|
|
25
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-primary);
|
|
26
|
+
}
|
|
27
|
+
.tl-navigation-tabs--secondary {
|
|
28
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-secondary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.traton .tl-navigation-tabs {
|
|
32
|
+
--navigation-tabs-tab-background-primary: var(--traton-color-transparent-invisible-light);
|
|
33
|
+
--navigation-tabs-tab-background-secondary: var(--traton-color-transparent-invisible-dark);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.tl-navigation-tabs__tab {
|
|
37
|
+
all: unset;
|
|
38
|
+
margin-right: 32px;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
.tl-navigation-tabs__tab * {
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
}
|
|
44
|
+
.tl-navigation-tabs__tab {
|
|
45
|
+
font-family: var(--headline-07-font-family);
|
|
46
|
+
font-size: var(--headline-07-font-size);
|
|
47
|
+
line-height: var(--headline-07-line-height);
|
|
48
|
+
font-weight: var(--headline-07-font-weight);
|
|
49
|
+
letter-spacing: var(--headline-07-letter-spacing);
|
|
50
|
+
text-transform: var(--headline-07-text-transform);
|
|
51
|
+
color: var(--navigation-tabs-tab);
|
|
52
|
+
text-decoration: none;
|
|
53
|
+
display: block;
|
|
54
|
+
position: relative;
|
|
55
|
+
transition: color 0.15s ease-in-out 0s;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
border: 0;
|
|
59
|
+
padding: 26px 4px;
|
|
60
|
+
}
|
|
61
|
+
.tl-navigation-tabs__tab:focus-visible {
|
|
62
|
+
outline: none;
|
|
63
|
+
}
|
|
64
|
+
.tl-navigation-tabs__tab:focus-visible::before {
|
|
65
|
+
content: "";
|
|
66
|
+
position: absolute;
|
|
67
|
+
inset: 18px 0;
|
|
68
|
+
border-radius: 2px;
|
|
69
|
+
box-shadow: 0 0 0 2px var(--navigation-tabs-tab-focus) inset;
|
|
70
|
+
z-index: 2;
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
}
|
|
73
|
+
.tl-navigation-tabs__tab::after {
|
|
74
|
+
background-color: var(--navigation-tabs-tab-indicator-hover);
|
|
75
|
+
content: " ";
|
|
76
|
+
position: absolute;
|
|
77
|
+
bottom: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
margin-left: auto;
|
|
81
|
+
width: 0%;
|
|
82
|
+
margin-right: auto;
|
|
83
|
+
height: 2px;
|
|
84
|
+
z-index: 1;
|
|
85
|
+
transition: width 0.15s ease-in-out 0s;
|
|
86
|
+
}
|
|
87
|
+
.tl-navigation-tabs__tab:not(.tl-navigation-tabs__tab--selected)::after {
|
|
88
|
+
width: 0%;
|
|
89
|
+
}
|
|
90
|
+
.tl-navigation-tabs__tab:hover {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
color: var(--navigation-tabs-tab-hover);
|
|
93
|
+
}
|
|
94
|
+
.tl-navigation-tabs__tab:hover::after {
|
|
95
|
+
width: 100%;
|
|
96
|
+
}
|
|
97
|
+
.tl-navigation-tabs__tab--selected {
|
|
98
|
+
color: var(--navigation-tabs-tab-selected);
|
|
99
|
+
}
|
|
100
|
+
.tl-navigation-tabs__tab--selected::after {
|
|
101
|
+
background-color: var(--navigation-tabs-tab-indicator-active);
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
.tl-navigation-tabs__tab--disabled {
|
|
105
|
+
color: var(--navigation-tabs-tab-disabled);
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
cursor: not-allowed;
|
|
108
|
+
}
|
|
109
|
+
.tl-navigation-tabs__tab--disabled::after {
|
|
110
|
+
content: none;
|
|
111
|
+
}
|
|
112
|
+
.tl-navigation-tabs__tab--disabled:focus-visible::before {
|
|
113
|
+
box-shadow: none;
|
|
114
|
+
}
|
|
@@ -12,102 +12,24 @@
|
|
|
12
12
|
.tl-navigation-tabs {
|
|
13
13
|
/* tds-navigation-tabs variables */
|
|
14
14
|
--navigation-tabs-horizontal-divider: var(--color-foreground-icon-discrete);
|
|
15
|
-
--navigation-tabs-tab-primary: var(--color-
|
|
16
|
-
--navigation-tabs-tab-secondary: var(--color-
|
|
17
|
-
--navigation-tabs: var(--navigation-tabs-tab-primary);
|
|
15
|
+
--navigation-tabs-tab-background-primary: var(--scania-color-transparent-invisible-light);
|
|
16
|
+
--navigation-tabs-tab-background-secondary: var(--scania-color-transparent-invisible-dark);
|
|
17
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-primary);
|
|
18
18
|
--navigation-tabs-scroll-button-icon: var(--color-foreground-icon-strong);
|
|
19
|
-
--navigation-tabs-scroll-button: var(--navigation-tabs-tab-
|
|
20
|
-
--navigation-tabs-scroll-button-hover: var(--navigation-tabs-tab-
|
|
21
|
-
--navigation-tabs-scroll-button-active: var(--navigation-tabs-tab-
|
|
19
|
+
--navigation-tabs-scroll-button-background: var(--navigation-tabs-tab-background);
|
|
20
|
+
--navigation-tabs-scroll-button-background-hover: var(--navigation-tabs-tab-background);
|
|
21
|
+
--navigation-tabs-scroll-button-background-active: var(--navigation-tabs-tab-background);
|
|
22
22
|
}
|
|
23
|
-
.tl-navigation-tabs
|
|
24
|
-
--navigation-tabs: var(--navigation-tabs-tab-primary);
|
|
25
|
-
--navigation-tabs-scroll-button: var(--navigation-tabs-tab-primary);
|
|
23
|
+
.tl-navigation-tabs--primary {
|
|
24
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-primary);
|
|
26
25
|
}
|
|
27
|
-
.tl-navigation-tabs
|
|
28
|
-
--navigation-tabs: var(--navigation-tabs-tab-secondary);
|
|
29
|
-
--navigation-tabs-scroll-button: var(--navigation-tabs-tab-secondary);
|
|
26
|
+
.tl-navigation-tabs--secondary {
|
|
27
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-secondary);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
margin-right: 32px;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
}
|
|
38
|
-
.tl-navigation-tabs__tab * {
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
}
|
|
41
|
-
.tl-navigation-tabs__tab {
|
|
42
|
-
font-family: var(--headline-07-font-family);
|
|
43
|
-
font-size: var(--headline-07-font-size);
|
|
44
|
-
line-height: var(--headline-07-line-height);
|
|
45
|
-
font-weight: var(--headline-07-font-weight);
|
|
46
|
-
letter-spacing: var(--headline-07-letter-spacing);
|
|
47
|
-
text-transform: var(--headline-07-text-transform);
|
|
48
|
-
color: var(--navigation-tabs-tab);
|
|
49
|
-
text-decoration: none;
|
|
50
|
-
display: block;
|
|
51
|
-
position: relative;
|
|
52
|
-
transition: color 0.15s ease-in-out 0s;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
background-color: transparent;
|
|
55
|
-
border: 0;
|
|
56
|
-
padding: 26px 4px;
|
|
57
|
-
}
|
|
58
|
-
.tl-navigation-tabs__tab:focus-visible {
|
|
59
|
-
outline: none;
|
|
60
|
-
}
|
|
61
|
-
.tl-navigation-tabs__tab:focus-visible::before {
|
|
62
|
-
content: "";
|
|
63
|
-
position: absolute;
|
|
64
|
-
inset: 18px 0;
|
|
65
|
-
border-radius: 2px;
|
|
66
|
-
box-shadow: 0 0 0 2px var(--navigation-tabs-tab-focus) inset;
|
|
67
|
-
z-index: 2;
|
|
68
|
-
pointer-events: none;
|
|
69
|
-
}
|
|
70
|
-
.tl-navigation-tabs__tab::after {
|
|
71
|
-
background-color: var(--navigation-tabs-tab-indicator-hover);
|
|
72
|
-
content: " ";
|
|
73
|
-
position: absolute;
|
|
74
|
-
bottom: 0;
|
|
75
|
-
right: 0;
|
|
76
|
-
left: 0;
|
|
77
|
-
margin-left: auto;
|
|
78
|
-
width: 0%;
|
|
79
|
-
margin-right: auto;
|
|
80
|
-
height: 2px;
|
|
81
|
-
z-index: 1;
|
|
82
|
-
transition: width 0.15s ease-in-out 0s;
|
|
83
|
-
}
|
|
84
|
-
.tl-navigation-tabs__tab:not(.tl-navigation-tabs__tab--selected)::after {
|
|
85
|
-
width: 0%;
|
|
86
|
-
}
|
|
87
|
-
.tl-navigation-tabs__tab:hover {
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
color: var(--navigation-tabs-tab-hover);
|
|
90
|
-
}
|
|
91
|
-
.tl-navigation-tabs__tab:hover::after {
|
|
92
|
-
width: 100%;
|
|
93
|
-
}
|
|
94
|
-
.tl-navigation-tabs__tab--selected {
|
|
95
|
-
color: var(--navigation-tabs-tab-selected);
|
|
96
|
-
}
|
|
97
|
-
.tl-navigation-tabs__tab--selected::after {
|
|
98
|
-
background-color: var(--navigation-tabs-tab-indicator-active);
|
|
99
|
-
width: 100%;
|
|
100
|
-
}
|
|
101
|
-
.tl-navigation-tabs__tab--disabled {
|
|
102
|
-
color: var(--navigation-tabs-tab-disabled);
|
|
103
|
-
pointer-events: none;
|
|
104
|
-
cursor: not-allowed;
|
|
105
|
-
}
|
|
106
|
-
.tl-navigation-tabs__tab--disabled::after {
|
|
107
|
-
content: none;
|
|
108
|
-
}
|
|
109
|
-
.tl-navigation-tabs__tab--disabled:focus-visible::before {
|
|
110
|
-
box-shadow: none;
|
|
30
|
+
.traton .tl-navigation-tabs {
|
|
31
|
+
--navigation-tabs-tab-background-primary: var(--traton-color-transparent-invisible-light);
|
|
32
|
+
--navigation-tabs-tab-background-secondary: var(--traton-color-transparent-invisible-dark);
|
|
111
33
|
}
|
|
112
34
|
|
|
113
35
|
.tl-navigation-tabs {
|
|
@@ -117,7 +39,7 @@
|
|
|
117
39
|
box-sizing: border-box;
|
|
118
40
|
}
|
|
119
41
|
.tl-navigation-tabs {
|
|
120
|
-
background-color:
|
|
42
|
+
background-color: var(--navigation-tabs-tab-background);
|
|
121
43
|
display: flex;
|
|
122
44
|
flex-wrap: nowrap;
|
|
123
45
|
white-space: nowrap;
|
package/dist/tl-side-menu.css
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Contains spacing variables for the layout
|
|
3
|
-
*/
|
|
4
1
|
:host,
|
|
5
2
|
:root {
|
|
6
3
|
--tl-scrollbar-width-standard: thin;
|
|
@@ -45,6 +42,13 @@ body {
|
|
|
45
42
|
--side-menu-single-item-height: 68px;
|
|
46
43
|
--side-menu-subnav-border-radius: 0;
|
|
47
44
|
--side-menu-subnav-box-shadow: var(--tds-nav-dropdown-menu-box);
|
|
45
|
+
--side-menu-text-item-font-family: 'Scania Sans Semi Condensed', arial, 'Helvetica Neue';
|
|
46
|
+
--side-menu-text-item-font-size: 14px;
|
|
47
|
+
--side-menu-text-item-font-weight: 700;
|
|
48
|
+
--side-menu-text-item-line-height: 16px;
|
|
49
|
+
--side-menu-text-item-letter-spacing: -0.14px;
|
|
50
|
+
--side-menu-sub-item-with-icon: 56px;
|
|
51
|
+
--side-menu-sub-item-with-user-image: 72px;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
.traton .tl-side-menu {
|
|
@@ -61,6 +65,13 @@ body {
|
|
|
61
65
|
--side-menu-single-item-height: 40px;
|
|
62
66
|
--side-menu-subnav-border-radius: 4px;
|
|
63
67
|
--side-menu-subnav-box-shadow: none;
|
|
68
|
+
--side-menu-text-item-font-family: 'TRATON Type Text';
|
|
69
|
+
--side-menu-text-item-font-size: 14px;
|
|
70
|
+
--side-menu-text-item-font-weight: 500;
|
|
71
|
+
--side-menu-text-item-line-height: 18px;
|
|
72
|
+
--side-menu-text-item-letter-spacing: 0;
|
|
73
|
+
--side-menu-sub-item-with-icon: 38px;
|
|
74
|
+
--side-menu-sub-item-with-user-image: 46px;
|
|
64
75
|
}
|
|
65
76
|
|
|
66
77
|
.tl-side-menu--collapsed {
|
|
@@ -92,6 +103,11 @@ body {
|
|
|
92
103
|
cursor: pointer;
|
|
93
104
|
position: relative;
|
|
94
105
|
border-radius: var(--component-side-menu-radius-corner);
|
|
106
|
+
font-family: var(--side-menu-text-item-font-family);
|
|
107
|
+
font-size: var(--side-menu-text-item-font-size);
|
|
108
|
+
font-weight: var(--side-menu-text-item-font-weight);
|
|
109
|
+
line-height: var(--side-menu-text-item-line-height);
|
|
110
|
+
letter-spacing: var(--side-menu-text-item-letter-spacing);
|
|
95
111
|
}
|
|
96
112
|
.tl-side-menu__item:focus-visible {
|
|
97
113
|
outline: 2px solid var(--color-foreground-border-accent-focus);
|
|
@@ -127,6 +143,11 @@ body {
|
|
|
127
143
|
.tl-side-menu__dropdown {
|
|
128
144
|
display: flex;
|
|
129
145
|
flex-direction: column;
|
|
146
|
+
font-family: var(--side-menu-text-item-font-family);
|
|
147
|
+
font-size: var(--side-menu-text-item-font-size);
|
|
148
|
+
font-weight: var(--side-menu-text-item-font-weight);
|
|
149
|
+
line-height: var(--side-menu-text-item-line-height);
|
|
150
|
+
letter-spacing: var(--side-menu-text-item-letter-spacing);
|
|
130
151
|
}
|
|
131
152
|
.tl-side-menu__dropdown .tl-side-menu__item::after {
|
|
132
153
|
content: "";
|
|
@@ -187,13 +208,14 @@ body {
|
|
|
187
208
|
color: var(--side-menu-dropdown-list-item-color);
|
|
188
209
|
border: none;
|
|
189
210
|
border-radius: var(--component-side-menu-radius-corner);
|
|
190
|
-
font-family: var(--text-component-text-01-font-family);
|
|
191
|
-
font-size: var(--text-component-text-01-font-size);
|
|
192
|
-
font-weight: var(--text-component-text-01-font-weight);
|
|
193
|
-
line-height: var(--text-component-text-01-line-height);
|
|
194
|
-
letter-spacing: var(--text-component-text-01-letter-spacing);
|
|
195
211
|
position: relative;
|
|
196
212
|
cursor: pointer;
|
|
213
|
+
font-family: var(--body-02-font-family);
|
|
214
|
+
font-size: var(--body-02-font-size);
|
|
215
|
+
line-height: var(--body-02-line-height);
|
|
216
|
+
font-weight: var(--body-02-font-weight);
|
|
217
|
+
letter-spacing: var(--body-02-letter-spacing);
|
|
218
|
+
text-transform: var(--body-02-text-transform);
|
|
197
219
|
}
|
|
198
220
|
.tl-side-menu__dropdown-item:hover {
|
|
199
221
|
background-color: var(--side-menu-dropdown-list-item-custom-background-hover);
|
|
@@ -229,10 +251,23 @@ body {
|
|
|
229
251
|
border-radius: var(--component-side-menu-radius-corner) 0 0 var(--component-side-menu-radius-corner);
|
|
230
252
|
}
|
|
231
253
|
|
|
254
|
+
.tl-side-menu__dropdown:has(.tl-side-menu__item .tl-icon) .tl-side-menu__dropdown-item {
|
|
255
|
+
padding-left: var(--side-menu-sub-item-with-icon);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.tl-side-menu__dropdown:has(.tl-side-menu__item .tl-side-menu__user .tl-side-menu__user-image) .tl-side-menu__dropdown-item {
|
|
259
|
+
padding-left: var(--side-menu-sub-item-with-user-image);
|
|
260
|
+
}
|
|
261
|
+
|
|
232
262
|
.tl-side-menu__user {
|
|
233
263
|
display: flex;
|
|
234
264
|
align-items: center;
|
|
235
265
|
gap: var(--component-side-menu-space-sub-menu-item-profile-gap);
|
|
266
|
+
font-family: var(--side-menu-text-item-font-family);
|
|
267
|
+
font-size: var(--side-menu-text-item-font-size);
|
|
268
|
+
font-weight: var(--side-menu-text-item-font-weight);
|
|
269
|
+
line-height: var(--side-menu-text-item-line-height);
|
|
270
|
+
letter-spacing: var(--side-menu-text-item-letter-spacing);
|
|
236
271
|
}
|
|
237
272
|
|
|
238
273
|
.tl-side-menu__user-image {
|