@danske/sapphire-css 43.0.0 → 43.1.0
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.
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
height: var(--sapphire-global-size-generic-480);
|
|
12
12
|
min-height: var(--sapphire-global-size-generic-480);
|
|
13
13
|
padding: var(--sapphire-semantic-size-spacing-2xl);
|
|
14
|
-
border-radius: var(--sapphire-semantic-size-radius-
|
|
14
|
+
border-radius: var(--sapphire-semantic-size-radius-2xl);
|
|
15
15
|
transition-property: opacity, background-color, color;
|
|
16
16
|
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
17
17
|
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
18
|
+
overflow: hidden;
|
|
18
19
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
19
20
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
20
21
|
* occurs for bold fonts on dark backgrounds but depending on the font, it
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
*/
|
|
29
30
|
-webkit-font-smoothing: antialiased;
|
|
30
31
|
-moz-osx-font-smoothing: grayscale;
|
|
31
|
-
--mask-data: url('data:image/svg+xml,%3csvg stroke="black" width="
|
|
32
|
+
--mask-data: url('data:image/svg+xml,%3csvg stroke="black" width="70%25" height="70%25" xmlns="http://www.w3.org/2000/svg"%3e%3crect width="100%25" height="100%25" fill="none" rx="12" ry="12" stroke-width="2" stroke-dasharray="6 6.01126518182488" stroke-dashoffset="4" stroke-linecap="butt"/%3e%3c/svg%3e');
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
/* The before is needed because the SVG image cannot take CSS var, so the background of the ::before is set to the correct color instead */
|
|
@@ -42,8 +43,8 @@
|
|
|
42
43
|
/* Dashed borders cannot be customised, so we use a trick with the SVG image to customise it */
|
|
43
44
|
mask: var(--mask-data);
|
|
44
45
|
-webkit-mask: var(--mask-data);
|
|
45
|
-
background: var(--sapphire-semantic-color-border-
|
|
46
|
-
border-radius: var(--sapphire-semantic-size-radius-
|
|
46
|
+
background: var(--sapphire-semantic-color-border-field-default);
|
|
47
|
+
border-radius: var(--sapphire-semantic-size-radius-2xl);
|
|
47
48
|
transition-property: opacity, background-color, color;
|
|
48
49
|
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
49
50
|
transition-timing-function: var(--sapphire-semantic-transitions-fade);
|
|
@@ -59,7 +60,7 @@
|
|
|
59
60
|
.sapphire-dropzone:not(:disabled):not(.is-disabled):not(:active):not(
|
|
60
61
|
.is-active
|
|
61
62
|
).is-hover {
|
|
62
|
-
background:
|
|
63
|
+
background: none;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
.sapphire-dropzone:not(:disabled):not(.is-disabled).sapphire-dropzone:active,
|
|
@@ -69,7 +70,20 @@
|
|
|
69
70
|
.sapphire-dropzone:not(:disabled):not(
|
|
70
71
|
.is-disabled
|
|
71
72
|
).sapphire-dropzone.is-active {
|
|
72
|
-
background:
|
|
73
|
+
background: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sapphire-dropzone:not(:active):not(.is-disabled):not(
|
|
77
|
+
.is-active
|
|
78
|
+
).is-hover::before,
|
|
79
|
+
.sapphire-dropzone:not(:active):not(.is-disabled):not(.is-active):not(
|
|
80
|
+
.js-hover
|
|
81
|
+
):hover::before {
|
|
82
|
+
background: var(--sapphire-semantic-color-background-action-primary-hover);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sapphire-dropzone.is-active::before {
|
|
86
|
+
background: var(--sapphire-semantic-color-background-action-primary-active);
|
|
73
87
|
}
|
|
74
88
|
|
|
75
89
|
.sapphire-dropzone:focus {
|
|
@@ -95,13 +109,11 @@
|
|
|
95
109
|
}
|
|
96
110
|
|
|
97
111
|
.sapphire-dropzone--dropping {
|
|
98
|
-
background: var(
|
|
99
|
-
--sapphire-semantic-color-background-action-select-secondary-default
|
|
100
|
-
);
|
|
112
|
+
background: var(--sapphire-semantic-color-background-accent-subtle);
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
.sapphire-dropzone.sapphire-dropzone--dropping::before {
|
|
104
|
-
background: var(--sapphire-semantic-color-
|
|
116
|
+
background: var(--sapphire-semantic-color-foreground-on-accent-subtle);
|
|
105
117
|
}
|
|
106
118
|
|
|
107
119
|
.sapphire-dropzone__content {
|
|
@@ -116,10 +128,9 @@
|
|
|
116
128
|
margin-bottom: var(--sapphire-semantic-size-spacing-control-vertical-lg);
|
|
117
129
|
}
|
|
118
130
|
|
|
119
|
-
.sapphire-dropzone--dropping .sapphire-dropzone__icon
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
);
|
|
131
|
+
.sapphire-dropzone--dropping .sapphire-dropzone__icon,
|
|
132
|
+
.sapphire-dropzone--dropping .sapphire-dropzone__content * {
|
|
133
|
+
color: var(--sapphire-semantic-color-foreground-on-accent-subtle);
|
|
123
134
|
}
|
|
124
135
|
|
|
125
136
|
.sapphire-dropzone__heading {
|
|
@@ -420,15 +420,28 @@ th.sapphire-table__selectionCell:first-child {
|
|
|
420
420
|
--sapphire-semantic-color-background-action-highlight
|
|
421
421
|
);
|
|
422
422
|
}
|
|
423
|
-
|
|
423
|
+
|
|
424
|
+
/* TODO remove tbody in v6 */
|
|
425
|
+
.sapphire-table :has(> .sapphire-table__row--highlighted):not(tbody)::before {
|
|
424
426
|
content: '';
|
|
425
|
-
position:
|
|
426
|
-
|
|
427
|
-
left: 0;
|
|
427
|
+
position: sticky;
|
|
428
|
+
float: inline-start;
|
|
428
429
|
height: 100%;
|
|
429
430
|
width: var(--sapphire-semantic-size-border-md);
|
|
431
|
+
/* counter the shift for the checkbox */
|
|
432
|
+
margin-left: calc(-1 * var(--sapphire-semantic-size-border-md));
|
|
433
|
+
inset-inline-start: 0;
|
|
430
434
|
background: var(--sapphire-semantic-color-border-accent);
|
|
431
435
|
pointer-events: none;
|
|
436
|
+
z-index: 2;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/* TODO remove in v6 */
|
|
440
|
+
/* Targets non-virtualised tables */
|
|
441
|
+
tbody .sapphire-table__row--highlighted .sapphire-table__selectionCell,
|
|
442
|
+
tbody .sapphire-table__row--highlighted > .sapphire-table__cell:first-child {
|
|
443
|
+
box-shadow: inset var(--sapphire-semantic-size-border-md) 0 0 0
|
|
444
|
+
var(--sapphire-semantic-color-border-accent);
|
|
432
445
|
}
|
|
433
446
|
|
|
434
447
|
.sapphire-table__tfoot {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "43.
|
|
3
|
+
"version": "43.1.0",
|
|
4
4
|
"description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@danske/sapphire-design-tokens": "^42.2.1"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "fcf8d5c8a3962dcc624ffd02cc607673cb91bd96"
|
|
73
73
|
}
|