@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
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
margin: 0;
|
|
16
16
|
|
|
17
17
|
/* typography */
|
|
18
|
-
font-family: var(--sapphire-
|
|
19
|
-
font-weight: var(--sapphire-
|
|
20
|
-
font-size: var(--sapphire-
|
|
21
|
-
text-transform:
|
|
22
|
-
letter-spacing:
|
|
18
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
19
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
20
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
21
|
+
text-transform: none;
|
|
22
|
+
letter-spacing: 0.01em;
|
|
23
23
|
|
|
24
24
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
25
25
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
-moz-osx-font-smoothing: grayscale;
|
|
37
37
|
|
|
38
38
|
/* sizing */
|
|
39
|
-
padding: 0 var(--sapphire-
|
|
40
|
-
height: var(--sapphire-
|
|
41
|
-
min-width: var(--sapphire-
|
|
39
|
+
padding: 0 var(--sapphire-global-size-generic-50);
|
|
40
|
+
height: var(--sapphire-semantic-size-height-control-md);
|
|
41
|
+
min-width: var(--sapphire-global-size-generic-100);
|
|
42
42
|
max-width: fit-content; /* When part of flex layout the button will otherwise expand to full width of container when container has flex-direction 'column' */
|
|
43
43
|
flex-shrink: 0; /* When part of flex layout the button will otherwise be squashed */
|
|
44
44
|
|
|
45
45
|
/* shape */
|
|
46
|
-
border-radius: var(--sapphire-
|
|
46
|
+
border-radius: var(--sapphire-semantic-size-height-control-md);
|
|
47
47
|
border-style: solid;
|
|
48
48
|
border-width: 0;
|
|
49
49
|
border-color: transparent;
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
/* transition */
|
|
52
52
|
/* we don't want to transition outline-offset */
|
|
53
53
|
transition-property: opacity, background-color, color;
|
|
54
|
-
transition-duration: var(--sapphire-
|
|
54
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
55
55
|
transition-timing-function: ease-in-out;
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
}
|
|
@@ -77,7 +77,7 @@ a.sapphire-button {
|
|
|
77
77
|
/* Disabled state for all variants */
|
|
78
78
|
.sapphire-button:disabled,
|
|
79
79
|
.sapphire-button.is-disabled {
|
|
80
|
-
opacity: var(--sapphire-
|
|
80
|
+
opacity: var(--sapphire-semantic-opacity-disabled);
|
|
81
81
|
cursor: not-allowed;
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -87,23 +87,23 @@ a.sapphire-button {
|
|
|
87
87
|
}
|
|
88
88
|
.sapphire-button.is-focus,
|
|
89
89
|
.sapphire-button:not(.js-focus):focus-visible {
|
|
90
|
-
outline: var(--sapphire-
|
|
91
|
-
var(--sapphire-
|
|
92
|
-
outline-offset: var(--sapphire-
|
|
90
|
+
outline: var(--sapphire-semantic-size-focus-ring) solid
|
|
91
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
92
|
+
outline-offset: var(--sapphire-semantic-size-focus-ring);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/* Button with icon */
|
|
96
96
|
.sapphire-button--with-left-icon {
|
|
97
|
-
min-width: var(--sapphire-
|
|
97
|
+
min-width: var(--sapphire-global-size-generic-100);
|
|
98
98
|
}
|
|
99
99
|
.sapphire-button--with-right-icon {
|
|
100
|
-
min-width: var(--sapphire-
|
|
100
|
+
min-width: var(--sapphire-global-size-generic-100);
|
|
101
101
|
}
|
|
102
102
|
.sapphire-button--with-right-icon .sapphire-button__icon {
|
|
103
|
-
margin-left: var(--sapphire-
|
|
103
|
+
margin-left: var(--sapphire-semantic-size-spacing-20);
|
|
104
104
|
}
|
|
105
105
|
.sapphire-button--with-left-icon .sapphire-button__icon {
|
|
106
|
-
margin-right: var(--sapphire-
|
|
106
|
+
margin-right: var(--sapphire-semantic-size-spacing-20);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
/* Button loading */
|
|
@@ -126,110 +126,83 @@ a.sapphire-button {
|
|
|
126
126
|
|
|
127
127
|
/* ### Variant: Primary */
|
|
128
128
|
/* ## Style: Default */
|
|
129
|
-
.sapphire-button--primary
|
|
130
|
-
background-color: var(
|
|
131
|
-
|
|
129
|
+
.sapphire-button--primary {
|
|
130
|
+
background-color: var(
|
|
131
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
132
|
+
);
|
|
133
|
+
color: var(--sapphire-semantic-color-content-action-primary-default);
|
|
132
134
|
}
|
|
133
|
-
.sapphire-button--primary
|
|
134
|
-
|
|
135
|
-
):not(.
|
|
136
|
-
.sapphire-button--primary
|
|
137
|
-
|
|
138
|
-
)
|
|
139
|
-
background-color: var(
|
|
135
|
+
.sapphire-button--primary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
136
|
+
.is-active
|
|
137
|
+
):not(.js-hover):hover,
|
|
138
|
+
.sapphire-button--primary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
139
|
+
.is-active
|
|
140
|
+
).is-hover {
|
|
141
|
+
background-color: var(
|
|
142
|
+
--sapphire-semantic-color-background-action-primary-hover
|
|
143
|
+
);
|
|
140
144
|
}
|
|
141
|
-
.sapphire-button--primary
|
|
142
|
-
.sapphire-button--primary
|
|
143
|
-
background-color: var(
|
|
145
|
+
.sapphire-button--primary.is-focus,
|
|
146
|
+
.sapphire-button--primary:not(.js-focus):focus-visible {
|
|
147
|
+
background-color: var(
|
|
148
|
+
--sapphire-semantic-color-background-action-primary-default
|
|
149
|
+
);
|
|
144
150
|
}
|
|
145
|
-
.sapphire-button--primary
|
|
146
|
-
.sapphire-button--primary
|
|
147
|
-
.sapphire-button--primary
|
|
151
|
+
.sapphire-button--primary:not(:disabled):not(.is-disabled).is-active,
|
|
152
|
+
.sapphire-button--primary:not(:disabled):not(.is-disabled):active,
|
|
153
|
+
.sapphire-button--primary:not(:disabled):not(
|
|
148
154
|
.is-disabled
|
|
149
155
|
):focus-visible:active {
|
|
150
|
-
background-color: var(
|
|
156
|
+
background-color: var(
|
|
157
|
+
--sapphire-semantic-color-background-action-primary-active
|
|
158
|
+
);
|
|
151
159
|
}
|
|
152
160
|
|
|
153
161
|
/* ### Variant: Secondary */
|
|
154
162
|
/* ## Style: Default */
|
|
155
|
-
|
|
156
|
-
.sapphire-button--secondary-fill {
|
|
157
|
-
background-color: var(--sapphire-button-color-background-secondary-default);
|
|
158
|
-
color: var(--sapphire-button-color-content-secondary-default);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):not(
|
|
162
|
-
:active
|
|
163
|
-
):not(.is-active):not(.js-hover):hover,
|
|
164
|
-
.sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):not(
|
|
165
|
-
:active
|
|
166
|
-
):not(.is-active).is-hover {
|
|
167
|
-
background-color: var(--sapphire-button-color-background-secondary-hover);
|
|
168
|
-
color: var(--sapphire-button-color-content-secondary-hover);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.sapphire-button--secondary-fill.is-focus,
|
|
172
|
-
.sapphire-button--secondary-fill:not(.js-focus):focus-visible {
|
|
173
|
-
background-color: var(--sapphire-button-color-background-secondary-focus);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.sapphire-button--secondary-fill:not(:disabled):not(.is-disabled).is-active,
|
|
177
|
-
.sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):active,
|
|
178
|
-
.sapphire-button--secondary-fill:not(:disabled):not(
|
|
179
|
-
.is-disabled
|
|
180
|
-
):focus-visible:active {
|
|
181
|
-
background-color: var(--sapphire-button-color-background-secondary-active);
|
|
182
|
-
color: var(--sapphire-button-color-content-secondary-active);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/* # Surface: Secondary */
|
|
186
|
-
.sapphire-button--secondary-fill.sapphire-button--secondary-surface {
|
|
163
|
+
.sapphire-button--secondary {
|
|
187
164
|
background-color: var(
|
|
188
|
-
--sapphire-
|
|
165
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
189
166
|
);
|
|
167
|
+
color: var(--sapphire-semantic-color-content-action-secondary-default);
|
|
190
168
|
}
|
|
191
169
|
|
|
192
|
-
.sapphire-button--secondary
|
|
193
|
-
|
|
194
|
-
):not(.
|
|
195
|
-
.sapphire-button--secondary
|
|
196
|
-
|
|
197
|
-
)
|
|
170
|
+
.sapphire-button--secondary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
171
|
+
.is-active
|
|
172
|
+
):not(.js-hover):hover,
|
|
173
|
+
.sapphire-button--secondary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
174
|
+
.is-active
|
|
175
|
+
).is-hover {
|
|
198
176
|
background-color: var(
|
|
199
|
-
--sapphire-
|
|
177
|
+
--sapphire-semantic-color-background-action-secondary-hover
|
|
200
178
|
);
|
|
179
|
+
color: var(--sapphire-semantic-color-content-action-secondary-hover);
|
|
201
180
|
}
|
|
202
181
|
|
|
203
|
-
.sapphire-button--secondary
|
|
204
|
-
.sapphire-button--secondary
|
|
205
|
-
.js-focus
|
|
206
|
-
):focus-visible {
|
|
182
|
+
.sapphire-button--secondary.is-focus,
|
|
183
|
+
.sapphire-button--secondary:not(.js-focus):focus-visible {
|
|
207
184
|
background-color: var(
|
|
208
|
-
--sapphire-
|
|
185
|
+
--sapphire-semantic-color-background-action-secondary-default
|
|
209
186
|
);
|
|
210
187
|
}
|
|
211
188
|
|
|
212
|
-
.sapphire-button--secondary-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
.
|
|
216
|
-
|
|
217
|
-
):not(.is-disabled):active,
|
|
218
|
-
.sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(
|
|
219
|
-
:disabled
|
|
220
|
-
):not(.is-disabled):focus-visible:active {
|
|
189
|
+
.sapphire-button--secondary:not(:disabled):not(.is-disabled).is-active,
|
|
190
|
+
.sapphire-button--secondary:not(:disabled):not(.is-disabled):active,
|
|
191
|
+
.sapphire-button--secondary:not(:disabled):not(
|
|
192
|
+
.is-disabled
|
|
193
|
+
):focus-visible:active {
|
|
221
194
|
background-color: var(
|
|
222
|
-
--sapphire-
|
|
195
|
+
--sapphire-semantic-color-background-action-secondary-active
|
|
223
196
|
);
|
|
197
|
+
color: var(--sapphire-semantic-color-content-action-secondary-active);
|
|
224
198
|
}
|
|
225
199
|
|
|
226
200
|
/* ## Style: Ghost */
|
|
227
|
-
/* # Surface: Primary */
|
|
228
201
|
.sapphire-button--secondary-ghost {
|
|
229
202
|
background-color: var(
|
|
230
|
-
--sapphire-
|
|
203
|
+
--sapphire-semantic-color-background-action-secondary-ghost-default
|
|
231
204
|
);
|
|
232
|
-
color: var(--sapphire-
|
|
205
|
+
color: var(--sapphire-semantic-color-content-action-secondary-default);
|
|
233
206
|
}
|
|
234
207
|
|
|
235
208
|
.sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled):not(
|
|
@@ -239,15 +212,15 @@ a.sapphire-button {
|
|
|
239
212
|
:active
|
|
240
213
|
):not(.is-active).is-hover {
|
|
241
214
|
background-color: var(
|
|
242
|
-
--sapphire-
|
|
215
|
+
--sapphire-semantic-color-background-action-secondary-ghost-hover
|
|
243
216
|
);
|
|
244
|
-
color: var(--sapphire-
|
|
217
|
+
color: var(--sapphire-semantic-color-content-action-secondary-hover);
|
|
245
218
|
}
|
|
246
219
|
|
|
247
220
|
.sapphire-button--secondary-ghost.is-focus,
|
|
248
221
|
.sapphire-button--secondary-ghost:not(.js-focus):focus-visible {
|
|
249
222
|
background-color: var(
|
|
250
|
-
--sapphire-
|
|
223
|
+
--sapphire-semantic-color-background-action-secondary-ghost-default
|
|
251
224
|
);
|
|
252
225
|
}
|
|
253
226
|
|
|
@@ -257,57 +230,16 @@ a.sapphire-button {
|
|
|
257
230
|
.is-disabled
|
|
258
231
|
):focus-visible:active {
|
|
259
232
|
background-color: var(
|
|
260
|
-
--sapphire-
|
|
261
|
-
);
|
|
262
|
-
color: var(--sapphire-button-color-content-secondary-active);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/* # Surface: Secondary */
|
|
266
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface {
|
|
267
|
-
background-color: var(
|
|
268
|
-
--sapphire-button-color-background-secondary-ghost-surface-secondary-default
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
|
|
273
|
-
:disabled
|
|
274
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
275
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
|
|
276
|
-
:disabled
|
|
277
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
278
|
-
background-color: var(
|
|
279
|
-
--sapphire-button-color-background-secondary-ghost-surface-secondary-hover
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface.is-focus,
|
|
284
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
|
|
285
|
-
.js-focus
|
|
286
|
-
):focus-visible {
|
|
287
|
-
background-color: var(
|
|
288
|
-
--sapphire-button-color-background-secondary-ghost-surface-secondary-focus
|
|
289
|
-
);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
|
|
293
|
-
:disabled
|
|
294
|
-
):not(.is-disabled).is-active,
|
|
295
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
|
|
296
|
-
:disabled
|
|
297
|
-
):not(.is-disabled):active,
|
|
298
|
-
.sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
|
|
299
|
-
:disabled
|
|
300
|
-
):not(.is-disabled):focus-visible:active {
|
|
301
|
-
background-color: var(
|
|
302
|
-
--sapphire-button-color-background-secondary-ghost-surface-secondary-active
|
|
233
|
+
--sapphire-semantic-color-background-action-secondary-ghost-active
|
|
303
234
|
);
|
|
235
|
+
color: var(--sapphire-semantic-color-content-action-secondary-active);
|
|
304
236
|
}
|
|
305
237
|
|
|
306
238
|
/* ## Style: Text */
|
|
307
239
|
.sapphire-button--secondary-text {
|
|
308
|
-
color: var(--sapphire-
|
|
309
|
-
border-radius: var(--sapphire-
|
|
310
|
-
background: var(--sapphire-
|
|
240
|
+
color: var(--sapphire-semantic-color-content-action-secondary-default);
|
|
241
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
242
|
+
background: var(--sapphire-semantic-color-background-action-secondary-text);
|
|
311
243
|
padding: 0;
|
|
312
244
|
}
|
|
313
245
|
|
|
@@ -317,7 +249,7 @@ a.sapphire-button {
|
|
|
317
249
|
.sapphire-button--secondary-text:not(:disabled):not(.is-disabled):not(
|
|
318
250
|
:active
|
|
319
251
|
):not(.is-active).is-hover {
|
|
320
|
-
color: var(--sapphire-
|
|
252
|
+
color: var(--sapphire-semantic-color-content-action-secondary-hover);
|
|
321
253
|
}
|
|
322
254
|
|
|
323
255
|
.sapphire-button--secondary-text:not(:disabled):not(.is-disabled).is-active,
|
|
@@ -325,89 +257,54 @@ a.sapphire-button {
|
|
|
325
257
|
.sapphire-button--secondary-text:not(:disabled):not(
|
|
326
258
|
.is-disabled
|
|
327
259
|
):focus-visible:active {
|
|
328
|
-
color: var(--sapphire-
|
|
260
|
+
color: var(--sapphire-semantic-color-content-action-secondary-active);
|
|
329
261
|
}
|
|
330
262
|
|
|
331
263
|
/* ### Variant: Tertiary */
|
|
332
264
|
/* ## Style: Default */
|
|
333
|
-
|
|
334
|
-
.sapphire-button--tertiary-fill {
|
|
335
|
-
background-color: var(--sapphire-button-color-background-tertiary-default);
|
|
336
|
-
color: var(--sapphire-button-color-content-tertiary-default);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):not(
|
|
340
|
-
:active
|
|
341
|
-
):not(.is-active):not(.js-hover):hover,
|
|
342
|
-
.sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):not(
|
|
343
|
-
:active
|
|
344
|
-
):not(.is-active).is-hover {
|
|
345
|
-
background-color: var(--sapphire-button-color-background-tertiary-hover);
|
|
346
|
-
color: var(--sapphire-button-color-content-tertiary-hover);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.sapphire-button--tertiary-fill.is-focus,
|
|
350
|
-
.sapphire-button--tertiary-fill:not(.js-focus):focus-visible {
|
|
351
|
-
background-color: var(--sapphire-button-color-background-tertiary-focus);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled).is-active,
|
|
355
|
-
.sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):active,
|
|
356
|
-
.sapphire-button--tertiary-fill:not(:disabled):not(
|
|
357
|
-
.is-disabled
|
|
358
|
-
):focus-visible:active {
|
|
359
|
-
background-color: var(--sapphire-button-color-background-tertiary-active);
|
|
360
|
-
color: var(--sapphire-button-color-content-tertiary-active);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/* # Surface: Secondary */
|
|
364
|
-
.sapphire-button--tertiary-fill.sapphire-button--secondary-surface {
|
|
265
|
+
.sapphire-button--tertiary {
|
|
365
266
|
background-color: var(
|
|
366
|
-
--sapphire-
|
|
267
|
+
--sapphire-semantic-color-background-action-tertiary-default
|
|
367
268
|
);
|
|
269
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-default);
|
|
368
270
|
}
|
|
369
271
|
|
|
370
|
-
.sapphire-button--tertiary
|
|
371
|
-
|
|
372
|
-
):not(.
|
|
373
|
-
.sapphire-button--tertiary
|
|
374
|
-
|
|
375
|
-
)
|
|
272
|
+
.sapphire-button--tertiary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
273
|
+
.is-active
|
|
274
|
+
):not(.js-hover):hover,
|
|
275
|
+
.sapphire-button--tertiary:not(:disabled):not(.is-disabled):not(:active):not(
|
|
276
|
+
.is-active
|
|
277
|
+
).is-hover {
|
|
376
278
|
background-color: var(
|
|
377
|
-
--sapphire-
|
|
279
|
+
--sapphire-semantic-color-background-action-tertiary-hover
|
|
378
280
|
);
|
|
281
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-hover);
|
|
379
282
|
}
|
|
380
283
|
|
|
381
|
-
.sapphire-button--tertiary
|
|
382
|
-
.sapphire-button--tertiary
|
|
383
|
-
.js-focus
|
|
384
|
-
):focus-visible {
|
|
284
|
+
.sapphire-button--tertiary.is-focus,
|
|
285
|
+
.sapphire-button--tertiary:not(.js-focus):focus-visible {
|
|
385
286
|
background-color: var(
|
|
386
|
-
--sapphire-
|
|
287
|
+
--sapphire-semantic-color-background-action-tertiary-default
|
|
387
288
|
);
|
|
388
289
|
}
|
|
389
290
|
|
|
390
|
-
.sapphire-button--tertiary-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
.
|
|
394
|
-
|
|
395
|
-
):not(.is-disabled):active,
|
|
396
|
-
.sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(
|
|
397
|
-
:disabled
|
|
398
|
-
):not(.is-disabled):focus-visible:active {
|
|
291
|
+
.sapphire-button--tertiary:not(:disabled):not(.is-disabled).is-active,
|
|
292
|
+
.sapphire-button--tertiary:not(:disabled):not(.is-disabled):active,
|
|
293
|
+
.sapphire-button--tertiary:not(:disabled):not(
|
|
294
|
+
.is-disabled
|
|
295
|
+
):focus-visible:active {
|
|
399
296
|
background-color: var(
|
|
400
|
-
--sapphire-
|
|
297
|
+
--sapphire-semantic-color-background-action-tertiary-active
|
|
401
298
|
);
|
|
299
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-active);
|
|
402
300
|
}
|
|
403
301
|
|
|
404
302
|
/* ## Style: Ghost */
|
|
405
|
-
/* # Surface: Primary */
|
|
406
303
|
.sapphire-button--tertiary-ghost {
|
|
407
304
|
background-color: var(
|
|
408
|
-
--sapphire-
|
|
305
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-default
|
|
409
306
|
);
|
|
410
|
-
color: var(--sapphire-
|
|
307
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-default);
|
|
411
308
|
}
|
|
412
309
|
|
|
413
310
|
.sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(
|
|
@@ -417,15 +314,15 @@ a.sapphire-button {
|
|
|
417
314
|
:active
|
|
418
315
|
):not(.is-active).is-hover {
|
|
419
316
|
background-color: var(
|
|
420
|
-
--sapphire-
|
|
317
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-hover
|
|
421
318
|
);
|
|
422
|
-
color: var(--sapphire-
|
|
319
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-hover);
|
|
423
320
|
}
|
|
424
321
|
|
|
425
322
|
.sapphire-button--tertiary-ghost.is-focus,
|
|
426
323
|
.sapphire-button--tertiary-ghost:not(.js-focus):focus-visible {
|
|
427
324
|
background-color: var(
|
|
428
|
-
--sapphire-
|
|
325
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-default
|
|
429
326
|
);
|
|
430
327
|
}
|
|
431
328
|
|
|
@@ -435,57 +332,16 @@ a.sapphire-button {
|
|
|
435
332
|
.is-disabled
|
|
436
333
|
):focus-visible:active {
|
|
437
334
|
background-color: var(
|
|
438
|
-
--sapphire-
|
|
439
|
-
);
|
|
440
|
-
color: var(--sapphire-button-color-content-tertiary-active);
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
/* # Surface: Secondary */
|
|
444
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface {
|
|
445
|
-
background-color: var(
|
|
446
|
-
--sapphire-button-color-background-tertiary-ghost-surface-secondary-default
|
|
447
|
-
);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
|
|
451
|
-
:disabled
|
|
452
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
453
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
|
|
454
|
-
:disabled
|
|
455
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
456
|
-
background-color: var(
|
|
457
|
-
--sapphire-button-color-background-tertiary-ghost-surface-secondary-hover
|
|
458
|
-
);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface.is-focus,
|
|
462
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
|
|
463
|
-
.js-focus
|
|
464
|
-
):focus-visible {
|
|
465
|
-
background-color: var(
|
|
466
|
-
--sapphire-button-color-background-tertiary-ghost-surface-secondary-focus
|
|
467
|
-
);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
|
|
471
|
-
:disabled
|
|
472
|
-
):not(.is-disabled).is-active,
|
|
473
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
|
|
474
|
-
:disabled
|
|
475
|
-
):not(.is-disabled):active,
|
|
476
|
-
.sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
|
|
477
|
-
:disabled
|
|
478
|
-
):not(.is-disabled):focus-visible:active {
|
|
479
|
-
background-color: var(
|
|
480
|
-
--sapphire-button-color-background-tertiary-ghost-surface-secondary-active
|
|
335
|
+
--sapphire-semantic-color-background-action-tertiary-ghost-active
|
|
481
336
|
);
|
|
337
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-active);
|
|
482
338
|
}
|
|
483
339
|
|
|
484
340
|
/* ## Style: Text */
|
|
485
341
|
.sapphire-button--tertiary-text {
|
|
486
|
-
color: var(--sapphire-
|
|
487
|
-
border-radius: var(--sapphire-
|
|
488
|
-
background: var(--sapphire-
|
|
342
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-default);
|
|
343
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
344
|
+
background: var(--sapphire-semantic-color-background-action-tertiary-text);
|
|
489
345
|
padding: 0;
|
|
490
346
|
}
|
|
491
347
|
|
|
@@ -495,7 +351,7 @@ a.sapphire-button {
|
|
|
495
351
|
.sapphire-button--tertiary-text:not(:disabled):not(.is-disabled):not(
|
|
496
352
|
:active
|
|
497
353
|
):not(.is-active).is-hover {
|
|
498
|
-
color: var(--sapphire-
|
|
354
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-hover);
|
|
499
355
|
}
|
|
500
356
|
|
|
501
357
|
.sapphire-button--tertiary-text:not(:disabled):not(.is-disabled).is-active,
|
|
@@ -503,89 +359,52 @@ a.sapphire-button {
|
|
|
503
359
|
.sapphire-button--tertiary-text:not(:disabled):not(
|
|
504
360
|
.is-disabled
|
|
505
361
|
):focus-visible:active {
|
|
506
|
-
color: var(--sapphire-
|
|
362
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-active);
|
|
507
363
|
}
|
|
508
364
|
|
|
509
365
|
/* ### Variant: Danger */
|
|
510
366
|
/* ## Style: Default */
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
367
|
+
.sapphire-button--danger {
|
|
368
|
+
background-color: var(
|
|
369
|
+
--sapphire-semantic-color-background-action-danger-default
|
|
370
|
+
);
|
|
371
|
+
color: var(--sapphire-semantic-color-content-action-danger-default);
|
|
515
372
|
}
|
|
516
373
|
|
|
517
|
-
.sapphire-button--danger
|
|
374
|
+
.sapphire-button--danger:not(:disabled):not(.is-disabled):not(:active):not(
|
|
518
375
|
.is-active
|
|
519
376
|
):not(.js-hover):hover,
|
|
520
|
-
.sapphire-button--danger
|
|
377
|
+
.sapphire-button--danger:not(:disabled):not(.is-disabled):not(:active):not(
|
|
521
378
|
.is-active
|
|
522
379
|
).is-hover {
|
|
523
|
-
background-color: var(--sapphire-button-color-background-danger-hover);
|
|
524
|
-
color: var(--sapphire-button-color-content-danger-hover);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.sapphire-button--danger-fill.is-focus,
|
|
528
|
-
.sapphire-button--danger-fill:not(.js-focus):focus-visible {
|
|
529
|
-
background-color: var(--sapphire-button-color-background-danger-focus);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.sapphire-button--danger-fill:not(:disabled):not(.is-disabled).is-active,
|
|
533
|
-
.sapphire-button--danger-fill:not(:disabled):not(.is-disabled):active,
|
|
534
|
-
.sapphire-button--danger-fill:not(:disabled):not(
|
|
535
|
-
.is-disabled
|
|
536
|
-
):focus-visible:active {
|
|
537
|
-
background-color: var(--sapphire-button-color-background-danger-active);
|
|
538
|
-
color: var(--sapphire-button-color-content-danger-active);
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
/* # Surface: Secondary */
|
|
542
|
-
.sapphire-button--danger-fill.sapphire-button--secondary-surface {
|
|
543
|
-
background-color: var(
|
|
544
|
-
--sapphire-button-color-background-danger-surface-secondary-default
|
|
545
|
-
);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
.sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
|
|
549
|
-
:disabled
|
|
550
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
551
|
-
.sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
|
|
552
|
-
:disabled
|
|
553
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
554
380
|
background-color: var(
|
|
555
|
-
--sapphire-
|
|
381
|
+
--sapphire-semantic-color-background-action-danger-hover
|
|
556
382
|
);
|
|
383
|
+
color: var(--sapphire-semantic-color-content-action-danger-hover);
|
|
557
384
|
}
|
|
558
385
|
|
|
559
|
-
.sapphire-button--danger
|
|
560
|
-
.sapphire-button--danger
|
|
561
|
-
.js-focus
|
|
562
|
-
):focus-visible {
|
|
386
|
+
.sapphire-button--danger.is-focus,
|
|
387
|
+
.sapphire-button--danger:not(.js-focus):focus-visible {
|
|
563
388
|
background-color: var(
|
|
564
|
-
--sapphire-
|
|
389
|
+
--sapphire-semantic-color-background-action-danger-default
|
|
565
390
|
);
|
|
566
391
|
}
|
|
567
392
|
|
|
568
|
-
.sapphire-button--danger-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
.sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
|
|
572
|
-
:disabled
|
|
573
|
-
):not(.is-disabled):active,
|
|
574
|
-
.sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
|
|
575
|
-
:disabled
|
|
576
|
-
):not(.is-disabled):focus-visible:active {
|
|
393
|
+
.sapphire-button--danger:not(:disabled):not(.is-disabled).is-active,
|
|
394
|
+
.sapphire-button--danger:not(:disabled):not(.is-disabled):active,
|
|
395
|
+
.sapphire-button--danger:not(:disabled):not(.is-disabled):focus-visible:active {
|
|
577
396
|
background-color: var(
|
|
578
|
-
--sapphire-
|
|
397
|
+
--sapphire-semantic-color-background-action-danger-active
|
|
579
398
|
);
|
|
399
|
+
color: var(--sapphire-semantic-color-content-action-danger-active);
|
|
580
400
|
}
|
|
581
401
|
|
|
582
402
|
/* ## Style: Ghost */
|
|
583
|
-
/* # Surface: Primary */
|
|
584
403
|
.sapphire-button--danger-ghost {
|
|
585
404
|
background-color: var(
|
|
586
|
-
--sapphire-
|
|
405
|
+
--sapphire-semantic-color-background-action-danger-ghost-default
|
|
587
406
|
);
|
|
588
|
-
color: var(--sapphire-
|
|
407
|
+
color: var(--sapphire-semantic-color-content-action-danger-default);
|
|
589
408
|
}
|
|
590
409
|
|
|
591
410
|
.sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):not(
|
|
@@ -594,13 +413,17 @@ a.sapphire-button {
|
|
|
594
413
|
.sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):not(
|
|
595
414
|
:active
|
|
596
415
|
):not(.is-active).is-hover {
|
|
597
|
-
background-color: var(
|
|
598
|
-
|
|
416
|
+
background-color: var(
|
|
417
|
+
--sapphire-semantic-color-background-action-danger-ghost-hover
|
|
418
|
+
);
|
|
419
|
+
color: var(--sapphire-semantic-color-content-action-danger-hover);
|
|
599
420
|
}
|
|
600
421
|
|
|
601
422
|
.sapphire-button--danger-ghost.is-focus,
|
|
602
423
|
.sapphire-button--danger-ghost:not(.js-focus):focus-visible {
|
|
603
|
-
background-color: var(
|
|
424
|
+
background-color: var(
|
|
425
|
+
--sapphire-semantic-color-background-action-danger-ghost-default
|
|
426
|
+
);
|
|
604
427
|
}
|
|
605
428
|
|
|
606
429
|
.sapphire-button--danger-ghost:not(:disabled):not(.is-disabled).is-active,
|
|
@@ -608,56 +431,17 @@ a.sapphire-button {
|
|
|
608
431
|
.sapphire-button--danger-ghost:not(:disabled):not(
|
|
609
432
|
.is-disabled
|
|
610
433
|
):focus-visible:active {
|
|
611
|
-
background-color: var(--sapphire-button-color-background-danger-ghost-active);
|
|
612
|
-
color: var(--sapphire-button-color-content-danger-active);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/* # Surface: Secondary */
|
|
616
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface {
|
|
617
|
-
background-color: var(
|
|
618
|
-
--sapphire-button-color-background-danger-ghost-surface-secondary-default
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
|
|
623
|
-
:disabled
|
|
624
|
-
):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
|
|
625
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
|
|
626
|
-
:disabled
|
|
627
|
-
):not(.is-disabled):not(:active):not(.is-active).is-hover {
|
|
628
|
-
background-color: var(
|
|
629
|
-
--sapphire-button-color-background-danger-ghost-surface-secondary-hover
|
|
630
|
-
);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface.is-focus,
|
|
634
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
|
|
635
|
-
.js-focus
|
|
636
|
-
):focus-visible {
|
|
637
|
-
background-color: var(
|
|
638
|
-
--sapphire-button-color-background-danger-ghost-surface-secondary-focus
|
|
639
|
-
);
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
|
|
643
|
-
:disabled
|
|
644
|
-
):not(.is-disabled).is-active,
|
|
645
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
|
|
646
|
-
:disabled
|
|
647
|
-
):not(.is-disabled):active,
|
|
648
|
-
.sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
|
|
649
|
-
:disabled
|
|
650
|
-
):not(.is-disabled):focus-visible:active {
|
|
651
434
|
background-color: var(
|
|
652
|
-
--sapphire-
|
|
435
|
+
--sapphire-semantic-color-background-action-danger-ghost-active
|
|
653
436
|
);
|
|
437
|
+
color: var(--sapphire-semantic-color-content-action-danger-active);
|
|
654
438
|
}
|
|
655
439
|
|
|
656
440
|
/* ## Style: Text */
|
|
657
441
|
.sapphire-button--danger-text {
|
|
658
|
-
color: var(--sapphire-
|
|
659
|
-
border-radius: var(--sapphire-
|
|
660
|
-
background: var(--sapphire-
|
|
442
|
+
color: var(--sapphire-semantic-color-content-action-danger-default);
|
|
443
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
444
|
+
background: var(--sapphire-semantic-color-background-action-danger-text);
|
|
661
445
|
padding: 0;
|
|
662
446
|
}
|
|
663
447
|
|
|
@@ -667,7 +451,7 @@ a.sapphire-button {
|
|
|
667
451
|
.sapphire-button--danger-text:not(:disabled):not(.is-disabled):not(:active):not(
|
|
668
452
|
.is-active
|
|
669
453
|
).is-hover {
|
|
670
|
-
color: var(--sapphire-
|
|
454
|
+
color: var(--sapphire-semantic-color-content-action-danger-hover);
|
|
671
455
|
}
|
|
672
456
|
|
|
673
457
|
.sapphire-button--danger-text:not(:disabled):not(.is-disabled).is-active,
|
|
@@ -675,15 +459,17 @@ a.sapphire-button {
|
|
|
675
459
|
.sapphire-button--danger-text:not(:disabled):not(
|
|
676
460
|
.is-disabled
|
|
677
461
|
):focus-visible:active {
|
|
678
|
-
color: var(--sapphire-
|
|
462
|
+
color: var(--sapphire-semantic-color-content-action-danger-active);
|
|
679
463
|
}
|
|
680
464
|
|
|
681
465
|
/**
|
|
682
466
|
* Toggle Button
|
|
683
467
|
*/
|
|
684
468
|
.sapphire-button--selected {
|
|
685
|
-
background-color: var(
|
|
686
|
-
|
|
469
|
+
background-color: var(
|
|
470
|
+
--sapphire-semantic-color-background-selection-selected-default
|
|
471
|
+
);
|
|
472
|
+
color: var(--sapphire-semantic-color-content-selection-selected-default);
|
|
687
473
|
}
|
|
688
474
|
.sapphire-button--selected:not(:disabled):not(.is-disabled):not(:active):not(
|
|
689
475
|
.is-active
|
|
@@ -691,24 +477,32 @@ a.sapphire-button {
|
|
|
691
477
|
.sapphire-button--selected:not(:disabled):not(.is-disabled):not(:active):not(
|
|
692
478
|
.is-active
|
|
693
479
|
).is-hover {
|
|
694
|
-
background-color: var(
|
|
480
|
+
background-color: var(
|
|
481
|
+
--sapphire-semantic-color-background-selection-selected-hover
|
|
482
|
+
);
|
|
695
483
|
}
|
|
696
484
|
.sapphire-button--selected.is-focus,
|
|
697
485
|
.sapphire-button--selected:not(.js-focus):focus-visible {
|
|
698
|
-
background-color: var(
|
|
486
|
+
background-color: var(
|
|
487
|
+
--sapphire-semantic-color-background-selection-selected-default
|
|
488
|
+
);
|
|
699
489
|
}
|
|
700
490
|
.sapphire-button--selected:not(:disabled):not(.is-disabled).is-active,
|
|
701
491
|
.sapphire-button--selected:not(:disabled):not(.is-disabled):active,
|
|
702
492
|
.sapphire-button--selected:not(:disabled):not(
|
|
703
493
|
.is-disabled
|
|
704
494
|
):focus-visible:active {
|
|
705
|
-
background-color: var(
|
|
706
|
-
|
|
495
|
+
background-color: var(
|
|
496
|
+
--sapphire-semantic-color-background-selection-selected-active
|
|
497
|
+
);
|
|
498
|
+
color: var(--sapphire-semantic-color-content-selection-selected-active);
|
|
707
499
|
}
|
|
708
500
|
|
|
709
501
|
.sapphire-button--unselected {
|
|
710
|
-
background-color: var(
|
|
711
|
-
|
|
502
|
+
background-color: var(
|
|
503
|
+
--sapphire-semantic-color-background-selection-unselected-default
|
|
504
|
+
);
|
|
505
|
+
color: var(--sapphire-semantic-color-content-selection-unselected-default);
|
|
712
506
|
}
|
|
713
507
|
.sapphire-button--unselected:not(:disabled):not(.is-disabled):not(:active):not(
|
|
714
508
|
.is-active
|
|
@@ -716,19 +510,25 @@ a.sapphire-button {
|
|
|
716
510
|
.sapphire-button--unselected:not(:disabled):not(.is-disabled):not(:active):not(
|
|
717
511
|
.is-active
|
|
718
512
|
).is-hover {
|
|
719
|
-
background-color: var(
|
|
513
|
+
background-color: var(
|
|
514
|
+
--sapphire-semantic-color-background-selection-unselected-hover
|
|
515
|
+
);
|
|
720
516
|
}
|
|
721
517
|
.sapphire-button--unselected.is-focus,
|
|
722
518
|
.sapphire-button--unselected:not(.js-focus):focus-visible {
|
|
723
|
-
background-color: var(
|
|
519
|
+
background-color: var(
|
|
520
|
+
--sapphire-semantic-color-background-selection-unselected-default
|
|
521
|
+
);
|
|
724
522
|
}
|
|
725
523
|
.sapphire-button--unselected:not(:disabled):not(.is-disabled).is-active,
|
|
726
524
|
.sapphire-button--unselected:not(:disabled):not(.is-disabled):active,
|
|
727
525
|
.sapphire-button--unselected:not(:disabled):not(
|
|
728
526
|
.is-disabled
|
|
729
527
|
):focus-visible:active {
|
|
730
|
-
background-color: var(
|
|
731
|
-
|
|
528
|
+
background-color: var(
|
|
529
|
+
--sapphire-semantic-color-background-selection-unselected-active
|
|
530
|
+
);
|
|
531
|
+
color: var(--sapphire-semantic-color-content-selection-unselected-active);
|
|
732
532
|
}
|
|
733
533
|
|
|
734
534
|
/**
|
|
@@ -739,16 +539,16 @@ a.sapphire-button {
|
|
|
739
539
|
flex-direction: column;
|
|
740
540
|
justify-content: center;
|
|
741
541
|
align-items: center;
|
|
742
|
-
height: var(--sapphire-
|
|
743
|
-
width: var(--sapphire-
|
|
542
|
+
height: var(--sapphire-semantic-size-icon-md);
|
|
543
|
+
width: var(--sapphire-semantic-size-icon-md);
|
|
744
544
|
}
|
|
745
|
-
.sapphire-button--
|
|
746
|
-
height: var(--sapphire-
|
|
747
|
-
width: var(--sapphire-
|
|
545
|
+
.sapphire-button--lg .sapphire-button__icon {
|
|
546
|
+
height: var(--sapphire-semantic-size-icon-lg);
|
|
547
|
+
width: var(--sapphire-semantic-size-icon-lg);
|
|
748
548
|
}
|
|
749
|
-
.sapphire-button--
|
|
750
|
-
height: var(--sapphire-
|
|
751
|
-
width: var(--sapphire-
|
|
549
|
+
.sapphire-button--sm .sapphire-button__icon {
|
|
550
|
+
height: var(--sapphire-semantic-size-icon-sm);
|
|
551
|
+
width: var(--sapphire-semantic-size-icon-sm);
|
|
752
552
|
}
|
|
753
553
|
|
|
754
554
|
/**
|
|
@@ -757,33 +557,33 @@ a.sapphire-button {
|
|
|
757
557
|
/**
|
|
758
558
|
* LARGE
|
|
759
559
|
*/
|
|
760
|
-
.sapphire-button--
|
|
761
|
-
height: var(--sapphire-
|
|
762
|
-
min-width: var(--sapphire-
|
|
763
|
-
padding: 0 var(--sapphire-
|
|
764
|
-
font-size: var(--sapphire-
|
|
765
|
-
border-radius: var(--sapphire-
|
|
766
|
-
}
|
|
767
|
-
.sapphire-button--
|
|
768
|
-
.sapphire-button--
|
|
769
|
-
.sapphire-button--
|
|
560
|
+
.sapphire-button--lg {
|
|
561
|
+
height: var(--sapphire-semantic-size-height-control-lg);
|
|
562
|
+
min-width: var(--sapphire-global-size-generic-120);
|
|
563
|
+
padding: 0 var(--sapphire-semantic-size-spacing-50);
|
|
564
|
+
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
565
|
+
border-radius: var(--sapphire-semantic-size-height-control-lg);
|
|
566
|
+
}
|
|
567
|
+
.sapphire-button--lg.sapphire-button--secondary-text,
|
|
568
|
+
.sapphire-button--lg.sapphire-button--tertiary-text,
|
|
569
|
+
.sapphire-button--lg.sapphire-button--danger-text {
|
|
770
570
|
padding: 0;
|
|
771
|
-
border-radius: var(--sapphire-
|
|
571
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
772
572
|
}
|
|
773
573
|
|
|
774
574
|
/**
|
|
775
575
|
* SMALL
|
|
776
576
|
*/
|
|
777
|
-
.sapphire-button--
|
|
778
|
-
height: var(--sapphire-
|
|
779
|
-
min-width: var(--sapphire-
|
|
780
|
-
padding: 0 var(--sapphire-
|
|
781
|
-
font-size: var(--sapphire-
|
|
782
|
-
border-radius: var(--sapphire-
|
|
783
|
-
}
|
|
784
|
-
.sapphire-button--
|
|
785
|
-
.sapphire-button--
|
|
786
|
-
.sapphire-button--
|
|
577
|
+
.sapphire-button--sm {
|
|
578
|
+
height: var(--sapphire-semantic-size-height-control-sm);
|
|
579
|
+
min-width: var(--sapphire-global-size-generic-80);
|
|
580
|
+
padding: 0 var(--sapphire-semantic-size-spacing-40);
|
|
581
|
+
font-size: var(--sapphire-semantic-size-font-control-sm);
|
|
582
|
+
border-radius: var(--sapphire-semantic-size-height-control-sm);
|
|
583
|
+
}
|
|
584
|
+
.sapphire-button--sm.sapphire-button--secondary-text,
|
|
585
|
+
.sapphire-button--sm.sapphire-button--tertiary-text,
|
|
586
|
+
.sapphire-button--sm.sapphire-button--danger-text {
|
|
787
587
|
padding: 0;
|
|
788
|
-
border-radius: var(--sapphire-
|
|
588
|
+
border-radius: var(--sapphire-semantic-size-radius-xs);
|
|
789
589
|
}
|