about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/rustdoc.css
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-07-03 13:26:08 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-07-03 13:26:37 +0200
commit75cc2b8e8ceadca1672594a7e2056eade5da951d (patch)
treedf4ae7704d481a394f6d104e4aac12513d751f44 /src/librustdoc/html/static/css/rustdoc.css
parent32d81eccd64513bacef9dfa1574543ada6b45d85 (diff)
downloadrust-75cc2b8e8ceadca1672594a7e2056eade5da951d.tar.gz
rust-75cc2b8e8ceadca1672594a7e2056eade5da951d.zip
Fix display of long inline cfg labels
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index ccfd4cc5b87..b7f455259ef 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -971,6 +971,8 @@ so that we can apply CSS-filters to change the arrow color in themes */
 	display: flex;
 	padding: 3px;
 	margin-bottom: 5px;
+	align-items: center;
+	vertical-align: text-bottom;
 }
 .item-name .stab {
 	margin-left: 0.3125em;
@@ -982,11 +984,9 @@ so that we can apply CSS-filters to change the arrow color in themes */
 	color: var(--main-color);
 	background-color: var(--stab-background-color);
 	width: fit-content;
-	align-items: center;
 	white-space: pre-wrap;
 	border-radius: 3px;
-	display: inline-flex;
-	vertical-align: text-bottom;
+	display: inline;
 }
 
 .stab.portability > code {