Files
openapi/os_openapi/assets/api-ref.css
Artem Goncharov a36cedafe1 Override os_api_ref css properly
When openapi extension is enable together with os_api_ref certain CSS
properties conflict. Make the CSS more precise.

Change-Id: I567d71e7b69f4e01948388852a2ef09f23b63f24
2025-05-05 13:25:02 +02:00

122 lines
2.0 KiB
CSS

:root {
}
.docs-book-wrapper {
max-width: 90% !important
}
.accordion, .operation {
/* Unset default bg color for accordion items */
--bs-accordion-active-bg: unset;
}
section .accordion-button {
/* make background of a button transparent to get the right color */
background-color: transparent;
}
section .accordion-button:focus {
/* remove selected border */
border-color: unset;
}
.api-group table.docutils {
width: 100%;
text-align: left;
}
section.operation {
/* When os-openapi is enabled together with os-api-ref certain props conflict
*/
white-space: wrap;
margin: unset;
}
section.operation-deprecated {
text-decoration: line-through;
background: #ebebeb1a;
border-color: #ebebeb;
opacity: .6;
}
section.operation-get {
border:1px solid #61affe;
background: #61affe1a;
}
section .label-get {
background-color: #61affe !important;
}
section.operation-head {
background: #9012fe1a;
border-color: #9012fe;
}
section .label-head {
background-color: #9012fe !important;
}
section.operation-put {
background: #fca1301a;
border-color: #fca130;
}
section .label-put {
background-color: #fca130;
}
section.operation-patch {
background: #50e3c21a;
border-color: #50e3c2;
}
section .label-patch {
background-color: #50e3c2;
}
section.operation-post {
background: #49cc901a;
border-color: #49cc90;
}
section .label-post {
background-color: #49cc90;
}
section.operation-delete {
background: #f93e3e1a;
border-color: #f93e3e;
}
section .label-delete {
background-color: #f93e3e;
}
section .operation-path {
align-items: start;
color: #3b4151;
display: flex-root;
font-family: monospace;
font-size: 16px;
font-weight: 600;
word-break: break-word;
}
section .operation-summary {
color: #3b4151;
font-family: sans-serif;
font-size: 13px;
word-break: break-word;
}
.operation h3 {
display: none;
}
.requestbody-item {
overflow: scroll;
}
.requestbody-item > p {
position: relative;
display: block;
padding: 10px 15px;
margin-right: 2px
}