Skip to content

Commit

Permalink
Remove Chrome CSS custom property bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mbohal committed Jul 26, 2023
1 parent 6916361 commit f90d6e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/docs/_assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 3 additions & 7 deletions src/docs/_overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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 %}

0 comments on commit f90d6e8

Please sign in to comment.