Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions resources/static/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,24 @@ nav.toc {
<pre>, which scrolls instead) */
}

/* In a table cell, overflow-wrap: anywhere lets the browser squeeze a code
column until identifiers break mid-word. Keep each code span on one line
there; the table scrolls (overflow-x: auto) when it gets too wide. */
.doc-content td code,
.doc-content th code {
overflow-wrap: normal;
white-space: nowrap;
}

/* On a phone the unbreakable code columns can take the whole width, which
leaves a prose column one word wide. A minimum cell width keeps the prose
readable, and the table scrolls sideways instead. */
@media (max-width: 760px) {
.doc-content table:has(td code) td {
min-width: 14rem;
}
}

/* ---- Code blocks ---- */

pre {
Expand Down
Loading