From 8fbb63e77dca9a469be0e4a7b43f0bfe88e916b7 Mon Sep 17 00:00:00 2001 From: xonx <119700621+xonx4l@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:30:13 +0530 Subject: [PATCH 1/5] Update item_union.html --- src/librustdoc/html/templates/item_union.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/templates/item_union.html b/src/librustdoc/html/templates/item_union.html index b1c1d5a63a03c..537bce7a19d18 100644 --- a/src/librustdoc/html/templates/item_union.html +++ b/src/librustdoc/html/templates/item_union.html @@ -10,7 +10,7 @@

{# #} {% for (field, ty) in self.fields_iter() %} {% let name = field.name.expect("union field name") %} {# #} + class="struct-filed {{ ItemType::StructField +}} section-header"> {# #} § {# #} {{ name }}: {{+ self.print_ty(ty)|safe }} {# #} From a91d176a74f6b32a8bf34ca8f30082bd6fcd7d7d Mon Sep 17 00:00:00 2001 From: xonx <119700621+xonx4l@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:49:10 +0530 Subject: [PATCH 2/5] Update rust.css --- src/doc/rust.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/doc/rust.css b/src/doc/rust.css index 9e51f03085fb8..5359671626bfc 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -350,6 +350,11 @@ a.test-arrow { margin-bottom: 1em; } +.structfield { + padding-top: 0.8rem; + padding-bottom: 0.2rem; +} + .error-described { position: relative; } From 51195982f53eaf41b811f9452c64559907144aa6 Mon Sep 17 00:00:00 2001 From: xonx <119700621+xonx4l@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:55:39 +0530 Subject: [PATCH 3/5] Typo fix --- src/librustdoc/html/templates/item_union.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/templates/item_union.html b/src/librustdoc/html/templates/item_union.html index 537bce7a19d18..53b05ce7b5262 100644 --- a/src/librustdoc/html/templates/item_union.html +++ b/src/librustdoc/html/templates/item_union.html @@ -10,7 +10,7 @@

{# #} {% for (field, ty) in self.fields_iter() %} {% let name = field.name.expect("union field name") %} {# #} + class="structfield {{ ItemType::StructField +}} section-header"> {# #} § {# #} {{ name }}: {{+ self.print_ty(ty)|safe }} {# #} From b5fcd12335d6d56c785b15a59c7b5a851c2392a6 Mon Sep 17 00:00:00 2001 From: xonx <119700621+xonx4l@users.noreply.github.com> Date: Sun, 4 Aug 2024 09:09:09 +0530 Subject: [PATCH 4/5] Update rust.css --- src/doc/rust.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/doc/rust.css b/src/doc/rust.css index 5359671626bfc..0a6af28aeaead 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -350,8 +350,7 @@ a.test-arrow { margin-bottom: 1em; } -.structfield { - padding-top: 0.8rem; +.structfield { padding-bottom: 0.2rem; } From 7c3851179ad3faacc77c385bee1c65b658dc8869 Mon Sep 17 00:00:00 2001 From: xonx <119700621+xonx4l@users.noreply.github.com> Date: Mon, 5 Aug 2024 09:13:13 +0530 Subject: [PATCH 5/5] Update rust.css --- src/doc/rust.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/doc/rust.css b/src/doc/rust.css index 0a6af28aeaead..091ba710375c5 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -351,7 +351,11 @@ a.test-arrow { } .structfield { - padding-bottom: 0.2rem; + padding-bottom: 0.2rem; + margin-block-start: 1.33em; + margin-block-end: 1.33em; + margin-inline-start: 0px; + margin-inline-end: 0px; } .error-described {