Rollup merge of #86078 - GuillaumeGomez:type-page-font-weight, r=jsha
Type page font weight Fixes https://github.com/rust-lang/rust/issues/86069. r? ```@jsha```
This commit is contained in:
commit
c783e28905
4 changed files with 8 additions and 2 deletions
|
@ -138,7 +138,7 @@ h2, h3, h4 {
|
|||
border-bottom: 1px solid;
|
||||
}
|
||||
.impl, .method,
|
||||
.type, .associatedconstant,
|
||||
.type:not(.container-rustdoc), .associatedconstant,
|
||||
.associatedtype {
|
||||
flex-basis: 100%;
|
||||
font-weight: 600;
|
||||
|
|
|
@ -11,7 +11,8 @@ assert: (".sidebar-elems > .items > ul > li:nth-child(2)", "Structs")
|
|||
assert: (".sidebar-elems > .items > ul > li:nth-child(3)", "Enums")
|
||||
assert: (".sidebar-elems > .items > ul > li:nth-child(4)", "Traits")
|
||||
assert: (".sidebar-elems > .items > ul > li:nth-child(5)", "Functions")
|
||||
assert: (".sidebar-elems > .items > ul > li:nth-child(6)", "Keywords")
|
||||
assert: (".sidebar-elems > .items > ul > li:nth-child(6)", "Type Definitions")
|
||||
assert: (".sidebar-elems > .items > ul > li:nth-child(7)", "Keywords")
|
||||
assert: ("#structs + table td > a", "Foo")
|
||||
click: "#structs + table td > a"
|
||||
|
||||
|
|
|
@ -96,3 +96,6 @@ pub enum AnEnum {
|
|||
|
||||
#[doc(keyword = "CookieMonster")]
|
||||
pub mod keyword {}
|
||||
|
||||
/// Just some type alias.
|
||||
pub type SomeType = u32;
|
||||
|
|
2
src/test/rustdoc-gui/type-weight.rs
Normal file
2
src/test/rustdoc-gui/type-weight.rs
Normal file
|
@ -0,0 +1,2 @@
|
|||
goto: file://|DOC_PATH|/test_docs/type.SomeType.html
|
||||
assert-all: (".top-block .docblock p", {"font-weight": "400"})
|
Loading…
Add table
Add a link
Reference in a new issue