Files
scylladb/docs/_static/api/css/swagger.css
David Garcia 4a1b109641 docs: add swagger ui extension
Renders the API Reference from api/api-doc using Swagger UI 2.2.10.

address comments

Closes scylladb/scylladb#18253
2024-05-09 08:26:43 +03:00

243 lines
4.7 KiB
CSS

/* Overrides */
.swagger-section {
margin-bottom: 20px;
}
.swagger-section ul li:before {
content: initial !important;
}
.swagger-section .heading h2,
.swagger-section .info,
.swagger-section .sandbox_header,
.swagger-section .swagger-footer {
display: none;
}
.swagger-section .options {
display: none;
}
.swagger-section .endpoints .options {
display: block;
}
.swagger-section .operations,
.swagger-section .options {
list-style: none;
margin: 0;
padding: 0;
}
.swagger-section .content {
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
width: 100% !important;
}
.swagger-section .content > * {
margin-bottom: 20px;
}
.swagger-section br {
display: none;
}
.swagger-section .toggleOperation {
color: #0a0a0a;
pointer-events: none;
}
.swagger-section .toggleOperation:hover {
color: #0a0a0a;
font-weight: inherit;
}
/* Resources */
.swagger-section #resources,
.swagger-section #resources .endpoints {
margin-left: 0;
}
.swagger-section .endpoint {
margin-bottom: 20px;
}
.swagger-section .endpoint h4 {
margin-bottom: 10px;
margin-top: 10px;
}
/* HTTP method */
.swagger-section .http_method a {
padding: 5px;
text-transform: uppercase;
border-radius: 4px;
font-size: 14px;
background-color: #0f6ab4;
color: #fff;
}
.swagger-sectionli.operation.head .http_method a {
background-color: #ffd20f;
}
.swagger-section li.operation.delete .http_method a {
background-color: #a41e22;
}
.swagger-section li.operation.post .http_method a {
background-color: #10a54a;
}
.swagger-section li.operation.get .http_method a {
background-color: #0f6ab4;
}
.swagger-section li.operation.put .http_method a {
background-color: #c5862b;
}
.swagger-section li.operation.patch .http_method a {
background-color: #fce9e3;
color: #000;
}
/* Forms */
.swagger-section select,
.swagger-section input,
.swagger-section textarea {
border-radius: 4px;
margin: 0;
line-height: 28px;
font-size: 14px;
height: auto;
padding: 8px;
min-height: 0;
}
.swagger-section label {
line-height: 28px;
font-size: 14px;
}
/* Code */
.swagger-section pre {
margin-top: 10px;
background-color: #f7f8f9;
border-radius: 4px;
padding: 5px;
}
.swagger-section .swagger-ui-wrap .model-signature {
font-size: 14px;
}
.swagger-section .swagger-ui-wrap .model-signature .signature-nav {
list-style: none;
}
/* Table */
.swagger-section table {
border-radius: 4px;
}
.swagger-section table th{
width: initial !important;
max-width: initial !important;
}
.swagger-section table td strong{
font-weight: normal;
}
/* Signature */
.swagger-section .swagger-ui-wrap .model-signature {
font-size: 14px;
}
.swagger-section .swagger-ui-wrap .model-signature .signature-nav a {
text-decoration: none;
color: #aaa;
}
.swagger-section .swagger-ui-wrap .model-signature .signature-nav a:hover {
text-decoration: underline;
color: #000;
}
.swagger-section .swagger-ui-wrap .model-signature .signature-nav .selected {
color: #000;
text-decoration: none;
}
.swagger-section .swagger-ui-wrap .model-signature .propType {
color: #55a
}
.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav {
display: flex;
list-style: none;
margin: 0;
padding: 0;
}
.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li:last-child {
padding-right: 0;
border-right: none;
}
.swagger-section .swagger-ui-wrap .model-signature ul.signature-nav li {
margin: 0 5px 5px 0;
padding: 2px 5px 2px 0;
border-right: 1px solid #ddd;
}
.swagger-section .swagger-ui-wrap .model-signature .propOpt {
color: #555;
}
.swagger-section .swagger-ui-wrap .model-signature .propOptKey {
font-style: italic;
}
.swagger-section .swagger-ui-wrap .model-signature .description .strong {
font-weight: 700;
color: #000;
}
.swagger-section .swagger-ui-wrap .model-signature .description div {
margin-left: 1em;
}
.swagger-section .swagger-ui-wrap .model-signature .description .stronger {
font-weight: 700;
color: #000;
}
.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper {
display: none;
}
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown>p:first-child,
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown>p:last-child {
display: inline;
}
.swagger-section .swagger-ui-wrap .model-signature .description .propDesc.markdown>p:not(:first-child):before {
display: block;
content: '';
}
.swagger-section .swagger-ui-wrap .model-signature .description span:last-of-type.propDesc.markdown>p:only-child {
margin-right: -3px;
}
.swagger-section .swagger-ui-wrap .model-signature .propName {
font-weight: 700;
}