font-family: var(--body-font-family);
line-height: var(--body-line-height);
margin: 0;
+ word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
}
a {
font-weight: normal;
}
-table {
- border-collapse: collapse;
-}
-
button {
cursor: pointer;
font-family: inherit;
border: none;
padding: 0;
}
+
+table {
+ border-collapse: collapse;
+ word-wrap: normal; /* table widths aren't computed as expected when word-wrap is enabled */
+}
color: var(--link_hover-font-color);
}
+.doc a.bare {
+ hyphens: none;
+}
+
.doc a.unresolved {
color: var(--link_unresolved-font-color);
}
.doc i.fa {
+ hyphens: none;
font-style: normal;
}
padding: 0.125em 0.25em;
}
+.doc code,
+.doc pre {
+ hyphens: none;
+}
+
.doc pre {
font-size: calc(16 / var(--rem-base) * 1rem);
line-height: 1.5;
padding: 1rem 1rem 0.75rem;
background: var(--admonition-background);
width: 100%;
+ word-wrap: anywhere;
}
.doc .admonitionblock .icon {
}
.doc b.button {
- white-space: nowrap;
+ white-space: nowrap; /* effectively ignores hyphens setting */
}
.doc b.button::before {
box-shadow: 0 1px 0 var(--kbd-border-color), 0 0 0 0.1em var(--body-background) inset;
padding: 0.25em 0.5em;
vertical-align: text-bottom;
- white-space: nowrap;
+ white-space: nowrap; /* effectively ignores hyphens setting */
}
.doc kbd,
margin-right: 0;
}
+.doc .menuseq,
+.doc .path {
+ hyphens: none;
+}
+
.doc .menuseq i.caret::before {
content: "\203a";
font-size: 1.1em;
font-weight: var(--body-font-weight-bold);
line-height: calc(1 / 1.1);
}
-
-.doc a.bare,
-.doc b.button,
-.doc code,
-.doc .path,
-.doc kbd,
-.doc .menuseq,
-.doc .icon i::after {
- hyphens: none;
-}
-
-.doc th.tableblock,
-.doc td.tableblock {
- word-break: break-word; /* overflow-wrap for table cells; gives space higher precedence than hyphen opportunity */
-}