@siemens/element-theme 47.1.0-next.1 → 47.1.0-next.3
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/package.json +1 -1
- package/src/styles/bootstrap/_card.scss +26 -10
- package/src/styles/bootstrap/_dropdowns.scss +5 -7
- package/src/styles/bootstrap/_type.scss +16 -0
- package/src/styles/components/_datatable.scss +1 -0
- package/src/styles/components/_icons.scss +11 -0
- package/src/styles/variables/_typography.scss +8 -0
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '../variables/focus';
|
|
1
2
|
@use '../variables/semantic-tokens';
|
|
2
3
|
@use '../variables/spacers';
|
|
3
4
|
@use '../variables/typography';
|
|
@@ -89,8 +90,22 @@
|
|
|
89
90
|
line-height: typography.$si-font-size-title-2;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
+ .card-body {
|
|
94
|
+
margin-block-start: map.get(spacers.$spacers, 2) * -1;
|
|
95
|
+
padding-block-start: map.get(spacers.$spacers, 2);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
+ .list-group {
|
|
99
|
+
margin-block-end: 0;
|
|
100
|
+
z-index: 0;
|
|
101
|
+
|
|
102
|
+
.list-group-item {
|
|
103
|
+
z-index: -1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
+ :is(.list-group, .overflow-auto, [tabindex='0']) {
|
|
108
|
+
outline-offset: focus.$focus-style-outline-inside-offset;
|
|
94
109
|
}
|
|
95
110
|
}
|
|
96
111
|
|
|
@@ -102,6 +117,7 @@
|
|
|
102
117
|
padding-block: variables.$card-spacer-y;
|
|
103
118
|
padding-inline: variables.$card-spacer-x;
|
|
104
119
|
color: variables.$card-color;
|
|
120
|
+
outline-offset: focus.$focus-style-outline-inside-offset !important; // stylelint-disable-line declaration-no-important
|
|
105
121
|
}
|
|
106
122
|
|
|
107
123
|
.card-title {
|
|
@@ -116,21 +132,21 @@
|
|
|
116
132
|
margin-block-end: 0;
|
|
117
133
|
}
|
|
118
134
|
|
|
119
|
-
// If the card has a header, remove the top padding for the body.
|
|
120
|
-
// Since we removed the separator line from the header, too much
|
|
121
|
-
// padding looks weird.
|
|
122
|
-
.card-header + .card-body {
|
|
123
|
-
padding-block-start: 0;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
135
|
.card-footer {
|
|
127
|
-
@extend %card-inner-radius-bottom;
|
|
128
136
|
padding-inline: variables.$card-cap-padding-x;
|
|
129
137
|
padding-block-start: variables.$card-cap-padding-y;
|
|
130
138
|
padding-block-end: variables.$card-cap-padding-x;
|
|
131
139
|
background-color: variables.$card-cap-bg;
|
|
132
140
|
}
|
|
133
141
|
|
|
142
|
+
:is(.card-header, .card-body):first-child {
|
|
143
|
+
@extend %card-inner-radius-top;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:is(.card-body, .card-footer):last-child {
|
|
147
|
+
@extend %card-inner-radius-bottom;
|
|
148
|
+
}
|
|
149
|
+
|
|
134
150
|
.card-img-overlay {
|
|
135
151
|
position: absolute;
|
|
136
152
|
inset: 0;
|
|
@@ -55,15 +55,13 @@
|
|
|
55
55
|
margin-block: -#{map.get(spacers.$spacers, 2)};
|
|
56
56
|
margin-inline: auto -#{map.get(spacers.$spacers, 4)};
|
|
57
57
|
font-size: 1.5rem !important; // stylelint-disable-line declaration-no-important
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
display: inline-block;
|
|
63
|
-
}
|
|
58
|
+
transform: rotate(var(--caret-rotate));
|
|
59
|
+
// adjust the origin to account for the negative margin. Otherwise the element would visually not rotate around the center.
|
|
60
|
+
transform-origin: calc(50% + #{map.get(spacers.$spacers, 1)}) 50%;
|
|
61
|
+
transition: transform variables.$si-caret-transition-duration;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
&.show .dropdown-caret
|
|
64
|
+
&.show .dropdown-caret {
|
|
67
65
|
transform: rotate(calc(var(--caret-rotate) + 180deg));
|
|
68
66
|
}
|
|
69
67
|
}
|
|
@@ -150,6 +150,14 @@ h6,
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
.si-title-1-bold {
|
|
154
|
+
@include typography.si-font(
|
|
155
|
+
typography.$si-font-size-title-1-bold,
|
|
156
|
+
typography.$si-line-height-title-1-bold,
|
|
157
|
+
typography.$si-font-weight-title-1-bold
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
153
161
|
.si-title-1 {
|
|
154
162
|
@include typography.si-font(
|
|
155
163
|
typography.$si-font-size-title-1,
|
|
@@ -166,6 +174,14 @@ h6,
|
|
|
166
174
|
);
|
|
167
175
|
}
|
|
168
176
|
|
|
177
|
+
.si-title-2-bold {
|
|
178
|
+
@include typography.si-font(
|
|
179
|
+
typography.$si-font-size-title-2-bold,
|
|
180
|
+
typography.$si-line-height-title-2-bold,
|
|
181
|
+
typography.$si-font-weight-title-2-bold
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
169
185
|
.si-title-2 {
|
|
170
186
|
@include typography.si-font(
|
|
171
187
|
typography.$si-font-size-title-2,
|
|
@@ -18,6 +18,17 @@
|
|
|
18
18
|
-moz-osx-font-smoothing: auto !important; // stylelint-disable-line declaration-no-important
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
.icon-stack {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
line-height: 1;
|
|
26
|
+
|
|
27
|
+
> :not(:first-child) {
|
|
28
|
+
position: absolute;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
21
32
|
@include utilities.rtl {
|
|
22
33
|
.flip-rtl {
|
|
23
34
|
transform: scaleX(-1);
|
|
@@ -29,6 +29,10 @@ $si-font-size-h3: 1.125rem;
|
|
|
29
29
|
$si-line-height-h3: 1.111;
|
|
30
30
|
$si-font-weight-h3: $si-font-weight-bold;
|
|
31
31
|
|
|
32
|
+
$si-font-size-title-1-bold: 1rem;
|
|
33
|
+
$si-line-height-title-1-bold: 1.125;
|
|
34
|
+
$si-font-weight-title-1-bold: $si-font-weight-black;
|
|
35
|
+
|
|
32
36
|
$si-font-size-title-1: 1rem;
|
|
33
37
|
$si-line-height-title-1: 1.125;
|
|
34
38
|
$si-font-weight-title-1: $si-font-weight-bold;
|
|
@@ -37,6 +41,10 @@ $si-font-size-body-1: 1rem;
|
|
|
37
41
|
$si-line-height-body-1: 1.125;
|
|
38
42
|
$si-font-weight-body-1: $si-font-weight-normal;
|
|
39
43
|
|
|
44
|
+
$si-font-size-title-2-bold: 0.875rem;
|
|
45
|
+
$si-line-height-title-2-bold: 1.143;
|
|
46
|
+
$si-font-weight-title-2-bold: $si-font-weight-black;
|
|
47
|
+
|
|
40
48
|
$si-font-size-title-2: 0.875rem;
|
|
41
49
|
$si-line-height-title-2: 1.143;
|
|
42
50
|
$si-font-weight-title-2: $si-font-weight-bold;
|