Skip to content

Commit

Permalink
add custom response header styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasassisrosa committed Feb 5, 2024
1 parent f2095d0 commit f17dc07
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
margin-bottom: var(--ifm-leading);
}

.openapi-tabs__response-header {
&.openapi-tabs__heading {
margin-bottom: 0;
}
}

.openapi-tabs__response-code-item {
border: 1px solid transparent;
margin-top: 0 !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ function TabList({

return (
<div className="openapi-tabs__response-header-section">
<Heading as="h2" id={id} className="openapi-tabs__heading">
<Heading
as="h2"
id={id}
className="openapi-tabs__heading openapi-tabs__response-header"
>
{label}
</Heading>
<div className="openapi-tabs__response-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
.openapi-tabs__operation-container {
display: flex;
align-items: center;
margin-top: 1rem;
overflow: hidden;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

.openapi-tabs__schema-container {
margin-top: 1rem;
}

.openapi-tabs__schema-item {
display: flex;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,5 @@
}

.openapi-tabs__heading {
margin-bottom: 0;
margin-bottom: 1rem;
}

0 comments on commit f17dc07

Please sign in to comment.