Skip to content

Commit

Permalink
avoid word break in http method
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa18289 committed Oct 7, 2024
1 parent b69155c commit 8bb9ec7
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/components/openapi/HTTPMethod.module.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.method {
color: white;
border-radius: 4px;
padding: 2px 4px;
margin-right: 8px;
font-weight: bold;
text-decoration: none !important;
display: inline-block;
min-width: 80px;
text-align: center;
color: white;
border-radius: 4px;
padding: 2px 8px;
margin-right: 8px;
font-weight: bold;
text-decoration: none !important;
display: inline-flex;
text-align: center;
font-family: var(--ifm-font-family-base);
flex-shrink: 0;
align-items: center;
}

p .method, li .method {
Expand All @@ -19,29 +19,29 @@ p .method, li .method {
}

.methodDeprecated {
background-color: var(--color--gray--600);
background-color: var(--color--gray--600);
}

[data-theme="dark"] .methodDeprecated {
background-color: var(--color--gray--800);
background-color: var(--color--gray--800);
}

.methodGET {
background-color: var(--ifm-color-success);
background-color: var(--ifm-color-success);
}

.methodPOST {
background-color: var(--ifm-color-info);
background-color: var(--ifm-color-info);
}

.methodDELETE {
background-color: var(--ifm-color-danger);
background-color: var(--ifm-color-danger);
}

.methodPATCH {
background-color: var(--ifm-color-warning);
background-color: var(--ifm-color-warning);
}

.methodPUT {
background-color: var(--ifm-color-warning);
background-color: var(--ifm-color-warning);
}

0 comments on commit 8bb9ec7

Please sign in to comment.