Skip to content

Commit c783e28

Browse files
authored
Rollup merge of #86078 - GuillaumeGomez:type-page-font-weight, r=jsha
Type page font weight Fixes #86069. r? ```@jsha```
2 parents b7d05f8 + 4597362 commit c783e28

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

Diff for: src/librustdoc/html/static/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ h2, h3, h4 {
138138
border-bottom: 1px solid;
139139
}
140140
.impl, .method,
141-
.type, .associatedconstant,
141+
.type:not(.container-rustdoc), .associatedconstant,
142142
.associatedtype {
143143
flex-basis: 100%;
144144
font-weight: 600;

Diff for: src/test/rustdoc-gui/sidebar.goml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ assert: (".sidebar-elems > .items > ul > li:nth-child(2)", "Structs")
1111
assert: (".sidebar-elems > .items > ul > li:nth-child(3)", "Enums")
1212
assert: (".sidebar-elems > .items > ul > li:nth-child(4)", "Traits")
1313
assert: (".sidebar-elems > .items > ul > li:nth-child(5)", "Functions")
14-
assert: (".sidebar-elems > .items > ul > li:nth-child(6)", "Keywords")
14+
assert: (".sidebar-elems > .items > ul > li:nth-child(6)", "Type Definitions")
15+
assert: (".sidebar-elems > .items > ul > li:nth-child(7)", "Keywords")
1516
assert: ("#structs + table td > a", "Foo")
1617
click: "#structs + table td > a"
1718

Diff for: src/test/rustdoc-gui/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,6 @@ pub enum AnEnum {
9696

9797
#[doc(keyword = "CookieMonster")]
9898
pub mod keyword {}
99+
100+
/// Just some type alias.
101+
pub type SomeType = u32;

Diff for: src/test/rustdoc-gui/type-weight.rs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
goto: file://|DOC_PATH|/test_docs/type.SomeType.html
2+
assert-all: (".top-block .docblock p", {"font-weight": "400"})

0 commit comments

Comments
 (0)