@salesforcedevs/docs-components 1.3.268-ref-rnb-tab1 → 1.3.282
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/LICENSE +12 -0
- package/lwc.config.json +0 -1
- package/package.json +2 -2
- package/src/modules/doc/contentLayout/contentLayout.css +129 -1
- package/src/modules/doc/contentLayout/contentLayout.ts +43 -76
- package/src/modules/doc/lwcReferenceLayout/lwcReferenceLayout.css +0 -1
- package/src/modules/doc/lwcReferenceLayout/lwcReferenceLayout.html +0 -53
- package/src/modules/doc/lwcReferenceLayout/lwcReferenceLayout.ts +0 -36
- package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +0 -129
package/LICENSE
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) 2020, Salesforce.com, Inc.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
|
|
8
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
9
|
+
|
|
10
|
+
* Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
11
|
+
|
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/lwc.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.282",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@types/lodash.orderby": "^4.6.7",
|
|
25
25
|
"@types/lodash.uniqby": "^4.7.7"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "21e8d824aabb661c500aade3a5d55f9721256f8c"
|
|
28
28
|
}
|
|
@@ -1 +1,129 @@
|
|
|
1
|
-
|
|
1
|
+
:host {
|
|
2
|
+
--dx-c-content-vertical-spacing: var(--dx-g-spacing-lg);
|
|
3
|
+
--dx-c-content-sidebar-sticky-top: calc(
|
|
4
|
+
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
|
|
5
|
+
);
|
|
6
|
+
--dx-c-sidebar-height: calc(
|
|
7
|
+
100vh -
|
|
8
|
+
calc(
|
|
9
|
+
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
|
|
10
|
+
)
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
doc-breadcrumbs {
|
|
17
|
+
--dx-c-popover-z-index: 5;
|
|
18
|
+
|
|
19
|
+
display: block;
|
|
20
|
+
margin-bottom: var(--dx-g-spacing-2xl);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
dx-sidebar,
|
|
24
|
+
dx-sidebar-old {
|
|
25
|
+
--dx-c-sidebar-vertical-padding: var(--dx-g-spacing-md);
|
|
26
|
+
|
|
27
|
+
z-index: calc(var(--dx-g-z-index-100) + 5);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
dx-toc {
|
|
31
|
+
--dx-c-toc-width: unset;
|
|
32
|
+
|
|
33
|
+
height: calc(100% - var(--dx-c-content-vertical-spacing) * 2);
|
|
34
|
+
margin: var(--dx-c-content-vertical-spacing) 0;
|
|
35
|
+
overflow-y: auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
dx-sidebar,
|
|
39
|
+
dx-toc {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* offset page jump link due to fixed header */
|
|
44
|
+
::slotted(doc-heading) {
|
|
45
|
+
scroll-margin-top: calc(
|
|
46
|
+
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.content {
|
|
51
|
+
display: flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.content-body-doc-phase-container {
|
|
56
|
+
flex: 1;
|
|
57
|
+
border-left: 1px solid var(--dx-g-gray-90);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.content-body-container {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
max-width: var(--dx-g-doc-content-max-width);
|
|
65
|
+
|
|
66
|
+
/* Derived this manually by substracting (topHeader, doc header, banner and the content). */
|
|
67
|
+
min-height: 62vh;
|
|
68
|
+
margin: auto;
|
|
69
|
+
padding: 0 var(--dx-g-global-header-padding-horizontal);
|
|
70
|
+
margin-bottom: calc(2 * (var(--dx-g-spacing-5xl) + 4px));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.content-body {
|
|
74
|
+
margin: var(--dx-g-spacing-md) 0 0;
|
|
75
|
+
max-width: 900px;
|
|
76
|
+
flex: 1;
|
|
77
|
+
width: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.is-sticky {
|
|
81
|
+
align-self: flex-start;
|
|
82
|
+
position: sticky;
|
|
83
|
+
top: var(--dx-c-content-sidebar-sticky-top);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.right-nav-bar {
|
|
87
|
+
margin-left: var(--dx-g-spacing-2xl);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@media screen and (max-width: 1024px) {
|
|
91
|
+
.right-nav-bar {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media screen and (max-width: 800px) {
|
|
97
|
+
.content-body {
|
|
98
|
+
margin-top: var(--dx-c-content-vertical-spacing);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.content-body-doc-phase-container {
|
|
102
|
+
border-left: 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media screen and (max-width: 768px) {
|
|
107
|
+
.is-sticky {
|
|
108
|
+
width: 100%;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.content {
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.content-body-container {
|
|
116
|
+
padding-right: 0;
|
|
117
|
+
overflow-x: auto;
|
|
118
|
+
margin-bottom: calc(var(--dx-g-spacing-5xl) + 4px);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.left-nav-bar {
|
|
122
|
+
height: unset;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.content-body {
|
|
126
|
+
margin-left: var(--dx-g-spacing-mlg, 20px);
|
|
127
|
+
margin-right: var(--dx-g-spacing-mlg, 20px);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -37,7 +37,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
37
37
|
@api coveoSearchHub!: string;
|
|
38
38
|
@api coveoAdvancedQueryConfig!: string;
|
|
39
39
|
@api useOldSidebar?: boolean = false;
|
|
40
|
-
@api rnbByTabId?: string = "";
|
|
41
40
|
@api languages!: OptionWithLink[];
|
|
42
41
|
@api language!: string;
|
|
43
42
|
@api bailHref!: string;
|
|
@@ -83,7 +82,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
@track
|
|
86
|
-
_sidebarContent: unknown;
|
|
85
|
+
private _sidebarContent: unknown;
|
|
87
86
|
|
|
88
87
|
private _breadcrumbs = null;
|
|
89
88
|
|
|
@@ -131,10 +130,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
131
130
|
return window.location.pathname;
|
|
132
131
|
}
|
|
133
132
|
|
|
134
|
-
get showTabBasedRNB() {
|
|
135
|
-
return this.rnbByTabId ? true : false;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
133
|
get showBreadcrumbs(): boolean {
|
|
139
134
|
return (
|
|
140
135
|
this.breadcrumbs != null && (this.breadcrumbs as any[]).length > 1
|
|
@@ -153,24 +148,8 @@ export default class ContentLayout extends LightningElement {
|
|
|
153
148
|
);
|
|
154
149
|
this.searchSyncer.init();
|
|
155
150
|
}
|
|
156
|
-
|
|
157
|
-
if (this.showTabBasedRNB) {
|
|
158
|
-
window.addEventListener("tabchanged", this.onTabChanged);
|
|
159
|
-
}
|
|
160
151
|
}
|
|
161
152
|
|
|
162
|
-
onTabChanged = () => {
|
|
163
|
-
this.updateRNB();
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
updateRNB = () => {
|
|
167
|
-
const headingElements = this.getHeadingElements();
|
|
168
|
-
headingElements.forEach((headingElement) => {
|
|
169
|
-
headingElement.hash = headingElement.attributes.hash?.nodeValue;
|
|
170
|
-
});
|
|
171
|
-
this.updateTocItems(headingElements);
|
|
172
|
-
};
|
|
173
|
-
|
|
174
153
|
renderedCallback(): void {
|
|
175
154
|
/**
|
|
176
155
|
* Note: We are adding timeout because chrome is optimizing and not triggering recent renderedCallback though elements reference is changed
|
|
@@ -198,10 +177,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
198
177
|
"highlightedtermchange",
|
|
199
178
|
this.updateHighlighted
|
|
200
179
|
);
|
|
201
|
-
|
|
202
|
-
if (this.showTabBasedRNB) {
|
|
203
|
-
window.removeEventListener("tabchanged", this.onTabChanged);
|
|
204
|
-
}
|
|
205
180
|
window.removeEventListener("scroll", this.adjustNavPosition);
|
|
206
181
|
window.removeEventListener("resize", this.adjustNavPosition);
|
|
207
182
|
this.searchSyncer.dispose();
|
|
@@ -221,29 +196,6 @@ export default class ContentLayout extends LightningElement {
|
|
|
221
196
|
}
|
|
222
197
|
};
|
|
223
198
|
|
|
224
|
-
private getHeadingElements() {
|
|
225
|
-
let headingElements = document.querySelectorAll(TOC_HEADER_TAG);
|
|
226
|
-
if (this.showTabBasedRNB) {
|
|
227
|
-
const tabPanelListItems =
|
|
228
|
-
document.querySelectorAll("dx-tab-panel-list");
|
|
229
|
-
for (const tabPanelListItem of tabPanelListItems) {
|
|
230
|
-
if (tabPanelListItem.id === this.rnbByTabId) {
|
|
231
|
-
const tabPanelItems =
|
|
232
|
-
tabPanelListItem.querySelectorAll("dx-tab-panel");
|
|
233
|
-
for (const tabPanelItem of tabPanelItems) {
|
|
234
|
-
if (tabPanelItem.active) {
|
|
235
|
-
headingElements =
|
|
236
|
-
tabPanelItem.querySelectorAll(TOC_HEADER_TAG);
|
|
237
|
-
break;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
break;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return headingElements;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
199
|
/*
|
|
248
200
|
This is a workaround for the global nav sticky header being decoupled from the doc header & doc phase.
|
|
249
201
|
We have to account for the global nav changing height due to animations.
|
|
@@ -303,7 +255,9 @@ export default class ContentLayout extends LightningElement {
|
|
|
303
255
|
);
|
|
304
256
|
|
|
305
257
|
// Adjust scroll margin for doc headings when doc phase is present
|
|
306
|
-
const docHeadingEls =
|
|
258
|
+
const docHeadingEls = Array.from(
|
|
259
|
+
document.querySelectorAll("doc-heading")
|
|
260
|
+
);
|
|
307
261
|
docHeadingEls.forEach((docHeadingEl) => {
|
|
308
262
|
(docHeadingEl as any).style.scrollMarginTop = `${
|
|
309
263
|
globalNavHeight +
|
|
@@ -359,7 +313,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
359
313
|
);
|
|
360
314
|
|
|
361
315
|
// Note: We are doing document.querySelectorAll as a quick fix as we are not getting heading elements reference this.querySelectorAll
|
|
362
|
-
const headingElements =
|
|
316
|
+
const headingElements = document.querySelectorAll(TOC_HEADER_TAG);
|
|
363
317
|
for (const headingElement of headingElements as any) {
|
|
364
318
|
// Add headingElements to intersectionObserver for highlighting respective RNB item when user scroll
|
|
365
319
|
const id = headingElement.getAttribute("id")!;
|
|
@@ -375,34 +329,47 @@ export default class ContentLayout extends LightningElement {
|
|
|
375
329
|
}
|
|
376
330
|
};
|
|
377
331
|
|
|
378
|
-
onSlotChange(): void {
|
|
379
|
-
|
|
380
|
-
|
|
332
|
+
onSlotChange(event: Event): void {
|
|
333
|
+
const slotElements = (
|
|
334
|
+
event.target as HTMLSlotElement
|
|
335
|
+
).assignedElements();
|
|
336
|
+
|
|
337
|
+
if (slotElements.length) {
|
|
338
|
+
this.contentLoaded = true;
|
|
339
|
+
const slotContentElement = slotElements[0];
|
|
340
|
+
const headingElements =
|
|
341
|
+
slotContentElement.ownerDocument?.getElementsByTagName(
|
|
342
|
+
TOC_HEADER_TAG
|
|
343
|
+
);
|
|
381
344
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
for (const headingElement of headingElements) {
|
|
387
|
-
headingElement.id = headingElement.hash;
|
|
388
|
-
|
|
389
|
-
// Update tocOptions from anchorTags only for H2, consider default as 2 as per component
|
|
390
|
-
const headingAriaLevel =
|
|
391
|
-
headingElement.attributes["aria-level"]?.nodeValue || "2";
|
|
392
|
-
const isH2 = headingAriaLevel === "2";
|
|
393
|
-
|
|
394
|
-
if (isH2) {
|
|
395
|
-
const tocItem = {
|
|
396
|
-
anchor: `#${headingElement.hash}`,
|
|
397
|
-
id: headingElement.id,
|
|
398
|
-
label: headingElement.title
|
|
399
|
-
};
|
|
400
|
-
tocOptions.push(tocItem);
|
|
401
|
-
this.tocOptionIdsSet.add(headingElement.id);
|
|
345
|
+
for (const headingElement of headingElements as any) {
|
|
346
|
+
// Sometimes elements hash is not being set when slot content is wrapped with div
|
|
347
|
+
headingElement.hash = headingElement.attributes.hash?.nodeValue;
|
|
402
348
|
}
|
|
403
|
-
}
|
|
404
349
|
|
|
405
|
-
|
|
350
|
+
const tocOptions = [];
|
|
351
|
+
|
|
352
|
+
for (const headingElement of headingElements as any) {
|
|
353
|
+
headingElement.id = headingElement.hash;
|
|
354
|
+
|
|
355
|
+
// Update tocOptions from anchorTags only for H2, consider default as 2 as per component
|
|
356
|
+
const headingAriaLevel =
|
|
357
|
+
headingElement.attributes["aria-level"]?.nodeValue || "2";
|
|
358
|
+
const isH2 = headingAriaLevel === "2";
|
|
359
|
+
|
|
360
|
+
if (isH2) {
|
|
361
|
+
const tocItem = {
|
|
362
|
+
anchor: `#${headingElement.hash}`,
|
|
363
|
+
id: headingElement.id,
|
|
364
|
+
label: headingElement.title
|
|
365
|
+
};
|
|
366
|
+
tocOptions.push(tocItem);
|
|
367
|
+
this.tocOptionIdsSet.add(headingElement.id);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
this._tocOptions = tocOptions;
|
|
372
|
+
}
|
|
406
373
|
}
|
|
407
374
|
|
|
408
375
|
private disconnectObserver(): void {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "docHelpers/contentLayoutStyle";
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="content">
|
|
3
|
-
<template if:true={useOldSidebar}>
|
|
4
|
-
<dx-sidebar-old
|
|
5
|
-
class="is-sticky left-nav-bar"
|
|
6
|
-
trees={sidebarContent}
|
|
7
|
-
value={sidebarValue}
|
|
8
|
-
header={sidebarHeader}
|
|
9
|
-
ontogglesidebar={onToggleSidebar}
|
|
10
|
-
>
|
|
11
|
-
<slot name="sidebar-header" slot="header"></slot>
|
|
12
|
-
</dx-sidebar-old>
|
|
13
|
-
</template>
|
|
14
|
-
<template if:false={useOldSidebar}>
|
|
15
|
-
<dx-sidebar
|
|
16
|
-
class="is-sticky left-nav-bar"
|
|
17
|
-
trees={sidebarContent}
|
|
18
|
-
value={sidebarValue}
|
|
19
|
-
header={sidebarHeader}
|
|
20
|
-
coveo-organization-id={coveoOrganizationId}
|
|
21
|
-
coveo-public-access-token={coveoPublicAccessToken}
|
|
22
|
-
coveo-search-hub={coveoSearchHub}
|
|
23
|
-
coveo-advanced-query-config={coveoAdvancedQueryConfig}
|
|
24
|
-
ontogglesidebar={onToggleSidebar}
|
|
25
|
-
>
|
|
26
|
-
<slot name="sidebar-header" slot="header"></slot>
|
|
27
|
-
</dx-sidebar>
|
|
28
|
-
</template>
|
|
29
|
-
<div class="content-body-doc-phase-container">
|
|
30
|
-
<slot name="doc-phase"></slot>
|
|
31
|
-
<slot name="version-banner"></slot>
|
|
32
|
-
<div class="content-body-container">
|
|
33
|
-
<div class="content-body">
|
|
34
|
-
<doc-breadcrumbs
|
|
35
|
-
if:true={showBreadcrumbs}
|
|
36
|
-
breadcrumbs={breadcrumbs}
|
|
37
|
-
></doc-breadcrumbs>
|
|
38
|
-
<slot onslotchange={onSlotChange}></slot>
|
|
39
|
-
<doc-sprig-survey
|
|
40
|
-
if:true={shouldDisplayFeedback}
|
|
41
|
-
></doc-sprig-survey>
|
|
42
|
-
</div>
|
|
43
|
-
<div if:true={showToc} class="right-nav-bar is-sticky">
|
|
44
|
-
<dx-toc
|
|
45
|
-
title={tocTitle}
|
|
46
|
-
options={tocOptions}
|
|
47
|
-
value={tocValue}
|
|
48
|
-
></dx-toc>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import ContentLayout from "doc/contentLayout";
|
|
2
|
-
import { api } from "lwc";
|
|
3
|
-
import { toJson } from "dxUtils/normalizers";
|
|
4
|
-
import { ParsedTopic } from "typings/custom";
|
|
5
|
-
|
|
6
|
-
export default class LWCReferenceLayout extends ContentLayout {
|
|
7
|
-
@api rnbByTabId?: string = "lwc-doc-tab";
|
|
8
|
-
|
|
9
|
-
@api
|
|
10
|
-
get sidebarContent() {
|
|
11
|
-
return this._sidebarContent;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
set sidebarContent(value) {
|
|
15
|
-
console.log("LWCReferenceLayout set sidebarContent");
|
|
16
|
-
if (value) {
|
|
17
|
-
const topics: ParsedTopic[] = toJson(value);
|
|
18
|
-
const currentUrl = window.location.href;
|
|
19
|
-
if (currentUrl.endsWith(topics[0].name)) {
|
|
20
|
-
const topicIndex = topics.findIndex(
|
|
21
|
-
(parentTopic: ParsedTopic) =>
|
|
22
|
-
parentTopic.label === "Components"
|
|
23
|
-
);
|
|
24
|
-
if (topicIndex !== -1) {
|
|
25
|
-
// Expand the Components topic
|
|
26
|
-
topics[topicIndex].isExpanded = true;
|
|
27
|
-
// Expand children of the component topic as well
|
|
28
|
-
topics[topicIndex].children?.forEach(
|
|
29
|
-
(topic: ParsedTopic) => (topic.isExpanded = true)
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
this._sidebarContent = topics;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
--dx-c-content-vertical-spacing: var(--dx-g-spacing-lg);
|
|
3
|
-
--dx-c-content-sidebar-sticky-top: calc(
|
|
4
|
-
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
|
|
5
|
-
);
|
|
6
|
-
--dx-c-sidebar-height: calc(
|
|
7
|
-
100vh -
|
|
8
|
-
calc(
|
|
9
|
-
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
|
|
10
|
-
)
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
display: block;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
doc-breadcrumbs {
|
|
17
|
-
--dx-c-popover-z-index: 5;
|
|
18
|
-
|
|
19
|
-
display: block;
|
|
20
|
-
margin-bottom: var(--dx-g-spacing-2xl);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
dx-sidebar,
|
|
24
|
-
dx-sidebar-old {
|
|
25
|
-
--dx-c-sidebar-vertical-padding: var(--dx-g-spacing-md);
|
|
26
|
-
|
|
27
|
-
z-index: calc(var(--dx-g-z-index-100) + 5);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
dx-toc {
|
|
31
|
-
--dx-c-toc-width: unset;
|
|
32
|
-
|
|
33
|
-
height: calc(100% - var(--dx-c-content-vertical-spacing) * 2);
|
|
34
|
-
margin: var(--dx-c-content-vertical-spacing) 0;
|
|
35
|
-
overflow-y: auto;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
dx-sidebar,
|
|
39
|
-
dx-toc {
|
|
40
|
-
display: block;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* offset page jump link due to fixed header */
|
|
44
|
-
::slotted(doc-heading) {
|
|
45
|
-
scroll-margin-top: calc(
|
|
46
|
-
var(--dx-g-global-header-height) + var(--dx-g-doc-header-height)
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.content {
|
|
51
|
-
display: flex;
|
|
52
|
-
position: relative;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.content-body-doc-phase-container {
|
|
56
|
-
flex: 1;
|
|
57
|
-
border-left: 1px solid var(--dx-g-gray-90);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.content-body-container {
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: row;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
max-width: var(--dx-g-doc-content-max-width);
|
|
65
|
-
|
|
66
|
-
/* Derived this manually by substracting (topHeader, doc header, banner and the content). */
|
|
67
|
-
min-height: 62vh;
|
|
68
|
-
margin: auto;
|
|
69
|
-
padding: 0 var(--dx-g-global-header-padding-horizontal);
|
|
70
|
-
margin-bottom: calc(2 * (var(--dx-g-spacing-5xl) + 4px));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.content-body {
|
|
74
|
-
margin: var(--dx-g-spacing-md) 0 0;
|
|
75
|
-
max-width: 900px;
|
|
76
|
-
flex: 1;
|
|
77
|
-
width: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.is-sticky {
|
|
81
|
-
align-self: flex-start;
|
|
82
|
-
position: sticky;
|
|
83
|
-
top: var(--dx-c-content-sidebar-sticky-top);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.right-nav-bar {
|
|
87
|
-
margin-left: var(--dx-g-spacing-2xl);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@media screen and (max-width: 1024px) {
|
|
91
|
-
.right-nav-bar {
|
|
92
|
-
display: none;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@media screen and (max-width: 800px) {
|
|
97
|
-
.content-body {
|
|
98
|
-
margin-top: var(--dx-c-content-vertical-spacing);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.content-body-doc-phase-container {
|
|
102
|
-
border-left: 0;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@media screen and (max-width: 768px) {
|
|
107
|
-
.is-sticky {
|
|
108
|
-
width: 100%;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.content {
|
|
112
|
-
flex-direction: column;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.content-body-container {
|
|
116
|
-
padding-right: 0;
|
|
117
|
-
overflow-x: auto;
|
|
118
|
-
margin-bottom: calc(var(--dx-g-spacing-5xl) + 4px);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.left-nav-bar {
|
|
122
|
-
height: unset;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.content-body {
|
|
126
|
-
margin-left: var(--dx-g-spacing-mlg, 20px);
|
|
127
|
-
margin-right: var(--dx-g-spacing-mlg, 20px);
|
|
128
|
-
}
|
|
129
|
-
}
|