From 62d3b79d4bd9eccd7854ca3d0a6e9c07188698ef Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 14 Jul 2022 14:59:25 +0200 Subject: [PATCH] Remove unused CSS --- src/librustdoc/html/static/css/rustdoc.css | 3 +-- src/librustdoc/html/static/css/themes/ayu.css | 17 ++-------------- .../html/static/css/themes/dark.css | 20 ++----------------- .../html/static/css/themes/light.css | 12 +---------- 4 files changed, 6 insertions(+), 46 deletions(-) diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index e8f069cdbfe..c6933a8254b 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1733,13 +1733,12 @@ details.rustdoc-toggle[open] > summary.hideme > span { display: none; } -details.undocumented[open] > summary::before, details.rustdoc-toggle[open] > summary::before, details.rustdoc-toggle[open] > summary.hideme::before { background-image: /* AUTOREPLACE: */url("toggle-minus.svg"); } -details.undocumented > summary::before, details.rustdoc-toggle > summary::before { +details.rustdoc-toggle > summary::before { background-image: /* AUTOREPLACE: */url("toggle-plus.svg"); } diff --git a/src/librustdoc/html/static/css/themes/ayu.css b/src/librustdoc/html/static/css/themes/ayu.css index 73d18df7656..142ce456c52 100644 --- a/src/librustdoc/html/static/css/themes/ayu.css +++ b/src/librustdoc/html/static/css/themes/ayu.css @@ -174,13 +174,11 @@ body.source .example-wrap pre.rust a { } details.rustdoc-toggle > summary.hideme > span, -details.rustdoc-toggle > summary::before, -details.undocumented > summary::before { +details.rustdoc-toggle > summary::before { color: #999; } -details.rustdoc-toggle > summary::before, -details.undocumented > summary::before { +details.rustdoc-toggle > summary::before { filter: invert(100%); } @@ -218,17 +216,6 @@ details.undocumented > summary::before { background: none; } -#help > div { - background: #14191f; - box-shadow: 0px 6px 20px 0px black; - border: none; - border-radius: 4px; -} - -#help span.bottom, #help span.top { - border-color: #5c6773; -} - .rightside, .out-of-band { color: grey; diff --git a/src/librustdoc/html/static/css/themes/dark.css b/src/librustdoc/html/static/css/themes/dark.css index 93dca51307f..aeaca7515f9 100644 --- a/src/librustdoc/html/static/css/themes/dark.css +++ b/src/librustdoc/html/static/css/themes/dark.css @@ -148,13 +148,11 @@ body.source .example-wrap pre.rust a { } details.rustdoc-toggle > summary.hideme > span, -details.rustdoc-toggle > summary::before, -details.undocumented > summary::before { +details.rustdoc-toggle > summary::before { color: #999; } -details.rustdoc-toggle > summary::before, -details.undocumented > summary::before { +details.rustdoc-toggle > summary::before { filter: invert(100%); } @@ -179,20 +177,6 @@ details.undocumented > summary::before { .stab.portability { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; } .stab.portability > code { background: none; } -#help > div { - background: #4d4d4d; - border-color: #bfbfbf; -} - -#help span.bottom, #help span.top { - border-color: #bfbfbf; -} - -#help dt { - border-color: #bfbfbf; - background: rgba(0,0,0,0); -} - .rightside, .out-of-band { color: grey; diff --git a/src/librustdoc/html/static/css/themes/light.css b/src/librustdoc/html/static/css/themes/light.css index 73731bc8f9f..54d1a7b65d6 100644 --- a/src/librustdoc/html/static/css/themes/light.css +++ b/src/librustdoc/html/static/css/themes/light.css @@ -140,8 +140,7 @@ body.source .example-wrap pre.rust a { } details.rustdoc-toggle > summary.hideme > span, -details.rustdoc-toggle > summary::before, -details.undocumented > summary::before { +details.rustdoc-toggle > summary::before { color: #999; } @@ -161,15 +160,6 @@ details.undocumented > summary::before { .stab.portability { background: #F3DFFF; border-color: #b07bdb; } .stab.portability > code { background: none; } -#help > div { - background: #e9e9e9; - border-color: #bfbfbf; -} - -#help span.bottom, #help span.top { - border-color: #bfbfbf; -} - .rightside, .out-of-band { color: grey;