about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
AgeCommit message (Collapse)AuthorLines
2022-02-02Unify storage getter and setter functionsGuillaume Gomez-4/+4
2022-01-18Simplify and unify rustdoc sidebar stylesJacob Hoffman-Andrews-1/+1
This switches to just use size, weight, and spacing to distinguish headings in the sidebar. We no longer use boxes, horizontal bars, or centering to distinguish headings. This makes it much easier to understand the hierarchy of headings, and reduces visual noise. I also refactored how the mobile topbar works. Previously, we tried to shift around elements from the sidebar to make the topbar. Now, the topbar gets its own elements, which can be styled on their own. This makes styling and reasoning about those elements simpler. Because the heading font sizes are bigger, increase the sidebar width slightly. As a very minor change, removed version from the "All types" page. It's now only on the crate page.
2021-12-02Rename ID "main" into "main-content"Guillaume Gomez-5/+5
2021-11-29rustdoc: rework source sidebarcynecx-16/+9
2021-11-29rustdoc: merge source sidebar into main sidebarcynecx-6/+8
2021-07-07Clean up rustdoc static filesGuillaume Gomez-0/+249