@salesforcedevs/docs-components 1.3.319-scroll-alpha → 1.3.319-scroll-alpha1
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
CHANGED
|
@@ -384,8 +384,10 @@ mark {
|
|
|
384
384
|
|
|
385
385
|
/* offset page jump link due to fixed header */
|
|
386
386
|
[id] {
|
|
387
|
-
scroll-margin-top: calc(
|
|
387
|
+
--dx-c-content-scroll-margin-top: calc(
|
|
388
388
|
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height) +
|
|
389
389
|
var(--dx-g-spacing-2xl)
|
|
390
390
|
);
|
|
391
|
+
|
|
392
|
+
scroll-margin-top: var(--dx-c-content-scroll-margin-top);
|
|
391
393
|
}
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
|
|
10
10
|
)
|
|
11
11
|
);
|
|
12
|
+
--dx-c-content-scroll-margin-top: calc(
|
|
13
|
+
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height) +
|
|
14
|
+
var(--dx-g-spacing-2xl)
|
|
15
|
+
);
|
|
12
16
|
|
|
13
17
|
display: block;
|
|
14
18
|
}
|
|
@@ -42,10 +46,7 @@ dx-toc {
|
|
|
42
46
|
|
|
43
47
|
/* offset page jump link due to fixed header */
|
|
44
48
|
::slotted(doc-heading) {
|
|
45
|
-
scroll-margin-top:
|
|
46
|
-
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height) +
|
|
47
|
-
var(--dx-g-spacing-2xl)
|
|
48
|
-
);
|
|
49
|
+
scroll-margin-top: var(--dx-c-content-scroll-margin-top);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.content {
|