@scania/tegel-lite 0.0.1-beta.0 → 0.0.1-beta.10
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/README.dev.md +51 -7
- package/README.md +21 -17
- package/dist/components.css +9406 -0
- package/dist/tl-folder-tab.css +87 -0
- package/dist/tl-folder-tabs.css +75 -0
- package/dist/tl-inline-tab.css +80 -0
- package/dist/tl-inline-tabs.css +92 -0
- package/dist/tl-navigation-tab.css +114 -0
- package/dist/tl-navigation-tabs.css +90 -0
- package/dist/tl-side-menu.css +43 -5
- package/dist/tl-slider.css +61 -62
- package/dist/tl-text-field.css +45 -43
- package/dist/tl-textarea.css +50 -35
- package/dist/tl-toggle.css +9 -2
- package/package.json +14 -4
- package/dist/tl-radiobutton.css +0 -165
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tl-folder-tabs.scss (overlay buttons, no JS) */
|
|
2
|
+
.tl-folder-tabs {
|
|
3
|
+
--folder-tabs-scroll-button-surface: var(--color-background-surface-200);
|
|
4
|
+
--folder-tabs-scroll-button-surface-hover: var(--color-background-surface-300);
|
|
5
|
+
--folder-tabs-scroll-button-surface-active: var(--color-background-surface-400);
|
|
6
|
+
--folder-tabs-scroll-button-text: var(--color-foreground-text-soft);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.tl-folder-tabs__tab {
|
|
10
|
+
--folder-tab-surface: var(--color-background-surface-200);
|
|
11
|
+
--folder-tab-surface-selected: var(--color-background-layer-01);
|
|
12
|
+
--folder-tab-surface-hover: var(--color-background-surface-300);
|
|
13
|
+
--folder-tab-border-selected: var(--color-foreground-border-accent-focus);
|
|
14
|
+
--folder-tab-divider: var(--color-foreground-icon-discrete);
|
|
15
|
+
--folder-tab-text: var(--color-foreground-text-soft);
|
|
16
|
+
--folder-tab-text-disabled: var(--color-foreground-text-disabled);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.tl-folder-tabs--primary .tl-folder-tabs__tab {
|
|
20
|
+
--folder-tab-surface-selected: var(--color-background-layer-01);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tl-folder-tabs--secondary .tl-folder-tabs__tab {
|
|
24
|
+
--folder-tab-surface-selected: var(--color-background-layer-02);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tl-folder-tabs {
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
}
|
|
30
|
+
.tl-folder-tabs * {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
}
|
|
33
|
+
.tl-folder-tabs {
|
|
34
|
+
display: flex;
|
|
35
|
+
overflow-x: scroll;
|
|
36
|
+
scrollbar-width: none;
|
|
37
|
+
position: relative;
|
|
38
|
+
outline: 0;
|
|
39
|
+
}
|
|
40
|
+
.tl-folder-tabs::-webkit-scrollbar {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Overlay buttons (optional in markup; visible via media query) */
|
|
45
|
+
.tl-folder-tabs__scroll-button {
|
|
46
|
+
background-color: var(--folder-tab-surface);
|
|
47
|
+
color: var(--folder-tabs-scroll-button-text);
|
|
48
|
+
min-width: 48px;
|
|
49
|
+
border: 0;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
align-items: center;
|
|
52
|
+
position: sticky;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
.tl-folder-tabs__scroll-button:hover {
|
|
56
|
+
background-color: var(--folder-tabs-scroll-button-surface-hover);
|
|
57
|
+
}
|
|
58
|
+
.tl-folder-tabs__scroll-button:active {
|
|
59
|
+
background-color: var(--folder-tabs-scroll-button-surface-active);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* left/right anchoring over the track */
|
|
63
|
+
.tl-folder-tabs__scroll-button--left {
|
|
64
|
+
left: 0;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tl-folder-tabs__scroll-button--right {
|
|
69
|
+
right: 0;
|
|
70
|
+
z-index: 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tl-folder-tabs__scroll-button svg {
|
|
74
|
+
fill: var(--folder-tabs-scroll-button-text);
|
|
75
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.tl-inline-tabs {
|
|
2
|
+
/* Horizontal divider */
|
|
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);
|
|
8
|
+
/* Scroll button */
|
|
9
|
+
--inline-tabs-scroll-button-text: var(--color-foreground-icon-strong);
|
|
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);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tl-inline-tabs__tab {
|
|
27
|
+
/* Tab */
|
|
28
|
+
--inline-tabs-tab: var(--color-foreground-text-soft);
|
|
29
|
+
--inline-tabs-tab-selected: var(--color-foreground-text-strong);
|
|
30
|
+
--inline-tabs-tab-disabled: var(--color-foreground-text-disabled);
|
|
31
|
+
--inline-tabs-tab-hover: var(--color-foreground-text-strong);
|
|
32
|
+
--inline-tabs-tab-focus: var(--color-foreground-border-accent-focus);
|
|
33
|
+
--inline-tabs-tab-indicator-active: var(--color-foreground-border-accent-focus);
|
|
34
|
+
--inline-tabs-tab-indicator-hover: var(--color-foreground-border-discrete);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tl-inline-tabs {
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
}
|
|
40
|
+
.tl-inline-tabs * {
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
}
|
|
43
|
+
.tl-inline-tabs {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-wrap: nowrap;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
width: 100%;
|
|
48
|
+
overflow-x: scroll;
|
|
49
|
+
scrollbar-width: none;
|
|
50
|
+
gap: 16px;
|
|
51
|
+
position: relative;
|
|
52
|
+
background-color: var(--inline-tabs-tab-background);
|
|
53
|
+
}
|
|
54
|
+
.tl-inline-tabs::-webkit-scrollbar {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
.tl-inline-tabs::after {
|
|
58
|
+
border-bottom: 1px solid var(--inline-tabs-horizontal-divider);
|
|
59
|
+
content: " ";
|
|
60
|
+
display: block;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
position: absolute;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.tl-inline-tabs__scroll-button {
|
|
68
|
+
background-color: transparent;
|
|
69
|
+
color: var(--inline-tabs-scroll-button-text);
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
min-width: 48px;
|
|
72
|
+
border: 0;
|
|
73
|
+
display: block;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
opacity: 1;
|
|
77
|
+
position: sticky;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tl-inline-tabs__scroll-button--right {
|
|
81
|
+
right: 0;
|
|
82
|
+
z-index: 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tl-inline-tabs__scroll-button--left {
|
|
86
|
+
left: 0;
|
|
87
|
+
z-index: 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.tl-inline-tabs__scroll-button svg {
|
|
91
|
+
fill: var(--inline-tabs-scroll-button-text);
|
|
92
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.tl-navigation-tabs__tab {
|
|
2
|
+
/* tds-navigation-tab variables */
|
|
3
|
+
--navigation-tabs-tab: var(--color-foreground-text-soft);
|
|
4
|
+
--navigation-tabs-tab-selected: var(--color-foreground-text-strong);
|
|
5
|
+
--navigation-tabs-tab-hover: var(--color-foreground-text-strong);
|
|
6
|
+
--navigation-tabs-tab-focus: var(--color-foreground-text-strong);
|
|
7
|
+
--navigation-tabs-tab-disabled: var(--color-foreground-text-disabled);
|
|
8
|
+
--navigation-tabs-tab-indicator-hover: var(--color-foreground-border-discrete);
|
|
9
|
+
--navigation-tabs-tab-indicator-active: var(--color-foreground-border-accent-focus);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tl-navigation-tabs {
|
|
13
|
+
/* tds-navigation-tabs variables */
|
|
14
|
+
--navigation-tabs-horizontal-divider: var(--color-foreground-icon-discrete);
|
|
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
|
+
--navigation-tabs-scroll-button-icon: var(--color-foreground-icon-strong);
|
|
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
|
+
}
|
|
23
|
+
.tl-navigation-tabs--primary {
|
|
24
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-primary);
|
|
25
|
+
}
|
|
26
|
+
.tl-navigation-tabs--secondary {
|
|
27
|
+
--navigation-tabs-tab-background: var(--navigation-tabs-tab-background-secondary);
|
|
28
|
+
}
|
|
29
|
+
|
|
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);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tl-navigation-tabs {
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
}
|
|
38
|
+
.tl-navigation-tabs * {
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
.tl-navigation-tabs {
|
|
42
|
+
background-color: var(--navigation-tabs-tab-background);
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-wrap: nowrap;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
width: 100%;
|
|
47
|
+
overflow-x: scroll;
|
|
48
|
+
scrollbar-width: none;
|
|
49
|
+
gap: 16px;
|
|
50
|
+
position: relative;
|
|
51
|
+
}
|
|
52
|
+
.tl-navigation-tabs::-webkit-scrollbar {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
.tl-navigation-tabs::after {
|
|
56
|
+
border-bottom: 1px solid var(--navigation-tabs-horizontal-divider);
|
|
57
|
+
content: " ";
|
|
58
|
+
display: block;
|
|
59
|
+
left: 0;
|
|
60
|
+
right: 0;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
position: absolute;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.tl-navigation-tabs__scroll-button {
|
|
66
|
+
background-color: transparent;
|
|
67
|
+
color: var(--navigation-tabs-scroll-button-icon);
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
min-width: 48px;
|
|
70
|
+
border: 0;
|
|
71
|
+
display: block;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
opacity: 1;
|
|
75
|
+
position: sticky;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tl-navigation-tabs__scroll-button--right {
|
|
79
|
+
right: 0;
|
|
80
|
+
z-index: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.tl-navigation-tabs__scroll-button--left {
|
|
84
|
+
left: 0;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.tl-navigation-tabs__scroll-button svg {
|
|
89
|
+
fill: var(--navigation-tabs-scroll-button-color);
|
|
90
|
+
}
|
package/dist/tl-side-menu.css
CHANGED
|
@@ -42,6 +42,13 @@ body {
|
|
|
42
42
|
--side-menu-single-item-height: 68px;
|
|
43
43
|
--side-menu-subnav-border-radius: 0;
|
|
44
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;
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
.traton .tl-side-menu {
|
|
@@ -58,6 +65,13 @@ body {
|
|
|
58
65
|
--side-menu-single-item-height: 40px;
|
|
59
66
|
--side-menu-subnav-border-radius: 4px;
|
|
60
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;
|
|
61
75
|
}
|
|
62
76
|
|
|
63
77
|
.tl-side-menu--collapsed {
|
|
@@ -89,6 +103,11 @@ body {
|
|
|
89
103
|
cursor: pointer;
|
|
90
104
|
position: relative;
|
|
91
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);
|
|
92
111
|
}
|
|
93
112
|
.tl-side-menu__item:focus-visible {
|
|
94
113
|
outline: 2px solid var(--color-foreground-border-accent-focus);
|
|
@@ -124,6 +143,11 @@ body {
|
|
|
124
143
|
.tl-side-menu__dropdown {
|
|
125
144
|
display: flex;
|
|
126
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);
|
|
127
151
|
}
|
|
128
152
|
.tl-side-menu__dropdown .tl-side-menu__item::after {
|
|
129
153
|
content: "";
|
|
@@ -184,13 +208,14 @@ body {
|
|
|
184
208
|
color: var(--side-menu-dropdown-list-item-color);
|
|
185
209
|
border: none;
|
|
186
210
|
border-radius: var(--component-side-menu-radius-corner);
|
|
187
|
-
font-family: var(--text-component-text-01-font-family);
|
|
188
|
-
font-size: var(--text-component-text-01-font-size);
|
|
189
|
-
font-weight: var(--text-component-text-01-font-weight);
|
|
190
|
-
line-height: var(--text-component-text-01-line-height);
|
|
191
|
-
letter-spacing: var(--text-component-text-01-letter-spacing);
|
|
192
211
|
position: relative;
|
|
193
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);
|
|
194
219
|
}
|
|
195
220
|
.tl-side-menu__dropdown-item:hover {
|
|
196
221
|
background-color: var(--side-menu-dropdown-list-item-custom-background-hover);
|
|
@@ -226,10 +251,23 @@ body {
|
|
|
226
251
|
border-radius: var(--component-side-menu-radius-corner) 0 0 var(--component-side-menu-radius-corner);
|
|
227
252
|
}
|
|
228
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
|
+
|
|
229
262
|
.tl-side-menu__user {
|
|
230
263
|
display: flex;
|
|
231
264
|
align-items: center;
|
|
232
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);
|
|
233
271
|
}
|
|
234
272
|
|
|
235
273
|
.tl-side-menu__user-image {
|