|
29 | 29 | :platforms="platforms" :technologies="technologies"
|
30 | 30 | />
|
31 | 31 | </DocumentationHero>
|
32 |
| - <div class="container"> |
33 |
| - <Description :hasOverview="hasOverview"> |
34 |
| - <RequirementMetadata |
35 |
| - v-if="isRequirement" |
36 |
| - :defaultImplementationsCount="defaultImplementationsCount" |
37 |
| - /> |
38 |
| - <Aside v-if="deprecationSummary && deprecationSummary.length" kind="deprecated"> |
39 |
| - <ContentNode :content="deprecationSummary" /> |
40 |
| - </Aside> |
41 |
| - <Aside |
42 |
| - v-if="downloadNotAvailableSummary && downloadNotAvailableSummary.length" |
43 |
| - kind="note" |
44 |
| - > |
45 |
| - <ContentNode :content="downloadNotAvailableSummary" /> |
46 |
| - </Aside> |
47 |
| - </Description> |
48 |
| - <PrimaryContent |
49 |
| - v-if="primaryContentSections && primaryContentSections.length" |
50 |
| - :class="{ 'with-border': !enhanceBackground }" |
51 |
| - :conformance="conformance" |
52 |
| - :sections="primaryContentSections" |
| 32 | + <div class="container"> |
| 33 | + <div class="description"> |
| 34 | + <RequirementMetadata |
| 35 | + v-if="isRequirement" |
| 36 | + :defaultImplementationsCount="defaultImplementationsCount" |
53 | 37 | />
|
| 38 | + <Aside v-if="deprecationSummary && deprecationSummary.length" kind="deprecated"> |
| 39 | + <ContentNode :content="deprecationSummary" /> |
| 40 | + </Aside> |
| 41 | + <Aside |
| 42 | + v-if="downloadNotAvailableSummary && downloadNotAvailableSummary.length" |
| 43 | + kind="note" |
| 44 | + > |
| 45 | + <ContentNode :content="downloadNotAvailableSummary" /> |
| 46 | + </Aside> |
54 | 47 | </div>
|
| 48 | + <PrimaryContent |
| 49 | + v-if="primaryContentSections && primaryContentSections.length" |
| 50 | + :class="{ 'with-border': !enhanceBackground }" |
| 51 | + :conformance="conformance" |
| 52 | + :sections="primaryContentSections" |
| 53 | + /> |
| 54 | + </div> |
55 | 55 | <Topics
|
56 | 56 | v-if="topicSections"
|
57 | 57 | :sections="topicSections"
|
@@ -88,7 +88,6 @@ import Abstract from './DocumentationTopic/Description/Abstract.vue';
|
88 | 88 | import ContentNode from './DocumentationTopic/ContentNode.vue';
|
89 | 89 | import CallToActionButton from './CallToActionButton.vue';
|
90 | 90 | import DefaultImplementations from './DocumentationTopic/DefaultImplementations.vue';
|
91 |
| -import Description from './DocumentationTopic/Description.vue'; |
92 | 91 | import PrimaryContent from './DocumentationTopic/PrimaryContent.vue';
|
93 | 92 | import Relationships from './DocumentationTopic/Relationships.vue';
|
94 | 93 | import RequirementMetadata from './DocumentationTopic/Description/RequirementMetadata.vue';
|
@@ -122,7 +121,6 @@ export default {
|
122 | 121 | BetaLegalText,
|
123 | 122 | ContentNode,
|
124 | 123 | DefaultImplementations,
|
125 |
| - Description, |
126 | 124 | DownloadButton: CallToActionButton,
|
127 | 125 | LanguageSwitcher,
|
128 | 126 | PrimaryContent,
|
@@ -270,10 +268,6 @@ export default {
|
270 | 268 | 0,
|
271 | 269 | );
|
272 | 270 | },
|
273 |
| - hasOverview: |
274 |
| - ({ primaryContentSections = [], abstract = [] }) => primaryContentSections.filter(section => ( |
275 |
| - section.kind === PrimaryContent.constants.SectionKind.content |
276 |
| - )).length > 0 || abstract.length > 0, |
277 | 271 | onThisPageSections() {
|
278 | 272 | return this.topicState.onThisPageSections;
|
279 | 273 | },
|
@@ -367,6 +361,18 @@ export default {
|
367 | 361 | @include dynamic-content-container;
|
368 | 362 | }
|
369 | 363 |
|
| 364 | +.description { |
| 365 | + &:empty { display: none; } |
| 366 | +
|
| 367 | + &:not(:empty) { |
| 368 | + margin-bottom: $contenttable-spacing-single-side; |
| 369 | + } |
| 370 | +
|
| 371 | + /deep/ .content + * { |
| 372 | + margin-top: $stacked-margin-large; |
| 373 | + } |
| 374 | +} |
| 375 | +
|
370 | 376 | .sample-download {
|
371 | 377 | margin-top: 20px;
|
372 | 378 | }
|
|
0 commit comments