mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-29 00:46:32 +00:00
Migrate scraped examples higlight CSS to variables
This commit is contained in:
parent
ac8952e8fd
commit
c3eb202a61
@ -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;
|
||||
|
@ -91,6 +91,8 @@ Original by Dempfi (https://github.com/dempfi/ayu)
|
||||
--codeblock-link-background: #333;
|
||||
--scrape-example-toggle-line-background: #999;
|
||||
--scrape-example-toggle-line-hover-background: #c5c5c5;
|
||||
--scrape-example-code-line-highlight: rgb(91, 59, 1);
|
||||
--scrape-example-code-line-highlight-focus: rgb(124, 75, 15);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
@ -206,12 +208,6 @@ above the `@media (max-width: 700px)` rules due to a bug in the css checker */
|
||||
border-color: white;
|
||||
color: white;
|
||||
}
|
||||
.scraped-example .example-wrap .rust span.highlight {
|
||||
background: rgb(91, 59, 1);
|
||||
}
|
||||
.scraped-example .example-wrap .rust span.highlight.focus {
|
||||
background: rgb(124, 75, 15);
|
||||
}
|
||||
.scraped-example:not(.expanded) .code-wrapper::before {
|
||||
background: linear-gradient(to bottom, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
|
||||
}
|
||||
|
@ -86,6 +86,8 @@
|
||||
--codeblock-link-background: #333;
|
||||
--scrape-example-toggle-line-background: #999;
|
||||
--scrape-example-toggle-line-hover-background: #c5c5c5;
|
||||
--scrape-example-code-line-highlight: rgb(91, 59, 1);
|
||||
--scrape-example-code-line-highlight-focus: rgb(124, 75, 15);
|
||||
}
|
||||
|
||||
#search-tabs > button:not(.selected) {
|
||||
@ -106,12 +108,6 @@
|
||||
border-color: white;
|
||||
color: white;
|
||||
}
|
||||
.scraped-example .example-wrap .rust span.highlight {
|
||||
background: rgb(91, 59, 1);
|
||||
}
|
||||
.scraped-example .example-wrap .rust span.highlight.focus {
|
||||
background: rgb(124, 75, 15);
|
||||
}
|
||||
.scraped-example:not(.expanded) .code-wrapper::before {
|
||||
background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
|
||||
}
|
||||
|
@ -83,6 +83,8 @@
|
||||
--codeblock-link-background: #eee;
|
||||
--scrape-example-toggle-line-background: #ccc;
|
||||
--scrape-example-toggle-line-hover-background: #999;
|
||||
--scrape-example-code-line-highlight: #fcffd6;
|
||||
--scrape-example-code-line-highlight-focus: #f6fdb0;
|
||||
}
|
||||
|
||||
#search-tabs > button:not(.selected) {
|
||||
@ -103,12 +105,6 @@
|
||||
border-color: black;
|
||||
color: black;
|
||||
}
|
||||
.scraped-example .example-wrap .rust span.highlight {
|
||||
background: #fcffd6;
|
||||
}
|
||||
.scraped-example .example-wrap .rust span.highlight.focus {
|
||||
background: #f6fdb0;
|
||||
}
|
||||
.scraped-example:not(.expanded) .code-wrapper::before {
|
||||
background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user