From 3b70c6e4bda7588e51ed85bf9d13a953e0b0023f Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 5 Jan 2022 21:28:19 +0100 Subject: [PATCH] Simplify :target CSS selector --- src/librustdoc/html/static/css/themes/ayu.css | 5 +---- src/librustdoc/html/static/css/themes/dark.css | 5 +---- src/librustdoc/html/static/css/themes/light.css | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/librustdoc/html/static/css/themes/ayu.css b/src/librustdoc/html/static/css/themes/ayu.css index 38040eeca52..6ed7845e83a 100644 --- a/src/librustdoc/html/static/css/themes/ayu.css +++ b/src/librustdoc/html/static/css/themes/ayu.css @@ -351,11 +351,8 @@ a.test-arrow:hover { color: #999; } -:target, :target > * { - background: rgba(255, 236, 164, 0.06); -} - :target { + background: rgba(255, 236, 164, 0.06); border-right: 3px solid rgba(255, 180, 76, 0.85); } diff --git a/src/librustdoc/html/static/css/themes/dark.css b/src/librustdoc/html/static/css/themes/dark.css index f4181e431c8..64b6eb6696b 100644 --- a/src/librustdoc/html/static/css/themes/dark.css +++ b/src/librustdoc/html/static/css/themes/dark.css @@ -295,11 +295,8 @@ a.test-arrow:hover{ color: #999; } -:target, :target > * { - background-color: #494a3d; -} - :target { + background-color: #494a3d; border-right: 3px solid #bb7410; } diff --git a/src/librustdoc/html/static/css/themes/light.css b/src/librustdoc/html/static/css/themes/light.css index 176f63098a4..dbacc9f3073 100644 --- a/src/librustdoc/html/static/css/themes/light.css +++ b/src/librustdoc/html/static/css/themes/light.css @@ -284,11 +284,8 @@ a.test-arrow:hover{ color: #999; } -:target, :target > * { - background: #FDFFD3; -} - :target { + background: #FDFFD3; border-right: 3px solid #AD7C37; }