about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-23 08:12:39 +0200
committerGitHub <noreply@github.com>2023-10-23 08:12:39 +0200
commite86f9b6fceda43cecd839e288f40622eadd9e639 (patch)
tree41592ebfdd17ffadbfa12f5e2677a03c20ab9900
parent62fae2305e5f3a959bd6ad6c20608c118e93648a (diff)
parentc564f81bea9c7d67eddfc06d2383e6fef2671183 (diff)
downloadrust-e86f9b6fceda43cecd839e288f40622eadd9e639.tar.gz
rust-e86f9b6fceda43cecd839e288f40622eadd9e639.zip
Rollup merge of #105666 - notriddle:notriddle/stab-baseline, r=GuillaumeGomez
rustdoc: align stability badge to baseline instead of bottom

| desc | img |
|------|-----|
| before | ![image](https://user-images.githubusercontent.com/1593513/207412598-3a6468ca-a169-4810-a689-4797688385df.png) |
| | |
| after | ![image](https://user-images.githubusercontent.com/1593513/207412720-b120269a-48a3-40e9-a9b0-6769bb05e104.png) |

Preview: http://notriddle.com/notriddle-rustdoc-demos/stab-baseline/test_dingus/index.html

Based on comment from https://github.com/rust-lang/rust/pull/105509#discussion_r1044816673

r? ``@joshtriplett``
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index e2b4cc50dd5..9efdcd60117 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1107,6 +1107,7 @@ so that we can apply CSS-filters to change the arrow color in themes */
 	white-space: pre-wrap;
 	border-radius: 3px;
 	display: inline;
+	vertical-align: baseline;
 }
 
 .stab.portability > code {