-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Chrome CSS custom property bug workaround
- Loading branch information
Showing
2 changed files
with
4 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,7 @@ | |
:root { | ||
/* Visual configuration of the `<docoff-react-preview>` and `<docoff-react-base>` code */ | ||
/* The Prism theme CSS file, for options see: https://unpkg.com/browse/prismjs/themes/ */ | ||
/* We can not list a patch version because of a Chrome bug */ | ||
/* @see https://bugs.chromium.org/p/chromium/issues/detail?id=661854 */ | ||
--docoff-code-prism-css: https://unpkg.com/[email protected]/themes/prism-twilight.min.css; | ||
--docoff-code-prism-css: https://unpkg.com/[email protected]/themes/prism-twilight.min.css; | ||
--docoff-code-font-size: 1rem; | ||
--docoff-code-line-height: 1.5; | ||
--docoff-code-font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace; | ||
|
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 |
---|---|---|
|
@@ -5,9 +5,7 @@ | |
<link rel="stylesheet" type="text/css" href="/docs/_assets/generated/cssCustomProperties.css"> | ||
|
||
<!-- We load Prism by hand to match style used by Docoff --> | ||
<!-- We can not list a patch version because of a Chrome bug when passing the striong vis CSS Custom Properties--> | ||
<!-- @see https://bugs.chromium.org/p/chromium/issues/detail?id=661854 --> | ||
<link href="https://unpkg.com/[email protected]/themes/prism-twilight.min.css" rel="stylesheet" /> | ||
<link href="https://unpkg.com/[email protected]/themes/prism-twilight.min.css" rel="stylesheet" /> | ||
{% endblock %} | ||
|
||
{% block scripts %} | ||
|
@@ -27,8 +25,6 @@ | |
<script crossorigin src="https://unpkg.com/@react-ui-org/[email protected]/public/generated/bundle.js"></script> | ||
|
||
<!-- Then we load non-Docoff code highlighiting --> | ||
<!-- We can not list a patch version because of a Chrome bug when passing the striong vis CSS Custom Properties--> | ||
<!-- @see https://bugs.chromium.org/p/chromium/issues/detail?id=661854 --> | ||
<script src="https://unpkg.com/[email protected]/components/prism-core.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/components/prism-core.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script> | ||
{% endblock %} |