diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css
index f39c0e4a31400..4f5f8f92264c1 100644
--- a/src/librustdoc/html/static/css/rustdoc.css
+++ b/src/librustdoc/html/static/css/rustdoc.css
@@ -41,6 +41,19 @@ xmlns="http://www.w3.org/2000/svg" fill="black" height="18px">\
--font-family: "Source Serif 4", NanumBarunGothic, serif;
--font-family-code: "Source Code Pro", monospace;
--line-number-padding: 4px;
+ /* scraped examples icons (34x33px) */
+ --prev-arrow-image: url('data:image/svg+xml,');
+ --next-arrow-image: url('data:image/svg+xml,');
+ --expand-arrow-image: url('data:image/svg+xml,');
+ --collapse-arrow-image: url('data:image/svg+xml,');
}
:root.sans-serif {
@@ -1729,7 +1742,10 @@ instead, we check that it's not a "finger" cursor.
padding: 2px 0 0 4px;
}
.example-wrap .button-holder .copy-button::before,
-.example-wrap .test-arrow::before {
+.example-wrap .test-arrow::before,
+.example-wrap .button-holder .prev::before,
+.example-wrap .button-holder .next::before,
+.example-wrap .button-holder .expand::before {
filter: var(--copy-path-img-filter);
}
.example-wrap .button-holder .copy-button::before {
@@ -1744,6 +1760,24 @@ instead, we check that it's not a "finger" cursor.
padding-right: 5px;
}
+.example-wrap .button-holder .prev,
+.example-wrap .button-holder .next,
+.example-wrap .button-holder .expand {
+ line-height: 0px;
+}
+.example-wrap .button-holder .prev::before {
+ content: var(--prev-arrow-image);
+}
+.example-wrap .button-holder .next::before {
+ content: var(--next-arrow-image);
+}
+.example-wrap .button-holder .expand::before {
+ content: var(--expand-arrow-image);
+}
+.example-wrap .button-holder .expand.collapse::before {
+ content: var(--collapse-arrow-image);
+}
+
.code-attribute {
font-weight: 300;
color: var(--code-attribute-color);
@@ -2012,6 +2046,13 @@ button#toggle-all-docs:before {
filter: var(--settings-menu-filter);
}
+button#toggle-all-docs.will-expand:before {
+ /* Custom arrow icon */
+ content: url('data:image/svg+xml,');
+}
+
#help-button > a:before {
/* Question mark with circle */
content: url('data:image/svg+xml,