Skip to content

Commit 55f03bd

Browse files
authored
SYN-78: Preserve hosted docs styling (#537)
1 parent 03c1ba8 commit 55f03bd

2 files changed

Lines changed: 47 additions & 38 deletions

File tree

actions/redoc/template.hbs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,13 @@
773773
.react-tabs__tab-panel > div > pre > .token.string, .react-tabs__tab-panel > div > pre > .token.builtin{color:#416581}
774774
.react-tabs__tab-panel > div > pre > .token.operator,
775775
.react-tabs__tab-panel > div > pre > .token.variable{color:#324350}
776-
pre > code[class*='language-'],
777-
pre > code[class*='language-'] * { color:#000000 !important;text-shadow:none !important }
776+
{{!-- Match Redoc's top-level tag heading without affecting operation headings. --}}
777+
div[id^='tag/']:not([id*='/operation/']) > div > div > h2{font-size:1.85714em;line-height:1.6em;margin:0.67em 0;}
778+
.redoc-json .token.property.string,
779+
.redoc-json .token.string{color:#416581;}
780+
.redoc-markdown code[class*='language-']{color:#000000;text-shadow:none;}
781+
.redoc-markdown code[class*='language-'] .token.string{color:#416581;}
782+
.redoc-markdown code[class*='language-'] .token.parameter.variable{color:#000000;}
778783
div.react-tabs__tab-panel.react-tabs__tab-panel--selected{border-radius:10px}
779784
780785
{{!-- sidebars fontweight --}}

0 commit comments

Comments
 (0)