Skip to content

Commit bdf37b7

Browse files
authored
Rollup merge of #106217 - notriddle:notriddle/tooltip-center, r=GuillaumeGomez
rustdoc: remove unnecessary `.tooltip::after { text-align: center }` This doesn't have an effect, since these tooltip are only one line anyway.
2 parents e782314 + 9221e43 commit bdf37b7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/librustdoc/html/static/css/rustdoc.css

-1
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,6 @@ pre.rust .doccomment {
11061106
}
11071107

11081108
.example-wrap .tooltip:hover::after {
1109-
text-align: center;
11101109
padding: 5px 3px 3px 3px;
11111110
border-radius: 6px;
11121111
margin-left: 5px;

src/test/rustdoc-gui/codeblock-tooltip.goml

-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ define-function: (
3434
".docblock .example-wrap.compile_fail .tooltip::after",
3535
{
3636
"content": '"This example deliberately fails to compile"',
37-
"text-align": "center",
3837
"padding": "5px 3px 3px",
3938
"background-color": |background|,
4039
"color": |color|,
@@ -74,7 +73,6 @@ define-function: (
7473
".docblock .example-wrap.should_panic .tooltip::after",
7574
{
7675
"content": '"This example panics"',
77-
"text-align": "center",
7876
"padding": "5px 3px 3px",
7977
"background-color": |background|,
8078
"color": |color|,
@@ -114,7 +112,6 @@ define-function: (
114112
".docblock .example-wrap.ignore .tooltip::after",
115113
{
116114
"content": '"This example is not tested"',
117-
"text-align": "center",
118115
"padding": "5px 3px 3px",
119116
"background-color": |background|,
120117
"color": |color|,

0 commit comments

Comments
 (0)