@salesforcedevs/docs-components 1.3.264 → 1.3.268-ref-rnb-tab1
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/lwc.config.json +1 -0
- package/package.json +2 -2
- package/src/modules/doc/contentLayout/contentLayout.css +1 -129
- package/src/modules/doc/contentLayout/contentLayout.ts +76 -43
- package/src/modules/doc/lwcReferenceLayout/lwcReferenceLayout.css +1 -0
- package/src/modules/doc/lwcReferenceLayout/lwcReferenceLayout.html +53 -0
- package/src/modules/doc/lwcReferenceLayout/lwcReferenceLayout.ts +36 -0
- package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +129 -0
- package/src/modules/docHelpers/status/status.css +1 -1
- package/LICENSE +0 -12
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.268-ref-rnb-tab1",
|
|
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": "4629fdd9ca18a13480044ad43515b91945d16aad"
|
|
28
28
|
}
|
|
@@ -1,129 +1 @@
|
|
|
1
|
-
|
|
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
|
-
}
|
|
1
|
+
@import "docHelpers/contentLayoutStyle";
|
|
@@ -37,6 +37,7 @@ 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 = "";
|
|
40
41
|
@api languages!: OptionWithLink[];
|
|
41
42
|
@api language!: string;
|
|
42
43
|
@api bailHref!: string;
|
|
@@ -82,7 +83,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
@track
|
|
85
|
-
|
|
86
|
+
_sidebarContent: unknown;
|
|
86
87
|
|
|
87
88
|
private _breadcrumbs = null;
|
|
88
89
|
|
|
@@ -130,6 +131,10 @@ export default class ContentLayout extends LightningElement {
|
|
|
130
131
|
return window.location.pathname;
|
|
131
132
|
}
|
|
132
133
|
|
|
134
|
+
get showTabBasedRNB() {
|
|
135
|
+
return this.rnbByTabId ? true : false;
|
|
136
|
+
}
|
|
137
|
+
|
|
133
138
|
get showBreadcrumbs(): boolean {
|
|
134
139
|
return (
|
|
135
140
|
this.breadcrumbs != null && (this.breadcrumbs as any[]).length > 1
|
|
@@ -148,8 +153,24 @@ export default class ContentLayout extends LightningElement {
|
|
|
148
153
|
);
|
|
149
154
|
this.searchSyncer.init();
|
|
150
155
|
}
|
|
156
|
+
|
|
157
|
+
if (this.showTabBasedRNB) {
|
|
158
|
+
window.addEventListener("tabchanged", this.onTabChanged);
|
|
159
|
+
}
|
|
151
160
|
}
|
|
152
161
|
|
|
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
|
+
|
|
153
174
|
renderedCallback(): void {
|
|
154
175
|
/**
|
|
155
176
|
* Note: We are adding timeout because chrome is optimizing and not triggering recent renderedCallback though elements reference is changed
|
|
@@ -177,6 +198,10 @@ export default class ContentLayout extends LightningElement {
|
|
|
177
198
|
"highlightedtermchange",
|
|
178
199
|
this.updateHighlighted
|
|
179
200
|
);
|
|
201
|
+
|
|
202
|
+
if (this.showTabBasedRNB) {
|
|
203
|
+
window.removeEventListener("tabchanged", this.onTabChanged);
|
|
204
|
+
}
|
|
180
205
|
window.removeEventListener("scroll", this.adjustNavPosition);
|
|
181
206
|
window.removeEventListener("resize", this.adjustNavPosition);
|
|
182
207
|
this.searchSyncer.dispose();
|
|
@@ -196,6 +221,29 @@ export default class ContentLayout extends LightningElement {
|
|
|
196
221
|
}
|
|
197
222
|
};
|
|
198
223
|
|
|
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
|
+
|
|
199
247
|
/*
|
|
200
248
|
This is a workaround for the global nav sticky header being decoupled from the doc header & doc phase.
|
|
201
249
|
We have to account for the global nav changing height due to animations.
|
|
@@ -255,9 +303,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
255
303
|
);
|
|
256
304
|
|
|
257
305
|
// Adjust scroll margin for doc headings when doc phase is present
|
|
258
|
-
const docHeadingEls =
|
|
259
|
-
document.querySelectorAll("doc-heading")
|
|
260
|
-
);
|
|
306
|
+
const docHeadingEls = this.getHeadingElements();
|
|
261
307
|
docHeadingEls.forEach((docHeadingEl) => {
|
|
262
308
|
(docHeadingEl as any).style.scrollMarginTop = `${
|
|
263
309
|
globalNavHeight +
|
|
@@ -313,7 +359,7 @@ export default class ContentLayout extends LightningElement {
|
|
|
313
359
|
);
|
|
314
360
|
|
|
315
361
|
// Note: We are doing document.querySelectorAll as a quick fix as we are not getting heading elements reference this.querySelectorAll
|
|
316
|
-
const headingElements =
|
|
362
|
+
const headingElements = this.getHeadingElements();
|
|
317
363
|
for (const headingElement of headingElements as any) {
|
|
318
364
|
// Add headingElements to intersectionObserver for highlighting respective RNB item when user scroll
|
|
319
365
|
const id = headingElement.getAttribute("id")!;
|
|
@@ -329,47 +375,34 @@ export default class ContentLayout extends LightningElement {
|
|
|
329
375
|
}
|
|
330
376
|
};
|
|
331
377
|
|
|
332
|
-
onSlotChange(
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
);
|
|
344
|
-
|
|
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;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
const tocOptions = [];
|
|
378
|
+
onSlotChange(): void {
|
|
379
|
+
this.updateRNB();
|
|
380
|
+
}
|
|
351
381
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
382
|
+
// eslint-disable-next-line no-undef
|
|
383
|
+
private updateTocItems(headingElements: NodeListOf<Element>): void {
|
|
384
|
+
const tocOptions = [];
|
|
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);
|
|
369
402
|
}
|
|
370
|
-
|
|
371
|
-
this._tocOptions = tocOptions;
|
|
372
403
|
}
|
|
404
|
+
|
|
405
|
+
this._tocOptions = tocOptions;
|
|
373
406
|
}
|
|
374
407
|
|
|
375
408
|
private disconnectObserver(): void {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "docHelpers/contentLayoutStyle";
|
|
@@ -0,0 +1,53 @@
|
|
|
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>
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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.
|