about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2022-09-21 15:26:15 -0700
committerMichael Howell <michael@notriddle.com>2022-09-21 15:27:55 -0700
commit7a718f3be217a17e00de317fba6d1d60facfd613 (patch)
tree814dabc75ea05731576da3112a20eefc9e7c73a6
parentdb4b4d3becf257e7b1c051540fc7e317958d8d2d (diff)
downloadrust-7a718f3be217a17e00de317fba6d1d60facfd613.tar.gz
rust-7a718f3be217a17e00de317fba6d1d60facfd613.zip
rustdoc: use block flex for line-number CSS
`display: inline-flex` was used as part of
e961d397cab900c55f8d8c104648852e2b63664e, the original commit that added
these line numbers. Does anyone know why it was done this way?
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index e985e6c43ad..1d37c4f60d0 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -577,13 +577,9 @@ h2.location a {
 }
 
 .rustdoc .example-wrap {
-	display: inline-flex;
+	display: flex;
 	margin-bottom: 10px;
-}
-
-.example-wrap {
 	position: relative;
-	width: 100%;
 }
 
 .example-wrap > pre.line-number {