about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/sidebar.goml
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-151/+0
2023-01-08Fix tidy issues in goml scriptsGuillaume Gomez-1/+1
2023-01-06Use new block syntax for define-function in goml scriptsGuillaume Gomez-27/+27
2022-12-27rustdoc: combine common sidebar background color CSS rulesMichael Howell-0/+44
2022-10-20Rollup merge of #103251 - GuillaumeGomez:item-decl-highlighting, r=notriddleMatthias Krüger-5/+6
Fix item declaration highlighting Fixes https://github.com/rust-lang/rust/issues/103050. As mentioned in the issue, https://github.com/rust-lang/rust/pull/102924 introduced this regression. This PR partially reverts it and adds a regression test. r? `@notriddle`
2022-10-19Add regression test for item-decl highlightingGuillaume Gomez-5/+6
2022-10-18rustdoc: remove class name `location` from sidebar sibling navMichael Howell-5/+8
This change tweaks the CSS to apply most of its styles to `.sidebar h2`, cleaning up a few redundant rules from `.mobile-topbar .location` and restoring useful navigation aids in mobile mode.
2022-10-10rustdoc: remove unneeded `<div>` wrapper from sidebar DOMMichael Howell-10/+10
When this was added, the sidebar had a bit more complex style. It can be removed, now.
2022-10-07Update rustdoc-gui test to new browser-ui-test versionGuillaume Gomez-7/+7
2022-09-23rustdoc: add regression test for sidebar width jankMichael Howell-0/+15
2022-05-06Add GUI test for search reexportsGuillaume Gomez-9/+10
2022-02-16Update rustdoc tests to adapt to changes to the sidebarGuillaume Gomez-17/+17
2022-02-08rustdoc: tweak line and ¶ spacing for a11yJacob Hoffman-Andrews-1/+1
The W3C Web Content Accessibility Guidelines specify a minimum line spacing of 1.5 and a minimum paragraph spacing of 1.5 times the line spacing. Our current line spacing (implemented by line-height) is 1.4, so it's a small bump to go up to 1.5. Similarly, we have a paragraph spacing of 0.6em. Bump that to 0.75em (which is 1.5 times the 0.5em distance between lines). Also, fix all the font sizes so instead of being round-ish numbers in rem (like 1.1rem, 1.2rem), they are round numbers in pixels. Ensure each font size is at least 2 pixels different than the nearest other font size, so distinctions can be clearly seen. Overall the font-sizes are mostly staying the same, being rounded up or down as appropriate. Remove a few unused styles. Simplify the display of the mobile-topbar location, by setting its margins to auto rather than trying to size it exactly to the topbar.
2022-02-07Fix hover effects in sidebarJacob Hoffman-Andrews-1/+1
The dark and ayu themes have a menu-like highlight on sidebar items. The light theme used to, but it was accidentally lost in the sidebar unification. The change brings back the hover effect in the light theme. It also makes the hover effect apply consistently to all links in the sidebar, including headings. It also simplifies the "In _path_" heading so it's one big link. The breadcrumbs are still readily available at the top of the page.
2022-02-05Linkify sidebar headings for sibling itemsJacob Hoffman-Andrews-0/+7
Also adjust CSS so this doesn't produce excess padding/margin.
2022-01-24Add white-space: nowrap to links in the sidebarJacob Hoffman-Andrews-0/+4
We already have overflow: hidden on these links, but if there is a possibility to wrap, they will wrap. This happens in particular for trait implementations because the punctuation (`<>, `) introduces opportunities for breaks. That produces inconsistent UI. Fix it by forcing them not to wrap.
2022-01-23update testsConrad Ludgate-2/+2
2022-01-21Add missing GUI test explanationsGuillaume Gomez-0/+1
2022-01-18Simplify and unify rustdoc sidebar stylesJacob Hoffman-Andrews-5/+11
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.
2022-01-14Link sidebar "location" heading to top of pageJacob Hoffman-Andrews-0/+7
This makes it easy, when you are scrolled far down in a page, to jump back to the top.
2021-11-04Fix missing bottom border for headings in sidebarGuillaume Gomez-14/+14
2021-10-25Fix documentation header sizesJacob Hoffman-Andrews-1/+2
And add a rustdoc-gui test confirming various header sizes.
2021-10-20Add test for duplicated sidebar entries for reexported macroGuillaume Gomez-6/+7
2021-06-24Fixing the test rustdoc by ignoring ↵Stefan Schindler-5/+5
`*[@id="module-item"]//following-sibling::item-right` relationship and rustdoc-gui
2021-06-19Update browser-ui-test versionGuillaume Gomez-27/+27
2021-06-13Add test to ensure font-weight is applied correctlyGuillaume Gomez-1/+4
2021-06-07Add test to check that font-weight is correctly set on type pageGuillaume Gomez-1/+2
2021-05-31Improve display of the separation between page items and siblings in the sidebarGuillaume Gomez-1/+11
2021-05-31Only list crates on the crate pageGuillaume Gomez-8/+7
2021-05-31Add sidebar GUI testsGuillaume Gomez-0/+47