Skip to content

Commit c75478b

Browse files
authored
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.
2 parents b23419b + 75aef70 commit c75478b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/librustdoc/html/static/css/rustdoc.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ pre.rust a,
212212
.mobile-topbar h2 a,
213213
h1 a,
214214
.search-results a,
215-
.module-item .stab,
216-
.import-item .stab,
215+
.item-left .stab,
217216
.result-name .primitive > i, .result-name .keyword > i {
218217
color: var(--main-color);
219218
}
@@ -1010,8 +1009,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
10101009
0 -1px 0 black;
10111010
}
10121011

1013-
.module-item .stab,
1014-
.import-item .stab {
1012+
.item-left .stab {
10151013
border-radius: 3px;
10161014
display: inline-block;
10171015
line-height: 1.2;

0 commit comments

Comments
 (0)