katex CSS fix
- prevent katex formula overflowing on smaller displays
This commit is contained in:
parent
903681b424
commit
70b226a082
1 changed files with 9 additions and 0 deletions
|
@ -193,6 +193,14 @@ const markCSS = css`
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const katexCSS = css`
|
||||||
|
// prevent overflowing on small displays
|
||||||
|
.katex-html {
|
||||||
|
overflow-x: scroll;
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
// Theme that will be used throughout the website
|
// Theme that will be used throughout the website
|
||||||
// wrapping it using css because prettier extension does not work well with styled-components
|
// wrapping it using css because prettier extension does not work well with styled-components
|
||||||
// https://github.com/styled-components/vscode-styled-components/issues/175
|
// https://github.com/styled-components/vscode-styled-components/issues/175
|
||||||
|
@ -204,6 +212,7 @@ const globalStyle = css`
|
||||||
${blockquoteCSS}
|
${blockquoteCSS}
|
||||||
${headerCSS}
|
${headerCSS}
|
||||||
${markCSS}
|
${markCSS}
|
||||||
|
${katexCSS}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue