-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: Foldable impl blocks #47894
Changes from 11 commits
73f52d3
7cd0280
c904b1b
0885865
a3acd10
28efcfc
bc277b2
71c4da8
6442580
3c83596
bf03dd0
df1b9a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,7 @@ h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant { | |
} | ||
h3.impl, h3.method, h3.type { | ||
margin-top: 15px; | ||
padding-left: 15px; | ||
} | ||
|
||
h1, h2, h3, h4, | ||
|
@@ -508,10 +509,10 @@ a { | |
.anchor { | ||
display: none; | ||
position: absolute; | ||
left: -25px; | ||
left: -7px; | ||
} | ||
.anchor.field { | ||
left: -20px; | ||
left: -5px; | ||
} | ||
.anchor:before { | ||
content: '\2002\00a7\2002'; | ||
|
@@ -905,6 +906,10 @@ span.since { | |
.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant { | ||
display: flex; | ||
} | ||
|
||
.anchor { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There isn't supposed to have an anchor in mobile version normally. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But it appears when I click at the impl in Chromium's mobile view. It can be removed with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I approve (for the mobile version)! |
||
left: -5px; | ||
} | ||
} | ||
|
||
@media print { | ||
|
@@ -1044,6 +1049,10 @@ h4 > .important-traits { | |
z-index: -1; | ||
border-bottom: 1px solid; | ||
} | ||
|
||
.collapse-toggle { | ||
left: -17px; | ||
} | ||
} | ||
|
||
|
||
|
@@ -1189,3 +1198,9 @@ kbd { | |
z-index: 1; | ||
} | ||
} | ||
|
||
.hidden-by-impl-hider, | ||
.hidden-by-usual-hider { | ||
/* important because of conflicting rule for small screens */ | ||
display: none !important; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep the list open and allow 1-line diffs for removals and additions of classes. To avoid the first or last mentioned class being special (by not having
||
somewhere).