Skip to content

Commit

Permalink
Unify method colors in API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Oct 22, 2024
1 parent 8b20c7d commit be6a26b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/css/hc-methods.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit be6a26b

Please sign in to comment.