-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
v8tenko
committed
Sep 13, 2023
1 parent
590819e
commit 7203489
Showing
5 changed files
with
164 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,108 @@ | ||
.openapi { | ||
--dc-openapi-methods-post: rgba(50, 186, 118, 0.5); | ||
--dc-openapi-methods-put: rgba(50, 186, 118, 0.3); | ||
--dc-openapi-methods-get: rgba(54, 151, 241, 0.5); | ||
--dc-openapi-methods-patch: rgba(255, 190, 92, 0.9); | ||
--dc-openapi-methods-delete: rgba(255, 0, 61, 0.5); | ||
|
||
--dc-openapi-status-code-ok: rgb(48, 170, 110); | ||
--dc-openapi-status-code-redirect: rgb(52, 139, 220); | ||
--dc-openapi-status-code-client: rgb(233, 3, 58); | ||
--dc-openapi-status-code-server: rgb(255, 190, 92); | ||
|
||
--dc-openapi-highlight: rgb(233, 174, 86); | ||
|
||
&__required { | ||
color: var(--yc-color-text-danger); | ||
} | ||
|
||
& #request { | ||
margin-top: 0; | ||
} | ||
|
||
& .openapi__deprecated { | ||
text-decoration: line-through; | ||
} | ||
|
||
& &__request { | ||
display: flex; | ||
align-items: center; | ||
overflow-y: scroll; | ||
width: 100%; | ||
|
||
&__wrapper { | ||
position: relative; | ||
} | ||
|
||
& * { | ||
margin: 0; | ||
} | ||
|
||
& > .openapi__method { | ||
background-color: var(--method); | ||
padding: 8px 16px; | ||
color: #fff; | ||
border-radius: 5px 0 0 5px; | ||
} | ||
|
||
& > .yfm-clipboard { | ||
border: 2px solid var(--method); | ||
border-radius: 0 5px 5px 0; | ||
white-space: nowrap; | ||
overflow: visible; | ||
position: initial; | ||
|
||
code { | ||
padding: 6px 20px 6px 6px; | ||
} | ||
|
||
pre, code { | ||
border-radius: 0; | ||
overflow: visible; | ||
} | ||
|
||
svg { | ||
display: block; | ||
opacity: 0; | ||
transition: opacity 100ms; | ||
position: absolute; | ||
right: -8px; | ||
top: 10px; | ||
} | ||
|
||
&:hover svg { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
} | ||
|
||
& h3 { | ||
transition: color 100ms; | ||
|
||
&.highlight { | ||
color: var(--dc-openapi-highlight); | ||
} | ||
} | ||
|
||
& .openapi__request__description { | ||
margin: 20px 0 0 0; | ||
font-size: 1.1em; | ||
} | ||
|
||
& h2[id^="2"] { | ||
color: var(--dc-openapi-status-code-ok); | ||
} | ||
|
||
& h2[id^="3"] { | ||
color: var(--dc-openapi-status-code-redirect); | ||
} | ||
|
||
& h2[id^="4"] { | ||
color: var(--dc-openapi-status-code-client); | ||
} | ||
|
||
& h2[id^="5"] { | ||
color: var(--dc-openapi-status-code-server); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters