Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: remove unused CSS selectors for .table-display #101176

Merged
merged 1 commit into from
Aug 30, 2022
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
37 changes: 2 additions & 35 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ pre, .rustdoc.source .example-wrap {
top: inherit;
}

.content table:not(.table-display) {
.content table {
border-spacing: 0 5px;
}
.content td { vertical-align: top; }
Expand Down Expand Up @@ -763,15 +763,9 @@ pre, .rustdoc.source .example-wrap {
margin-left: 20px;
margin-top: -34px;
}
.content .docblock >.impl-items .table-display {
margin: 0;
}
.content .docblock >.impl-items table td {
padding: 0;
}
.content .docblock > .impl-items .table-display {
border: none;
}

.item-info {
display: block;
Expand Down Expand Up @@ -1563,33 +1557,6 @@ kbd {
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 {
padding-left: 10px;
}
Expand Down Expand Up @@ -2081,7 +2048,7 @@ in storage.js plus the media query with (min-width: 701px)
height: 73px;
}

#main-content > table:not(.table-display) td {
#main-content > table td {
word-break: break-word;
width: 50%;
}
Expand Down