Skip to content

Commit 6dc38bb

Browse files
committed
fix: reset Infima pre styles on Swagger UI version badges to keep them visible in light mode
Signed-off-by: Nilushan Costa <nilushan@wso2.com>
1 parent a2b7369 commit 6dc38bb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ html[data-theme='dark'] {
1414
background: unset !important;
1515
}
1616

17+
/* Reset Docusaurus/Infima `pre` styles on Swagger UI version/OAS badges
18+
so the badge background and white text remain visible in light mode. */
19+
.swagger-ui .info .title small pre {
20+
color: #fff !important;
21+
background-color: transparent !important;
22+
padding: 0 !important;
23+
margin: 0 !important;
24+
font-family: sans-serif !important;
25+
font-size: inherit !important;
26+
overflow: visible !important;
27+
}
28+
1729
/* You can override the default Infima variables here. */
1830
:root {
1931
--ifm-color-primary: #2B8CF7;

0 commit comments

Comments
 (0)