Rollup merge of #83393 - GuillaumeGomez:codeblock-tooltip-position, r=Nemo157
Codeblock tooltip position The codeblocks tooltips were misplaced. Normally, there is no top margin applied to a tooltip unless the codeblock is the first element of the doc block. The CSS rule was too vague though, applying it to all tooltips where the codeblock was the first child of its parent. Which can be easily seen with lists: Before:  After:  r? ``@Nemo157``
This commit is contained in:
@@ -1353,7 +1353,7 @@ h4 > .notable-traits {
|
||||
to prevent an overlay between the "collapse toggle" and the information tooltip.
|
||||
However, it's not needed with smaller screen width because the doc/code block is always put
|
||||
"one line" below. */
|
||||
.information:first-child > .tooltip {
|
||||
.docblock > .information:first-child > .tooltip {
|
||||
margin-top: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user