diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index 1534d5bd..9d748bd2 100644 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -288,16 +288,20 @@ footer { /* Styles for sections that are rendered from data, such as HTTP APIs and event schemas */ .rendered-data { background-color: $secondary-lightest-background; - padding: 1rem; - margin: 1rem 0; + padding: 0.85rem; + margin: 0.85rem 0; details { summary { - padding: .5rem 0; - p { - max-width: 80%; + h1 { + margin: 0; + /* Ensure the disclosure control is vertically centred with the header text. */ + vertical-align: middle; } } + p { + max-width: 80%; + } } .deprecated-inline { diff --git a/changelogs/internal/newsfragments/1446.clarification b/changelogs/internal/newsfragments/1446.clarification new file mode 100644 index 00000000..fdc3d1fc --- /dev/null +++ b/changelogs/internal/newsfragments/1446.clarification @@ -0,0 +1 @@ +Endpoint disclosures now hide everything but the URL. diff --git a/layouts/partials/openapi/render-operation.html b/layouts/partials/openapi/render-operation.html index 74b729cf..1e480671 100644 --- a/layouts/partials/openapi/render-operation.html +++ b/layouts/partials/openapi/render-operation.html @@ -33,6 +33,7 @@ {{ $method }} {{ $endpoint }} +
{{ $operation_data.description | markdownify }}
-