aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
Diffstat (limited to 'web_src')
-rw-r--r--web_src/css/standalone/swagger.css23
1 files changed, 17 insertions, 6 deletions
diff --git a/web_src/css/standalone/swagger.css b/web_src/css/standalone/swagger.css
index 5c1902f11f..46b00d34ab 100644
--- a/web_src/css/standalone/swagger.css
+++ b/web_src/css/standalone/swagger.css
@@ -1,12 +1,7 @@
-html {
- box-sizing: border-box;
- overflow-y: scroll;
-}
-
*,
*::before,
*::after {
- box-sizing: inherit;
+ box-sizing: border-box;
}
body {
@@ -24,8 +19,24 @@ body {
align-items: center;
}
+.swagger-back-link:hover {
+ text-decoration: underline;
+}
+
.swagger-back-link svg {
color: inherit;
fill: currentcolor;
margin-right: 0.5rem;
}
+
+@media (prefers-color-scheme: dark) {
+ body {
+ background: #1e1e1e;
+ }
+ .swagger-ui, .swagger-back-link {
+ filter: invert(88%) hue-rotate(180deg);
+ }
+ .swagger-ui .microlight {
+ filter: invert(100%) hue-rotate(180deg);
+ }
+}