mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-08 22:06:22 +00:00
Rollup merge of #101176 - notriddle:notriddle/rustdoc-table-display, r=jsha
rustdoc: remove unused CSS selectors for `.table-display`
This class was added to support the function signature [src] lockup. That lockup was changed in 34bd2b845b
to use flexbox instead, leaving these selectors unused.
Continuation of #101046
This commit is contained in:
commit
c467370b9a
@ -710,7 +710,7 @@ pre, .rustdoc.source .example-wrap {
|
|||||||
top: inherit;
|
top: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content table:not(.table-display) {
|
.content table {
|
||||||
border-spacing: 0 5px;
|
border-spacing: 0 5px;
|
||||||
}
|
}
|
||||||
.content td { vertical-align: top; }
|
.content td { vertical-align: top; }
|
||||||
@ -763,15 +763,9 @@ pre, .rustdoc.source .example-wrap {
|
|||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
margin-top: -34px;
|
margin-top: -34px;
|
||||||
}
|
}
|
||||||
.content .docblock >.impl-items .table-display {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.content .docblock >.impl-items table td {
|
.content .docblock >.impl-items table td {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.content .docblock > .impl-items .table-display {
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.item-info {
|
.item-info {
|
||||||
display: block;
|
display: block;
|
||||||
@ -1563,33 +1557,6 @@ kbd {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-display {
|
|
||||||
width: 100%;
|
|
||||||
border: 0;
|
|
||||||
border-collapse: collapse;
|
|
||||||
border-spacing: 0;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-display tr td:first-child {
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-display tr td:last-child {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.table-display .out-of-band {
|
|
||||||
position: relative;
|
|
||||||
font-size: 1.125rem;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table-display td:hover .anchor {
|
|
||||||
display: block;
|
|
||||||
top: 2px;
|
|
||||||
left: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#main-content > ul {
|
#main-content > ul {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
@ -2081,7 +2048,7 @@ in storage.js plus the media query with (min-width: 701px)
|
|||||||
height: 73px;
|
height: 73px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-content > table:not(.table-display) td {
|
#main-content > table td {
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user