Skip to content

Commit 75aef70

Browse files
committed
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.
1 parent b28d30e commit 75aef70

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: 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
font-size: 0.875rem;

0 commit comments

Comments
 (0)