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: use CSS margin/padding shorthand when all are being set #103737

Merged
merged 1 commit into from
Oct 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
13 changes: 3 additions & 10 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,7 @@ ul.block, .block li {
.sidebar h2 {
overflow-wrap: anywhere;
padding: 0;
margin: 0;
margin-top: 0.7rem;
margin-bottom: 0.7rem;
margin: 0.7rem 0;
}

.sidebar h3 {
Expand Down Expand Up @@ -805,10 +803,8 @@ table,
}
#crate-search {
min-width: 115px;
padding: 0;
/* keep these two in sync with "@-moz-document url-prefix()" below */
padding-left: 4px;
padding-right: 23px;
padding: 0 23px 0 4px;
/* prevents the <select> from overflowing the containing div in case it's shrunk */
max-width: 100%;
/* contents can overflow because of max-width limit, then show ellipsis */
Expand Down Expand Up @@ -1724,7 +1720,6 @@ in storage.js
/* Hide the sidebar offscreen while not in use. Doing this instead of display: none means
the sidebar stays visible for screen readers, which is useful for navigation. */
left: -1000px;
margin-left: 0;
margin: 0;
padding: 0;
z-index: 11;
Expand Down Expand Up @@ -1777,9 +1772,7 @@ in storage.js
.mobile-topbar .logo-container > img {
max-width: 35px;
max-height: 35px;
margin-left: 20px;
margin-top: 5px;
margin-bottom: 5px;
margin: 5px 0 5px 20px;
}

.mobile-topbar {
Expand Down