mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 03:22:33 -06:00
Add CSS overflow/wrapping on KaTeX, tables, and code sections
This commit is contained in:
parent
b6744efbf2
commit
6e956ef471
1 changed files with 15 additions and 0 deletions
|
@ -111,6 +111,21 @@ body:has(#menu-controller:checked) {
|
||||||
@apply absolute opacity-5 -z-10;
|
@apply absolute opacity-5 -z-10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fix long KaTeX equations on mobile (see https://katex.org/docs/issues.html#css-customization) */
|
||||||
|
.katex-display { overflow: auto hidden }
|
||||||
|
|
||||||
|
/* Fix long tables breaking out of article on mobile */
|
||||||
|
table {
|
||||||
|
display: block;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fix long inline code sections breaking out of article on mobile */
|
||||||
|
code {
|
||||||
|
word-wrap: break-word; /* All browsers since IE 5.5+ */
|
||||||
|
overflow-wrap: break-word; /* Renamed property in CSS3 draft spec */
|
||||||
|
}
|
||||||
|
|
||||||
/* -- Chroma Highlight -- */
|
/* -- Chroma Highlight -- */
|
||||||
/* Background */
|
/* Background */
|
||||||
.prose .chroma {
|
.prose .chroma {
|
||||||
|
|
Loading…
Reference in a new issue