Skip to content

Commit

Permalink
Replace h3 for notable traits with div
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 2, 2021
1 parent 14fe83f commit 0daf8ac
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
20 changes: 8 additions & 12 deletions src/librustdoc/html/static/rustdoc.css
Expand Up @@ -117,7 +117,7 @@ h2 {
h3 {
font-size: 1.3em;
}
h1, h2, h3:not(.notable), h4 {
h1, h2, h3, h4 {
font-weight: 500;
margin: 20px 0 15px 0;
padding-bottom: 6px;
Expand Down Expand Up @@ -1129,6 +1129,13 @@ a.test-arrow:hover{
margin: 0;
}

.notable-traits .notable {
margin: 0;
margin-bottom: 13px;
font-size: 19px;
font-weight: 600;
}

.notable-traits .docblock code.content{
margin: 0;
padding: 0;
Expand Down Expand Up @@ -1190,9 +1197,6 @@ pre.rust {
cursor: pointer;
z-index: 2;
margin-left: 5px;
position: absolute;
left: -44px;
top: 2px;
}

#all-types {
Expand Down Expand Up @@ -1308,14 +1312,6 @@ pre.rust {
border-top: 1px solid;
}



h3.notable {
margin: 0;
margin-bottom: 13px;
font-size: 19px;
}

kbd {
display: inline-block;
padding: 3px 5px;
Expand Down
6 changes: 5 additions & 1 deletion src/librustdoc/html/static/themes/ayu.css
Expand Up @@ -10,7 +10,7 @@ body {
color: #c5c5c5;
}

h1, h2, h3:not(.notable), h4 {
h1, h2, h3, h4 {
color: white;
}
h1.fqn {
Expand Down Expand Up @@ -406,6 +406,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
border-color: #5c6773;
}

.notable-traits-tooltiptext .notable {
border-bottom-color: #5c6773;
}

#titles > button.selected {
background-color: #141920 !important;
border-bottom: 1px solid #ffb44c !important;
Expand Down
6 changes: 5 additions & 1 deletion src/librustdoc/html/static/themes/dark.css
Expand Up @@ -3,7 +3,7 @@ body {
color: #ddd;
}

h1, h2, h3:not(.notable), h4 {
h1, h2, h3, h4 {
color: #ddd;
}
h1.fqn {
Expand Down Expand Up @@ -354,6 +354,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
border-color: #777;
}

.notable-traits-tooltiptext .notable {
border-bottom-color: #d2d2d2;
}

#titles > button:not(.selected) {
background-color: #252525;
border-top-color: #252525;
Expand Down
6 changes: 5 additions & 1 deletion src/librustdoc/html/static/themes/light.css
Expand Up @@ -5,7 +5,7 @@ body {
color: black;
}

h1, h2, h3:not(.notable), h4 {
h1, h2, h3, h4 {
color: black;
}
h1.fqn {
Expand Down Expand Up @@ -346,6 +346,10 @@ pre.ignore:hover, .information:hover + pre.ignore {
border-color: #999;
}

.notable-traits-tooltiptext .notable {
border-bottom-color: #DDDDDD;
}

#titles > button:not(.selected) {
background-color: #e6e6e6;
border-top-color: #e6e6e6;
Expand Down

0 comments on commit 0daf8ac

Please sign in to comment.