From c635cb774b9a339d03e5af156a4c3247ea3bd45a Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 2 Dec 2022 14:39:06 -0700 Subject: [PATCH] rustdoc: clean up redundant CSS on `.rustdoc-toggle.hideme` --- src/librustdoc/html/static/css/rustdoc.css | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 6bff2cd2f1aa0..747a9ccc017c5 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1590,17 +1590,11 @@ details.rustdoc-toggle[open] > summary.hideme > span { display: none; } -details.rustdoc-toggle[open] > summary::before, -details.rustdoc-toggle[open] > summary.hideme::before { +details.rustdoc-toggle[open] > summary::before { background: url("toggle-minus-31bbd6e4c77f5c96.svg") no-repeat top left; - width: 16px; - height: 16px; - display: inline-block; - content: ""; } -details.rustdoc-toggle[open] > summary::after, -details.rustdoc-toggle[open] > summary.hideme::after { +details.rustdoc-toggle[open] > summary::after { content: "Collapse"; }