Skip to content

Commit ddd9591

Browse files
Use correct CSS pseudo-element selector
1 parent faebd7a commit ddd9591

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/librustdoc/html/static/css/themes/ayu.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ pre.rust .kw-2, pre.rust .prelude-ty {}
215215
.scraped-example .example-wrap .rust span.highlight.focus {
216216
background: rgb(124, 75, 15);
217217
}
218-
.scraped-example:not(.expanded) .code-wrapper:before {
218+
.scraped-example:not(.expanded) .code-wrapper::before {
219219
background: linear-gradient(to bottom, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
220220
}
221-
.scraped-example:not(.expanded) .code-wrapper:after {
221+
.scraped-example:not(.expanded) .code-wrapper::after {
222222
background: linear-gradient(to top, rgba(15, 20, 25, 1), rgba(15, 20, 25, 0));
223223
}
224224
.toggle-line-inner {

src/librustdoc/html/static/css/themes/dark.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@
111111
.scraped-example .example-wrap .rust span.highlight.focus {
112112
background: rgb(124, 75, 15);
113113
}
114-
.scraped-example:not(.expanded) .code-wrapper:before {
114+
.scraped-example:not(.expanded) .code-wrapper::before {
115115
background: linear-gradient(to bottom, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
116116
}
117-
.scraped-example:not(.expanded) .code-wrapper:after {
117+
.scraped-example:not(.expanded) .code-wrapper::after {
118118
background: linear-gradient(to top, rgba(53, 53, 53, 1), rgba(53, 53, 53, 0));
119119
}
120120
.toggle-line-inner {

src/librustdoc/html/static/css/themes/light.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@
108108
.scraped-example .example-wrap .rust span.highlight.focus {
109109
background: #f6fdb0;
110110
}
111-
.scraped-example:not(.expanded) .code-wrapper:before {
111+
.scraped-example:not(.expanded) .code-wrapper::before {
112112
background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
113113
}
114-
.scraped-example:not(.expanded) .code-wrapper:after {
114+
.scraped-example:not(.expanded) .code-wrapper::after {
115115
background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
116116
}
117117
.toggle-line-inner {

0 commit comments

Comments
 (0)