Skip to content

Commit 0daf8ac

Browse files
Replace h3 for notable traits with div
1 parent 14fe83f commit 0daf8ac

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

src/librustdoc/html/static/rustdoc.css

+8-12
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ h2 {
117117
h3 {
118118
font-size: 1.3em;
119119
}
120-
h1, h2, h3:not(.notable), h4 {
120+
h1, h2, h3, h4 {
121121
font-weight: 500;
122122
margin: 20px 0 15px 0;
123123
padding-bottom: 6px;
@@ -1129,6 +1129,13 @@ a.test-arrow:hover{
11291129
margin: 0;
11301130
}
11311131

1132+
.notable-traits .notable {
1133+
margin: 0;
1134+
margin-bottom: 13px;
1135+
font-size: 19px;
1136+
font-weight: 600;
1137+
}
1138+
11321139
.notable-traits .docblock code.content{
11331140
margin: 0;
11341141
padding: 0;
@@ -1190,9 +1197,6 @@ pre.rust {
11901197
cursor: pointer;
11911198
z-index: 2;
11921199
margin-left: 5px;
1193-
position: absolute;
1194-
left: -44px;
1195-
top: 2px;
11961200
}
11971201

11981202
#all-types {
@@ -1308,14 +1312,6 @@ pre.rust {
13081312
border-top: 1px solid;
13091313
}
13101314

1311-
1312-
1313-
h3.notable {
1314-
margin: 0;
1315-
margin-bottom: 13px;
1316-
font-size: 19px;
1317-
}
1318-
13191315
kbd {
13201316
display: inline-block;
13211317
padding: 3px 5px;

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body {
1010
color: #c5c5c5;
1111
}
1212

13-
h1, h2, h3:not(.notable), h4 {
13+
h1, h2, h3, h4 {
1414
color: white;
1515
}
1616
h1.fqn {
@@ -406,6 +406,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
406406
border-color: #5c6773;
407407
}
408408

409+
.notable-traits-tooltiptext .notable {
410+
border-bottom-color: #5c6773;
411+
}
412+
409413
#titles > button.selected {
410414
background-color: #141920 !important;
411415
border-bottom: 1px solid #ffb44c !important;

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ body {
33
color: #ddd;
44
}
55

6-
h1, h2, h3:not(.notable), h4 {
6+
h1, h2, h3, h4 {
77
color: #ddd;
88
}
99
h1.fqn {
@@ -354,6 +354,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
354354
border-color: #777;
355355
}
356356

357+
.notable-traits-tooltiptext .notable {
358+
border-bottom-color: #d2d2d2;
359+
}
360+
357361
#titles > button:not(.selected) {
358362
background-color: #252525;
359363
border-top-color: #252525;

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body {
55
color: black;
66
}
77

8-
h1, h2, h3:not(.notable), h4 {
8+
h1, h2, h3, h4 {
99
color: black;
1010
}
1111
h1.fqn {
@@ -346,6 +346,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
346346
border-color: #999;
347347
}
348348

349+
.notable-traits-tooltiptext .notable {
350+
border-bottom-color: #DDDDDD;
351+
}
352+
349353
#titles > button:not(.selected) {
350354
background-color: #e6e6e6;
351355
border-top-color: #e6e6e6;

0 commit comments

Comments
 (0)