-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes inline scripts and inline styles in botocore documentation si…
…te to make it compatible with the newly added security headers (#3336) * This change removes the use of inline scripts and styles in the Botocore documentation site to make it compatible with the newly implemented security headers.
- Loading branch information
Showing
8 changed files
with
308 additions
and
114 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/*This file replaces the style defined in the "_head_css_variables.html" | ||
partial from furo==2022.12.7*/ | ||
|
||
body { | ||
--color-code-background: #f8f8f8; | ||
--color-code-foreground: black; | ||
} | ||
|
||
/* Dark theme styles */ | ||
@media not print { | ||
body[data-theme="dark"] { | ||
--color-code-background: #272822; | ||
--color-code-foreground: #f8f8f2; | ||
} | ||
|
||
/* For users who prefer dark color scheme */ | ||
@media (prefers-color-scheme: dark) { | ||
body:not([data-theme="light"]) { | ||
--color-code-background: #272822; | ||
--color-code-foreground: #f8f8f2; | ||
} | ||
} | ||
} |
Oops, something went wrong.