mirror of https://github.com/jpanther/congo.git
🔀 Merge pull request #753 from ragibson/fix-wide-elements-breaking-layout
🐛 Add CSS overflow/wrapping on KaTeX, tables, and code sections
pull/738/merge
commit
928aa0ed51
|
@ -1237,6 +1237,28 @@ body:has(#menu-controller:checked) {
|
||||||
opacity: 0.05;
|
opacity: 0.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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 */
|
||||||
|
|
|
@ -102,6 +102,21 @@ body:has(#menu-controller:checked) {
|
||||||
@apply absolute -z-10 opacity-5;
|
@apply absolute -z-10 opacity-5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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 */
|
||||||
.chroma {
|
.chroma {
|
||||||
|
|
Loading…
Reference in New Issue