From be6a26be97f3ef24b6e4fb42a538c5b3960187de Mon Sep 17 00:00:00 2001 From: Zach Bloomquist Date: Mon, 21 Oct 2024 20:06:37 -0400 Subject: [PATCH] Unify method colors in API docs --- src/css/hc-methods.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/css/hc-methods.css b/src/css/hc-methods.css index d06e743..a64ce16 100644 --- a/src/css/hc-methods.css +++ b/src/css/hc-methods.css @@ -76,4 +76,23 @@ background-color: var(--ifm-color-secondary-contrast-background); color: var(--ifm-color-secondary-contrast-foreground); border-color: var(--ifm-color-secondary-dark); +} + +/* more customizations */ +.openapi__method-endpoint > .badge--primary { + /* GET badge */ + background-color: var(--ifm-color-info-contrast-background); + border-color: var(--ifm-color-info-dark); +} + +.openapi__method-endpoint > .badge--warning, .openapi__method-endpoint > .badge--success { + /* PATCH/POST badge */ + background-color: var(--ifm-color-success-contrast-background); + border-color: var(--ifm-color-success-dark); +} + +.openapi__method-endpoint > .badge--info { + /* PUT badge */ + background-color: var(--ifm-color-warning-contrast-background); + border-color: var(--ifm-color-warning-dark); } \ No newline at end of file