diff --git a/_sass/components/swagger.scss b/_sass/components/swagger.scss deleted file mode 100644 index 90b9eee52f5f..000000000000 --- a/_sass/components/swagger.scss +++ /dev/null @@ -1,281 +0,0 @@ -/* Some hacky CSS to override the SwaggerUI, which renders our API documentation */ - -.topbar, /* Top bar with unused content */ -.information-container .main .link, /* Link to non-functioning URL */ -.try-out, /* Try Out buttons that don't work */ -.swagger-ui section.models /* Models section hidden for clarity */ -{ display: none; } - -/* Typography */ -html, -body, -.swagger-ui, -.swagger-ui .info .title, -.swagger-ui .info li, -.swagger-ui .info p, -.swagger-ui .info table, -.swagger-ui .opblock-tag, -.swagger-ui .opblock-tag small, -.swagger-ui .parameter__in, -.swagger-ui .parameter__type { - font-family: Roboto, sans-serif; -} -.swagger-ui .info .title { - font-size: 2.2rem; - line-height: 1.1em; - font-weight: 700; -} -.information-container .info, -.parameters-col_description { - line-height: 1.5em; -} - -/** Override some book styles */ -.book .swagger-ui table { - border: inherit; - - thead { - background: transparent; - } -} - -/* Inline code bits */ -.swagger-ui .code, -.swagger-ui code, -.swagger-ui .info code, -.swagger-ui .markdown code { - display: inline-block; - padding: 0 0.25em; - border-radius: 2px; - background: #eee; - color: #555; - font-weight: 700; - font-family: monospace; -} - -/* Remove extra margins */ -.swagger-ui .info { - margin-top: 0; -} - -/* Version indicator */ -.swagger-ui .info .title small { - top: auto; - background: none; - line-height: 1.5em; - vertical-align: baseline; -} -.swagger-ui .info .title small .version { - padding: 0; - font-family: Roboto, sans-serif; - font-size: 14px; - font-weight: 400; - line-height: 1.5em; - color: $text; -} - -/* Hide open api version number */ -.swagger-ui .info .title small + small { - display: none; -} - -/* Endpoint blocks */ -.swagger-ui .opblock-tag-section { - border: 1px solid #eee; - margin-bottom: 1rem; -} -.swagger-ui .opblock-tag { - margin-bottom: 0; - border-bottom: 1px solid #eee; - font-size: 18px; - font-weight: 700; -} -.swagger-ui .opblock.is-open .opblock-summary { - border-bottom: 1px solid #eee !important; -} -.opblock-tag + div { - margin: 15px 15px 0 !important; -} -.swagger-ui .opblock { - border-color: #eee !important; - background: transparent !important; - border-radius: 0; - border-left: none; - box-shadow: -1px 0 #eee; -} -.swagger-ui .opblock-tag { - display: block; - position: relative; -} -.swagger-ui .opblock-tag .expand-operation { - position: absolute; - top: 50%; - right: 0; - transform: translateY(-50%); - height: 20px; -} -.swagger-ui .opblock-tag small { - display: block; - padding: 0 1rem 0 0; - - p { - line-height: 1.6em; - } - - p:first-child { - margin-top: 0; - } - - p:last-child { - margin-bottom: 0; - } -} -.swagger-ui .opblock .opblock-summary { - display: block; - position: relative; -} -.swagger-ui .opblock .opblock-summary-method { - position: absolute; - top: 50%; - left: 0.5rem; - min-width: 100px; - transform:translateY(-50%); -} -.swagger-ui .opblock .opblock-summary-path { - display: block; - padding-left: 115px; - - a { - font-weight: 700; - } -} -.swagger-ui .opblock .opblock-summary-description { - padding-left: 115px; - line-height: 1.3rem; -} -.swagger-ui .opblock.is-open.opblock-get { - box-shadow: -4px 0 #007ab2; -} -.swagger-ui .opblock.opblock-get .opblock-summary-method { - background: #007ab2; -} -.swagger-ui .opblock.is-open.opblock-post { - box-shadow: -4px 0 #00b28d; -} -.swagger-ui .opblock.opblock-post .opblock-summary-method { - background: #00b28d; -} -.swagger-ui .opblock.is-open.opblock-put { - box-shadow: -4px 0 #e08914; -} -.swagger-ui .opblock.opblock-put .opblock-summary-method { - background: #e08914; -} -.swagger-ui .opblock.is-open.opblock-delete { - box-shadow: -4px 0 $warning; -} -.swagger-ui .opblock.opblock-delete .opblock-summary-method { - background: $warning; -} -.swagger-ui .opblock .opblock-section-header { - box-shadow: none; - border-bottom: 1px solid #eee; -} -.swagger-ui table thead tr td, -.swagger-ui table thead tr th, -.book .swagger-ui table.parameters thead { - border-bottom: 1px solid #eee; -} - -/* Parameters table */ -.swagger-ui table.parameters th { - color: #777; - border: none; - font-weight: 400; -} -.swagger-ui .parameter__name { - font-family: monospace; - font-weight: 700; - color: $text; -} -.swagger-ui .parameter__type { - font-size: 14px; - font-weight: 400; - color: $text; -} -.swagger-ui .parameter__in { - font-style: normal; - font-weight: 400; - color: #777; -} -.swagger-ui .parameters-col_description input[disabled], -.swagger-ui .parameters-col_description select[disabled] { - display: none; -} - -/** Response table */ -.swagger-ui .response-col_status { - font-size: 1.5rem; - font-family: Roboto, sans-serif; -} -.swagger-ui thead .response-col_status, -.swagger-ui thead .response-col_description { - font-size: 0.9rem; - font-weight: 400; - font-family: Roboto, sans-serif; - color: $text-light; -} -.swagger-ui table tbody tr.response > td { - padding-top: 3rem; -} -.swagger-ui .response-col_description__inner div.markdown, -.swagger-ui .response-col_description__inner div.renderedMarkdown, -.swagger-ui .response-col_description__inner div.markdown p, -.swagger-ui .response-col_description__inner div.renderedMarkdown p { - margin: 0; - padding: 0; - background: transparent; - color: $text; - font-size: 1rem; - font-family: Roboto, sans-serif; - font-weight: 400; - line-height: 1.8em; - font-style: normal; -} -.swagger-ui .response-content-type { - padding-top: 0; -} - -/* Unused Response type selection */ -.opblock-section-header label { visibility: hidden; } - -/* Remove extra space that disturbs alignment of parameter tables */ -.parameters-col_description p:first-child { margin-top: 0; } - -/* Spacing between left/right cols in parameter tables */ -.swagger-ui table tbody tr td:first-of-type { padding-right: 2em; } - -/* Fix overlapping text to switch between example/model responses */ -.tablinks { - padding-right: 1em; - margin-right: 1em; -} -.swagger-ui .tab li:first-of-type::after { - right: 1em; -} - -/* Prettify things a bit */ -@media (min-width: 992px) { - .swagger-ui .wrapper { - padding-left: 0; - padding-right: 0; - } - .information-container .info { - line-height: 1.5em; - } -} - -/* Hide the validation status button until we fix the validation errors */ -img[alt="Online validator badge"] { - display: none; -} diff --git a/css/api.scss b/css/api.scss deleted file mode 100644 index fa1b44c1a787..000000000000 --- a/css/api.scss +++ /dev/null @@ -1,14 +0,0 @@ ---- -# Empty front matter ---- - -@import "_variables"; -@import 'lib/normalize'; -@import '_mixins'; -@import 'base'; -@import 'components/bookHeader'; -@import 'components/book'; -@import 'components/versions'; -@import 'components/swagger'; -@import 'components/alert'; -@import 'components/siteFooter';