@danske/sapphire-css 32.2.0 → 33.0.1
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/build/themes/cjs/default-dark.js +1 -1
- package/build/themes/cjs/default.js +2 -1
- package/build/themes/cjs/index.d.ts +2 -1
- package/build/themes/esm/default-dark.js +1 -1
- package/build/themes/esm/default.js +2 -1
- package/build/themes/esm/index.d.ts +2 -1
- package/components/accordion/accordion.module.css +38 -40
- package/components/avatar/avatar.module.css +61 -51
- package/components/avatar/avatar.module.css.d.ts +4 -4
- package/components/backdrop/backdrop.module.css +3 -3
- package/components/badge/badge.module.css +257 -135
- package/components/badge/badge.module.css.d.ts +3 -3
- package/components/button/button.module.css +200 -400
- package/components/button/button.module.css.d.ts +6 -7
- package/components/buttonGroup/buttonGroup.module.css +6 -6
- package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -2
- package/components/calendar/calendar.module.css +90 -86
- package/components/checkbox/checkbox.module.css +59 -51
- package/components/checkbox/checkbox.module.css.d.ts +2 -2
- package/components/contextualHelp/contextualHelp.module.css +13 -10
- package/components/dateField/dateField.module.css +66 -64
- package/components/dateField/dateField.module.css.d.ts +1 -1
- package/components/dialog/dialog.module.css +13 -13
- package/components/dialog/dialog.module.css.d.ts +4 -4
- package/components/dropzone/dropzone.module.css +29 -23
- package/components/feedbackMessage/feedbackMessage.module.css +15 -15
- package/components/field/field.module.css +16 -16
- package/components/field/field.module.css.d.ts +1 -1
- package/components/fieldGroup/fieldGroup.module.css +4 -4
- package/components/fieldGroup/fieldGroup.module.css.d.ts +1 -1
- package/components/heading/heading.module.css +37 -85
- package/components/icon/icon.module.css +12 -12
- package/components/icon/icon.module.css.d.ts +4 -4
- package/components/iconButton/iconButton.module.css +130 -366
- package/components/iconButton/iconButton.module.css.d.ts +7 -8
- package/components/label/label.module.css +11 -11
- package/components/label/label.module.css.d.ts +1 -1
- package/components/labeledValue/labeledValue.module.css +7 -7
- package/components/labeledValue/labeledValue.module.css.d.ts +2 -2
- package/components/link/link.module.css +22 -22
- package/components/link/link.module.css.d.ts +2 -2
- package/components/list/list.module.css +41 -31
- package/components/listbox/listbox.module.css +80 -66
- package/components/listbox/listbox.module.css.d.ts +2 -2
- package/components/modalLayout/modalLayout.module.css +9 -11
- package/components/notificationBadge/notificationBadge.module.css +23 -25
- package/components/notificationBadge/notificationBadge.module.css.d.ts +3 -3
- package/components/pagination/pagination.module.css +16 -16
- package/components/panel/panel.module.css +4 -4
- package/components/panel/panel.module.css.d.ts +1 -1
- package/components/paragraph/paragraph.module.css +8 -8
- package/components/paragraph/paragraph.module.css.d.ts +2 -2
- package/components/popover/popover.module.css +6 -6
- package/components/radio/radio.module.css +32 -32
- package/components/radio/radio.module.css.d.ts +1 -1
- package/components/searchField/searchField.module.css +41 -45
- package/components/searchField/searchField.module.css.d.ts +1 -2
- package/components/segmentedControl/segmentedControl.module.css +33 -35
- package/components/segmentedControl/segmentedControl.module.css.d.ts +2 -2
- package/components/select/select.module.css +32 -32
- package/components/select/select.module.css.d.ts +1 -1
- package/components/skeleton/skeleton.module.css +6 -8
- package/components/spinner/spinner.module.css +22 -22
- package/components/spinner/spinner.module.css.d.ts +4 -4
- package/components/surface/surface.module.css +3 -7
- package/components/surface/surface.module.css.d.ts +0 -1
- package/components/switch/switch.module.css +47 -39
- package/components/switch/switch.module.css.d.ts +1 -1
- package/components/table/table.module.css +66 -54
- package/components/tabs/tabs.module.css +46 -45
- package/components/tabs/tabs.module.css.d.ts +2 -2
- package/components/tag/tag.module.css +32 -24
- package/components/text/text.module.css +48 -96
- package/components/textField/textField.module.css +78 -72
- package/components/textField/textField.module.css.d.ts +1 -1
- package/components/toast/toast.module.css +17 -19
- package/components/tooltip/tooltip.module.css +12 -12
- package/package.json +3 -3
- package/themes/default-dark.js +1 -1
- package/themes/default.js +2 -1
- package/themes/index.d.ts +2 -1
- package/build/themes/cjs/june-dark.d.ts +0 -5
- package/build/themes/cjs/june-dark.js +0 -13
- package/build/themes/cjs/june.d.ts +0 -5
- package/build/themes/cjs/june.js +0 -13
- package/build/themes/esm/june-dark.d.ts +0 -5
- package/build/themes/esm/june-dark.js +0 -8
- package/build/themes/esm/june.d.ts +0 -5
- package/build/themes/esm/june.js +0 -8
- package/themes/default-dark.css +0 -2
- package/themes/june-dark.css +0 -3
- package/themes/june-dark.d.ts +0 -5
- package/themes/june-dark.js +0 -13
- package/themes/june-dark.scss +0 -3
- package/themes/june.css +0 -3
- package/themes/june.d.ts +0 -5
- package/themes/june.js +0 -13
- package/themes/june.scss +0 -3
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
overflow-y: hidden;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
position: relative;
|
|
8
|
-
scroll-padding: 0
|
|
9
|
-
calc(2 * var(--sapphire-tabs-size-spacing-arrows-horizontal) + 1px);
|
|
8
|
+
scroll-padding: 0 calc(2 * var(--sapphire-global-size-generic-100) + 1px);
|
|
10
9
|
min-width: 0;
|
|
11
10
|
flex: 1;
|
|
12
11
|
|
|
@@ -38,37 +37,37 @@
|
|
|
38
37
|
|
|
39
38
|
.sapphire-tabs-overflow-arrows__arrow--left {
|
|
40
39
|
left: 0;
|
|
41
|
-
padding-right: var(--sapphire-
|
|
40
|
+
padding-right: var(--sapphire-global-size-generic-100);
|
|
42
41
|
background: linear-gradient(
|
|
43
42
|
90deg,
|
|
44
|
-
var(--sapphire-
|
|
45
|
-
var(--sapphire-
|
|
46
|
-
var(--sapphire-
|
|
43
|
+
var(--sapphire-global-color-neutral-white) 0%,
|
|
44
|
+
var(--sapphire-global-color-neutral-white) 40%,
|
|
45
|
+
var(--sapphire-global-color-neutral-transparent) 100%
|
|
47
46
|
);
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
.sapphire-tabs-overflow-arrows__arrow--right {
|
|
51
50
|
right: 0;
|
|
52
|
-
padding-left: var(--sapphire-
|
|
51
|
+
padding-left: var(--sapphire-global-size-generic-100);
|
|
53
52
|
background: linear-gradient(
|
|
54
53
|
90deg,
|
|
55
|
-
var(--sapphire-
|
|
56
|
-
var(--sapphire-
|
|
57
|
-
var(--sapphire-
|
|
54
|
+
var(--sapphire-global-color-neutral-transparent) 0%,
|
|
55
|
+
var(--sapphire-global-color-neutral-white) 60%,
|
|
56
|
+
var(--sapphire-global-color-neutral-white) 100%
|
|
58
57
|
);
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
.sapphire-tabs {
|
|
62
61
|
display: inline-flex;
|
|
63
62
|
box-sizing: border-box;
|
|
64
|
-
height: var(--sapphire-
|
|
65
|
-
gap: var(--sapphire-
|
|
63
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
64
|
+
gap: var(--sapphire-semantic-size-spacing-40);
|
|
66
65
|
position: relative;
|
|
67
66
|
overflow: hidden;
|
|
68
67
|
position: relative;
|
|
69
68
|
min-width: 100%;
|
|
70
69
|
flex: 1;
|
|
71
|
-
padding: 0 var(--sapphire-
|
|
70
|
+
padding: 0 var(--sapphire-semantic-size-focus-ring);
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
.sapphire-tabs::after {
|
|
@@ -77,9 +76,9 @@
|
|
|
77
76
|
position: absolute;
|
|
78
77
|
bottom: 0;
|
|
79
78
|
width: 100%;
|
|
80
|
-
height: var(--sapphire-
|
|
81
|
-
background-color: var(--sapphire-
|
|
82
|
-
border-radius: var(--sapphire-
|
|
79
|
+
height: var(--sapphire-semantic-size-border-md);
|
|
80
|
+
background-color: var(--sapphire-semantic-color-border-separator-default);
|
|
81
|
+
border-radius: var(--sapphire-semantic-size-border-md);
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
/**
|
|
@@ -97,13 +96,13 @@
|
|
|
97
96
|
align-items: center;
|
|
98
97
|
position: relative;
|
|
99
98
|
|
|
100
|
-
font-family: var(--sapphire-
|
|
101
|
-
font-weight: var(--sapphire-
|
|
102
|
-
font-size: var(--sapphire-
|
|
99
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
100
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
101
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
103
102
|
text-decoration: none;
|
|
104
103
|
|
|
105
104
|
background: none;
|
|
106
|
-
color: var(--sapphire-
|
|
105
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
107
106
|
box-sizing: border-box;
|
|
108
107
|
white-space: nowrap;
|
|
109
108
|
border-width: 0;
|
|
@@ -115,13 +114,13 @@
|
|
|
115
114
|
* The focus ring offset as vertical margin is used to make the focus ring
|
|
116
115
|
* offset so it overlaps the grey separator and doesn't overflow the container.
|
|
117
116
|
*/
|
|
118
|
-
margin: var(--sapphire-
|
|
119
|
-
var(--sapphire-
|
|
117
|
+
margin: var(--sapphire-semantic-size-focus-ring) 0
|
|
118
|
+
var(--sapphire-semantic-size-focus-ring) 0;
|
|
120
119
|
cursor: pointer;
|
|
121
120
|
outline: none;
|
|
122
121
|
|
|
123
122
|
/* Need the border radius to round the focus ring*/
|
|
124
|
-
border-radius: var(--sapphire-
|
|
123
|
+
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
125
124
|
|
|
126
125
|
/* Just to make sure it's above the grey border */
|
|
127
126
|
z-index: 1;
|
|
@@ -133,13 +132,13 @@
|
|
|
133
132
|
.sapphire-tabs__tab:not(:disabled):not(.is-disabled):not(:active):not(
|
|
134
133
|
.is-active
|
|
135
134
|
).is-hover {
|
|
136
|
-
color: var(--sapphire-
|
|
135
|
+
color: var(--sapphire-semantic-color-content-action-secondary-default);
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
.sapphire-tabs__tab.js-focus.is-focus,
|
|
140
139
|
.sapphire-tabs__tab:not(.js-focus):focus-visible {
|
|
141
|
-
outline: var(--sapphire-
|
|
142
|
-
var(--sapphire-
|
|
140
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
141
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
143
142
|
}
|
|
144
143
|
|
|
145
144
|
/**
|
|
@@ -152,7 +151,7 @@
|
|
|
152
151
|
}
|
|
153
152
|
.sapphire-tabs__tab:disabled .sapphire-tabs__label,
|
|
154
153
|
.sapphire-tabs__tab.is-disabled .sapphire-tabs__label {
|
|
155
|
-
opacity: var(--sapphire-
|
|
154
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
.sapphire-tabs__label {
|
|
@@ -164,7 +163,7 @@
|
|
|
164
163
|
* Active tab
|
|
165
164
|
*/
|
|
166
165
|
.sapphire-tabs__tab--active {
|
|
167
|
-
color: var(--sapphire-
|
|
166
|
+
color: var(--sapphire-semantic-color-content-action-secondary-default);
|
|
168
167
|
}
|
|
169
168
|
|
|
170
169
|
.sapphire-tabs__tab--active.js-focus:not(.is-focus)::after,
|
|
@@ -173,33 +172,35 @@
|
|
|
173
172
|
display: block;
|
|
174
173
|
position: absolute;
|
|
175
174
|
/* To offset the space created by the tab's margin */
|
|
176
|
-
bottom: calc(-1 * var(--sapphire-
|
|
175
|
+
bottom: calc(-1 * var(--sapphire-semantic-size-focus-ring));
|
|
177
176
|
width: 100%;
|
|
178
|
-
height: var(--sapphire-
|
|
179
|
-
background-color: var(
|
|
180
|
-
|
|
177
|
+
height: var(--sapphire-semantic-size-border-md);
|
|
178
|
+
background-color: var(
|
|
179
|
+
--sapphire-semantic-color-content-action-secondary-default
|
|
180
|
+
);
|
|
181
|
+
border-radius: var(--sapphire-semantic-size-border-md);
|
|
181
182
|
}
|
|
182
183
|
|
|
183
184
|
/**
|
|
184
185
|
* Small
|
|
185
186
|
*/
|
|
186
|
-
.sapphire-tabs--
|
|
187
|
-
height: var(--sapphire-
|
|
188
|
-
gap: var(--sapphire-
|
|
187
|
+
.sapphire-tabs--sm {
|
|
188
|
+
height: var(--sapphire-semantic-size-height-control-md);
|
|
189
|
+
gap: var(--sapphire-semantic-size-spacing-40);
|
|
189
190
|
}
|
|
190
|
-
.sapphire-tabs--
|
|
191
|
-
font-size: var(--sapphire-
|
|
191
|
+
.sapphire-tabs--sm .sapphire-tabs__tab {
|
|
192
|
+
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
/**
|
|
195
196
|
* Large
|
|
196
197
|
*/
|
|
197
|
-
.sapphire-tabs--
|
|
198
|
-
height: var(--sapphire-
|
|
199
|
-
gap: var(--sapphire-
|
|
198
|
+
.sapphire-tabs--lg {
|
|
199
|
+
height: var(--sapphire-semantic-size-height-control-xl);
|
|
200
|
+
gap: var(--sapphire-semantic-size-spacing-50);
|
|
200
201
|
}
|
|
201
|
-
.sapphire-tabs--
|
|
202
|
-
font-size: var(--sapphire-
|
|
202
|
+
.sapphire-tabs--lg .sapphire-tabs__tab {
|
|
203
|
+
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
203
204
|
}
|
|
204
205
|
|
|
205
206
|
.sapphire-tab-panel {
|
|
@@ -213,7 +214,7 @@
|
|
|
213
214
|
/* tab panel focus styling */
|
|
214
215
|
.sapphire-tab-panel.js-focus.is-focus,
|
|
215
216
|
.sapphire-tab-panel:not(.js-focus):focus-visible {
|
|
216
|
-
outline: var(--sapphire-
|
|
217
|
-
var(--sapphire-
|
|
218
|
-
outline-offset: var(--sapphire-
|
|
217
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
218
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
219
|
+
outline-offset: var(--sapphire-semantic-size-focus-ring);
|
|
219
220
|
}
|
|
@@ -16,8 +16,8 @@ declare const styles: {
|
|
|
16
16
|
readonly "is-focus": string;
|
|
17
17
|
readonly "sapphire-tabs__label": string;
|
|
18
18
|
readonly "sapphire-tabs__tab--active": string;
|
|
19
|
-
readonly "sapphire-tabs--
|
|
20
|
-
readonly "sapphire-tabs--
|
|
19
|
+
readonly "sapphire-tabs--sm": string;
|
|
20
|
+
readonly "sapphire-tabs--lg": string;
|
|
21
21
|
readonly "sapphire-tab-panel": string;
|
|
22
22
|
};
|
|
23
23
|
export = styles;
|
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
.sapphire-tag-group {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
|
-
gap: var(--sapphire-
|
|
4
|
+
gap: var(--sapphire-semantic-size-spacing-30);
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.sapphire-tag {
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
flex-direction: row;
|
|
11
|
-
height: var(--sapphire-
|
|
12
|
-
padding: 0 var(--sapphire-
|
|
13
|
-
gap: var(--sapphire-
|
|
11
|
+
height: var(--sapphire-semantic-size-height-control-sm);
|
|
12
|
+
padding: 0 var(--sapphire-semantic-size-spacing-40);
|
|
13
|
+
gap: var(--sapphire-semantic-size-spacing-20);
|
|
14
14
|
justify-content: center;
|
|
15
15
|
align-items: center;
|
|
16
16
|
white-space: nowrap;
|
|
17
|
-
border-radius: var(--sapphire-
|
|
17
|
+
border-radius: var(--sapphire-semantic-size-height-control-sm);
|
|
18
18
|
cursor: default;
|
|
19
19
|
|
|
20
20
|
/* typography */
|
|
21
|
-
font-size: var(--sapphire-
|
|
22
|
-
font-family: var(--sapphire-
|
|
23
|
-
font-weight: var(--sapphire-
|
|
21
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
22
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
23
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
24
24
|
font-style: normal;
|
|
25
25
|
text-decoration: none;
|
|
26
26
|
|
|
27
27
|
/* color default */
|
|
28
|
-
background-color: var(
|
|
29
|
-
|
|
28
|
+
background-color: var(
|
|
29
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
30
|
+
);
|
|
31
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
30
32
|
outline: none;
|
|
31
33
|
|
|
32
34
|
/* transition */
|
|
33
35
|
transition-property: opacity, background-color, color;
|
|
34
|
-
transition-duration: var(--sapphire-
|
|
36
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
35
37
|
transition-timing-function: ease-in-out;
|
|
36
38
|
|
|
37
39
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
@@ -51,16 +53,18 @@
|
|
|
51
53
|
|
|
52
54
|
.sapphire-tag.is-focus,
|
|
53
55
|
.sapphire-tag:not(.js-focus):focus-visible {
|
|
54
|
-
background-color: var(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
outline
|
|
56
|
+
background-color: var(
|
|
57
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
58
|
+
);
|
|
59
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
60
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
61
|
+
outline-offset: var(--sapphire-semantic-size-focus-ring);
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
.sapphire-tag__content {
|
|
61
65
|
display: inline-flex;
|
|
62
66
|
align-items: center;
|
|
63
|
-
gap: var(--sapphire-
|
|
67
|
+
gap: var(--sapphire-semantic-size-spacing-20);
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
/* Actionable */
|
|
@@ -70,29 +74,33 @@
|
|
|
70
74
|
.sapphire-tag--actionable:not(:disabled):not(.is-disabled):not(:active):not(
|
|
71
75
|
.is-active
|
|
72
76
|
).is-hover {
|
|
73
|
-
background-color: var(
|
|
77
|
+
background-color: var(
|
|
78
|
+
--sapphire-semantic-color-background-action-secondary-hover
|
|
79
|
+
);
|
|
74
80
|
cursor: pointer;
|
|
75
81
|
}
|
|
76
82
|
|
|
77
83
|
.sapphire-tag--actionable.is-active {
|
|
78
|
-
background-color: var(
|
|
84
|
+
background-color: var(
|
|
85
|
+
--sapphire-semantic-color-background-action-secondary-active
|
|
86
|
+
);
|
|
79
87
|
cursor: pointer;
|
|
80
88
|
}
|
|
81
89
|
|
|
82
90
|
.sapphire-tag:disabled,
|
|
83
91
|
.sapphire-tag.is-disabled {
|
|
84
|
-
opacity: var(--sapphire-
|
|
92
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
85
93
|
cursor: not-allowed;
|
|
86
94
|
pointer-events: none;
|
|
87
95
|
}
|
|
88
96
|
|
|
89
97
|
/* Adjusts sizing when button or icon is present */
|
|
90
98
|
.sapphire-tag:has(.sapphire-tag__button) {
|
|
91
|
-
padding-right: var(--sapphire-
|
|
99
|
+
padding-right: var(--sapphire-semantic-size-spacing-20);
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
.sapphire-tag:has(.sapphire-tag__error-icon) {
|
|
95
|
-
padding-left: var(--sapphire-
|
|
103
|
+
padding-left: var(--sapphire-semantic-size-spacing-20);
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
/**
|
|
@@ -101,7 +109,7 @@
|
|
|
101
109
|
.sapphire-tag__error-icon {
|
|
102
110
|
display: flex;
|
|
103
111
|
align-items: center;
|
|
104
|
-
color: var(--sapphire-
|
|
112
|
+
color: var(--sapphire-semantic-color-content-negative-secondary-default);
|
|
105
113
|
}
|
|
106
114
|
|
|
107
115
|
/**
|
|
@@ -120,13 +128,13 @@
|
|
|
120
128
|
|
|
121
129
|
/* transition */
|
|
122
130
|
transition-property: color;
|
|
123
|
-
transition-duration: var(--sapphire-
|
|
131
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
124
132
|
transition-timing-function: ease-in-out;
|
|
125
133
|
cursor: pointer;
|
|
126
134
|
|
|
127
135
|
/* style */
|
|
128
136
|
background-color: transparent;
|
|
129
|
-
color: var(--sapphire-
|
|
137
|
+
color: var(--sapphire-semantic-color-content-passive-secondary-default);
|
|
130
138
|
}
|
|
131
139
|
|
|
132
140
|
.sapphire-tag__button:focus {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.sapphire-text {
|
|
2
|
-
font-family: var(--sapphire-
|
|
2
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
3
3
|
|
|
4
4
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
5
5
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.sapphire-text--strong {
|
|
20
|
-
font-weight: var(--sapphire-
|
|
20
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.sapphire-text--underlined {
|
|
@@ -33,175 +33,127 @@
|
|
|
33
33
|
.sapphire-text--heading-6 {
|
|
34
34
|
margin-top: 0px;
|
|
35
35
|
margin-bottom: 0px;
|
|
36
|
-
color: var(--sapphire-
|
|
37
|
-
line-height: var(--sapphire-
|
|
36
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
37
|
+
line-height: var(--sapphire-global-size-line-height-sm);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.sapphire-text--heading-1 {
|
|
41
|
-
font-family: var(--sapphire-
|
|
42
|
-
font-weight: var(--sapphire-
|
|
43
|
-
font-size: var(--sapphire-
|
|
44
|
-
text-transform: var(--sapphire-text-font-text-transform-heading-default-1);
|
|
45
|
-
letter-spacing: var(--sapphire-text-font-letter-spacing-heading-default-1);
|
|
41
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
42
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
43
|
+
font-size: var(--sapphire-global-size-font-220);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
.sapphire-text--heading-2 {
|
|
49
|
-
font-family: var(--sapphire-
|
|
50
|
-
font-weight: var(--sapphire-
|
|
51
|
-
font-size: var(--sapphire-
|
|
52
|
-
text-transform: var(--sapphire-text-font-text-transform-heading-default-2);
|
|
53
|
-
letter-spacing: var(--sapphire-text-font-letter-spacing-heading-default-2);
|
|
47
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
48
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
49
|
+
font-size: var(--sapphire-global-size-font-150);
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
.sapphire-text--heading-3 {
|
|
57
|
-
font-family: var(--sapphire-
|
|
58
|
-
font-weight: var(--sapphire-
|
|
59
|
-
font-size: var(--sapphire-
|
|
60
|
-
text-transform: var(--sapphire-text-font-text-transform-heading-default-3);
|
|
61
|
-
letter-spacing: var(--sapphire-text-font-letter-spacing-heading-default-3);
|
|
53
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
54
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
55
|
+
font-size: var(--sapphire-global-size-font-130);
|
|
62
56
|
}
|
|
63
57
|
|
|
64
58
|
.sapphire-text--heading-4 {
|
|
65
|
-
font-family: var(--sapphire-
|
|
66
|
-
font-weight: var(--sapphire-
|
|
67
|
-
font-size: var(--sapphire-
|
|
68
|
-
text-transform: var(--sapphire-text-font-text-transform-heading-default-4);
|
|
69
|
-
letter-spacing: var(--sapphire-text-font-letter-spacing-heading-default-4);
|
|
59
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
60
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
61
|
+
font-size: var(--sapphire-global-size-font-112);
|
|
70
62
|
}
|
|
71
63
|
|
|
72
64
|
.sapphire-text--heading-5 {
|
|
73
|
-
font-family: var(--sapphire-
|
|
74
|
-
font-weight: var(--sapphire-
|
|
75
|
-
font-size: var(--sapphire-
|
|
76
|
-
text-transform: var(--sapphire-text-font-text-transform-heading-default-5);
|
|
77
|
-
letter-spacing: var(--sapphire-text-font-letter-spacing-heading-default-5);
|
|
65
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
66
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
67
|
+
font-size: var(--sapphire-global-size-font-106);
|
|
78
68
|
}
|
|
79
69
|
|
|
80
70
|
.sapphire-text--heading-6 {
|
|
81
|
-
font-family: var(--sapphire-
|
|
82
|
-
font-weight: var(--sapphire-
|
|
83
|
-
font-size: var(--sapphire-
|
|
84
|
-
text-transform: var(--sapphire-text-font-text-transform-heading-default-6);
|
|
85
|
-
letter-spacing: var(--sapphire-text-font-letter-spacing-heading-default-6);
|
|
71
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
72
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
73
|
+
font-size: var(--sapphire-global-size-font-100);
|
|
86
74
|
}
|
|
87
75
|
|
|
88
76
|
/* Alternative Heading */
|
|
89
77
|
|
|
90
78
|
.sapphire-text--heading-1.sapphire-text--heading-alternative {
|
|
91
|
-
font-family: var(--sapphire-
|
|
92
|
-
font-weight: var(--sapphire-
|
|
93
|
-
text-transform: var(
|
|
94
|
-
--sapphire-text-font-text-transform-heading-alternative-1
|
|
95
|
-
);
|
|
96
|
-
letter-spacing: var(
|
|
97
|
-
--sapphire-text-font-letter-spacing-heading-alternative-1
|
|
98
|
-
);
|
|
79
|
+
font-family: var(--sapphire-semantic-font-name-display);
|
|
80
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
99
81
|
}
|
|
100
82
|
|
|
101
83
|
.sapphire-text--heading-2.sapphire-text--heading-alternative {
|
|
102
|
-
font-family: var(--sapphire-
|
|
103
|
-
font-weight: var(--sapphire-
|
|
104
|
-
text-transform: var(
|
|
105
|
-
--sapphire-text-font-text-transform-heading-alternative-2
|
|
106
|
-
);
|
|
107
|
-
letter-spacing: var(
|
|
108
|
-
--sapphire-text-font-letter-spacing-heading-alternative-2
|
|
109
|
-
);
|
|
84
|
+
font-family: var(--sapphire-semantic-font-name-display);
|
|
85
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
110
86
|
}
|
|
111
87
|
|
|
112
88
|
.sapphire-text--heading-3.sapphire-text--heading-alternative {
|
|
113
|
-
font-family: var(--sapphire-
|
|
114
|
-
font-weight: var(--sapphire-
|
|
115
|
-
text-transform: var(
|
|
116
|
-
--sapphire-text-font-text-transform-heading-alternative-3
|
|
117
|
-
);
|
|
118
|
-
letter-spacing: var(
|
|
119
|
-
--sapphire-text-font-letter-spacing-heading-alternative-3
|
|
120
|
-
);
|
|
89
|
+
font-family: var(--sapphire-semantic-font-name-display);
|
|
90
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
121
91
|
}
|
|
122
92
|
|
|
123
93
|
.sapphire-text--heading-4.sapphire-text--heading-alternative {
|
|
124
|
-
font-family: var(--sapphire-
|
|
125
|
-
font-weight: var(--sapphire-
|
|
126
|
-
text-transform: var(
|
|
127
|
-
--sapphire-text-font-text-transform-heading-alternative-4
|
|
128
|
-
);
|
|
129
|
-
letter-spacing: var(
|
|
130
|
-
--sapphire-text-font-letter-spacing-heading-alternative-4
|
|
131
|
-
);
|
|
94
|
+
font-family: var(--sapphire-semantic-font-name-display);
|
|
95
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
132
96
|
}
|
|
133
97
|
|
|
134
98
|
.sapphire-text--heading-5.sapphire-text--heading-alternative {
|
|
135
|
-
font-family: var(--sapphire-
|
|
136
|
-
font-weight: var(--sapphire-
|
|
137
|
-
text-transform: var(
|
|
138
|
-
--sapphire-text-font-text-transform-heading-alternative-5
|
|
139
|
-
);
|
|
140
|
-
letter-spacing: var(
|
|
141
|
-
--sapphire-text-font-letter-spacing-heading-alternative-5
|
|
142
|
-
);
|
|
99
|
+
font-family: var(--sapphire-semantic-font-name-display);
|
|
100
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
143
101
|
}
|
|
144
102
|
|
|
145
103
|
.sapphire-text--heading-6.sapphire-text--heading-alternative {
|
|
146
|
-
font-family: var(--sapphire-
|
|
147
|
-
font-weight: var(--sapphire-
|
|
148
|
-
text-transform: var(
|
|
149
|
-
--sapphire-text-font-text-transform-heading-alternative-6
|
|
150
|
-
);
|
|
151
|
-
letter-spacing: var(
|
|
152
|
-
--sapphire-text-font-letter-spacing-heading-alternative-6
|
|
153
|
-
);
|
|
104
|
+
font-family: var(--sapphire-semantic-font-name-display);
|
|
105
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
154
106
|
}
|
|
155
107
|
|
|
156
108
|
/* Subheading */
|
|
157
109
|
.sapphire-text--subheading-1,
|
|
158
110
|
.sapphire-text--subheading-2 {
|
|
159
|
-
color: var(--sapphire-
|
|
160
|
-
line-height: var(--sapphire-
|
|
111
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
112
|
+
line-height: var(--sapphire-global-size-line-height-sm);
|
|
161
113
|
}
|
|
162
114
|
|
|
163
115
|
.sapphire-text--subheading-1 {
|
|
164
|
-
font-size: var(--sapphire-
|
|
116
|
+
font-size: var(--sapphire-global-size-font-88);
|
|
165
117
|
}
|
|
166
118
|
|
|
167
119
|
.sapphire-text--subheading-2 {
|
|
168
|
-
font-size: var(--sapphire-
|
|
120
|
+
font-size: var(--sapphire-global-size-font-75);
|
|
169
121
|
}
|
|
170
122
|
|
|
171
123
|
/* Body text */
|
|
172
124
|
.sapphire-text--body-1,
|
|
173
125
|
.sapphire-text--body-2,
|
|
174
126
|
.sapphire-text--body-3 {
|
|
175
|
-
color: var(--sapphire-
|
|
176
|
-
line-height: var(--sapphire-
|
|
127
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
128
|
+
line-height: var(--sapphire-global-size-line-height-md);
|
|
177
129
|
margin-top: 0px;
|
|
178
130
|
margin-bottom: 0px;
|
|
179
131
|
}
|
|
180
132
|
|
|
181
133
|
.sapphire-text--body-1 {
|
|
182
|
-
font-size: var(--sapphire-
|
|
134
|
+
font-size: var(--sapphire-global-size-font-106);
|
|
183
135
|
}
|
|
184
136
|
|
|
185
137
|
.sapphire-text--body-2 {
|
|
186
|
-
font-size: var(--sapphire-
|
|
138
|
+
font-size: var(--sapphire-global-size-font-88);
|
|
187
139
|
}
|
|
188
140
|
|
|
189
141
|
.sapphire-text--body-3 {
|
|
190
|
-
font-size: var(--sapphire-
|
|
142
|
+
font-size: var(--sapphire-global-size-font-75);
|
|
191
143
|
}
|
|
192
144
|
|
|
193
145
|
/* Caption text */
|
|
194
146
|
.sapphire-text--caption-1,
|
|
195
147
|
.sapphire-text--caption-2 {
|
|
196
|
-
color: var(--sapphire-
|
|
197
|
-
font-weight: var(--sapphire-
|
|
198
|
-
line-height: var(--sapphire-
|
|
148
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
149
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
150
|
+
line-height: var(--sapphire-global-size-line-height-sm);
|
|
199
151
|
}
|
|
200
152
|
|
|
201
153
|
.sapphire-text--caption-1 {
|
|
202
|
-
font-size: var(--sapphire-
|
|
154
|
+
font-size: var(--sapphire-global-size-font-88);
|
|
203
155
|
}
|
|
204
156
|
|
|
205
157
|
.sapphire-text--caption-2 {
|
|
206
|
-
font-size: var(--sapphire-
|
|
158
|
+
font-size: var(--sapphire-global-size-font-75);
|
|
207
159
|
}
|