Skip to content

Commit

Permalink
docs: fix font for sparse matrix visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
agdestein committed Nov 29, 2024
1 parent 10694ae commit e93cdc7
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions docs/src/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var

/* Layouts */

/*
/*
:root {
--vp-layout-max-width: 1440px;
} */
Expand Down Expand Up @@ -32,26 +32,29 @@ https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/var

}

/*
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.
/*
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-family: "JuliaMono-Light", monospace; */
font-family: "JuliaMono-Regular", 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-family: "JuliaMono-Light", monospace; */
font-family: "JuliaMono-Regular", monospace;
font-variant-ligatures: none;
}

/* If you want to apply this globally to all monospace text: */
pre, code {
font-family: "JuliaMono-Light", monospace;
/* font-family: "JuliaMono-Light", monospace; */
font-family: "JuliaMono-Regular", monospace;
font-feature-settings: "calt" off;
}

Expand Down Expand Up @@ -100,7 +103,7 @@ pre, code {
-45deg,
#9558B2 30%,
#389826 30%,
#CB3C33
#CB3C33
);
--vp-home-hero-image-filter: blur(40px);
}
Expand Down Expand Up @@ -135,7 +138,7 @@ pre, code {
--vp-c-gray-dark-3: hsl(220 12% 23%);
--vp-c-gray-dark-4: hsl(220 14% 17%);
--vp-c-gray-dark-5: hsl(220 16% 13%);

/* // Backgrounds */
/* --vp-c-bg: hsl(240, 2%, 11%); */
--vp-custom-block-info-bg: hsl(220 14% 17%);
Expand Down Expand Up @@ -237,7 +240,7 @@ mjx-container > svg {

@media (max-width: 960px) {
.VPDoc {
padding-left: 25px !important;
padding-left: 25px !important;
}
}

Expand Down

0 comments on commit e93cdc7

Please sign in to comment.