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>2022-12-28 17:14:17 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-12-28 17:14:17 +0100
commitc3eb202a61445eec77f0fb4af87704d148bca0e0 (patch)
tree7ef78f92ca647a2d594f3581a5a5b42b0b88ee32 /src/librustdoc/html/static/css/rustdoc.css
parentac8952e8fd7ea99fc262f0c8814aa3da912d78c0 (diff)
downloadrust-c3eb202a61445eec77f0fb4af87704d148bca0e0.tar.gz
rust-c3eb202a61445eec77f0fb4af87704d148bca0e0.zip
Migrate scraped examples higlight CSS to variables
Diffstat (limited to 'src/librustdoc/html/static/css/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/css/rustdoc.css7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index 1ba8d118b76..31bc8c9129d 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -1959,6 +1959,13 @@ in storage.js
 	overflow-x: hidden;
 }
 
+.scraped-example .example-wrap .rust span.highlight {
+	background: var(--scrape-example-code-line-highlight);
+}
+.scraped-example .example-wrap .rust span.highlight.focus {
+	background: var(--scrape-example-code-line-highlight-focus);
+}
+
 .more-examples-toggle {
 	max-width: calc(100% + 25px);
 	margin-top: 10px;