@siemens/element-theme 51.0.0-rc.1 → 51.0.0-rc.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.md +13 -0
- package/package.json +3 -2
- package/src/styles/_accessibility.scss +8 -2
- package/src/styles/_density.scss +144 -0
- package/src/styles/_reboot-shadow-dom.scss +5 -0
- package/src/styles/_root-font-size.scss +4 -2
- package/src/styles/_selectors.scss +3 -0
- package/src/styles/_themes.scss +15 -3
- package/src/styles/_utilities.scss +5 -0
- package/src/styles/_variables.scss +2 -0
- package/src/styles/bootstrap/_alert.scss +19 -19
- package/src/styles/bootstrap/_badges.scss +41 -41
- package/src/styles/bootstrap/_button-group.scss +12 -11
- package/src/styles/bootstrap/_buttons.scss +85 -85
- package/src/styles/bootstrap/_card.scss +23 -17
- package/src/styles/bootstrap/_dropdowns.scss +18 -18
- package/src/styles/bootstrap/_forms.scss +1 -0
- package/src/styles/bootstrap/_images.scss +4 -2
- package/src/styles/bootstrap/_list-group.scss +52 -14
- package/src/styles/bootstrap/_mixins.scss +1 -0
- package/src/styles/bootstrap/_modals.scss +11 -10
- package/src/styles/bootstrap/_nav.scss +17 -8
- package/src/styles/bootstrap/_pagination.scss +6 -5
- package/src/styles/bootstrap/_popovers.scss +3 -2
- package/src/styles/bootstrap/_reboot.scss +9 -3
- package/src/styles/bootstrap/_root.scss +2 -1
- package/src/styles/bootstrap/_tables.scss +8 -6
- package/src/styles/bootstrap/_type.scss +144 -36
- package/src/styles/bootstrap/_utilities.scss +41 -45
- package/src/styles/bootstrap/_variables.scss +154 -140
- package/src/styles/bootstrap/forms/_form-check.scss +43 -73
- package/src/styles/bootstrap/forms/_form-control.scss +35 -29
- package/src/styles/bootstrap/forms/_form-file.scss +9 -9
- package/src/styles/bootstrap/forms/_form-label.scss +1 -1
- package/src/styles/bootstrap/forms/_form-layout.scss +46 -0
- package/src/styles/bootstrap/forms/_form-range.scss +13 -14
- package/src/styles/bootstrap/forms/_validation.scss +3 -6
- package/src/styles/bootstrap/mixins/_badge-text.scss +3 -3
- package/src/styles/bootstrap/mixins/_form-layout.scss +62 -0
- package/src/styles/bootstrap/mixins/_grid.scss +3 -3
- package/src/styles/bootstrap/mixins/_utilities.scss +14 -3
- package/src/styles/components/_application-header.scss +30 -30
- package/src/styles/components/_datatable.scss +57 -48
- package/src/styles/components/_drag_drop.scss +7 -6
- package/src/styles/components/_elevation.scss +11 -6
- package/src/styles/components/_layout.scss +26 -13
- package/src/styles/components/_links.scss +2 -2
- package/src/styles/components/_list-item.scss +69 -30
- package/src/styles/components/_markdown.scss +33 -19
- package/src/styles/components/_pills.scss +6 -6
- package/src/styles/components/_scrollbar.scss +6 -5
- package/src/styles/components/_search-bar.scss +67 -0
- package/src/styles/components/_skeleton.scss +4 -3
- package/src/styles/components/_switch.scss +16 -18
- package/src/styles/components/_widgets.scss +12 -10
- package/src/styles/mixins/_utilities.scss +271 -0
- package/src/styles/variables/_elevation.scss +14 -12
- package/src/styles/variables/_focus.scss +4 -3
- package/src/styles/variables/_si-vars.scss +13 -7
- package/src/styles/variables/_sizing.scss +22 -0
- package/src/styles/variables/_spacers.scss +53 -25
- package/src/styles/variables/_system-tokens.scss +190 -0
- package/src/styles/variables/_typography.scss +112 -99
- package/src/styles/variables/_utilities.scss +64 -51
- package/src/theme/_theme-element.scss +386 -2
- package/src/theme-shadow-dom.scss +17 -0
- package/src/theme.scss +14 -3
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -4,24 +4,48 @@
|
|
|
4
4
|
|
|
5
5
|
@use 'sass:map';
|
|
6
6
|
|
|
7
|
+
.list,
|
|
7
8
|
ul:has(.list-item),
|
|
8
9
|
ol:has(.list-item) {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
9
12
|
margin: 0;
|
|
10
13
|
padding: 0;
|
|
11
14
|
list-style: none;
|
|
12
15
|
}
|
|
13
16
|
|
|
17
|
+
.list {
|
|
18
|
+
&.list-divider > li:not(:last-child) {
|
|
19
|
+
border-block-end: 1px solid variables.$si-sys-border-4;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.list-filled,
|
|
23
|
+
&.list-outline {
|
|
24
|
+
gap: map.get(variables.$spacers, 4);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.list-filled .list-item {
|
|
28
|
+
background-color: variables.$si-sys-background-1;
|
|
29
|
+
border-radius: variables.$element-radius-2;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.list-outline .list-item {
|
|
33
|
+
border: 1px solid variables.$si-sys-border-4;
|
|
34
|
+
border-radius: variables.$element-radius-2;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
14
38
|
.list-item {
|
|
15
39
|
display: grid;
|
|
16
|
-
grid-template-columns: 1fr auto;
|
|
40
|
+
grid-template-columns: auto auto 1fr auto;
|
|
17
41
|
grid-template-areas:
|
|
18
|
-
'timestamp
|
|
19
|
-
'title
|
|
20
|
-
'description
|
|
21
|
-
'metadata
|
|
22
|
-
'quick-actions quick-actions';
|
|
23
|
-
padding-block: map.get(variables.$spacers, 4);
|
|
24
|
-
padding-inline: map.get(variables.$spacers, 6);
|
|
42
|
+
'. . timestamp timestamp'
|
|
43
|
+
'check indicator title action'
|
|
44
|
+
'. . description description'
|
|
45
|
+
'. . metadata metadata'
|
|
46
|
+
'. . quick-actions quick-actions';
|
|
47
|
+
padding-block: map.get(variables.$spacers-block, 4);
|
|
48
|
+
padding-inline: map.get(variables.$spacers-inline, 6);
|
|
25
49
|
|
|
26
50
|
@include typography.si-font(
|
|
27
51
|
typography.$si-font-size-body,
|
|
@@ -30,34 +54,49 @@ ol:has(.list-item) {
|
|
|
30
54
|
);
|
|
31
55
|
|
|
32
56
|
> * {
|
|
33
|
-
grid-column:
|
|
57
|
+
grid-column: 3 / -1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.list-item-check {
|
|
61
|
+
grid-area: check;
|
|
62
|
+
align-self: center;
|
|
63
|
+
margin-inline-end: map.get(variables.$spacers, 4);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.list-item-indicator {
|
|
67
|
+
grid-area: indicator;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-self: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
// This restricts the height on purpose.
|
|
72
|
+
// Content taller than the title remains centered and overflows on both sides.
|
|
73
|
+
max-block-size: calc(
|
|
74
|
+
#{typography.$si-line-height-h5} * #{typography.$si-font-size-h5} +
|
|
75
|
+
#{map.get(variables.$spacers-block, 4)} * 2
|
|
76
|
+
);
|
|
77
|
+
margin-inline-end: map.get(variables.$spacers-inline, 4);
|
|
34
78
|
}
|
|
35
79
|
|
|
36
80
|
.list-item-timestamp {
|
|
37
81
|
grid-area: timestamp;
|
|
38
|
-
color: variables.$
|
|
82
|
+
color: variables.$si-sys-text-secondary;
|
|
39
83
|
margin-block-end: 0;
|
|
40
84
|
}
|
|
41
85
|
|
|
42
86
|
.list-item-title {
|
|
43
87
|
grid-area: title;
|
|
44
|
-
padding-block: map.get(variables.$spacers, 4);
|
|
88
|
+
padding-block: map.get(variables.$spacers-block, 4);
|
|
45
89
|
margin-block-end: 0;
|
|
46
90
|
|
|
47
91
|
@include typography.si-font(
|
|
48
|
-
typography.$si-font-size-
|
|
49
|
-
typography.$si-line-height-
|
|
50
|
-
typography.$si-font-weight-
|
|
92
|
+
typography.$si-font-size-body-sbold,
|
|
93
|
+
typography.$si-line-height-body-sbold,
|
|
94
|
+
typography.$si-font-weight-body-sbold
|
|
51
95
|
);
|
|
52
96
|
|
|
53
97
|
&.unread {
|
|
54
98
|
position: relative;
|
|
55
|
-
|
|
56
|
-
@include typography.si-font(
|
|
57
|
-
typography.$si-font-size-h5-bold,
|
|
58
|
-
typography.$si-line-height-h5-bold,
|
|
59
|
-
typography.$si-font-weight-h5-bold
|
|
60
|
-
);
|
|
99
|
+
font-weight: typography.$si-font-weight-bold;
|
|
61
100
|
|
|
62
101
|
&::before {
|
|
63
102
|
content: '';
|
|
@@ -65,7 +104,7 @@ ol:has(.list-item) {
|
|
|
65
104
|
block-size: 0.375rem;
|
|
66
105
|
inline-size: 0.375rem;
|
|
67
106
|
border-radius: 50%;
|
|
68
|
-
background-color: variables.$
|
|
107
|
+
background-color: variables.$si-sys-background-inverse;
|
|
69
108
|
inset-inline-start: -0.625rem;
|
|
70
109
|
inset-block-start: 50%;
|
|
71
110
|
translate: 0 -50%;
|
|
@@ -80,7 +119,7 @@ ol:has(.list-item) {
|
|
|
80
119
|
|
|
81
120
|
.list-item-description {
|
|
82
121
|
grid-area: description;
|
|
83
|
-
margin-block-end: map.get(variables.$spacers, 4);
|
|
122
|
+
margin-block-end: map.get(variables.$spacers-block, 4);
|
|
84
123
|
}
|
|
85
124
|
|
|
86
125
|
.list-item-metadata {
|
|
@@ -88,11 +127,11 @@ ol:has(.list-item) {
|
|
|
88
127
|
display: flex;
|
|
89
128
|
flex-direction: row;
|
|
90
129
|
align-items: center;
|
|
91
|
-
color: variables.$
|
|
92
|
-
margin-block-end: map.get(variables.$spacers, 4);
|
|
130
|
+
color: variables.$si-sys-text-secondary;
|
|
131
|
+
margin-block-end: map.get(variables.$spacers-block, 4);
|
|
93
132
|
|
|
94
133
|
a:not(:hover) {
|
|
95
|
-
color: variables.$
|
|
134
|
+
color: variables.$si-sys-text-secondary;
|
|
96
135
|
}
|
|
97
136
|
|
|
98
137
|
.badge {
|
|
@@ -103,15 +142,15 @@ ol:has(.list-item) {
|
|
|
103
142
|
inline-size: 0.125rem;
|
|
104
143
|
block-size: 0.125rem;
|
|
105
144
|
border-radius: 50%;
|
|
106
|
-
background-color: variables.$
|
|
107
|
-
margin-inline: map.get(variables.$spacers, 2);
|
|
145
|
+
background-color: variables.$si-sys-text-secondary;
|
|
146
|
+
margin-inline: map.get(variables.$spacers-inline, 2);
|
|
108
147
|
}
|
|
109
148
|
}
|
|
110
149
|
|
|
111
150
|
.list-item-quick-actions {
|
|
112
151
|
grid-area: quick-actions;
|
|
113
152
|
display: flex;
|
|
114
|
-
gap: map.get(variables.$spacers, 4);
|
|
153
|
+
gap: map.get(variables.$spacers-block, 4) map.get(variables.$spacers-inline, 4);
|
|
115
154
|
}
|
|
116
155
|
|
|
117
156
|
&.list-item-action {
|
|
@@ -120,11 +159,11 @@ ol:has(.list-item) {
|
|
|
120
159
|
color: inherit;
|
|
121
160
|
|
|
122
161
|
&:hover {
|
|
123
|
-
background-color: variables.$
|
|
162
|
+
background-color: variables.$si-sys-background-hover;
|
|
124
163
|
}
|
|
125
164
|
|
|
126
165
|
&:active {
|
|
127
|
-
background-color: variables.$
|
|
166
|
+
background-color: variables.$si-sys-background-active;
|
|
128
167
|
}
|
|
129
168
|
|
|
130
169
|
&:focus-visible {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@use '../variables';
|
|
2
|
-
|
|
3
1
|
@use 'sass:map';
|
|
2
|
+
@use '../variables';
|
|
4
3
|
|
|
5
4
|
.markdown-content {
|
|
6
5
|
max-inline-size: 100%;
|
|
@@ -8,13 +7,13 @@
|
|
|
8
7
|
word-wrap: break-word;
|
|
9
8
|
overflow-wrap: break-word;
|
|
10
9
|
word-break: break-word;
|
|
10
|
+
line-height: variables.$si-line-height-body-paragraph;
|
|
11
11
|
|
|
12
12
|
strong {
|
|
13
|
-
font-weight: variables.$si-font-weight-
|
|
13
|
+
font-weight: variables.$si-font-weight-sbold;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
ul,
|
|
17
|
-
ol {
|
|
16
|
+
:is(ul, ol) {
|
|
18
17
|
max-inline-size: 100%;
|
|
19
18
|
overflow-wrap: break-word;
|
|
20
19
|
|
|
@@ -28,16 +27,29 @@
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
li {
|
|
31
|
-
margin-block: map.get(variables.$spacers, 2);
|
|
30
|
+
margin-block: map.get(variables.$spacers-block, 2);
|
|
32
31
|
max-inline-size: 100%;
|
|
33
32
|
overflow-wrap: break-word;
|
|
34
33
|
}
|
|
35
34
|
|
|
35
|
+
.task-list-item {
|
|
36
|
+
list-style: none;
|
|
37
|
+
|
|
38
|
+
.form-check-input {
|
|
39
|
+
margin-inline-start: calc(-1rem - map.get(variables.$spacers-inline, 2));
|
|
40
|
+
margin-inline-end: map.get(variables.$spacers-inline, 2);
|
|
41
|
+
vertical-align: text-bottom;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
36
46
|
pre {
|
|
37
47
|
code {
|
|
48
|
+
color: inherit;
|
|
38
49
|
background-color: transparent;
|
|
39
50
|
padding-block: 0;
|
|
40
51
|
padding-inline: 0;
|
|
52
|
+
border: 0;
|
|
41
53
|
border-radius: 0;
|
|
42
54
|
}
|
|
43
55
|
|
|
@@ -51,8 +63,8 @@
|
|
|
51
63
|
}
|
|
52
64
|
|
|
53
65
|
blockquote {
|
|
54
|
-
border-inline-start: 4px solid variables.$
|
|
55
|
-
padding-inline-start: map.get(variables.$spacers, 4);
|
|
66
|
+
border-inline-start: 4px solid variables.$si-sys-border-4;
|
|
67
|
+
padding-inline-start: map.get(variables.$spacers-inline, 4);
|
|
56
68
|
|
|
57
69
|
p {
|
|
58
70
|
margin-block-end: 0;
|
|
@@ -72,24 +84,26 @@
|
|
|
72
84
|
table {
|
|
73
85
|
inline-size: max-content;
|
|
74
86
|
max-inline-size: 100%;
|
|
75
|
-
|
|
76
|
-
margin-block-start:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
display: block;
|
|
87
|
+
align-self: stretch;
|
|
88
|
+
margin-block-start: 0;
|
|
89
|
+
margin-block-end: 0;
|
|
90
|
+
display: table;
|
|
91
|
+
table-layout: auto;
|
|
81
92
|
white-space: nowrap;
|
|
82
93
|
|
|
83
|
-
ul,
|
|
84
|
-
ol {
|
|
94
|
+
:is(ul, ol) {
|
|
85
95
|
// stylelint-disable-next-line declaration-no-important
|
|
86
|
-
padding-inline-start: map.get(variables.$spacers, 6) !important;
|
|
96
|
+
padding-inline-start: map.get(variables.$spacers-inline, 6) !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
td:last-child,
|
|
100
|
+
th:last-child {
|
|
101
|
+
inline-size: 100%;
|
|
87
102
|
}
|
|
88
103
|
}
|
|
89
104
|
|
|
90
105
|
table td,
|
|
91
106
|
table th {
|
|
92
|
-
max-inline-size: 200px;
|
|
93
107
|
overflow: hidden;
|
|
94
108
|
text-overflow: ellipsis;
|
|
95
109
|
|
|
@@ -112,6 +126,6 @@
|
|
|
112
126
|
inline-size: auto;
|
|
113
127
|
object-fit: contain;
|
|
114
128
|
display: block;
|
|
115
|
-
margin-block: map.get(variables.$spacers, 4);
|
|
129
|
+
margin-block: map.get(variables.$spacers-block, 4);
|
|
116
130
|
}
|
|
117
131
|
}
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
border-radius: 0.75rem;
|
|
9
|
-
background: var(--filter-pill-background-color, variables.$
|
|
10
|
-
padding-inline: map.get(variables.$spacers, 4);
|
|
9
|
+
background: var(--filter-pill-background-color, variables.$si-sys-background-0);
|
|
10
|
+
padding-inline: map.get(variables.$spacers-inline, 4);
|
|
11
11
|
max-inline-size: 100%;
|
|
12
12
|
|
|
13
13
|
&.active {
|
|
14
|
-
background: variables.$
|
|
14
|
+
background: variables.$si-sys-background-active;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&.pill-interactive {
|
|
18
18
|
cursor: pointer;
|
|
19
19
|
|
|
20
20
|
&:hover {
|
|
21
|
-
background: variables.$
|
|
21
|
+
background: variables.$si-sys-background-accent-secondary-hover;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
:is(.name, .value) {
|
|
26
|
-
padding-block: map.get(variables.$spacers, 2);
|
|
26
|
+
padding-block: map.get(variables.$spacers-block, 2);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.pill-group {
|
|
31
31
|
display: flex;
|
|
32
|
-
gap: map.get(variables.$spacers, 1);
|
|
32
|
+
gap: map.get(variables.$spacers-block, 1) map.get(variables.$spacers-inline, 1);
|
|
33
33
|
|
|
34
34
|
.pill {
|
|
35
35
|
border-radius: 0;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
@use '../variables/
|
|
1
|
+
@use '../variables/system-tokens';
|
|
2
|
+
@use '../selectors';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
#{selectors.$document} {
|
|
4
5
|
scrollbar-color: color-mix(
|
|
5
6
|
in srgb,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
system-tokens.$si-sys-border-2 60%,
|
|
8
|
+
system-tokens.$si-sys-background-1
|
|
8
9
|
)
|
|
9
|
-
|
|
10
|
+
system-tokens.$si-sys-background-1;
|
|
10
11
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@use '../variables';
|
|
2
|
+
@use '../variables/semantic-tokens';
|
|
3
|
+
@use '../variables/system-tokens';
|
|
4
|
+
@use '../bootstrap/variables' as bootstrap-variables;
|
|
5
|
+
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
|
|
8
|
+
.search-bar {
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
&:has(.search-bar-input:disabled) {
|
|
12
|
+
.search-bar-icon,
|
|
13
|
+
.search-bar-input,
|
|
14
|
+
.search-bar-input::placeholder {
|
|
15
|
+
color: system-tokens.$si-sys-text-disabled;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.search-bar-input.form-control {
|
|
21
|
+
transition: none;
|
|
22
|
+
background-color: system-tokens.$si-sys-background-1 !important; // stylelint-disable-line declaration-no-important
|
|
23
|
+
border-radius: semantic-tokens.$element-radius-2;
|
|
24
|
+
border-width: 0;
|
|
25
|
+
|
|
26
|
+
&::placeholder {
|
|
27
|
+
color: system-tokens.$si-sys-text-secondary;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:is(:hover, :focus)::placeholder {
|
|
31
|
+
color: system-tokens.$si-sys-text-primary;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.search-bar:has(.search-bar-icon) & {
|
|
35
|
+
padding-inline-start: calc(
|
|
36
|
+
#{variables.$si-icon-font-size} + #{map.get(variables.$spacers-inline, 2)} * 2
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.search-bar:has(.search-bar-clear) & {
|
|
41
|
+
padding-inline-end: calc(
|
|
42
|
+
#{bootstrap-variables.$btn-font-size} * #{bootstrap-variables.$btn-line-height} +
|
|
43
|
+
#{bootstrap-variables.$btn-padding-y-sm} * 2 + #{map.get(variables.$spacers-inline, 2)} * 2
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.search-bar.variant-background-0 & {
|
|
48
|
+
background-color: system-tokens.$si-sys-background-2 !important; // stylelint-disable-line declaration-no-important
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.search-bar-icon {
|
|
53
|
+
position: absolute;
|
|
54
|
+
inset-block: 0;
|
|
55
|
+
inset-inline-start: map.get(variables.$spacers-inline, 2);
|
|
56
|
+
align-items: center;
|
|
57
|
+
font-size: variables.$si-icon-font-size;
|
|
58
|
+
color: system-tokens.$si-sys-text-disabled;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.search-bar-clear {
|
|
63
|
+
position: absolute;
|
|
64
|
+
inset-block: 0;
|
|
65
|
+
inset-inline-end: map.get(variables.$spacers-inline, 2);
|
|
66
|
+
margin-block: auto;
|
|
67
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../variables/animations';
|
|
2
2
|
@use '../variables/semantic-tokens';
|
|
3
|
+
@use '../variables/system-tokens';
|
|
3
4
|
|
|
4
5
|
@keyframes shimmer {
|
|
5
6
|
to {
|
|
@@ -12,9 +13,9 @@
|
|
|
12
13
|
min-block-size: 1em;
|
|
13
14
|
background: linear-gradient(
|
|
14
15
|
90deg,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
system-tokens.$si-sys-background-hover 0%,
|
|
17
|
+
system-tokens.$si-sys-background-active 25%,
|
|
18
|
+
system-tokens.$si-sys-background-hover 50%
|
|
18
19
|
);
|
|
19
20
|
background-size: 200% 100%;
|
|
20
21
|
background-position-x: 100%;
|
|
@@ -2,21 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
|
|
5
|
-
$si-switch-size: 1.25rem !default;
|
|
5
|
+
$si-switch-size: max(1.25rem, 20px) !default;
|
|
6
6
|
$si-switch-inline-size: calc(2 * #{$si-switch-size});
|
|
7
|
-
$si-switch-inline-spacing: calc($si-switch-inline-size + map.get(variables.$spacers, 4));
|
|
8
|
-
$si-switch-background-off-color: variables.$
|
|
9
|
-
$si-switch-background-on-color: variables.$
|
|
10
|
-
$si-switch-
|
|
11
|
-
$si-switch-slider-
|
|
12
|
-
$si-switch-slider-off-color: variables.$element-ui-2 !default;
|
|
13
|
-
$si-switch-slider-on-color: variables.$element-ui-5 !default;
|
|
7
|
+
$si-switch-inline-spacing: calc($si-switch-inline-size + map.get(variables.$spacers-inline, 4));
|
|
8
|
+
$si-switch-background-off-color: variables.$si-sys-background-1 !default;
|
|
9
|
+
$si-switch-background-on-color: variables.$si-sys-background-accent !default;
|
|
10
|
+
$si-switch-slider-margin: calc($si-switch-size / 5);
|
|
11
|
+
$si-switch-slider-on-color: variables.$si-sys-text-on-accent !default;
|
|
14
12
|
$si-switch-transition-length: variables.element-transition-duration(0.4s) !default;
|
|
15
13
|
|
|
16
14
|
$si-switch-knob-size: calc(#{$si-switch-size} - 2 * #{$si-switch-slider-margin});
|
|
17
15
|
|
|
18
16
|
.form-switch {
|
|
19
|
-
padding-block: map.get(variables.$spacers, 1);
|
|
17
|
+
padding-block: map.get(variables.$spacers-block, 1);
|
|
20
18
|
padding-inline-start: $si-switch-inline-spacing;
|
|
21
19
|
|
|
22
20
|
.form-check-input {
|
|
@@ -26,9 +24,9 @@ $si-switch-knob-size: calc(#{$si-switch-size} - 2 * #{$si-switch-slider-margin})
|
|
|
26
24
|
margin-inline-start: calc(-1 * $si-switch-inline-spacing);
|
|
27
25
|
inline-size: $si-switch-inline-size !important; // stylelint-disable-line declaration-no-important
|
|
28
26
|
block-size: #{$si-switch-size} !important; // stylelint-disable-line declaration-no-important
|
|
29
|
-
background-color: variables.$
|
|
27
|
+
background-color: variables.$si-sys-background-1;
|
|
30
28
|
transition: $si-switch-transition-length;
|
|
31
|
-
border: 1px solid variables.$
|
|
29
|
+
border: 1px solid variables.$si-sys-border-2;
|
|
32
30
|
border-radius: #{$si-switch-size};
|
|
33
31
|
appearance: none;
|
|
34
32
|
|
|
@@ -39,7 +37,7 @@ $si-switch-knob-size: calc(#{$si-switch-size} - 2 * #{$si-switch-slider-margin})
|
|
|
39
37
|
inline-size: $si-switch-knob-size !important; // stylelint-disable-line declaration-no-important
|
|
40
38
|
inset-inline-start: calc(#{$si-switch-slider-margin} - 1px);
|
|
41
39
|
inset-block-end: calc(#{$si-switch-slider-margin} - 1px);
|
|
42
|
-
background-color: variables.$
|
|
40
|
+
background-color: variables.$si-sys-text-secondary;
|
|
43
41
|
transition: $si-switch-transition-length;
|
|
44
42
|
border-radius: 50%;
|
|
45
43
|
}
|
|
@@ -49,23 +47,23 @@ $si-switch-knob-size: calc(#{$si-switch-size} - 2 * #{$si-switch-slider-margin})
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
&:hover {
|
|
52
|
-
background-color: variables.$
|
|
50
|
+
background-color: variables.$si-sys-background-hover;
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
&:is(:checked, .checked) {
|
|
56
|
-
background-color: variables.$
|
|
54
|
+
background-color: variables.$si-sys-background-accent;
|
|
57
55
|
|
|
58
56
|
&:hover {
|
|
59
|
-
background-color: variables.$
|
|
57
|
+
background-color: variables.$si-sys-background-accent-hover;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
&:active {
|
|
63
|
-
background-color: variables.$
|
|
61
|
+
background-color: variables.$si-sys-background-accent-active;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
&:is(:disabled, .disabled) {
|
|
67
|
-
background-color: variables.$
|
|
68
|
-
border-color: variables.$
|
|
65
|
+
background-color: variables.$si-sys-background-accent;
|
|
66
|
+
border-color: variables.$si-sys-border-accent;
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
@use './skeleton';
|
|
8
8
|
|
|
9
9
|
.si-value-widget-value {
|
|
10
|
-
@extend .si-display-
|
|
10
|
+
@extend .si-display-lg-sbold;
|
|
11
11
|
display: inline-block;
|
|
12
|
-
min-block-size:
|
|
12
|
+
min-block-size: calc(
|
|
13
|
+
#{variables.$si-font-size-display-lg-sbold} * #{variables.$si-line-height-display-lg-sbold}
|
|
14
|
+
);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
/**
|
|
@@ -17,10 +19,10 @@
|
|
|
17
19
|
* the line height.
|
|
18
20
|
*/
|
|
19
21
|
.si-value-widget-value-skeleton {
|
|
20
|
-
@extend .si-display-
|
|
22
|
+
@extend .si-display-lg-sbold;
|
|
21
23
|
@extend .si-skeleton;
|
|
22
24
|
display: inline-block;
|
|
23
|
-
block-size: variables.$si-font-size-display-
|
|
25
|
+
block-size: #{variables.$si-font-size-display-lg-sbold};
|
|
24
26
|
vertical-align: middle;
|
|
25
27
|
inline-size: 100%;
|
|
26
28
|
}
|
|
@@ -28,31 +30,31 @@
|
|
|
28
30
|
.si-value-widget-unit {
|
|
29
31
|
@extend .si-body-lg;
|
|
30
32
|
display: inline-block;
|
|
31
|
-
margin-inline-start: map.get(variables.$spacers, 2);
|
|
33
|
+
margin-inline-start: map.get(variables.$spacers-inline, 2);
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.si-value-widget-description {
|
|
35
37
|
display: flex;
|
|
36
38
|
align-items: center;
|
|
37
|
-
gap: map.get(variables.$spacers, 2);
|
|
38
|
-
margin-block-start: map.get(variables.$spacers, 2);
|
|
39
|
+
gap: map.get(variables.$spacers-block, 2) map.get(variables.$spacers-inline, 2);
|
|
40
|
+
margin-block-start: map.get(variables.$spacers-block, 2);
|
|
39
41
|
min-block-size: variables.$si-icon-font-size;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.si-link-widget {
|
|
43
45
|
display: flex;
|
|
44
46
|
flex-direction: column;
|
|
45
|
-
gap: map.get(variables.$spacers, 4);
|
|
47
|
+
gap: map.get(variables.$spacers-block, 4) map.get(variables.$spacers-inline, 4);
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
.si-link-widget-skeleton {
|
|
49
51
|
@extend .si-skeleton;
|
|
50
|
-
block-size: calc(variables.$si-font-size-body * variables.$si-line-height-body);
|
|
52
|
+
block-size: calc(#{variables.$si-font-size-body} * #{variables.$si-line-height-body});
|
|
51
53
|
inline-size: 100%;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
.si-timeline-widget-item-lower-line {
|
|
55
57
|
inline-size: 1px;
|
|
56
58
|
block-size: 100%;
|
|
57
|
-
background-color: variables.$
|
|
59
|
+
background-color: variables.$si-sys-border-4;
|
|
58
60
|
}
|