Fix overflow problems caused by long words (#6220)

This commit is contained in:
Yuwen Hu 2022-10-24 10:07:25 +08:00 committed by GitHub
parent 70468a96c6
commit 9576d97187

View file

@ -10,6 +10,18 @@ html[data-theme="light"] {
--pst-color-info-low-opacity: rgba(1, 113, 195, 0.25);
}
/* force middle article contents to break an entire word
that cannot be put inside one line (e.g. a long url) */
.bd-article-container {
overflow-wrap: break-word;
}
/* make inline code block break word
if an entire word cannot be put inside one line,
or break at normal line break places such as / */
code span.pre {
white-space: normal;
}
/* align items in the left part of header to the ground*/
.bd-header #navbar-start {
@ -55,9 +67,3 @@ html[data-theme="light"] {
.bigdl-quicklinks-section-title {
color: var(--pst-color-primary);
}
/* force long parameter definition (which occupy a whole line)
to break in api documents for class/method */
.sig-object{
overflow-wrap: break-word;
}