diff --git a/docs/src/.vitepress/theme/style.css b/docs/src/.vitepress/theme/style.css index b9c834a..c60a962 100644 --- a/docs/src/.vitepress/theme/style.css +++ b/docs/src/.vitepress/theme/style.css @@ -32,19 +32,27 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var } -.mono { - /* - Disable contextual alternates (kind of like ligatures but different) in monospace, - which turns `/>` to an up arrow and `|>` (the Julia pipe symbol) to an up arrow as well. - This is pretty bad for Julia folks reading even though copy+paste retains the same text. - */ - font-feature-settings: 'calt' 0; - pre { - font-family: JuliaMono-Regular; -}; -code { - font-family: JuliaMono-Regular; - }; +/* +Disable contextual alternates (kind of like ligatures but different) in monospace, +which turns `/>` to an up arrow and `|>` (the Julia pipe symbol) to an up arrow as well. +This is pretty bad for Julia folks reading even though copy+paste retains the same text. +*/ +/* Target elements with class 'mono' */ +.mono-no-substitutions { + font-family: "JuliaMono-Light", monospace; + font-feature-settings: "calt" off; +} + +/* Alternatively, you can use the following if you prefer: */ +.mono-no-substitutions-alt { + font-family: "JuliaMono-Light", monospace; + font-variant-ligatures: none; +} + +/* If you want to apply this globally to all monospace text: */ +pre, code { + font-family: "JuliaMono-Light", monospace; + font-feature-settings: "calt" off; } /* Colors */ diff --git a/template/src/.vitepress/theme/style.css b/template/src/.vitepress/theme/style.css index ad18e95..7b4c7e4 100644 --- a/template/src/.vitepress/theme/style.css +++ b/template/src/.vitepress/theme/style.css @@ -32,19 +32,27 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var } -.mono { - /* - Disable contextual alternates (kind of like ligatures but different) in monospace, - which turns `/>` to an up arrow and `|>` (the Julia pipe symbol) to an up arrow as well. - This is pretty bad for Julia folks reading even though copy+paste retains the same text. - */ - font-feature-settings: 'calt' 0; - pre { - font-family: JuliaMono-Regular; -}; -code { - font-family: JuliaMono-Regular; - }; +/* +Disable contextual alternates (kind of like ligatures but different) in monospace, +which turns `/>` to an up arrow and `|>` (the Julia pipe symbol) to an up arrow as well. +This is pretty bad for Julia folks reading even though copy+paste retains the same text. +*/ +/* Target elements with class 'mono' */ +.mono-no-substitutions { + font-family: "JuliaMono-Light", monospace; + font-feature-settings: "calt" off; +} + +/* Alternatively, you can use the following if you prefer: */ +.mono-no-substitutions-alt { + font-family: "JuliaMono-Light", monospace; + font-variant-ligatures: none; +} + +/* If you want to apply this globally to all monospace text: */ +pre, code { + font-family: "JuliaMono-Light", monospace; + font-feature-settings: "calt" off; } /* Colors */