@siemens/element-theme 48.0.0-next.5 → 48.0.0-next.6
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/_themes.scss +1 -1
- package/src/styles/bootstrap/_alert.scss +3 -3
- package/src/styles/bootstrap/_badges.scss +6 -6
- package/src/styles/bootstrap/_button-group.scss +2 -2
- package/src/styles/bootstrap/_buttons.scss +5 -5
- package/src/styles/bootstrap/_card.scss +3 -3
- package/src/styles/bootstrap/_dropdowns.scss +3 -2
- package/src/styles/bootstrap/_list-group.scss +2 -1
- package/src/styles/bootstrap/_modals.scss +2 -2
- package/src/styles/bootstrap/_pagination.scss +2 -2
- package/src/styles/bootstrap/_reboot.scss +1 -1
- package/src/styles/bootstrap/_tables.scss +3 -3
- package/src/styles/bootstrap/_type.scss +67 -52
- package/src/styles/bootstrap/_variables.scss +17 -15
- package/src/styles/bootstrap/forms/_form-control.scss +1 -1
- package/src/styles/bootstrap/forms/_form-label.scss +6 -4
- package/src/styles/bootstrap/forms/_validation.scss +1 -1
- package/src/styles/components/_application-header.scss +11 -9
- package/src/styles/components/_datatable.scss +5 -5
- package/src/styles/components/_layout.scss +3 -3
- package/src/styles/components/_widgets.scss +6 -6
- package/src/styles/variables/_typography.scss +133 -60
- package/src/styles/variables/_utilities.scss +3 -1
- package/src/theme/_theme-element.scss +334 -318
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
@use './skeleton';
|
|
8
8
|
|
|
9
9
|
.si-value-widget-value {
|
|
10
|
-
@extend .si-display-
|
|
10
|
+
@extend .si-display-bold;
|
|
11
11
|
display: inline-block;
|
|
12
|
-
min-block-size: variables.$si-font-size-display-
|
|
12
|
+
min-block-size: variables.$si-font-size-display-bold * variables.$si-line-height-display-bold;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
* the line height.
|
|
18
18
|
*/
|
|
19
19
|
.si-value-widget-value-skeleton {
|
|
20
|
-
@extend .si-display-
|
|
20
|
+
@extend .si-display-bold;
|
|
21
21
|
@extend .si-skeleton;
|
|
22
22
|
display: inline-block;
|
|
23
|
-
block-size: variables.$si-font-size-display-
|
|
23
|
+
block-size: variables.$si-font-size-display-bold;
|
|
24
24
|
vertical-align: middle;
|
|
25
25
|
inline-size: 100%;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.si-value-widget-unit {
|
|
29
|
-
@extend .si-body-
|
|
29
|
+
@extend .si-body-lg;
|
|
30
30
|
display: inline-block;
|
|
31
31
|
margin-inline-start: map.get(variables.$spacers, 2);
|
|
32
32
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
.si-link-widget-skeleton {
|
|
49
49
|
@extend .si-skeleton;
|
|
50
|
-
block-size: calc(variables.$si-font-size-body
|
|
50
|
+
block-size: calc(variables.$si-font-size-body * variables.$si-line-height-body);
|
|
51
51
|
inline-size: 100%;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -1,74 +1,147 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
1
3
|
@mixin si-font($font-size, $line-height, $font-weight) {
|
|
2
4
|
font-size: $font-size;
|
|
3
5
|
font-weight: $font-weight;
|
|
4
6
|
line-height: $line-height;
|
|
5
7
|
}
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
@function px-to-rem($value) {
|
|
10
|
+
@return math.div($value, 16px) * 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@function px-to-ratio($base, $value) {
|
|
14
|
+
$ratio: math.div($value, $base * 16px);
|
|
15
|
+
@return math.div($ratio, $ratio * 0 + 1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
$si-font-family: 'SiemensSans Pro', sans-serif;
|
|
8
19
|
|
|
9
20
|
$si-font-weight-lighter: lighter !default;
|
|
10
21
|
$si-font-weight-light: 300 !default;
|
|
11
|
-
$si-font-weight-normal:
|
|
12
|
-
$si-font-weight-
|
|
22
|
+
$si-font-weight-normal: 400 !default;
|
|
23
|
+
$si-font-weight-medium: 500 !default;
|
|
24
|
+
$si-font-weight-semibold: 600 !default;
|
|
25
|
+
$si-font-weight-bold: 700 !default;
|
|
13
26
|
$si-font-weight-bolder: bolder !default;
|
|
14
27
|
$si-font-weight-black: 900 !default;
|
|
15
28
|
|
|
16
|
-
$si-font-size-h1:
|
|
17
|
-
$si-line-height-h1:
|
|
18
|
-
$si-font-weight-h1: $si-font-weight-
|
|
19
|
-
|
|
20
|
-
$si-font-size-h1-black: $si-font-size-h1;
|
|
21
|
-
$si-line-height-h1-black: $si-line-height-h1;
|
|
22
|
-
$si-font-weight-h1-black: $si-font-weight-black;
|
|
23
|
-
|
|
24
|
-
$si-font-size-h2: 1.25rem;
|
|
25
|
-
$si-line-height-h2: 1.2;
|
|
26
|
-
$si-font-weight-h2: $si-font-weight-normal;
|
|
27
|
-
|
|
28
|
-
$si-font-size-h3: 1.125rem;
|
|
29
|
-
$si-line-height-h3: 1.111;
|
|
30
|
-
$si-font-weight-h3: $si-font-weight-bold;
|
|
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;
|
|
29
|
+
$si-font-size-h1-bold: px-to-rem(30px);
|
|
30
|
+
$si-line-height-h1-bold: px-to-ratio($si-font-size-h1-bold, 36px);
|
|
31
|
+
$si-font-weight-h1-bold: $si-font-weight-bold;
|
|
35
32
|
|
|
36
|
-
$si-font-size-
|
|
37
|
-
$si-line-height-
|
|
38
|
-
$si-font-weight-
|
|
39
|
-
|
|
40
|
-
$si-font-size-body-1: 1rem;
|
|
41
|
-
$si-line-height-body-1: 1.125;
|
|
42
|
-
$si-font-weight-body-1: $si-font-weight-normal;
|
|
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
|
-
|
|
48
|
-
$si-font-size-title-2: 0.875rem;
|
|
49
|
-
$si-line-height-title-2: 1.143;
|
|
50
|
-
$si-font-weight-title-2: $si-font-weight-bold;
|
|
51
|
-
|
|
52
|
-
$si-font-size-body-2: 0.875rem;
|
|
53
|
-
$si-line-height-body-2: 1.143;
|
|
54
|
-
$si-font-weight-body-2: $si-font-weight-normal;
|
|
55
|
-
|
|
56
|
-
$si-font-size-caption-1: 0.75rem;
|
|
57
|
-
$si-line-height-caption-1: 1.333;
|
|
58
|
-
$si-font-weight-caption-1: $si-font-weight-normal;
|
|
59
|
-
|
|
60
|
-
$si-font-size-display-1: 3.5rem;
|
|
61
|
-
$si-line-height-display-1: 4.5rem;
|
|
62
|
-
$si-font-weight-display-1: $si-font-weight-normal;
|
|
63
|
-
|
|
64
|
-
$si-font-size-display-2: 3rem;
|
|
65
|
-
$si-line-height-display-2: 4rem;
|
|
66
|
-
$si-font-weight-display-2: $si-font-weight-normal;
|
|
67
|
-
|
|
68
|
-
$si-font-size-display-3: 2.5rem;
|
|
69
|
-
$si-line-height-display-3: 1.3;
|
|
70
|
-
$si-font-weight-display-3: $si-font-weight-black;
|
|
33
|
+
$si-font-size-h1: px-to-rem(30px);
|
|
34
|
+
$si-line-height-h1: px-to-ratio($si-font-size-h1, 36px);
|
|
35
|
+
$si-font-weight-h1: $si-font-weight-normal;
|
|
71
36
|
|
|
72
|
-
$si-font-size-
|
|
73
|
-
$si-line-height-
|
|
74
|
-
$si-font-weight-
|
|
37
|
+
$si-font-size-h2: px-to-rem(20px);
|
|
38
|
+
$si-line-height-h2: px-to-ratio($si-font-size-h2, 24px);
|
|
39
|
+
$si-font-weight-h2: $si-font-weight-semibold;
|
|
40
|
+
|
|
41
|
+
$si-font-size-h3: px-to-rem(18px);
|
|
42
|
+
$si-line-height-h3: px-to-ratio($si-font-size-h3, 24px);
|
|
43
|
+
$si-font-weight-h3: $si-font-weight-semibold;
|
|
44
|
+
|
|
45
|
+
$si-font-size-h4: px-to-rem(16px);
|
|
46
|
+
$si-line-height-h4: px-to-ratio($si-font-size-h4, 20px);
|
|
47
|
+
$si-font-weight-h4: $si-font-weight-semibold;
|
|
48
|
+
|
|
49
|
+
$si-font-size-h4-bold: px-to-rem(16px);
|
|
50
|
+
$si-line-height-h4-bold: px-to-ratio($si-font-size-h4-bold, 20px);
|
|
51
|
+
$si-font-weight-h4-bold: $si-font-weight-bold;
|
|
52
|
+
|
|
53
|
+
$si-font-size-h5: px-to-rem(14px);
|
|
54
|
+
$si-line-height-h5: px-to-ratio($si-font-size-h5, 16px);
|
|
55
|
+
$si-font-weight-h5: $si-font-weight-semibold;
|
|
56
|
+
|
|
57
|
+
$si-font-size-h5-bold: px-to-rem(14px);
|
|
58
|
+
$si-line-height-h5-bold: px-to-ratio($si-font-size-h5-bold, 16px);
|
|
59
|
+
$si-font-weight-h5-bold: $si-font-weight-bold;
|
|
60
|
+
|
|
61
|
+
$si-font-size-body-lg: px-to-rem(16px);
|
|
62
|
+
$si-line-height-body-lg: px-to-ratio($si-font-size-body-lg, 20px);
|
|
63
|
+
$si-font-weight-body-lg: $si-font-weight-normal;
|
|
64
|
+
|
|
65
|
+
$si-font-size-body: px-to-rem(14px);
|
|
66
|
+
$si-line-height-body: px-to-ratio($si-font-size-body, 16px);
|
|
67
|
+
$si-font-weight-body: $si-font-weight-normal;
|
|
68
|
+
|
|
69
|
+
$si-font-size-caption: px-to-rem(12px);
|
|
70
|
+
$si-line-height-caption: px-to-ratio($si-font-size-caption, 16px);
|
|
71
|
+
$si-font-weight-caption: $si-font-weight-normal;
|
|
72
|
+
|
|
73
|
+
$si-font-size-display-xl: px-to-rem(56px);
|
|
74
|
+
$si-line-height-display-xl: px-to-ratio($si-font-size-display-xl, 72px);
|
|
75
|
+
$si-font-weight-display-xl: $si-font-weight-normal;
|
|
76
|
+
|
|
77
|
+
$si-font-size-display-lg: px-to-rem(48px);
|
|
78
|
+
$si-line-height-display-lg: px-to-ratio($si-font-size-display-lg, 64px);
|
|
79
|
+
$si-font-weight-display-lg: $si-font-weight-normal;
|
|
80
|
+
|
|
81
|
+
$si-font-size-display-bold: px-to-rem(40px);
|
|
82
|
+
$si-line-height-display-bold: px-to-ratio($si-font-size-display-bold, 52px);
|
|
83
|
+
$si-font-weight-display-bold: $si-font-weight-bold;
|
|
84
|
+
|
|
85
|
+
$si-font-size-display: px-to-rem(40px);
|
|
86
|
+
$si-line-height-display: px-to-ratio($si-font-size-display, 52px);
|
|
87
|
+
$si-font-weight-display: $si-font-weight-normal;
|
|
88
|
+
|
|
89
|
+
// @deprecated Will be removed in a future major version, use `$si-*-h1-bold` instead.
|
|
90
|
+
$si-font-size-h1-black: $si-font-size-h1-bold;
|
|
91
|
+
$si-line-height-h1-black: $si-line-height-h1-bold;
|
|
92
|
+
$si-font-weight-h1-black: $si-font-weight-h1-bold;
|
|
93
|
+
|
|
94
|
+
// @deprecated Will be removed in a future major version, use `$si-*-h4-bold` instead.
|
|
95
|
+
$si-font-size-title-1-bold: $si-font-size-h4-bold;
|
|
96
|
+
$si-line-height-title-1-bold: $si-line-height-h4-bold;
|
|
97
|
+
$si-font-weight-title-1-bold: $si-font-weight-h4-bold;
|
|
98
|
+
|
|
99
|
+
// @deprecated Will be removed in a future major version, use `$si-*-h4` instead.
|
|
100
|
+
$si-font-size-title-1: $si-font-size-h4;
|
|
101
|
+
$si-line-height-title-1: $si-line-height-h4;
|
|
102
|
+
$si-font-weight-title-1: $si-font-weight-h4;
|
|
103
|
+
|
|
104
|
+
// @deprecated Will be removed in a future major version, use `$si-*-h5-bold` instead.
|
|
105
|
+
$si-font-size-title-2-bold: $si-font-size-h5-bold;
|
|
106
|
+
$si-line-height-title-2-bold: $si-line-height-h5-bold;
|
|
107
|
+
$si-font-weight-title-2-bold: $si-font-weight-h5-bold;
|
|
108
|
+
|
|
109
|
+
// @deprecated Will be removed in a future major version, use `$si-*-h5` instead.
|
|
110
|
+
$si-font-size-title-2: $si-font-size-h5;
|
|
111
|
+
$si-line-height-title-2: $si-line-height-h5;
|
|
112
|
+
$si-font-weight-title-2: $si-font-weight-h5;
|
|
113
|
+
|
|
114
|
+
// @deprecated Will be removed in a future major version, use `$si-*-body-lg` instead.
|
|
115
|
+
$si-font-size-body-1: $si-font-size-body-lg;
|
|
116
|
+
$si-line-height-body-1: $si-line-height-body-lg;
|
|
117
|
+
$si-font-weight-body-1: $si-font-weight-body-lg;
|
|
118
|
+
|
|
119
|
+
// @deprecated Will be removed in a future major version, use `$si-*-body` instead.
|
|
120
|
+
$si-font-size-body-2: $si-font-size-body;
|
|
121
|
+
$si-line-height-body-2: $si-line-height-body;
|
|
122
|
+
$si-font-weight-body-2: $si-font-weight-body;
|
|
123
|
+
|
|
124
|
+
// @deprecated Will be removed in a future major version, use `$si-*-caption` instead.
|
|
125
|
+
$si-font-size-caption-1: $si-font-size-caption;
|
|
126
|
+
$si-line-height-caption-1: $si-line-height-caption;
|
|
127
|
+
$si-font-weight-caption-1: $si-font-weight-caption;
|
|
128
|
+
|
|
129
|
+
// @deprecated Will be removed in a future major version, use `$si-*-display-xl` instead.
|
|
130
|
+
$si-font-size-display-1: $si-font-size-display-xl;
|
|
131
|
+
$si-line-height-display-1: $si-line-height-display-xl;
|
|
132
|
+
$si-font-weight-display-1: $si-font-weight-display-xl;
|
|
133
|
+
|
|
134
|
+
// @deprecated Will be removed in a future major version, use `$si-*-display-lg` instead.
|
|
135
|
+
$si-font-size-display-2: $si-font-size-display-lg;
|
|
136
|
+
$si-line-height-display-2: $si-line-height-display-lg;
|
|
137
|
+
$si-font-weight-display-2: $si-font-weight-display-lg;
|
|
138
|
+
|
|
139
|
+
// @deprecated Will be removed in a future major version, use `$si-*-display-bold` instead.
|
|
140
|
+
$si-font-size-display-3: $si-font-size-display-bold;
|
|
141
|
+
$si-line-height-display-3: $si-line-height-display-bold;
|
|
142
|
+
$si-font-weight-display-3: $si-font-weight-display-bold;
|
|
143
|
+
|
|
144
|
+
// @deprecated Will be removed in a future major version, use `$si-*-display` instead.
|
|
145
|
+
$si-font-size-display-4: $si-font-size-display;
|
|
146
|
+
$si-line-height-display-4: $si-line-height-display;
|
|
147
|
+
$si-font-weight-display-4: $si-font-weight-display;
|
|
@@ -476,9 +476,11 @@ $utilities: (
|
|
|
476
476
|
property: font-weight,
|
|
477
477
|
class: fw,
|
|
478
478
|
values: (
|
|
479
|
-
light: variables.$font-weight-light,
|
|
480
479
|
lighter: variables.$font-weight-lighter,
|
|
480
|
+
light: variables.$font-weight-light,
|
|
481
481
|
normal: variables.$font-weight-normal,
|
|
482
|
+
medium: variables.$font-weight-medium,
|
|
483
|
+
semibold: variables.$font-weight-semibold,
|
|
482
484
|
bold: variables.$font-weight-bold,
|
|
483
485
|
bolder: variables.$font-weight-bolder
|
|
484
486
|
)
|