-
Notifications
You must be signed in to change notification settings - Fork 976
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'current' into dbeatty/global-configs-precedence-order
- Loading branch information
Showing
5 changed files
with
154 additions
and
8 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[data-theme="dark"] { | ||
--stoplight-pre-background: #ebedf0; | ||
--stoplight-pre-color: #333333; | ||
} | ||
|
||
[data-theme="light"] { | ||
--stoplight-pre-background: var(--ifm-pre-background); | ||
--stoplight-pre-color: var(--ifm-pre-color); | ||
} | ||
|
||
.sl-font-ui, .sl-font-prose, .sl-prose, .sl-button { | ||
/* Ensure we use the same font in stoplight docs as in the rest of the docs site */ | ||
font-family: var(--ifm-font-family-base) !important; | ||
} | ||
|
||
.sl-text-base { | ||
/* Bump font size to make up for slightly smaller font family (above) */ | ||
font-size: 13px !important; | ||
} | ||
|
||
.sl-font-ui { | ||
/* Bump font size to make up for slightly smaller font family (above) */ | ||
font-size: 14px !important; | ||
|
||
& a { | ||
/* Ensure link colors aren't overriden by docusaurus css */ | ||
color: var(--color-text) !important; | ||
} | ||
} | ||
|
||
/* Ensure codeblocks are legible when using darkmode */ | ||
.sl-panel__content pre { | ||
background-color: var(--stoplight-pre-background) !important; | ||
|
||
& .plain, .sl-code-highlight__ln { | ||
color: var(--stoplight-pre-color) !important; | ||
} | ||
} |