Skip to content

Commit

Permalink
doc: give full width to NIC overview page
Browse files Browse the repository at this point in the history
The wide tables in the NIC overview exceed the normal page width
because of the large number of drivers.

A CSS trick is added to allow displaying the tables in the full width
of the browser window.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
  • Loading branch information
tmonjalo committed Jul 31, 2024
1 parent c946829 commit 0d907b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/guides/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@

/* Override readthedocs theme */

/* Set full width for all responsive tables of a page.
* Usage: insert the following line in the doc.
* .. rst-class:: widepage
*/
@media screen and (min-width: 1100px) {
.wy-nav-content-wrap:has(.widepage) {
background: #fcfcfc !important;
}
.wy-nav-content:has(.widepage) .wy-table-responsive {
overflow: visible !important;
}
}

/* Spacing before a list item must be bigger than spacing inside the item.
* Complex list items start with a p.first element. */
.section li > .first {
Expand Down
2 changes: 2 additions & 0 deletions doc/guides/nics/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Most of these differences are summarized below.

More details about features can be found in :doc:`features`.

.. rst-class:: widepage

.. _table_net_pmd_features:

.. include:: overview_table.txt
Expand Down

0 comments on commit 0d907b1

Please sign in to comment.