@scania/tegel-lite 0.0.1-beta.7 → 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 +1850 -2139
- 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 -129
- 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
package/dist/tl-button.css
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Do not edit directly, this file was auto-generated.
|
|
3
|
-
*/
|
|
4
|
-
.tl-button,
|
|
5
|
-
tds-button,
|
|
6
|
-
.tds-mode-light tds-button {
|
|
7
|
-
--component-button-primary-text: var(--color-brand-neutral-white);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.scania .tds-mode-dark tds-button,
|
|
11
|
-
.scania .tds-mode-dark .tl-button {
|
|
12
|
-
--component-button-primary-text: var(--color-brand-neutral-white);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.tds-mode-dark tds-button,
|
|
16
|
-
.tds-mode-dark .tl-button {
|
|
17
|
-
--component-button-primary-text: var(--color-brand-neutral-black);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
1
|
.tl-button {
|
|
21
2
|
--button-transparent: transparent;
|
|
22
3
|
--button-white: var(--color-brand-neutral-white);
|
package/dist/tl-dropdown.css
CHANGED
|
@@ -269,10 +269,6 @@ body {
|
|
|
269
269
|
background-color: var(--dropdown-disabled);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
.tl-dropdown:has(.tl-dropdown__select:disabled)::after {
|
|
273
|
-
background-color: var(--dropdown-disabled);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
272
|
.tl-dropdown--lg:not(.tl-dropdown--label-inside):has(.tl-dropdown__select):not(:has(.tl-dropdown__helper))::after {
|
|
277
273
|
content: "";
|
|
278
274
|
position: absolute;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
.tl-folder-tabs {
|
|
2
|
+
--folder-tabs-scroll-button-surface: var(--color-background-surface-200);
|
|
3
|
+
--folder-tabs-scroll-button-surface-hover: var(--color-background-surface-300);
|
|
4
|
+
--folder-tabs-scroll-button-surface-active: var(--color-background-surface-400);
|
|
5
|
+
--folder-tabs-scroll-button-text: var(--color-foreground-text-soft);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tl-folder-tabs__tab {
|
|
9
|
+
--folder-tab-surface: var(--color-background-surface-200);
|
|
10
|
+
--folder-tab-surface-selected: var(--color-background-layer-01);
|
|
11
|
+
--folder-tab-surface-hover: var(--color-background-surface-300);
|
|
12
|
+
--folder-tab-border-selected: var(--color-foreground-border-accent-focus);
|
|
13
|
+
--folder-tab-divider: var(--color-foreground-icon-discrete);
|
|
14
|
+
--folder-tab-text: var(--color-foreground-text-soft);
|
|
15
|
+
--folder-tab-text-disabled: var(--color-foreground-text-disabled);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.tl-folder-tabs--primary .tl-folder-tabs__tab {
|
|
19
|
+
--folder-tab-surface-selected: var(--color-background-layer-01);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tl-folder-tabs--secondary .tl-folder-tabs__tab {
|
|
23
|
+
--folder-tab-surface-selected: var(--color-background-layer-02);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Typography Usage mixins */
|
|
27
|
+
.tl-folder-tabs__tab {
|
|
28
|
+
all: unset;
|
|
29
|
+
font-family: var(--headline-07-font-family);
|
|
30
|
+
font-size: var(--headline-07-font-size);
|
|
31
|
+
line-height: var(--headline-07-line-height);
|
|
32
|
+
font-weight: var(--headline-07-font-weight);
|
|
33
|
+
letter-spacing: var(--headline-07-letter-spacing);
|
|
34
|
+
text-transform: var(--headline-07-text-transform);
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
position: relative;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
min-inline-size: 142px;
|
|
40
|
+
inline-size: auto;
|
|
41
|
+
flex: 0 0 auto;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
padding: 16px;
|
|
44
|
+
text-align: left;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
border-left: 1px solid transparent;
|
|
47
|
+
border-top: 2px solid var(--folder-tab-surface);
|
|
48
|
+
background-color: var(--folder-tab-surface);
|
|
49
|
+
color: var(--folder-tab-text);
|
|
50
|
+
}
|
|
51
|
+
.tl-folder-tabs__tab + .tl-folder-tabs__tab {
|
|
52
|
+
border-left-color: var(--folder-tab-divider);
|
|
53
|
+
}
|
|
54
|
+
.tl-folder-tabs__tab:focus-visible {
|
|
55
|
+
outline: 2px solid currentcolor;
|
|
56
|
+
outline-offset: -4px;
|
|
57
|
+
box-shadow: none;
|
|
58
|
+
}
|
|
59
|
+
.tl-folder-tabs__tab:hover:not(.tl-folder-tabs__tab--disabled):not(.tl-folder-tabs__tab--selected) {
|
|
60
|
+
background-color: var(--folder-tab-surface-hover);
|
|
61
|
+
border-top-color: var(--folder-tab-surface-hover);
|
|
62
|
+
color: var(--folder-tab-text);
|
|
63
|
+
}
|
|
64
|
+
.tl-folder-tabs__tab--selected {
|
|
65
|
+
background-color: var(--folder-tab-surface-selected);
|
|
66
|
+
border-top-color: var(--folder-tab-border-selected);
|
|
67
|
+
color: var(--folder-tab-text);
|
|
68
|
+
}
|
|
69
|
+
.tl-folder-tabs__tab--selected::after {
|
|
70
|
+
content: "";
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
right: -1px;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
width: 1px;
|
|
76
|
+
background-color: var(--folder-tab-surface-selected);
|
|
77
|
+
z-index: 1;
|
|
78
|
+
}
|
|
79
|
+
.tl-folder-tabs__tab--disabled {
|
|
80
|
+
color: var(--folder-tab-text-disabled);
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
user-select: none;
|
|
83
|
+
}
|
|
84
|
+
.tl-folder-tabs__tab--disabled:focus-visible {
|
|
85
|
+
outline: none;
|
|
86
|
+
box-shadow: none;
|
|
87
|
+
}
|
package/dist/tl-folder-tabs.css
CHANGED
|
@@ -24,70 +24,6 @@
|
|
|
24
24
|
--folder-tab-surface-selected: var(--color-background-layer-02);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/* tl-folder-tabs.scss (overlay buttons, no JS) */
|
|
28
|
-
/* Typography Usage mixins */
|
|
29
|
-
.tl-folder-tabs__tab {
|
|
30
|
-
all: unset;
|
|
31
|
-
font-family: var(--headline-07-font-family);
|
|
32
|
-
font-size: var(--headline-07-font-size);
|
|
33
|
-
line-height: var(--headline-07-line-height);
|
|
34
|
-
font-weight: var(--headline-07-font-weight);
|
|
35
|
-
letter-spacing: var(--headline-07-letter-spacing);
|
|
36
|
-
text-transform: var(--headline-07-text-transform);
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
position: relative;
|
|
39
|
-
display: inline-flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
min-inline-size: 142px;
|
|
42
|
-
inline-size: auto;
|
|
43
|
-
flex: 0 0 auto;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
padding: 16px;
|
|
46
|
-
text-align: left;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
border-left: 1px solid transparent;
|
|
49
|
-
border-top: 2px solid var(--folder-tab-surface);
|
|
50
|
-
background-color: var(--folder-tab-surface);
|
|
51
|
-
color: var(--folder-tab-text);
|
|
52
|
-
}
|
|
53
|
-
.tl-folder-tabs__tab + .tl-folder-tabs__tab {
|
|
54
|
-
border-left-color: var(--folder-tab-divider);
|
|
55
|
-
}
|
|
56
|
-
.tl-folder-tabs__tab:focus-visible {
|
|
57
|
-
outline: 2px solid currentcolor;
|
|
58
|
-
outline-offset: -4px;
|
|
59
|
-
box-shadow: none;
|
|
60
|
-
}
|
|
61
|
-
.tl-folder-tabs__tab:hover:not(.tl-folder-tabs__tab--disabled):not(.tl-folder-tabs__tab--selected) {
|
|
62
|
-
background-color: var(--folder-tab-surface-hover);
|
|
63
|
-
border-top-color: var(--folder-tab-surface-hover);
|
|
64
|
-
color: var(--folder-tab-text);
|
|
65
|
-
}
|
|
66
|
-
.tl-folder-tabs__tab--selected {
|
|
67
|
-
background-color: var(--folder-tab-surface-selected);
|
|
68
|
-
border-top-color: var(--folder-tab-border-selected);
|
|
69
|
-
color: var(--folder-tab-text);
|
|
70
|
-
}
|
|
71
|
-
.tl-folder-tabs__tab--selected::after {
|
|
72
|
-
content: "";
|
|
73
|
-
position: absolute;
|
|
74
|
-
top: 0;
|
|
75
|
-
right: -1px;
|
|
76
|
-
bottom: 0;
|
|
77
|
-
width: 1px;
|
|
78
|
-
background-color: var(--folder-tab-surface-selected);
|
|
79
|
-
z-index: 1;
|
|
80
|
-
}
|
|
81
|
-
.tl-folder-tabs__tab--disabled {
|
|
82
|
-
color: var(--folder-tab-text-disabled);
|
|
83
|
-
cursor: not-allowed;
|
|
84
|
-
user-select: none;
|
|
85
|
-
}
|
|
86
|
-
.tl-folder-tabs__tab--disabled:focus-visible {
|
|
87
|
-
outline: none;
|
|
88
|
-
box-shadow: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
27
|
.tl-folder-tabs {
|
|
92
28
|
box-sizing: border-box;
|
|
93
29
|
}
|
package/dist/tl-footer.css
CHANGED
package/dist/tl-header.css
CHANGED
|
@@ -1,112 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
/**
|
|
3
|
-
* Do not edit directly, this file was auto-generated.
|
|
4
|
-
*/
|
|
5
|
-
.scania tds-header,
|
|
6
|
-
.scania .tl-header {
|
|
7
|
-
/* State & interaction colors */
|
|
8
|
-
--component-header-color-background-open: var(--color-foreground-border-accent-focus);
|
|
9
|
-
--component-header-color-foreground-selected: var(--color-foreground-icon-strong);
|
|
10
|
-
--component-header-dropdown-item-background: var(--color-background-layer-02);
|
|
11
|
-
--component-header-avatar-item-background: var(--color-background-layer-02);
|
|
12
|
-
--component-header-app-launcher-meny-background: var(--color-background-layer-02);
|
|
13
|
-
/* Sizing & spacing */
|
|
14
|
-
--component-header-brand-logo-size: 30px;
|
|
15
|
-
--component-header-space-profile-padding: 16px;
|
|
16
|
-
--component-header-item-image-size: 34px;
|
|
17
|
-
--component-header-item-image-left: 10px;
|
|
18
|
-
--component-header-item-width: none;
|
|
19
|
-
--component-header-item-border-right: 1px solid var(--header-basic-element-border);
|
|
20
|
-
/* Borders */
|
|
21
|
-
--component-header-border: none;
|
|
22
|
-
/* Typography */
|
|
23
|
-
--component-header-font-family-headline: var(--scania-font-family-display);
|
|
24
|
-
--component-header-font-weight: var(--scania-font-weight-regular);
|
|
25
|
-
--component-header-text-transform: none;
|
|
26
|
-
}
|
|
27
|
-
.scania {
|
|
28
|
-
/* ── Light-mode overrides ───────────────────── */
|
|
29
|
-
}
|
|
30
|
-
.scania .tds-mode-light tds-header,
|
|
31
|
-
.scania .tds-mode-light .tl-header {
|
|
32
|
-
--component-header-color-background: var(--color-brand-primary-800);
|
|
33
|
-
--component-header-color-foreground-strong: var(--color-foreground-icon-inverse-strong);
|
|
34
|
-
--component-header-color-background-hover: var(--color-brand-primary-700);
|
|
35
|
-
--component-header-color-background-border: var(--color-brand-primary-700);
|
|
36
|
-
--component-header-color-background-pressed: var(--color-brand-neutral-white);
|
|
37
|
-
--component-header-color-background-selected: var(--color-brand-primary-700);
|
|
38
|
-
}
|
|
39
|
-
.scania {
|
|
40
|
-
/* ── Dark-mode overrides ───────────────────── */
|
|
41
|
-
}
|
|
42
|
-
.scania .tds-mode-dark tds-header,
|
|
43
|
-
.scania .tds-mode-dark .tl-header {
|
|
44
|
-
--component-header-color-background: var(--color-brand-primary-900);
|
|
45
|
-
--component-header-color-foreground-strong: var(--color-foreground-icon-strong);
|
|
46
|
-
--component-header-color-background-hover: var(--color-brand-primary-800);
|
|
47
|
-
--component-header-color-background-border: var(--color-brand-primary-800);
|
|
48
|
-
--component-header-color-background-pressed: var(--color-brand-primary-800);
|
|
49
|
-
--component-header-color-background-selected: var(--color-brand-primary-800);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.traton tds-header,
|
|
53
|
-
.traton .tl-header {
|
|
54
|
-
/* Base colors */
|
|
55
|
-
--component-header-color-background: var(--color-background-base);
|
|
56
|
-
--component-header-color-background-hover: var(--color-background-layer-01);
|
|
57
|
-
--component-header-color-background-open: transparent;
|
|
58
|
-
--component-header-color-foreground-strong: var(--color-foreground-icon-strong);
|
|
59
|
-
--component-header-color-background-border: var(--traton-color-transparent-invisible-light);
|
|
60
|
-
--component-header-color-background-pressed: var(--color-background-base);
|
|
61
|
-
--component-header-color-foreground-selected: var(--color-foreground-icon-strong);
|
|
62
|
-
/* Dropdown & launcher */
|
|
63
|
-
--component-header-dropdown-item-background: var(--color-background-layer-01);
|
|
64
|
-
--component-header-avatar-item-background: var(--color-background-layer-01);
|
|
65
|
-
--component-header-app-launcher-meny-background: var(--color-background-layer-01);
|
|
66
|
-
/* Sizing & spacing */
|
|
67
|
-
--component-header-brand-logo-size: 106px;
|
|
68
|
-
--component-header-space-profile-padding: 20px;
|
|
69
|
-
--component-header-item-image-size: 24px;
|
|
70
|
-
--component-header-item-image-left: 15px;
|
|
71
|
-
--component-header-item-width: 122px;
|
|
72
|
-
--component-header-item-border-right: none;
|
|
73
|
-
/* Borders */
|
|
74
|
-
--component-header-border: 2px solid var(--header-nav-item-border-active);
|
|
75
|
-
/* Typography */
|
|
76
|
-
--component-header-font-family-headline: var(--traton-font-family-display);
|
|
77
|
-
--component-header-font-weight: var(--traton-font-weight-medium);
|
|
78
|
-
--component-header-text-transform: uppercase;
|
|
79
|
-
}
|
|
80
|
-
.traton {
|
|
81
|
-
/* ── Light-mode overrides ───────────────────── */
|
|
82
|
-
}
|
|
83
|
-
.traton .tds-mode-light tds-header,
|
|
84
|
-
.traton .tds-mode-light .tl-header {
|
|
85
|
-
--component-header-color-background-selected: var(--color-background-layer-01);
|
|
86
|
-
}
|
|
87
|
-
.traton {
|
|
88
|
-
/* ── Dark-mode overrides ───────────────────── */
|
|
89
|
-
}
|
|
90
|
-
.traton .tds-mode-dark tds-header,
|
|
91
|
-
.traton .tds-mode-dark .tl-header {
|
|
92
|
-
--component-header-color-background-selected: var(--color-background-surface-100);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/*
|
|
96
|
-
Tegel Lite specific overrides
|
|
97
|
-
Keep this in last to ensure it has the highest specificity for Tegel Lite
|
|
98
|
-
*/
|
|
99
|
-
.scania .tl-header {
|
|
100
|
-
--component-header-item-width: 30px;
|
|
101
|
-
--component-header-dropdown-box-shadow: 0 3px 3px rgb(0 0 0 / 15%), 0 -1px 1px rgb(0 0 0 / 1%);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.traton .tl-header {
|
|
105
|
-
--component-header-dropdown-box-shadow: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
2
|
.tl-header {
|
|
109
|
-
/* Base text */
|
|
3
|
+
/* Base background & text */
|
|
4
|
+
--header-background: var(--component-header-color-background);
|
|
110
5
|
--header-nav-item: var(--component-header-color-foreground-strong);
|
|
111
6
|
/* Nav-item states */
|
|
112
7
|
--header-nav-item-background-hover: var(--color-background-surface-100);
|
|
@@ -152,45 +47,25 @@
|
|
|
152
47
|
--header-dropdown-box-shadow: var(--component-header-dropdown-box-shadow);
|
|
153
48
|
}
|
|
154
49
|
|
|
155
|
-
.scania {
|
|
156
|
-
/* Dark mode - override with dark colors */
|
|
157
|
-
}
|
|
158
|
-
.scania .tds-mode-dark .tl-header {
|
|
159
|
-
--header-background: var(--component-header-color-background);
|
|
160
|
-
}
|
|
161
|
-
.scania {
|
|
162
|
-
/* Default .tl-header (works for both light mode and no mode) */
|
|
163
|
-
}
|
|
164
50
|
.scania .tl-header {
|
|
165
51
|
/* Brand logo */
|
|
166
52
|
--header-logotype-local: var(--tds-background-image-scania-symbol-svg-local);
|
|
167
53
|
--header-logotype-cdn: var(--tds-background-image-scania-symbol-svg);
|
|
168
54
|
--component-header-space-profile-padding: 16px;
|
|
169
|
-
/* Background defaults to light mode */
|
|
170
|
-
--header-background: var(--component-header-color-background);
|
|
171
55
|
}
|
|
172
56
|
|
|
173
57
|
.traton .tds-mode-dark .tl-header {
|
|
174
|
-
/* Brand logo
|
|
58
|
+
/* Brand logo */
|
|
175
59
|
--header-logotype-local: var(--traton-logotype-white-svg-local);
|
|
176
60
|
--header-logotype-cdn: var(--traton-logotype-white-svg);
|
|
177
|
-
/* Background */
|
|
178
|
-
--header-background: var(--component-header-color-background);
|
|
179
61
|
}
|
|
180
62
|
.traton .tds-mode-light .tl-header {
|
|
181
|
-
/* Brand logo
|
|
63
|
+
/* Brand logo */
|
|
182
64
|
--header-logotype-local: var(--traton-logotype-black-svg-local);
|
|
183
65
|
--header-logotype-cdn: var(--traton-logotype-black-svg);
|
|
184
|
-
/* Background */
|
|
185
|
-
--header-background: var(--component-header-color-background);
|
|
186
66
|
}
|
|
187
67
|
.traton .tl-header {
|
|
188
|
-
/* Brand logo - Black as default (for no mode specified) */
|
|
189
|
-
--header-logotype-local: var(--traton-logotype-black-svg-local);
|
|
190
|
-
--header-logotype-cdn: var(--traton-logotype-black-svg);
|
|
191
68
|
--component-header-space-profile-padding: 20px;
|
|
192
|
-
/* Background defaults to light mode */
|
|
193
|
-
--header-background: var(--component-header-color-background);
|
|
194
69
|
}
|
|
195
70
|
|
|
196
71
|
/* Typography Usage mixins */
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* Typography Usage mixins */
|
|
2
|
+
.tl-inline-tabs__tab {
|
|
3
|
+
all: unset;
|
|
4
|
+
margin-right: 32px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
.tl-inline-tabs__tab * {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
.tl-inline-tabs__tab {
|
|
11
|
+
font-family: var(--headline-07-font-family);
|
|
12
|
+
font-size: var(--headline-07-font-size);
|
|
13
|
+
line-height: var(--headline-07-line-height);
|
|
14
|
+
font-weight: var(--headline-07-font-weight);
|
|
15
|
+
letter-spacing: var(--headline-07-letter-spacing);
|
|
16
|
+
text-transform: var(--headline-07-text-transform);
|
|
17
|
+
color: var(--inline-tabs-tab);
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
display: block;
|
|
20
|
+
position: relative;
|
|
21
|
+
transition: color 0.15s ease-in-out 0s;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
border: 0;
|
|
25
|
+
padding: 20px 4px;
|
|
26
|
+
}
|
|
27
|
+
.tl-inline-tabs__tab:focus-visible {
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
.tl-inline-tabs__tab:focus-visible::before {
|
|
31
|
+
content: "";
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 18px 0;
|
|
34
|
+
border-radius: 2px;
|
|
35
|
+
box-shadow: 0 0 0 2px var(--inline-tabs-tab-focus) inset;
|
|
36
|
+
z-index: 2;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
}
|
|
39
|
+
.tl-inline-tabs__tab::after {
|
|
40
|
+
background-color: var(--inline-tabs-tab-indicator-hover);
|
|
41
|
+
content: " ";
|
|
42
|
+
position: absolute;
|
|
43
|
+
bottom: 0;
|
|
44
|
+
right: 0;
|
|
45
|
+
left: 0;
|
|
46
|
+
margin-left: auto;
|
|
47
|
+
width: 0%;
|
|
48
|
+
margin-right: auto;
|
|
49
|
+
height: 2px;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
transition: width 0.15s ease-in-out 0s;
|
|
52
|
+
}
|
|
53
|
+
.tl-inline-tabs__tab:not(.tl-inline-tabs__tab--selected)::after {
|
|
54
|
+
width: 0%;
|
|
55
|
+
}
|
|
56
|
+
.tl-inline-tabs__tab:hover {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
color: var(--inline-tabs-tab-hover);
|
|
59
|
+
}
|
|
60
|
+
.tl-inline-tabs__tab:hover::after {
|
|
61
|
+
width: 100%;
|
|
62
|
+
}
|
|
63
|
+
.tl-inline-tabs__tab--selected {
|
|
64
|
+
color: var(--inline-tabs-tab-selected);
|
|
65
|
+
}
|
|
66
|
+
.tl-inline-tabs__tab--selected::after {
|
|
67
|
+
background-color: var(--inline-tabs-tab-indicator-active);
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
.tl-inline-tabs__tab--disabled {
|
|
71
|
+
color: var(--inline-tabs-tab-disabled);
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
}
|
|
75
|
+
.tl-inline-tabs__tab--disabled::after {
|
|
76
|
+
content: none;
|
|
77
|
+
}
|
|
78
|
+
.tl-inline-tabs__tab--disabled:focus-visible::before {
|
|
79
|
+
box-shadow: none;
|
|
80
|
+
}
|
package/dist/tl-inline-tabs.css
CHANGED
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
.tl-inline-tabs {
|
|
2
2
|
/* Horizontal divider */
|
|
3
3
|
--inline-tabs-horizontal-divider: var(--color-foreground-icon-discrete);
|
|
4
|
+
/* Mode variant backgrounds */
|
|
5
|
+
--inline-tabs-tab-background-primary: var(--scania-color-transparent-invisible-light);
|
|
6
|
+
--inline-tabs-tab-background-secondary: var(--scania-color-transparent-invisible-dark);
|
|
7
|
+
--inline-tabs-tab-background: var(--inline-tabs-tab-background-primary);
|
|
4
8
|
/* Scroll button */
|
|
5
9
|
--inline-tabs-scroll-button-text: var(--color-foreground-icon-strong);
|
|
6
|
-
--inline-tabs-scroll-button:
|
|
7
|
-
--inline-tabs-scroll-button-hover:
|
|
8
|
-
--inline-tabs-scroll-button-active:
|
|
10
|
+
--inline-tabs-scroll-button-background: var(--inline-tabs-tab-background);
|
|
11
|
+
--inline-tabs-scroll-button-background-hover: var(--inline-tabs-tab-background);
|
|
12
|
+
--inline-tabs-scroll-button-background-active: var(--inline-tabs-tab-background);
|
|
13
|
+
}
|
|
14
|
+
.tl-inline-tabs--primary {
|
|
15
|
+
--inline-tabs-tab-background: var(--inline-tabs-tab-background-primary);
|
|
16
|
+
}
|
|
17
|
+
.tl-inline-tabs--secondary {
|
|
18
|
+
--inline-tabs-tab-background: var(--inline-tabs-tab-background-secondary);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.traton .tl-inline-tabs {
|
|
22
|
+
--inline-tabs-tab-background-primary: var(--traton-color-transparent-invisible-light);
|
|
23
|
+
--inline-tabs-tab-background-secondary: var(--traton-color-transparent-invisible-dark);
|
|
9
24
|
}
|
|
10
25
|
|
|
11
26
|
.tl-inline-tabs__tab {
|
|
@@ -19,87 +34,6 @@
|
|
|
19
34
|
--inline-tabs-tab-indicator-hover: var(--color-foreground-border-discrete);
|
|
20
35
|
}
|
|
21
36
|
|
|
22
|
-
/* Typography Usage mixins */
|
|
23
|
-
.tl-inline-tabs__tab {
|
|
24
|
-
all: unset;
|
|
25
|
-
margin-right: 32px;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
}
|
|
28
|
-
.tl-inline-tabs__tab * {
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
}
|
|
31
|
-
.tl-inline-tabs__tab {
|
|
32
|
-
font-family: var(--headline-07-font-family);
|
|
33
|
-
font-size: var(--headline-07-font-size);
|
|
34
|
-
line-height: var(--headline-07-line-height);
|
|
35
|
-
font-weight: var(--headline-07-font-weight);
|
|
36
|
-
letter-spacing: var(--headline-07-letter-spacing);
|
|
37
|
-
text-transform: var(--headline-07-text-transform);
|
|
38
|
-
color: var(--inline-tabs-tab);
|
|
39
|
-
text-decoration: none;
|
|
40
|
-
display: block;
|
|
41
|
-
position: relative;
|
|
42
|
-
transition: color 0.15s ease-in-out 0s;
|
|
43
|
-
white-space: nowrap;
|
|
44
|
-
background-color: transparent;
|
|
45
|
-
border: 0;
|
|
46
|
-
padding: 20px 4px;
|
|
47
|
-
}
|
|
48
|
-
.tl-inline-tabs__tab:focus-visible {
|
|
49
|
-
outline: none;
|
|
50
|
-
}
|
|
51
|
-
.tl-inline-tabs__tab:focus-visible::before {
|
|
52
|
-
content: "";
|
|
53
|
-
position: absolute;
|
|
54
|
-
inset: 18px 0;
|
|
55
|
-
border-radius: 2px;
|
|
56
|
-
box-shadow: 0 0 0 2px var(--inline-tabs-tab-focus) inset;
|
|
57
|
-
z-index: 2;
|
|
58
|
-
pointer-events: none;
|
|
59
|
-
}
|
|
60
|
-
.tl-inline-tabs__tab::after {
|
|
61
|
-
background-color: var(--inline-tabs-tab-indicator-hover);
|
|
62
|
-
content: " ";
|
|
63
|
-
position: absolute;
|
|
64
|
-
bottom: 0;
|
|
65
|
-
right: 0;
|
|
66
|
-
left: 0;
|
|
67
|
-
margin-left: auto;
|
|
68
|
-
width: 0%;
|
|
69
|
-
margin-right: auto;
|
|
70
|
-
height: 2px;
|
|
71
|
-
z-index: 1;
|
|
72
|
-
transition: width 0.15s ease-in-out 0s;
|
|
73
|
-
}
|
|
74
|
-
.tl-inline-tabs__tab:not(.tl-inline-tabs__tab--selected)::after {
|
|
75
|
-
width: 0%;
|
|
76
|
-
}
|
|
77
|
-
.tl-inline-tabs__tab:hover {
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
color: var(--inline-tabs-tab-hover);
|
|
80
|
-
}
|
|
81
|
-
.tl-inline-tabs__tab:hover::after {
|
|
82
|
-
width: 100%;
|
|
83
|
-
}
|
|
84
|
-
.tl-inline-tabs__tab--selected {
|
|
85
|
-
color: var(--inline-tabs-tab-selected);
|
|
86
|
-
}
|
|
87
|
-
.tl-inline-tabs__tab--selected::after {
|
|
88
|
-
background-color: var(--inline-tabs-tab-indicator-active);
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
.tl-inline-tabs__tab--disabled {
|
|
92
|
-
color: var(--inline-tabs-tab-disabled);
|
|
93
|
-
pointer-events: none;
|
|
94
|
-
cursor: not-allowed;
|
|
95
|
-
}
|
|
96
|
-
.tl-inline-tabs__tab--disabled::after {
|
|
97
|
-
content: none;
|
|
98
|
-
}
|
|
99
|
-
.tl-inline-tabs__tab--disabled:focus-visible::before {
|
|
100
|
-
box-shadow: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
37
|
.tl-inline-tabs {
|
|
104
38
|
box-sizing: border-box;
|
|
105
39
|
}
|
|
@@ -115,7 +49,7 @@
|
|
|
115
49
|
scrollbar-width: none;
|
|
116
50
|
gap: 16px;
|
|
117
51
|
position: relative;
|
|
118
|
-
background-color:
|
|
52
|
+
background-color: var(--inline-tabs-tab-background);
|
|
119
53
|
}
|
|
120
54
|
.tl-inline-tabs::-webkit-scrollbar {
|
|
121
55
|
display: none;
|
|
@@ -131,7 +65,7 @@
|
|
|
131
65
|
}
|
|
132
66
|
|
|
133
67
|
.tl-inline-tabs__scroll-button {
|
|
134
|
-
background-color:
|
|
68
|
+
background-color: transparent;
|
|
135
69
|
color: var(--inline-tabs-scroll-button-text);
|
|
136
70
|
cursor: pointer;
|
|
137
71
|
min-width: 48px;
|
|
@@ -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
|
+
}
|