@salesforcedevs/docs-components 1.36.0 → 1.37.1-remediation.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/package.json +2 -2
- package/src/modules/doc/amfReference/amfReference.css +4 -3
- package/src/modules/doc/amfTopic/amfTopic.css +2 -1
- package/src/modules/doc/banner/banner.css +3 -3
- package/src/modules/doc/breadcrumbItem/breadcrumbItem.css +4 -4
- package/src/modules/doc/breadcrumbs/breadcrumbs.css +8 -2
- package/src/modules/doc/content/content.css +23 -15
- package/src/modules/doc/contentActionToolbar/contentActionToolbar.css +1 -1
- package/src/modules/doc/contentCallout/contentCallout.css +82 -10
- package/src/modules/doc/contentCallout/contentCallout.html +1 -5
- package/src/modules/doc/contentCallout/contentCallout.ts +2 -8
- package/src/modules/doc/contentMedia/contentMedia.css +3 -3
- package/src/modules/doc/doDont/doDont.css +2 -2
- package/src/modules/doc/header/header.css +11 -8
- package/src/modules/doc/heading/heading.css +15 -4
- package/src/modules/doc/overview/overview.css +2 -1
- package/src/modules/doc/phase/phase.css +20 -1
- package/src/modules/doc/phase/phase.html +0 -2
- package/src/modules/doc/phase/phase.ts +1 -5
- package/src/modules/doc/redocReference/redocReference.css +2 -1
- package/src/modules/doc/socialShare/socialShare.css +4 -4
- package/src/modules/doc/specificationContent/specificationContent.css +1 -1
- package/src/modules/doc/unifiedContentLayout/unifiedContentLayout.css +4 -2
- package/src/modules/doc/xmlContent/xmlContent.css +8 -7
- package/src/modules/docHelpers/amfStyle/amfStyle.css +123 -41
- package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +9 -6
- package/src/modules/docHelpers/status/status.css +2 -6
- package/src/modules/docUtils/searchController/searchController.ts +11 -5
- package/LICENSE +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/docs-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.1-remediation.1",
|
|
4
4
|
"description": "Docs Lightning web components for DSC",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"@types/lodash.orderby": "4.6.9",
|
|
26
26
|
"@types/lodash.uniqby": "4.7.9"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "4629fdd9ca18a13480044ad43515b91945d16aad"
|
|
29
29
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/* We need to apply some borders when there are two doc phases */
|
|
2
2
|
doc-phase:not(:only-of-type)::part(container) {
|
|
3
|
-
border-top: 1px solid var(--dx-g-yellow-vibrant-90);
|
|
3
|
+
border-top: 1px solid var(--dx-g-yellow-90, var(--dx-g-yellow-vibrant-90));
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
doc-phase:nth-child(2)::part(container) {
|
|
7
|
-
border-top: 1px solid var(--dx-g-yellow-vibrant-90);
|
|
8
|
-
border-bottom: 1px solid
|
|
7
|
+
border-top: 1px solid var(--dx-g-yellow-90, var(--dx-g-yellow-vibrant-90));
|
|
8
|
+
border-bottom: 1px solid
|
|
9
|
+
var(--dx-g-yellow-90, var(--dx-g-yellow-vibrant-90));
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.api-documentation {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
@media screen and (min-width: 769px) {
|
|
14
14
|
.topic-container {
|
|
15
15
|
scroll-margin-top: calc(
|
|
16
|
-
var(--dx-g-global-header-height) +
|
|
16
|
+
var(--dx-g-global-header-height) +
|
|
17
|
+
var(--dx-c-doc-header-height, var(--dx-g-doc-header-height)) +
|
|
17
18
|
var(--reference-container-margin-top) +
|
|
18
19
|
var(--api-documentation-margin-top)
|
|
19
20
|
);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
.container {
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: flex-start;
|
|
14
|
-
background: var(--dx-g-gray-90);
|
|
14
|
+
background: var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
15
15
|
padding: 0 var(--doc-banner-padding-right) 0 var(--doc-banner-padding-left);
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
.message {
|
|
35
35
|
flex: 0 1 auto;
|
|
36
36
|
font-size: var(--dx-g-text-sm);
|
|
37
|
-
color: var(--dx-g-gray-10);
|
|
37
|
+
color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
38
38
|
padding: calc((var(--dx-g-spacing-xs) + var(--dx-g-spacing-sm)) / 2) 0;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.message a {
|
|
42
|
-
color: var(--dx-g-cloud-blue-vibrant-50);
|
|
42
|
+
color: var(--dx-g-blue-50, var(--dx-g-cloud-blue-vibrant-50));
|
|
43
43
|
text-decoration: underline;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
:host(.breadcrumb_back-arrow:hover) {
|
|
22
|
-
background-color: var(--dx-g-cloud-blue-vibrant-90);
|
|
22
|
+
background-color: var(--dx-g-blue-90, var(--dx-g-cloud-blue-vibrant-90));
|
|
23
23
|
border-radius: var(--dx-g-spacing-xs);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
:host(.breadcrumb_back-arrow) :is(a, dx-icon) {
|
|
27
|
-
color: var(--dx-g-blue-vibrant-50);
|
|
27
|
+
color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
a {
|
|
@@ -37,7 +37,7 @@ a,
|
|
|
37
37
|
span {
|
|
38
38
|
color: var(
|
|
39
39
|
--dx-c-breadcrumbs-breadcrumb-color,
|
|
40
|
-
var(--dx-g-blue-vibrant-20)
|
|
40
|
+
var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20))
|
|
41
41
|
);
|
|
42
42
|
font-family: var(--dx-g-font-sans);
|
|
43
43
|
font-size: var(--dx-g-text-sm);
|
|
@@ -47,5 +47,5 @@ span {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
a:hover {
|
|
50
|
-
color: var(--dx-g-blue-vibrant-40);
|
|
50
|
+
color: var(--dx-g-blue-40, var(--dx-g-blue-vibrant-40));
|
|
51
51
|
}
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
@import "dxHelpers/text";
|
|
3
3
|
|
|
4
4
|
:host {
|
|
5
|
-
--dx-c-breadcrumbs-title-color: var(
|
|
6
|
-
|
|
5
|
+
--dx-c-breadcrumbs-title-color: var(
|
|
6
|
+
--dx-g-blue-20,
|
|
7
|
+
var(--dx-g-blue-vibrant-20)
|
|
8
|
+
);
|
|
9
|
+
--dx-c-breadcrumbs-breadcrumb-color: var(
|
|
10
|
+
--dx-g-blue-20,
|
|
11
|
+
var(--dx-g-blue-vibrant-20)
|
|
12
|
+
);
|
|
7
13
|
|
|
8
14
|
font-family: var(--dx-g-font-sans);
|
|
9
15
|
}
|
|
@@ -58,7 +58,7 @@ h3,
|
|
|
58
58
|
h4,
|
|
59
59
|
h5,
|
|
60
60
|
h6 {
|
|
61
|
-
color: var(--dx-g-blue-vibrant-20);
|
|
61
|
+
color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
62
62
|
font-family: var(--dx-g-font-display);
|
|
63
63
|
font-weight: var(--dx-g-font-demi);
|
|
64
64
|
}
|
|
@@ -113,7 +113,7 @@ p,
|
|
|
113
113
|
.p {
|
|
114
114
|
font-family: var(--dx-g-font-sans);
|
|
115
115
|
font-size: var(--dx-g-text-base);
|
|
116
|
-
color: var(--dx-g-gray-10);
|
|
116
|
+
color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
117
117
|
letter-spacing: 0;
|
|
118
118
|
line-height: var(--dx-g-spacing-lg);
|
|
119
119
|
margin-top: var(--dx-g-spacing-md);
|
|
@@ -129,7 +129,7 @@ dd > .p {
|
|
|
129
129
|
.li {
|
|
130
130
|
font-family: var(--dx-g-font-sans);
|
|
131
131
|
font-size: var(--dx-g-text-base);
|
|
132
|
-
color: var(--dx-g-gray-10);
|
|
132
|
+
color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
133
133
|
letter-spacing: 0;
|
|
134
134
|
line-height: var(--dx-g-spacing-lg);
|
|
135
135
|
}
|
|
@@ -137,7 +137,7 @@ dd > .p {
|
|
|
137
137
|
.dx-text-body-3 {
|
|
138
138
|
font-family: var(--dx-g-font-sans);
|
|
139
139
|
font-size: var(--dx-g-text-sm);
|
|
140
|
-
color: var(--dx-g-gray-10);
|
|
140
|
+
color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
141
141
|
letter-spacing: 0;
|
|
142
142
|
line-height: var(--dx-g-spacing-mlg);
|
|
143
143
|
}
|
|
@@ -149,14 +149,13 @@ a,
|
|
|
149
149
|
border-width: 0;
|
|
150
150
|
border-style: solid;
|
|
151
151
|
border-color: #e2e8f0;
|
|
152
|
-
|
|
153
|
-
color: var(--dx-g-blue-vibrant-50);
|
|
152
|
+
color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
154
153
|
}
|
|
155
154
|
|
|
156
155
|
.shortdesc {
|
|
157
156
|
font-family: var(--dx-g-font-sans);
|
|
158
157
|
font-size: var(--dx-g-text-base);
|
|
159
|
-
color: var(--dx-g-gray-10);
|
|
158
|
+
color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
160
159
|
letter-spacing: 0;
|
|
161
160
|
line-height: var(--dx-g-spacing-lg);
|
|
162
161
|
margin-bottom: var(--dx-g-spacing-md);
|
|
@@ -188,13 +187,13 @@ a,
|
|
|
188
187
|
line-height: var(--dx-g-text-lg);
|
|
189
188
|
letter-spacing: 0;
|
|
190
189
|
color: #181818;
|
|
191
|
-
background-color: var(--dx-g-gray-95);
|
|
190
|
+
background-color: var(--dx-g-neutral-95, var(--dx-g-gray-95));
|
|
192
191
|
border-radius: 4px;
|
|
193
192
|
padding: var(--dx-g-spacing-2xs);
|
|
194
193
|
}
|
|
195
194
|
|
|
196
195
|
a .codeph {
|
|
197
|
-
color: var(--dx-g-blue-vibrant-50);
|
|
196
|
+
color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
198
197
|
}
|
|
199
198
|
|
|
200
199
|
.ulchildlink {
|
|
@@ -210,7 +209,7 @@ a .codeph {
|
|
|
210
209
|
.editionTable {
|
|
211
210
|
font-family: var(--dx-g-font-sans);
|
|
212
211
|
font-size: var(--dx-g-text-sm);
|
|
213
|
-
color: var(--dx-g-gray-10);
|
|
212
|
+
color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
214
213
|
letter-spacing: 0;
|
|
215
214
|
line-height: var(--dx-g-spacing-lg);
|
|
216
215
|
padding-top: var(--dx-g-spacing-sm);
|
|
@@ -222,7 +221,7 @@ a .codeph {
|
|
|
222
221
|
border-width: 0;
|
|
223
222
|
border-style: solid;
|
|
224
223
|
border-color: #e2e8f0;
|
|
225
|
-
color: var(--dx-g-blue-vibrant-50);
|
|
224
|
+
color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
226
225
|
}
|
|
227
226
|
|
|
228
227
|
.detaillist {
|
|
@@ -232,7 +231,7 @@ a .codeph {
|
|
|
232
231
|
dt {
|
|
233
232
|
font-family: var(--dx-g-font-display);
|
|
234
233
|
font-size: var(--dx-g-text-base);
|
|
235
|
-
color: var(--dx-g-blue-vibrant-20);
|
|
234
|
+
color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
236
235
|
letter-spacing: 0;
|
|
237
236
|
line-height: var(--dx-g-spacing-mlg);
|
|
238
237
|
padding-top: var(--dx-g-spacing-sm);
|
|
@@ -242,7 +241,7 @@ dt {
|
|
|
242
241
|
dd {
|
|
243
242
|
font-family: var(--dx-g-font-sans);
|
|
244
243
|
font-size: var(--dx-g-text-base);
|
|
245
|
-
color: var(--dx-g-gray-10);
|
|
244
|
+
color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
246
245
|
letter-spacing: 0;
|
|
247
246
|
line-height: var(--dx-g-spacing-lg);
|
|
248
247
|
margin-left: var(--dx-g-spacing-smd);
|
|
@@ -290,6 +289,14 @@ doc-content-callout ol {
|
|
|
290
289
|
margin-top: var(--dx-g-spacing-md);
|
|
291
290
|
}
|
|
292
291
|
|
|
292
|
+
/* Links in a callout are blue-40, which passes 4.5:1 on every callout fill.
|
|
293
|
+
Plan 2.6's tinted scope replaces this color. */
|
|
294
|
+
doc-content-callout a,
|
|
295
|
+
doc-content-callout .link a,
|
|
296
|
+
doc-content-callout a .codeph {
|
|
297
|
+
color: var(--dx-g-blue-40, var(--dx-g-blue-vibrant-40));
|
|
298
|
+
}
|
|
299
|
+
|
|
293
300
|
ol ol {
|
|
294
301
|
list-style-type: lower-alpha;
|
|
295
302
|
}
|
|
@@ -379,13 +386,14 @@ samp,
|
|
|
379
386
|
}
|
|
380
387
|
|
|
381
388
|
mark {
|
|
382
|
-
background-color: var(--dx-g-yellow-vibrant-90);
|
|
389
|
+
background-color: var(--dx-g-yellow-90, var(--dx-g-yellow-vibrant-90));
|
|
383
390
|
}
|
|
384
391
|
|
|
385
392
|
/* offset page jump link due to fixed header */
|
|
386
393
|
[id] {
|
|
387
394
|
--dx-c-content-scroll-margin-top: calc(
|
|
388
|
-
var(--dx-g-global-header-height) +
|
|
395
|
+
var(--dx-g-global-header-height) +
|
|
396
|
+
var(--dx-c-doc-header-height, var(--dx-g-doc-header-height)) +
|
|
389
397
|
var(--dx-g-spacing-2xl)
|
|
390
398
|
);
|
|
391
399
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
.dx-callout-base,
|
|
11
11
|
.dx-callout-plain {
|
|
12
|
-
background-color: var(--dx-g-gray-95);
|
|
13
|
-
border-color: var(--dx-g-gray-50);
|
|
12
|
+
background-color: var(--dx-g-neutral-95, var(--dx-g-gray-95));
|
|
13
|
+
border-color: var(--dx-g-neutral-50, var(--dx-g-gray-50));
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.dx-callout-plain {
|
|
@@ -18,24 +18,96 @@
|
|
|
18
18
|
margin-bottom: var(--dx-g-text-2xl);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/* Each callout reads the status that fits its meaning: note is info, tip is
|
|
22
|
+
success, caution and warning are error, and important is warning. */
|
|
21
23
|
.dx-callout-note {
|
|
22
|
-
background-color: var(
|
|
23
|
-
|
|
24
|
+
background-color: var(
|
|
25
|
+
--dx-g-color-surface-info,
|
|
26
|
+
var(--dx-g-blue-95, var(--dx-g-blue-vibrant-95))
|
|
27
|
+
);
|
|
28
|
+
border-color: var(
|
|
29
|
+
--dx-g-color-border-info,
|
|
30
|
+
var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50))
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dx-callout-note dx-icon {
|
|
35
|
+
--dx-c-icon-color: var(
|
|
36
|
+
--dx-g-color-icon-info,
|
|
37
|
+
var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50))
|
|
38
|
+
);
|
|
24
39
|
}
|
|
25
40
|
|
|
26
41
|
.dx-callout-tip {
|
|
27
|
-
background-color: var(
|
|
28
|
-
|
|
42
|
+
background-color: var(
|
|
43
|
+
--dx-g-color-surface-success,
|
|
44
|
+
var(--dx-g-green-95, var(--dx-g-green-vibrant-95))
|
|
45
|
+
);
|
|
46
|
+
border-color: var(
|
|
47
|
+
--dx-g-color-border-success,
|
|
48
|
+
var(--dx-g-green-50, var(--dx-g-green-vibrant-50))
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dx-callout-tip dx-icon {
|
|
53
|
+
--dx-c-icon-color: var(
|
|
54
|
+
--dx-g-color-icon-success,
|
|
55
|
+
var(--dx-g-green-50, var(--dx-g-green-vibrant-50))
|
|
56
|
+
);
|
|
29
57
|
}
|
|
30
58
|
|
|
31
59
|
.dx-callout-caution {
|
|
32
|
-
background-color: var(
|
|
33
|
-
|
|
60
|
+
background-color: var(
|
|
61
|
+
--dx-g-color-surface-error,
|
|
62
|
+
var(--dx-g-red-95, var(--dx-g-red-vibrant-95))
|
|
63
|
+
);
|
|
64
|
+
border-color: var(
|
|
65
|
+
--dx-g-color-border-error,
|
|
66
|
+
var(--dx-g-red-50, var(--dx-g-red-vibrant-50))
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dx-callout-caution dx-icon {
|
|
71
|
+
--dx-c-icon-color: var(
|
|
72
|
+
--dx-g-color-icon-error,
|
|
73
|
+
var(--dx-g-red-50, var(--dx-g-red-vibrant-50))
|
|
74
|
+
);
|
|
34
75
|
}
|
|
35
76
|
|
|
36
77
|
.dx-callout-warning {
|
|
37
|
-
background-color: var(
|
|
38
|
-
|
|
78
|
+
background-color: var(
|
|
79
|
+
--dx-g-color-surface-error,
|
|
80
|
+
var(--dx-g-red-95, var(--dx-g-red-vibrant-95))
|
|
81
|
+
);
|
|
82
|
+
border-color: var(
|
|
83
|
+
--dx-g-color-border-error,
|
|
84
|
+
var(--dx-g-red-50, var(--dx-g-red-vibrant-50))
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dx-callout-warning dx-icon {
|
|
89
|
+
--dx-c-icon-color: var(
|
|
90
|
+
--dx-g-color-icon-error,
|
|
91
|
+
var(--dx-g-red-50, var(--dx-g-red-vibrant-50))
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dx-callout-important {
|
|
96
|
+
background-color: var(
|
|
97
|
+
--dx-g-color-surface-warning,
|
|
98
|
+
var(--dx-g-yellow-95, var(--dx-g-yellow-vibrant-95))
|
|
99
|
+
);
|
|
100
|
+
border-color: var(
|
|
101
|
+
--dx-g-color-border-warning,
|
|
102
|
+
var(--dx-g-yellow-50, var(--dx-g-yellow-vibrant-50))
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.dx-callout-important dx-icon {
|
|
107
|
+
--dx-c-icon-color: var(
|
|
108
|
+
--dx-g-color-icon-warning,
|
|
109
|
+
var(--dx-g-yellow-50, var(--dx-g-yellow-vibrant-50))
|
|
110
|
+
);
|
|
39
111
|
}
|
|
40
112
|
|
|
41
113
|
.dx-callout-base_section {
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
<div class={className}>
|
|
3
3
|
<template if:false={hideIcon}>
|
|
4
4
|
<div class="doc-status-icon dx-callout-icon">
|
|
5
|
-
<dx-icon
|
|
6
|
-
symbol={iconName}
|
|
7
|
-
size="large"
|
|
8
|
-
color={iconColor}
|
|
9
|
-
></dx-icon>
|
|
5
|
+
<dx-icon symbol={iconName} size="large"></dx-icon>
|
|
10
6
|
</div>
|
|
11
7
|
</template>
|
|
12
8
|
|
|
@@ -7,7 +7,6 @@ export default class ContentCallout extends LightningElement {
|
|
|
7
7
|
@api variant!: CalloutVariant;
|
|
8
8
|
cardVariant?: string;
|
|
9
9
|
iconName?: string;
|
|
10
|
-
iconColor?: string;
|
|
11
10
|
|
|
12
11
|
connectedCallback() {
|
|
13
12
|
switch (this.variant) {
|
|
@@ -16,28 +15,23 @@ export default class ContentCallout extends LightningElement {
|
|
|
16
15
|
break;
|
|
17
16
|
case "tip":
|
|
18
17
|
this.cardVariant = "dx-callout-tip";
|
|
19
|
-
this.iconColor = "green-vibrant-60";
|
|
20
18
|
this.iconName = "success";
|
|
21
19
|
break;
|
|
22
20
|
case "warning":
|
|
23
|
-
this.cardVariant = "
|
|
24
|
-
this.iconColor = "red-vibrant-50";
|
|
21
|
+
this.cardVariant = "dx-callout-warning";
|
|
25
22
|
this.iconName = "warning";
|
|
26
23
|
break;
|
|
27
24
|
case "caution":
|
|
28
25
|
this.cardVariant = "dx-callout-caution";
|
|
29
|
-
this.iconColor = "red-vibrant-50";
|
|
30
26
|
this.iconName = "alert";
|
|
31
27
|
break;
|
|
32
28
|
case "important":
|
|
33
|
-
this.cardVariant = "
|
|
34
|
-
this.iconColor = "gray-10";
|
|
29
|
+
this.cardVariant = "dx-callout-important";
|
|
35
30
|
this.iconName = "announcement";
|
|
36
31
|
break;
|
|
37
32
|
case "note":
|
|
38
33
|
default:
|
|
39
34
|
this.cardVariant = "dx-callout-note";
|
|
40
|
-
this.iconColor = "blue-vibrant-50";
|
|
41
35
|
this.iconName = "info";
|
|
42
36
|
}
|
|
43
37
|
}
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.content-media-title {
|
|
10
|
-
color: var(--dx-g-blue-vibrant-20);
|
|
10
|
+
color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
11
11
|
font-size: var(--dx-g-text-base);
|
|
12
12
|
font-family: var(--dx-g-font-display);
|
|
13
13
|
font-weight: 500;
|
|
14
|
-
background-color: var(--sds-g-gray-4);
|
|
14
|
+
background-color: var(--dx-g-neutral-90, var(--sds-g-gray-4));
|
|
15
15
|
padding: var(--dx-g-spacing-sm) var(--dx-g-spacing-smd);
|
|
16
16
|
border-top-left-radius: 4px;
|
|
17
17
|
border-top-right-radius: 4px;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
.content-media-image,
|
|
21
21
|
.content-media-iframe {
|
|
22
|
-
border: 1px solid var(--dx-g-gray-90);
|
|
22
|
+
border: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.content-media-image img {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.doc-do-color {
|
|
25
|
-
color: var(--dx-g-green-vibrant-50);
|
|
25
|
+
color: var(--dx-g-green-50, var(--dx-g-green-vibrant-50));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.doc-dont-color {
|
|
29
|
-
color: var(--dx-g-red-vibrant-30);
|
|
29
|
+
color: var(--dx-g-red-30, var(--dx-g-red-vibrant-30));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.do-dont-image-container {
|
|
@@ -21,7 +21,7 @@ dx-logo {
|
|
|
21
21
|
|
|
22
22
|
dx-icon {
|
|
23
23
|
--dx-c-icon-size: var(--dx-g-icon-size-xs);
|
|
24
|
-
--dx-c-icon-color: var(--dx-g-blue-vibrant-20);
|
|
24
|
+
--dx-c-icon-color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.dev-center-content > * + * {
|
|
@@ -38,15 +38,18 @@ dx-icon {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.nav_menu-button {
|
|
41
|
-
--dx-c-button-primary-color: var(
|
|
41
|
+
--dx-c-button-primary-color: var(
|
|
42
|
+
--dx-g-blue-20,
|
|
43
|
+
var(--dx-g-blue-vibrant-20)
|
|
44
|
+
);
|
|
42
45
|
--dx-c-button-secondary-color-hover: var(
|
|
43
46
|
--dx-g-brand-default-button-color-background-inactive
|
|
44
47
|
);
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
.has-brand.has-scoped-nav-items {
|
|
48
|
-
border-bottom: 1px solid var(--dx-g-gray-90);
|
|
49
|
-
border-top: 1px solid var(--dx-g-gray-90);
|
|
51
|
+
border-bottom: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
52
|
+
border-top: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
.nav_menu-ctas {
|
|
@@ -55,12 +58,12 @@ dx-icon {
|
|
|
55
58
|
|
|
56
59
|
header:not(.has-brand) > .header_l1 {
|
|
57
60
|
background: white;
|
|
58
|
-
border-bottom: 1px solid var(--dx-g-gray-90);
|
|
61
|
+
border-bottom: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
header:not(.has-brand) > .header_l2 {
|
|
62
|
-
border-bottom: 1px solid var(--dx-g-gray-90);
|
|
63
|
-
border-top: 1px solid var(--dx-g-gray-90);
|
|
65
|
+
border-bottom: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
66
|
+
border-top: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
.header_l2_group.header_l2_group-right-ctas {
|
|
@@ -74,7 +77,7 @@ header:not(.has-brand) > .header_l2 {
|
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
.no-header-content {
|
|
77
|
-
border-top: 1px solid var(--dx-g-gray-90);
|
|
80
|
+
border-top: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
@media (max-width: 768px) {
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
@import "dxHelpers/text";
|
|
2
2
|
|
|
3
|
+
h1,
|
|
4
|
+
h2,
|
|
5
|
+
h3,
|
|
6
|
+
h4 {
|
|
7
|
+
font-weight: var(--dx-g-font-weight-heading, var(--dx-g-font-demi));
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
h1 {
|
|
4
|
-
margin: var(--dx-g-
|
|
11
|
+
margin: var(--dx-g-space-above-h1, var(--dx-g-spacing-2xl)) 0
|
|
12
|
+
var(--dx-g-space-below-h1, var(--dx-g-spacing-md)) 0;
|
|
5
13
|
}
|
|
6
14
|
|
|
7
15
|
h1 doc-heading-content {
|
|
@@ -9,7 +17,8 @@ h1 doc-heading-content {
|
|
|
9
17
|
}
|
|
10
18
|
|
|
11
19
|
h2 {
|
|
12
|
-
margin: var(--dx-g-
|
|
20
|
+
margin: var(--dx-g-space-above-h2, var(--dx-g-spacing-2xl)) 0
|
|
21
|
+
var(--dx-g-space-below-h2, var(--dx-g-spacing-md)) 0;
|
|
13
22
|
}
|
|
14
23
|
|
|
15
24
|
h2 doc-heading-content {
|
|
@@ -17,7 +26,8 @@ h2 doc-heading-content {
|
|
|
17
26
|
}
|
|
18
27
|
|
|
19
28
|
h3 {
|
|
20
|
-
margin: var(--dx-g-
|
|
29
|
+
margin: var(--dx-g-space-above-h3, var(--dx-g-spacing-xl)) 0
|
|
30
|
+
var(--dx-g-space-below-h3, var(--dx-g-spacing-md)) 0;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
33
|
h3 doc-heading-content {
|
|
@@ -25,7 +35,8 @@ h3 doc-heading-content {
|
|
|
25
35
|
}
|
|
26
36
|
|
|
27
37
|
h4 {
|
|
28
|
-
margin: var(--dx-g-
|
|
38
|
+
margin: var(--dx-g-space-above-h4, var(--dx-g-spacing-lg)) 0
|
|
39
|
+
var(--dx-g-space-below-h4, var(--dx-g-spacing-sm)) 0;
|
|
29
40
|
}
|
|
30
41
|
|
|
31
42
|
h4 doc-heading-content {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
--doc-c-phase-container-align-items: flex-start;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
/* The phase banner reads the warning status. It has no border. */
|
|
9
10
|
.doc-phase-container {
|
|
10
11
|
display: flex;
|
|
11
12
|
flex-direction: column;
|
|
@@ -14,6 +15,17 @@
|
|
|
14
15
|
padding-right: var(--dx-g-global-header-padding-horizontal);
|
|
15
16
|
width: 100%;
|
|
16
17
|
border: none;
|
|
18
|
+
background-color: var(
|
|
19
|
+
--dx-g-color-surface-warning,
|
|
20
|
+
var(--dx-g-yellow-95, var(--dx-g-yellow-vibrant-95))
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.doc-phase-icon {
|
|
25
|
+
--dx-c-icon-color: var(
|
|
26
|
+
--dx-g-color-icon-warning,
|
|
27
|
+
var(--dx-g-yellow-50, var(--dx-g-yellow-vibrant-50))
|
|
28
|
+
);
|
|
17
29
|
}
|
|
18
30
|
|
|
19
31
|
.doc-phase-title-container {
|
|
@@ -23,8 +35,15 @@
|
|
|
23
35
|
width: 100%;
|
|
24
36
|
}
|
|
25
37
|
|
|
38
|
+
/* The Show/Hide button and the body links are blue-40, which passes 4.5:1 on
|
|
39
|
+
the warning fill. Plan 2.6's tinted scope replaces these colors. */
|
|
26
40
|
dx-button {
|
|
27
41
|
margin-left: auto;
|
|
42
|
+
|
|
43
|
+
--dx-c-button-inline-color: var(
|
|
44
|
+
--dx-g-blue-40,
|
|
45
|
+
var(--dx-g-blue-vibrant-40)
|
|
46
|
+
);
|
|
28
47
|
}
|
|
29
48
|
|
|
30
49
|
/*
|
|
@@ -52,7 +71,7 @@ dx-button {
|
|
|
52
71
|
}
|
|
53
72
|
|
|
54
73
|
.doc-phase-body a {
|
|
55
|
-
color: var(--dx-g-blue-vibrant-
|
|
74
|
+
color: var(--dx-g-blue-40, var(--dx-g-blue-vibrant-40));
|
|
56
75
|
}
|
|
57
76
|
|
|
58
77
|
/* Small Devices */
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
class="doc-status-icon doc-phase-icon"
|
|
6
6
|
symbol={iconName}
|
|
7
7
|
size="large"
|
|
8
|
-
color="status-icon-color"
|
|
9
8
|
></dx-icon>
|
|
10
9
|
<p class="doc-status-title doc-phase-title dx-text-body-3">
|
|
11
10
|
{docPhaseTitle}
|
|
@@ -13,7 +12,6 @@
|
|
|
13
12
|
<dx-button
|
|
14
13
|
lwc:if={dismissible}
|
|
15
14
|
aria-label="Dismiss"
|
|
16
|
-
icon-color="status-icon-color"
|
|
17
15
|
icon-size="large"
|
|
18
16
|
icon-symbol="close"
|
|
19
17
|
variant="icon-only"
|
|
@@ -51,11 +51,7 @@ export default class Phase extends LightningElement {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
get className() {
|
|
54
|
-
return cx(
|
|
55
|
-
"doc-status-base",
|
|
56
|
-
"doc-status-container",
|
|
57
|
-
"doc-phase-container"
|
|
58
|
-
);
|
|
54
|
+
return cx("doc-status-base", "doc-phase-container");
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
get bodyClassName() {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
.actions a {
|
|
14
14
|
margin-right: var(--dx-g-spacing-sm, 12px);
|
|
15
|
-
color: var(--dx-g-gray-30, #3e3e3c);
|
|
15
|
+
color: var(--dx-g-neutral-30, var(--dx-g-gray-30, #3e3e3c));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.actions a:last-of-type {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.actions svg.fill:hover {
|
|
32
|
-
fill: var(--dx-g-blue-vibrant-50, #0176d3);
|
|
32
|
+
fill: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50, #0176d3));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.actions svg.stroke {
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.actions svg.stroke:hover {
|
|
41
|
-
stroke: var(--dx-g-blue-vibrant-50, #0176d3);
|
|
42
|
-
fill: var(--dx-g-blue-vibrant-50, #0176d3);
|
|
41
|
+
stroke: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50, #0176d3));
|
|
42
|
+
fill: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50, #0176d3));
|
|
43
43
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
.content-type-docs doc-phase {
|
|
6
6
|
--doc-c-phase-top: calc(
|
|
7
|
-
var(--dx-g-global-header-height) +
|
|
7
|
+
var(--dx-g-global-header-height) +
|
|
8
|
+
var(--dx-c-doc-header-height, var(--dx-g-doc-header-height)) +
|
|
8
9
|
var(--dx-g-spacing-xl)
|
|
9
10
|
);
|
|
10
11
|
}
|
|
@@ -12,7 +13,8 @@
|
|
|
12
13
|
@media screen and (max-width: 768px) {
|
|
13
14
|
.content-type-docs doc-phase {
|
|
14
15
|
--doc-c-phase-top: calc(
|
|
15
|
-
var(--dx-g-global-header-height) +
|
|
16
|
+
var(--dx-g-global-header-height) +
|
|
17
|
+
var(--dx-c-doc-header-height, var(--dx-g-doc-header-height)) +
|
|
16
18
|
40px
|
|
17
19
|
);
|
|
18
20
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
--button-primary-color: var(--dx-g-blue-vibrant-50);
|
|
3
|
-
--button-primary-color-hover: var(
|
|
2
|
+
--button-primary-color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
3
|
+
--button-primary-color-hover: var(
|
|
4
|
+
--dx-g-blue-40,
|
|
5
|
+
var(--dx-g-blue-vibrant-40)
|
|
6
|
+
);
|
|
4
7
|
}
|
|
5
8
|
|
|
6
9
|
doc-content-layout {
|
|
@@ -50,13 +53,11 @@ dx-dropdown > dx-button:hover {
|
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
@media screen and (max-width: 768px) {
|
|
56
|
+
/* At this width the doc header is 41px (main nav) plus 40px. */
|
|
53
57
|
doc-content-layout {
|
|
54
|
-
--dx-
|
|
55
|
-
--dx-g-doc-header-height: calc(
|
|
56
|
-
var(--dx-g-doc-header-main-nav-height) + 40px
|
|
57
|
-
);
|
|
58
|
+
--dx-c-doc-header-height: calc(41px + 40px);
|
|
58
59
|
--dx-c-content-sidebar-sticky-top: calc(
|
|
59
|
-
var(--dx-g-global-header-height) + var(--dx-
|
|
60
|
+
var(--dx-g-global-header-height) + var(--dx-c-doc-header-height)
|
|
60
61
|
);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--amf-h5-font-family: var(--dx-g-font-display);
|
|
6
6
|
--amf-h5-font-size: 32px;
|
|
7
7
|
--amf-h5-font-weight: var(--dx-g-font-normal);
|
|
8
|
-
--amf-h5-font-color: var(--dx-g-blue-vibrant-20);
|
|
8
|
+
--amf-h5-font-color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
9
9
|
--amf-h5-line-height: var(--dx-g-spacing-2xl);
|
|
10
10
|
--amf-h5-margin: var(--dx-g-spacing-2xl) 0 var(--dx-g-spacing-lg) 0;
|
|
11
11
|
--amf-h5-padding: 0;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--amf-h6-font-family: var(--dx-g-font-display);
|
|
15
15
|
--amf-h6-font-size: var(--dx-g-text-xl);
|
|
16
16
|
--amf-h6-font-weight: var(--dx-g-font-normal);
|
|
17
|
-
--amf-h6-font-color: var(--dx-g-blue-vibrant-20);
|
|
17
|
+
--amf-h6-font-color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
18
18
|
--amf-h6-line-height: var(--dx-g-spacing-xl);
|
|
19
19
|
--amf-h6-margin: 32px 0 0 0;
|
|
20
20
|
--amf-h6-padding: 0;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
--amf-h7-font-family: var(--dx-g-font-display);
|
|
24
24
|
--amf-h7-font-size: var(--dx-g-text-lg);
|
|
25
25
|
--amf-h7-font-weight: var(--dx-g-font-normal);
|
|
26
|
-
--amf-h7-font-color: var(--dx-g-blue-vibrant-20);
|
|
26
|
+
--amf-h7-font-color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
27
27
|
--amf-h7-line-height: 28px;
|
|
28
28
|
--amf-h7-margin: var(--dx-g-spacing-lg) 0 0 0;
|
|
29
29
|
--amf-h7-padding: 0;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--amf-h8-font-family: var(--dx-g-font-display);
|
|
33
33
|
--amf-h8-font-size: var(--dx-g-text-base);
|
|
34
34
|
--amf-h8-font-weight: var(--dx-g-font-normal);
|
|
35
|
-
--amf-h8-font-color: var(--dx-g-blue-vibrant-20);
|
|
35
|
+
--amf-h8-font-color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
36
36
|
--amf-h8-line-height: 20px;
|
|
37
37
|
--amf-h8-margin: var(--dx-g-spacing-lg) 0 var(--dx-g-spacing-md) 0;
|
|
38
38
|
--amf-h8-padding: 0;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
--amf-h8-mod-font-family: var(--dx-g-font-sans);
|
|
42
42
|
--amf-h8-mod-font-size: var(--dx-g-text-base);
|
|
43
43
|
--amf-h8-mod-font-weight: var(--dx-g-font-bold);
|
|
44
|
-
--amf-h8-mod-font-color: var(--dx-g-blue-vibrant-20);
|
|
44
|
+
--amf-h8-mod-font-color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
45
45
|
--amf-h8-mod-line-height: 20px;
|
|
46
46
|
--amf-h8-mod-margin: var(--dx-g-spacing-lg) 0 var(--dx-g-spacing-md) 0;
|
|
47
47
|
--amf-h8-mod-padding: 0;
|
|
@@ -59,13 +59,17 @@ api-security-documentation {
|
|
|
59
59
|
--arc-font-body1-font-family: var(--dx-g-font-sans);
|
|
60
60
|
--arc-font-title-font-family: var(--amf-h6-font-family);
|
|
61
61
|
--arc-font-title-color: var(--amf-h6-font-color);
|
|
62
|
-
--markdown-styles-title-border-bottom-color: var(
|
|
62
|
+
--markdown-styles-title-border-bottom-color: var(
|
|
63
|
+
--dx-g-neutral-90,
|
|
64
|
+
var(--dx-g-gray-90)
|
|
65
|
+
);
|
|
63
66
|
|
|
64
67
|
/* h2 */
|
|
65
68
|
--arc-font-title-font-size: var(--dx-g-text-xl);
|
|
66
69
|
--arc-font-title-line-height: var(--dx-g-spacing-xl);
|
|
67
70
|
--markdown-styles-h2-border-bottom: 0;
|
|
68
|
-
--markdown-styles-h2-border-top: 1px solid
|
|
71
|
+
--markdown-styles-h2-border-top: 1px solid
|
|
72
|
+
var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
69
73
|
--arc-font-h2-margin: var(--dx-g-spacing-lg)
|
|
70
74
|
calc(-1 * var(--dx-g-spacing-2xl)) var(--dx-g-spacing-lg)
|
|
71
75
|
calc(-1 * var(--dx-g-spacing-2xl));
|
|
@@ -85,33 +89,76 @@ api-security-documentation {
|
|
|
85
89
|
--arc-font-code-family: var(--dx-g-font-mono);
|
|
86
90
|
|
|
87
91
|
/* a */
|
|
88
|
-
--link-color: var(--dx-g-blue-vibrant-50);
|
|
89
|
-
--link-hover-color: var(--dx-g-blue-vibrant-50);
|
|
92
|
+
--link-color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
93
|
+
--link-hover-color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
90
94
|
|
|
91
95
|
/* HTTP methods colors */
|
|
92
96
|
--method-display-selected-color: #fff;
|
|
93
|
-
--method-display-get-color: var(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
--method-display-
|
|
97
|
+
--method-display-get-color: var(
|
|
98
|
+
--dx-g-blue-50,
|
|
99
|
+
var(--dx-g-blue-vibrant-50)
|
|
100
|
+
);
|
|
101
|
+
--method-display-post-color: var(
|
|
102
|
+
--dx-g-green-40,
|
|
103
|
+
var(--dx-g-green-vibrant-40)
|
|
104
|
+
);
|
|
105
|
+
--method-display-put-color: var(
|
|
106
|
+
--dx-g-yellow-40,
|
|
107
|
+
var(--dx-g-yellow-vibrant-40)
|
|
108
|
+
);
|
|
109
|
+
--method-display-patch-color: var(
|
|
110
|
+
--dx-g-teal-40,
|
|
111
|
+
var(--dx-g-teal-vibrant-40)
|
|
112
|
+
);
|
|
113
|
+
--method-display-delete-color: var(
|
|
114
|
+
--dx-g-red-40,
|
|
115
|
+
var(--dx-g-red-vibrant-40)
|
|
116
|
+
);
|
|
98
117
|
|
|
99
118
|
/* --method-display-options-color: var(--anypoint-color-teal3);
|
|
100
119
|
--method-display-head-color: var(--anypoint-color-futureGreen3);
|
|
101
120
|
HTTP methods colors in method documentation panel */
|
|
102
121
|
--http-method-label-border-radius: 4px;
|
|
103
|
-
--http-method-label-get-background-color: var(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
--http-method-label-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
122
|
+
--http-method-label-get-background-color: var(
|
|
123
|
+
--dx-g-blue-90,
|
|
124
|
+
var(--dx-g-blue-vibrant-90)
|
|
125
|
+
);
|
|
126
|
+
--http-method-label-get-color: var(
|
|
127
|
+
--dx-g-blue-50,
|
|
128
|
+
var(--dx-g-blue-vibrant-50)
|
|
129
|
+
);
|
|
130
|
+
--http-method-label-post-background-color: var(
|
|
131
|
+
--dx-g-green-90,
|
|
132
|
+
var(--dx-g-green-vibrant-90)
|
|
133
|
+
);
|
|
134
|
+
--http-method-label-post-color: var(
|
|
135
|
+
--dx-g-green-40,
|
|
136
|
+
var(--dx-g-green-vibrant-40)
|
|
137
|
+
);
|
|
138
|
+
--http-method-label-put-background-color: var(
|
|
139
|
+
--dx-g-yellow-90,
|
|
140
|
+
var(--dx-g-yellow-vibrant-90)
|
|
141
|
+
);
|
|
142
|
+
--http-method-label-put-color: var(
|
|
143
|
+
--dx-g-yellow-40,
|
|
144
|
+
var(--dx-g-yellow-vibrant-40)
|
|
145
|
+
);
|
|
146
|
+
--http-method-label-patch-background-color: var(
|
|
147
|
+
--dx-g-teal-90,
|
|
148
|
+
var(--dx-g-teal-vibrant-90)
|
|
149
|
+
);
|
|
150
|
+
--http-method-label-patch-color: var(
|
|
151
|
+
--dx-g-teal-40,
|
|
152
|
+
var(--dx-g-teal-vibrant-40)
|
|
153
|
+
);
|
|
111
154
|
--http-method-label-delete-background-color: var(
|
|
112
|
-
--dx-g-hot-orange-
|
|
155
|
+
--dx-g-hot-orange-90,
|
|
156
|
+
var(--dx-g-hot-orange-vibrant-90)
|
|
157
|
+
);
|
|
158
|
+
--http-method-label-delete-color: var(
|
|
159
|
+
--dx-g-red-40,
|
|
160
|
+
var(--dx-g-red-vibrant-40)
|
|
113
161
|
);
|
|
114
|
-
--http-method-label-delete-color: var(--dx-g-red-vibrant-40);
|
|
115
162
|
|
|
116
163
|
/* --http-method-label-options-background-color: var(--method-display-options-color);
|
|
117
164
|
--http-method-label-options-color: #fff;
|
|
@@ -135,24 +182,42 @@ api-security-documentation {
|
|
|
135
182
|
--api-body-document-title-border: 0;
|
|
136
183
|
--api-type-document-trait-font-family: var(--dx-g-font-sans);
|
|
137
184
|
--api-type-document-union-button-active-background-color: transparent;
|
|
138
|
-
--api-type-document-union-button-active-color: var(
|
|
185
|
+
--api-type-document-union-button-active-color: var(
|
|
186
|
+
--dx-g-blue-20,
|
|
187
|
+
var(--dx-g-blue-vibrant-20)
|
|
188
|
+
);
|
|
139
189
|
--api-type-document-union-button-background-color: transparent;
|
|
140
|
-
--api-type-document-union-button-color: var(
|
|
190
|
+
--api-type-document-union-button-color: var(
|
|
191
|
+
--dx-g-blue-50,
|
|
192
|
+
var(--dx-g-blue-vibrant-50)
|
|
193
|
+
);
|
|
141
194
|
--api-type-document-media-button-border-color: transparent;
|
|
142
195
|
--property-shape-document-padding: 24px 0;
|
|
143
196
|
--property-shape-document-title-font-family: var(--dx-g-font-mono);
|
|
144
|
-
--property-shape-document-object-color: var(
|
|
145
|
-
|
|
146
|
-
|
|
197
|
+
--property-shape-document-object-color: var(
|
|
198
|
+
--dx-g-blue-90,
|
|
199
|
+
var(--dx-g-blue-vibrant-90)
|
|
200
|
+
);
|
|
201
|
+
--property-shape-document-array-color: var(
|
|
202
|
+
--dx-g-blue-90,
|
|
203
|
+
var(--dx-g-blue-vibrant-90)
|
|
204
|
+
);
|
|
205
|
+
--property-shape-document-union-color: var(
|
|
206
|
+
--dx-g-blue-90,
|
|
207
|
+
var(--dx-g-blue-vibrant-90)
|
|
208
|
+
);
|
|
147
209
|
|
|
148
210
|
/* anypoint button */
|
|
149
211
|
--anypoint-button-font-size: var(--dx-g-text-sm);
|
|
150
|
-
--anypoint-button-color: var(--dx-g-blue-vibrant-50);
|
|
212
|
+
--anypoint-button-color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
151
213
|
--anypoint-button-text-transform: capitalize;
|
|
152
214
|
--anypoint-button-background-color: transparent;
|
|
153
215
|
--anypoint-button-hover-background-color: transparent;
|
|
154
216
|
--anypoint-button-active-background-color: transparent;
|
|
155
|
-
--anypoint-button-emphasis-low-focus-color: var(
|
|
217
|
+
--anypoint-button-emphasis-low-focus-color: var(
|
|
218
|
+
--dx-g-blue-20,
|
|
219
|
+
var(--dx-g-blue-vibrant-20)
|
|
220
|
+
);
|
|
156
221
|
--anypoint-button-emphasis-low-hover-background-color: transparent;
|
|
157
222
|
--anypoint-button-emphasis-low-focus-background-color: transparent;
|
|
158
223
|
--anypoint-button-emphasis-low-active-background-color: transparent;
|
|
@@ -215,7 +280,8 @@ api-method-documentation {
|
|
|
215
280
|
--dx-g-font-display
|
|
216
281
|
);
|
|
217
282
|
--api-endpoint-documentation-method-value-font-color: var(
|
|
218
|
-
--dx-g-blue-
|
|
283
|
+
--dx-g-blue-20,
|
|
284
|
+
var(--dx-g-blue-vibrant-20)
|
|
219
285
|
);
|
|
220
286
|
--api-endpoint-documentation-method-value-font-size: var(--dx-g-text-base);
|
|
221
287
|
--api-endpoint-documentation-method-value-font-weight: var(
|
|
@@ -258,7 +324,7 @@ api-method-documentation {
|
|
|
258
324
|
--anypoint-button-font-family: var(--dx-g-font-display);
|
|
259
325
|
--anypoint-button-font-size: var(--dx-g-text-base);
|
|
260
326
|
--anypoint-button-background-color: transparent;
|
|
261
|
-
--anypoint-button-color: var(--dx-g-blue-vibrant-50);
|
|
327
|
+
--anypoint-button-color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
262
328
|
--anypoint-button-text-transform: uppercase;
|
|
263
329
|
|
|
264
330
|
/* method documentation */
|
|
@@ -270,27 +336,42 @@ api-method-documentation {
|
|
|
270
336
|
--dx-g-font-bold
|
|
271
337
|
);
|
|
272
338
|
--api-method-documentation-description-color: rgb(24 24 24);
|
|
273
|
-
--api-method-documentation-operation-id-color: var(
|
|
339
|
+
--api-method-documentation-operation-id-color: var(
|
|
340
|
+
--dx-g-neutral-50,
|
|
341
|
+
var(--dx-g-gray-50)
|
|
342
|
+
);
|
|
274
343
|
|
|
275
344
|
/* body */
|
|
276
345
|
--api-body-document-description-color: rgb(24 24 24);
|
|
277
|
-
--api-body-document-media-type-selector-color: var(
|
|
346
|
+
--api-body-document-media-type-selector-color: var(
|
|
347
|
+
--dx-g-blue-20,
|
|
348
|
+
var(--dx-g-blue-vibrant-20)
|
|
349
|
+
);
|
|
278
350
|
--api-body-document-media-type-selector-font-size: var(
|
|
279
351
|
--amf-h8-mod-font-size
|
|
280
352
|
);
|
|
281
353
|
--api-body-document-media-type-selector-font-weight: var(
|
|
282
354
|
--amf-h8-mod-font-weight
|
|
283
355
|
);
|
|
284
|
-
--api-body-document-toggle-view-color: var(
|
|
356
|
+
--api-body-document-toggle-view-color: var(
|
|
357
|
+
--dx-g-blue-50,
|
|
358
|
+
var(--dx-g-blue-vibrant-50)
|
|
359
|
+
);
|
|
285
360
|
--api-body-document-toggle-view-font-size: var(--amf-h8-mod-font-size);
|
|
286
361
|
--api-body-document-toggle-view-font-weight: var(--amf-h8-mod-font-weight);
|
|
287
|
-
--api-body-document-media-button-color: var(
|
|
362
|
+
--api-body-document-media-button-color: var(
|
|
363
|
+
--dx-g-blue-20,
|
|
364
|
+
var(--dx-g-blue-vibrant-20)
|
|
365
|
+
);
|
|
288
366
|
--api-body-document-media-button-background-color: transparent;
|
|
289
367
|
--api-body-document-media-button-text-decoration: underline 2px;
|
|
290
368
|
--api-body-document-media-button-text-underline-offset: 4px;
|
|
291
369
|
|
|
292
370
|
/* resource */
|
|
293
|
-
--api-resource-example-document-button-color: var(
|
|
371
|
+
--api-resource-example-document-button-color: var(
|
|
372
|
+
--dx-g-blue-50,
|
|
373
|
+
var(--dx-g-blue-vibrant-50)
|
|
374
|
+
);
|
|
294
375
|
--api-resource-example-document-button-font-size: var(--dx-g-text-sm);
|
|
295
376
|
--api-resource-example-document-button-font-weight: var(--dx-g-font-normal);
|
|
296
377
|
--api-resource-example-document-button-active-outline: none;
|
|
@@ -298,14 +379,15 @@ api-method-documentation {
|
|
|
298
379
|
--api-resource-example-document-button-active-text-underline-offset: 3px;
|
|
299
380
|
--api-resource-example-document-button-active-background-color: transparent;
|
|
300
381
|
--api-resource-example-document-button-active-color: var(
|
|
301
|
-
--dx-g-blue-
|
|
382
|
+
--dx-g-blue-20,
|
|
383
|
+
var(--dx-g-blue-vibrant-20)
|
|
302
384
|
);
|
|
303
385
|
}
|
|
304
386
|
|
|
305
387
|
api-summary::part(api-title) {
|
|
306
388
|
font-family: var(--dx-g-font-display);
|
|
307
389
|
font-size: var(--dx-g-text-3xl);
|
|
308
|
-
color: var(--dx-g-blue-vibrant-20);
|
|
390
|
+
color: var(--dx-g-blue-20, var(--dx-g-blue-vibrant-20));
|
|
309
391
|
line-height: var(--dx-g-text-4xl);
|
|
310
392
|
letter-spacing: -0.85px;
|
|
311
393
|
margin: var(--dx-g-spacing-sm) 0;
|
|
@@ -318,7 +400,7 @@ api-summary::part(api-title-label) {
|
|
|
318
400
|
api-summary::part(api-version) {
|
|
319
401
|
font-family: var(--dx-g-font-display);
|
|
320
402
|
font-size: var(--dx-g-text-sm);
|
|
321
|
-
color: var(--dx-g-blue-vibrant-50);
|
|
403
|
+
color: var(--dx-g-blue-50, var(--dx-g-blue-vibrant-50));
|
|
322
404
|
}
|
|
323
405
|
|
|
324
406
|
api-summary::part(marked-description) {
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
--dx-c-content-vertical-spacing: var(--dx-g-spacing-lg);
|
|
3
3
|
--dx-c-content-sidebar-sticky-top: calc(
|
|
4
|
-
var(--dx-g-global-header-height) +
|
|
4
|
+
var(--dx-g-global-header-height) +
|
|
5
|
+
var(--dx-c-doc-header-height, var(--dx-g-doc-header-height))
|
|
5
6
|
);
|
|
6
7
|
--dx-c-sidebar-height: calc(
|
|
7
8
|
100vh -
|
|
8
9
|
calc(
|
|
9
|
-
var(--dx-g-global-header-height) +
|
|
10
|
+
var(--dx-g-global-header-height) +
|
|
11
|
+
var(--dx-c-doc-header-height, var(--dx-g-doc-header-height))
|
|
10
12
|
)
|
|
11
13
|
);
|
|
12
14
|
--dx-c-content-scroll-margin-top: calc(
|
|
13
|
-
var(--dx-g-global-header-height) +
|
|
15
|
+
var(--dx-g-global-header-height) +
|
|
16
|
+
var(--dx-c-doc-header-height, var(--dx-g-doc-header-height)) +
|
|
14
17
|
var(--dx-g-spacing-2xl)
|
|
15
18
|
);
|
|
16
19
|
|
|
@@ -43,8 +46,8 @@ doc-breadcrumbs {
|
|
|
43
46
|
align-items: center;
|
|
44
47
|
gap: var(--dx-g-spacing-xs, 8px);
|
|
45
48
|
margin-bottom: var(--dx-g-spacing-lg, 16px);
|
|
46
|
-
color: var(--dx-g-gray-30, #3e3e3c);
|
|
47
|
-
font-size: var(--dx-g-font-size-
|
|
49
|
+
color: var(--dx-g-neutral-30, var(--dx-g-gray-30, #3e3e3c));
|
|
50
|
+
font-size: var(--dx-g-font-size-body-3, 14px);
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
.read svg {
|
|
@@ -88,7 +91,7 @@ dx-toc {
|
|
|
88
91
|
|
|
89
92
|
.content-body-doc-phase-container {
|
|
90
93
|
flex: 1;
|
|
91
|
-
border-left: 1px solid var(--dx-g-gray-90);
|
|
94
|
+
border-left: 1px solid var(--dx-g-neutral-90, var(--dx-g-gray-90));
|
|
92
95
|
min-width: 0;
|
|
93
96
|
}
|
|
94
97
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
|
|
2
|
+
/* Deprecated: nothing reads it. Removed under plan 3.3. */
|
|
3
|
+
--dx-status-icon-color: var(--dx-g-neutral-10, var(--dx-g-gray-10));
|
|
3
4
|
--doc-status-vertical-padding: var(--dx-g-spacing-md);
|
|
4
5
|
}
|
|
5
6
|
|
|
@@ -8,11 +9,6 @@
|
|
|
8
9
|
padding: var(--doc-status-vertical-padding);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
.doc-status-container {
|
|
12
|
-
background-color: rgb(253 252 247);
|
|
13
|
-
border-color: var(--dx-g-yellow-vibrant-80);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
12
|
.doc-status-title {
|
|
17
13
|
font-weight: var(--dx-g-font-bold);
|
|
18
14
|
}
|
|
@@ -23,7 +23,8 @@ export interface SearchViewModel {
|
|
|
23
23
|
status: SearchStatus;
|
|
24
24
|
query: string;
|
|
25
25
|
locale: string;
|
|
26
|
-
|
|
26
|
+
/** null = none, a string = one type, an array = several (OR'd). */
|
|
27
|
+
selectedType: string | string[] | null;
|
|
27
28
|
sort: SortOption;
|
|
28
29
|
results: SearchResult[];
|
|
29
30
|
contentTypeFacets: FacetBucket[];
|
|
@@ -113,7 +114,9 @@ export class SearchController {
|
|
|
113
114
|
status: this.status,
|
|
114
115
|
query: this.query,
|
|
115
116
|
locale: this.locale,
|
|
116
|
-
selectedType: this.selectedType,
|
|
117
|
+
selectedType: this.selectedType?.includes(",")
|
|
118
|
+
? this.selectedType.split(",")
|
|
119
|
+
: this.selectedType,
|
|
117
120
|
sort: this.sort,
|
|
118
121
|
results: this.results,
|
|
119
122
|
contentTypeFacets: this.contentTypeFacets,
|
|
@@ -234,9 +237,12 @@ export class SearchController {
|
|
|
234
237
|
}
|
|
235
238
|
}
|
|
236
239
|
|
|
237
|
-
setType(type: string | null): void {
|
|
238
|
-
//
|
|
239
|
-
|
|
240
|
+
setType(type: string | string[] | null): void {
|
|
241
|
+
// Several types are held (and sent to the API / URL) as one
|
|
242
|
+
// comma-separated string. An empty array clears the selection.
|
|
243
|
+
const next = Array.isArray(type) ? type.join(",") || null : type;
|
|
244
|
+
// Disjunctive toggle: selecting the active selection clears it.
|
|
245
|
+
this.selectedType = this.selectedType === next ? null : next;
|
|
240
246
|
this.page = 1;
|
|
241
247
|
this.offset = 0;
|
|
242
248
|
this.syncUrl();
|
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.
|