Skip to content

Commit 66e3a46

Browse files
chore: simplify CSS rules and use more maintainable selectors
Signed-off-by: Jonathan Norris <[email protected]>
1 parent 0e8a26b commit 66e3a46

File tree

1 file changed

+5
-34
lines changed

1 file changed

+5
-34
lines changed

src/css/custom.css

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -343,47 +343,18 @@ details[open] .mcp-install-summary strong::before {
343343
max-width: none;
344344
}
345345

346-
.redocusaurus {
346+
/* Expand parent containers for full width */
347+
article:has(.redoc-container) {
347348
max-width: none !important;
348-
width: 100% !important;
349349
}
350350

351-
.redocusaurus .api-content {
352-
max-width: none !important;
353-
}
354-
355-
.redoc-wrap {
356-
max-width: none !important;
357-
}
358-
359-
/* Expand main container for Redoc pages */
360-
article:has(.redocusaurus) {
361-
max-width: none !important;
362-
}
363-
364-
.docMainContainer_TBSr:has(.redocusaurus) {
365-
max-width: 100% !important;
366-
}
367-
368-
.container:has(.redocusaurus) {
369-
max-width: 100% !important;
370-
}
371-
372-
.docItemContainer_Djhp:has(.redocusaurus) {
373-
max-width: none !important;
374-
width: 100%;
375-
}
376-
377-
.docItemCol_VOVn:has(.redocusaurus) {
351+
.main-wrapper:has(.redoc-container) [class*="docItemCol"] {
378352
max-width: none !important;
379353
flex-basis: 100% !important;
380354
}
381355

382-
/* Hide Redocly branding footer */
383-
.redocusaurus a[href*="redocly.com"] {
384-
display: none !important;
385-
}
386-
356+
/* Hide Redocly branding */
357+
.redocusaurus a[href*="redocly.com"],
387358
.redocusaurus [class*="powered-by"] {
388359
display: none !important;
389360
}

0 commit comments

Comments
 (0)