Skip to content

Commit 02a5296

Browse files
Inline wheel.svg into CSS
1 parent 8413685 commit 02a5296

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/librustdoc/html/static/css/rustdoc.css

+14-1
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,20 @@ a.tooltip:hover::after {
16081608
font-size: 0;
16091609
}
16101610
#settings-menu > a:before {
1611-
content: url('wheel-63255fc4502dca9a.svg');
1611+
/* Wheel */
1612+
content: url('data:image/svg+xml,<svg width="22" height="22" viewBox="0 0 12 12" \
1613+
enable-background="new 0 0 12 12" xmlns="http://www.w3.org/2000/svg">\
1614+
<path d="M10.25,6c0-0.1243286-0.0261841-0.241333-0.0366211-0.362915l1.6077881-1.5545654l\
1615+
-1.25-2.1650391 c0,0-1.2674561,0.3625488-2.1323853,0.6099854c-0.2034912-0.1431885-0.421875\
1616+
-0.2639771-0.6494751-0.3701782L7.25,0h-2.5 c0,0-0.3214111,1.2857666-0.5393066,2.1572876\
1617+
C3.9830933,2.2634888,3.7647095,2.3842773,3.5612183,2.5274658L1.428833,1.9174805 \
1618+
l-1.25,2.1650391c0,0,0.9641113,0.9321899,1.6077881,1.5545654C1.7761841,5.758667,\
1619+
1.75,5.8756714,1.75,6 s0.0261841,0.241333,0.0366211,0.362915L0.178833,7.9174805l1.25,\
1620+
2.1650391l2.1323853-0.6099854 c0.2034912,0.1432495,0.421875,0.2639771,0.6494751,0.3701782\
1621+
L4.75,12h2.5l0.5393066-2.1572876 c0.2276001-0.1062012,0.4459839-0.2269287,0.6494751\
1622+
-0.3701782l2.1323853,0.6099854l1.25-2.1650391L10.2133789,6.362915 C10.2238159,6.241333,\
1623+
10.25,6.1243286,10.25,6z M6,7.5C5.1715698,7.5,4.5,6.8284302,4.5,6S5.1715698,4.5,6,4.5S7.5\
1624+
,5.1715698,7.5,6 S6.8284302,7.5,6,7.5z" fill="black"/></svg>');
16121625
width: 22px;
16131626
height: 22px;
16141627
}

src/librustdoc/html/static/images/wheel.svg

-1
This file was deleted.

src/librustdoc/html/static_files.rs

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ static_files! {
9999
src_script_js => "static/js/src-script.js",
100100
storage_js => "static/js/storage.js",
101101
scrape_examples_js => "static/js/scrape-examples.js",
102-
wheel_svg => "static/images/wheel.svg",
103102
copyright => "static/COPYRIGHT.txt",
104103
license_apache => "static/LICENSE-APACHE.txt",
105104
license_mit => "static/LICENSE-MIT.txt",

0 commit comments

Comments
 (0)