Skip to content

Commit

Permalink
Styling fixes for the OpenAPI browser (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Sep 6, 2023
1 parent d091ce0 commit 0a726cf
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,16 +320,22 @@ mark {
text-decoration: line-through;
}

html[data-theme="dark"] {
@media (prefers-color-scheme: dark) {
.swagger-ui {
filter: invert(88%) hue-rotate(180deg);
}
.swagger-ui .microlight {
filter: invert(100%) hue-rotate(180deg);
}
.markdown pre.base-url {
background: #fff !important;
}
}
html[data-theme="dark"] .swagger-ui {
filter: invert(88%) hue-rotate(180deg);
}

html[data-theme="dark"] .swagger-ui .microlight {
filter: invert(100%) hue-rotate(180deg);
}

html[data-theme="dark"] .markdown pre.base-url {
background: #fff !important;
}

.markdown code {
background: none !important;
}

html[data-theme="dark"] .swagger-ui .opblock-body pre.microlight {
background: black !important;
}

0 comments on commit 0a726cf

Please sign in to comment.