Skip to content

Commit

Permalink
Merge branch 'LuxDL:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisot authored Sep 18, 2024
2 parents 191cccb + 3b7bbfd commit 4b0146d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 26 deletions.
34 changes: 21 additions & 13 deletions docs/src/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
34 changes: 21 additions & 13 deletions template/src/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4b0146d

Please sign in to comment.