Skip to content

Commit e23b035

Browse files
committed
Reduce visual weight of attributes.
1 parent 392ba2b commit e23b035

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

src/librustdoc/html/render/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@ fn render_assoc_item(
989989

990990
const ALLOWED_ATTRIBUTES: &[Symbol] = &[
991991
sym::export_name,
992-
sym::lang,
993992
sym::link_section,
994993
sym::must_use,
995994
sym::no_mangle,

src/librustdoc/html/static/rustdoc.css

+4
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,10 @@ a.test-arrow:hover{
967967
color: inherit;
968968
}
969969

970+
.code-attribute {
971+
font-weight: 300;
972+
}
973+
970974
.collapse-toggle {
971975
font-weight: 300;
972976
position: absolute;

src/librustdoc/html/static/themes/ayu.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ a.test-arrow:hover {
329329
color: #c5c5c5;
330330
}
331331

332-
.toggle-label {
332+
.toggle-label,
333+
.code-attribute {
333334
color: #999;
334335
}
335336

src/librustdoc/html/static/themes/dark.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ a.test-arrow:hover{
274274
background-color: #4e8bca;
275275
}
276276

277-
.toggle-label {
277+
.toggle-label,
278+
.code-attribute {
278279
color: #999;
279280
}
280281

src/librustdoc/html/static/themes/light.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ a.test-arrow:hover{
267267
background-color: #4e8bca;
268268
}
269269

270-
.toggle-label {
270+
.toggle-label,
271+
.code-attribute {
271272
color: #999;
272273
}
273274

0 commit comments

Comments
 (0)