diff options
| author | Stefan Schindler <dns2utf8@estada.ch> | 2021-09-12 01:18:39 +0200 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-10-03 08:20:08 -0400 |
| commit | e599e2df49adae96d482a3a3a0364e7668abd14e (patch) | |
| tree | cc89433ae29f24716fbfd5d69ada521c437f3cca /src/librustdoc/html/static/css/rustdoc.css | |
| parent | 677fb6b1dba6666ded51c42638acbdfe877244b2 (diff) | |
| download | rust-e599e2df49adae96d482a3a3a0364e7668abd14e.tar.gz rust-e599e2df49adae96d482a3a3a0364e7668abd14e.zip | |
Move from grid layout to table based layout because of browser limits that overlay row entries after a UA specific amount of rows
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/css/rustdoc.css | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index eb7cc9309f4..341d9b80fd8 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -773,22 +773,18 @@ h2.small-section-header > .anchor { .block a.current.crate { font-weight: 500; } .item-table { - display: grid; - column-gap: 1.2rem; - row-gap: 0.0rem; - grid-template-columns: auto 1fr; + display: table-row; /* align content left */ justify-items: start; } - +.item-row { + display: table-row; +} .item-left, .item-right { - display: block; + display: table-cell; } .item-left { - grid-column: 1; -} -.item-right { - grid-column: 2; + padding-right: 1.2rem; } .search-container { @@ -1891,6 +1887,9 @@ details.undocumented[open] > summary::before { /* Display an alternating layout on tablets and phones */ .item-table { + display: block; + } + .item-row { display: flex; flex-flow: column wrap; } |
