Rollup merge of #105403 - notriddle:notriddle/item-stab-css, r=GuillaumeGomez

rustdoc: simplify CSS selectors for item table `.stab`

The module-item and import-item classes are attached to the item-left. Just target that, instead.
This commit is contained in:
Matthias Krüger 2022-12-07 15:39:09 +01:00 committed by GitHub
commit c75478b246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,8 +212,7 @@ pre.rust a,
.mobile-topbar h2 a,
h1 a,
.search-results a,
.module-item .stab,
.import-item .stab,
.item-left .stab,
.result-name .primitive > i, .result-name .keyword > i {
color: var(--main-color);
}
@ -1010,8 +1009,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
0 -1px 0 black;
}
.module-item .stab,
.import-item .stab {
.item-left .stab {
border-radius: 3px;
display: inline-block;
line-height: 1.2;