Skip to content

Commit 9221e43

Browse files
committed
rustdoc: remove unnecessary .tooltip::after { text-align: center }
This doesn't have an effect, since these tooltip are only one line anyway.
1 parent 6a20f7d commit 9221e43

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
@@ -1109,7 +1109,6 @@ pre.rust .doccomment {
11091109
}
11101110

11111111
.example-wrap .tooltip:hover::after {
1112-
text-align: center;
11131112
padding: 5px 3px 3px 3px;
11141113
border-radius: 6px;
11151114
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)