Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Improve formatting of the build/skip table and big tables in general
  • Loading branch information
joerick committed May 25, 2025
commit ba13fc38e69c1f40e6dfdb7ad433e5ce90e17686
31 changes: 31 additions & 0 deletions docs/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,37 @@ h1, h2, h3, h4, h5, h6 {
padding-bottom: 0.2em;
}

/* make it so tables can overflow the content area, make the most of the content area */
.wy-nav-content-wrap {
container-type: inline-size;
}
.wy-table-responsive {
overflow-x: auto;
overflow-y: hidden;
position: relative;
left: -3.236em;
max-width: calc(100cqw);
width: fit-content;
min-width: 100%;
}
.rst-content .section .wy-table-responsive .docutils {
padding-left: 3.236em;
padding-right: 3.236em;
}
.rst-content .section .wy-table-responsive .docutils thead,
.rst-content .section .wy-table-responsive .docutils tbody {
background-color: white;
}
@media screen and (max-width: 768px) {
.wy-table-responsive {
left: -1em;
}
.rst-content .section .wy-table-responsive .docutils {
padding-left: 1em;
padding-right: 1em;
}
}

.wy-nav-content {
max-width: 900px;
}
Expand Down
17 changes: 11 additions & 6 deletions docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,23 @@ See the [cibuildwheel 2 documentation](https://cibuildwheel.pypa.io/en/2.x/) for
support a specific build, for example.

<style>
.build-id-table-marker + table {
.build-id-table-marker + .wy-table-responsive table {
font-size: 90%;
white-space: nowrap;
}
.rst-content .build-id-table-marker + table td,
.rst-content .build-id-table-marker + table th {
padding: 4px 4px;
.rst-content .build-id-table-marker + .wy-table-responsive table td,
.rst-content .build-id-table-marker + .wy-table-responsive table th {
padding: 4px 8px;
white-space: nowrap;
background-color: white;
}
.build-id-table-marker + table td:not(:first-child) {
.build-id-table-marker + .wy-table-responsive table td:not(:first-child) {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
font-size: 85%;
}
.build-id-table-marker + .wy-table-responsive table td:first-child,
.build-id-table-marker + .wy-table-responsive table th:first-child {
font-weight: bold;
}
dt code {
font-size: 100%;
background-color: rgba(41, 128, 185, 0.1);
Expand Down