about summary refs log tree commit diff
path: root/src/librustdoc/html/static/images
AgeCommit message (Collapse)AuthorLines
2025-08-21Losslessly optimize PNG fileslumiscosity-0/+0
Losslessly optimizes all of the PNG files in the repo. Done with: ``` oxipng -o max -a -s oxipng -o max --zopfli -a -s ```
2024-04-28Inline `wheel.svg` into CSSGuillaume Gomez-1/+0
2024-04-28Inline `clipboard.svg` into CSSGuillaume Gomez-1/+0
2024-04-09rustdoc: remove unused 16x16 faviconMichael Howell-0/+0
According to <https://caniuse.com/?search=svg%20favicon>, SVG favicons are supported in everything but Safari. When I actually try it in Safari, it's downloading all three favicons, and nothing looks different when I disable the 16x16 one. <https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7>, which is linked from caniuse above, recommends an ico. However, the reason they recommend it is the apps that only support /favicon.ico exactly, and rustdoc can't assume it will be installed to the site root, so it's unfortunately up to the webmaster to make sure it's set up.
2024-04-09rustdoc: load icons from css instead of inlineMichael Howell-2/+2
This cuts the HTML overhead for a page by about 1KiB, significantly reducing the overall size of the docs bundle.
2023-02-08rustdoc: use [svgo] to shrink `wheel.svg`Michael Howell-1/+1
[svgo]: https://github.com/svg/svgo $ du -bs src/librustdoc/html/static/images/wheel.svg wheel-old.svg 2972 src/librustdoc/html/static/images/wheel.svg 3764 wheel-old.svg 100*((2972-3764)/3764) = -21.04%
2023-02-01Inline CSS background images directly into the CSSGuillaume Gomez-3/+0
2022-08-10Improve crate selection on rustdoc search results pageFrank Steffahn-1/+1
Resolves all of issue #93240 Reproduces a similar change as #99086, but with improvements In particular, this PR inlcludes: * redesigning the crate-search selector so the background color matches its surroundings * decrease the font of the dropdown menu to a reaonable size * add a hover effect * make the color of the arrow theme-dependent, using a surrounding div, with :after pseudo-element that can then be transformed using CSS filters to approximate the desired color * fix the text "in" to match the title font * remove the "for xyz" in the "Results for xyz in [All crates]" title when searching for search term "xyz"; you can already see what you're searching for as it's typed in the search bar! * in line with #99086, handle super-long crate names appropriately without a long <select> element escaping the screen area; the improvement is that we also keep the title within a single line now; uses some flex layout shenanigans... * the margins / paddings are adjusted so the selected label of the <select> fits within the rest of that title nicely; also some inconsistency in the way that Firefox renders a <select> with "appearance: none" (roughly 4px more padding left and right of the text than e.g. Chrome) is worked around, and it now produces a result that looks (essentially) identical to Chrome * the color of the help menu and settings menu border in light theme is made to match with the color of the corresponding buttons, like they do (match) in the ayu theme * the casing of "All crates" changes to "all crates" * the new tests from #99086 are temporarily disabled, until they can be adapted later
2022-05-24Remove unused brush imageGuillaume Gomez-1/+0
2022-01-13Regenerate the PNGs favicon with the updated Rust logoLoïc BRANSTETT-0/+0
2022-01-13Use the updated Rust logo and change it's format to SVGLoïc BRANSTETT-0/+61
2021-08-03Simplify usage of CSS background-imageGuillaume Gomez-2/+2
2021-08-03Rustdoc accessibility: use an icon for the [-]/[+] controlsMichael Howell-0/+2
This way, we can show the plus and minus buttons on screens, while voice control will read off actual words "Collapse" and "Expand" instead of reading "open brace minus close brace" and "open brace plus close brace". Part of #87059
2021-07-07Clean up rustdoc static filesGuillaume Gomez-0/+28