about summary refs log tree commit diff
path: root/src/librustdoc/html/static/rustdoc.css
AgeCommit message (Collapse)AuthorLines
2019-10-01Improve sidebar styling to make its integration easierGuillaume Gomez-2/+2
2019-08-21take into account the system themeGuillaume Gomez-0/+15
2019-07-07Prevent shrinking of "crate select" element on FirefoxDmitry Murzin-0/+1
2019-06-29Fix code block information icon positionGuillaume Gomez-0/+4
2019-05-20Rollup merge of #60487 - GuillaumeGomez:fix-search-sidebar-width-colors, ↵Mazdak Farrokhzad-2/+2
r=Dylan-DPC Fix search sidebar width when no crate select is present Fixes #60480. I also fixed the box-shadow that seemed to have been kind of removed? r? @QuietMisdreavus
2019-05-20Rollup merge of #60383 - ↵Mazdak Farrokhzad-207/+214
GuillaumeGomez:fix-position-source-code-files-toggle, r=Manishearth Fix position source code files toggle Fixes #60381. The second commit is a big cleanup of the media queries. r? @rust-lang/rustdoc cc @Manishearth screenshot of the fix: <img width="501" alt="Screenshot 2019-04-29 at 23 42 56" src="https://user-images.githubusercontent.com/3050060/56929111-112b2b00-6ad9-11e9-9a23-e0a8e3641395.png">
2019-05-19Auto merge of #60272 - Jakst:patch-1, r=Manishearthbors-2/+21
Explicitly set height on rust logo <img> element in docs The layout of the left side menu in docs reflows when navigating between pages because of missing height on the <img> element of rust logo. Setting height='100' tells the browser to reserve that vertical space, leading to a less janky experience.
2019-05-18Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearthbors-2/+2
Fix attrs pos Fixes #60042. Screenshot: <img width="438" alt="Screenshot 2019-05-12 at 15 02 25" src="https://user-images.githubusercontent.com/3050060/57582606-1455ec00-74c7-11e9-9d4e-5ec4da4de7dd.png"> r? @rust-lang/rustdoc
2019-05-07Rollup merge of #60489 - GuillaumeGomez:remove-hamburger, r=QuietMisdreavusMazdak Farrokhzad-0/+4
Remove hamburger button from source code page Fixes #60483. Screenshot: <img width="575" alt="Screenshot 2019-05-03 at 00 12 51" src="https://user-images.githubusercontent.com/3050060/57110298-61ec8f00-6d38-11e9-85fd-d13be94b9c52.png"> cc @rust-lang/rustdoc
2019-05-03use span instead of div for since versionAndy Russell-1/+1
2019-05-03Remove hamburger button from source code pageGuillaume Gomez-0/+4
2019-05-02Fix search sidebar width when no crate select is presentGuillaume Gomez-2/+2
2019-04-30Cleanup media queriesGuillaume Gomez-184/+179
2019-04-30Improve file sidebar in source code view page on mobileGuillaume Gomez-33/+45
2019-04-29Fix line number display in source viewGuillaume Gomez-0/+4
2019-04-29Fix image position and displayGuillaume Gomez-6/+20
2019-04-29Wrap logo in container to prevent layout reflowJakob Ståhl-0/+5
2019-04-18Fixes attributes position in types declGuillaume Gomez-2/+2
2019-04-17Remove unwanted z-index changeGuillaume Gomez-1/+0
2019-04-15change word wrapping modevlad-boroda-1/+1
2019-04-14Fix rustdoc sidebar z-indexvlad-boroda-0/+1
2019-04-10Fix attributes position in type declarationGuillaume Gomez-0/+14
2019-03-08Fix moving text in search tabs headersGuillaume Gomez-1/+1
2019-02-19Fix tables displayGuillaume Gomez-2/+3
2019-02-07Rollup merge of #58086 - GuillaumeGomez:rustdoc-file-list-improvement, ↵Guillaume Gomez-1/+2
r=Manishearth [rustdoc] Improve file list display Improve a bit the arrows to show a folder's file and the arrow to show/hide the left panel. r? @QuietMisdreavus
2019-02-03Improve file list displayGuillaume Gomez-1/+2
2019-01-31rustdoc: wrap stability tags in colored spansAndy Russell-5/+8
2019-01-17Fix non-clickable urlsGuillaume Gomez-4/+0
2019-01-13Rollup merge of #56874 - JohnHeitmann:docs-spacing, r=GuillaumeGomezMazdak Farrokhzad-14/+39
Simplify foreign type rendering. Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans. Reduces element count on the `std::iter::Iterator` page by 30%. On my laptop it drops Iterator page load time from ~15s to ~10s. Frame times during scrolling are a hair lower too. Known visual changes (happy to tweak based on feedback): * The main `impl ...` headers are now getting the default, larger, h3 font size. This was an accident, but I liked how it turned out so I didn't fix it. * There's a hair less vertical spacing between the end of a where block and the start of the next fn. Now, all spacing is consistent. I think this looks a bit worse. I may tweak vertical spacing more here or in a follow-up that cleans up vertical spacing more broadly. * "[src]" links are all sized at 17px. A few were 19px in the original. I haven't yet done heavy cross-browser or cross-crate testing. I was hoping to get a quick thumbs up or thumbs down here at this first draft, then if this is on the right track I'll spend some time on that testing. TODO: - [x] Test on Chrome - [x] Test on Firefox - [ ] ~~Test on UC Android~~ - [x] Test on Edge - [x] Test on iOS safari - [x] Test on desktop safari - [x] Update automated tests - [x] Increase vertical margin - [x] Fix "Important traits for" hover overlap - [x] Wait for #55798 to land & merge it
2019-01-07Replace Heuristica with Source Serif Pro italic in rustdoc.cssTrevor Spiteri-5/+4
2018-12-29Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavusbors-1/+5
Add no-crate filter option on rustdoc @onur asked me about it so here it is! r? @QuietMisdreavus
2018-12-27Simplify foreign type rendering.John Heitmann-14/+39
Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans. Reduces element count on std::iter::Iterator by 30%.
2018-12-25Remove licensesMark Rousskov-12/+0
2018-12-24Add no-crate filter option on rustdocGuillaume Gomez-1/+5
2018-12-22Auto merge of #56824 - euclio:internal-apis, r=QuietMisdreavusbors-1/+1
rustdoc: display rustc_private APIs as "Internal" This PR updates the display of `rustc_private` APIs to be "Internal" instead of "Experimental", and changes the colors appropriately. It also updates the copy of the `rustc_private` feature to sound more informative and less like a compiler suggestion. The PR additionally contains a significant refactor of the `short_stability` function to remove duplication and fix a few rendering bugs due to extra or missing spaces. Before: ![screen shot 2018-12-14 at 11 45 28 am](https://user-images.githubusercontent.com/1372438/50015926-c9768d80-ff95-11e8-9649-5df29df6909b.png) After: ![screen shot 2018-12-14 at 11 45 11 am](https://user-images.githubusercontent.com/1372438/50015934-cf6c6e80-ff95-11e8-912b-74b893f55425.png)
2018-12-21Auto merge of #55798 - GuillaumeGomez:version-display-associated-const, ↵bors-1/+1
r=QuietMisdreavus Add version display for associated consts Fixes #54030. <img width="1440" alt="screenshot 2018-11-08 at 23 57 29" src="https://user-images.githubusercontent.com/3050060/48232648-99decf00-e3b2-11e8-9f41-6bd12a161c7d.png"> r? @QuietMisdreavus
2018-12-20display rustc_private APIs as "Internal"Andy Russell-1/+1
2018-12-18Fix mobile menu rendering collision with tooltip.John Heitmann-1/+1
Bring the mobile-mode menu in front of the ⓘ icon.
2018-12-18Fix DOM errorsGuillaume Gomez-1/+1
2018-12-15Improve CSS ruleGuillaume Gomez-1/+1
2018-12-15Auto merge of #56005 - GuillaumeGomez:speedup-doc-render, r=QuietMisdreavusbors-0/+4
Greatly improve rustdoc rendering speed issues Fixes #55900. So a few improvements here: * we're switching to `DOMTokenList` API when available providing a replacement if it isn't (should only happen on safari and IE I think...) * hide doc sections by default to allow the whole HTML generation to happen in the background to avoid triggering DOM redraw all the times (which killed the performances) r? @QuietMisdreavus
2018-12-08Fix right arrow size for crate filterGuillaume Gomez-1/+1
2018-12-06Greatly improve rustdoc rendering speed issuesGuillaume Gomez-0/+4
2018-12-06Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=QuietMisdreavusPietro Albini-2/+26
[rustdoc] Specific crate search Reopening of #54706. Fixes #54616. <img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png"> r? @QuietMisdreavus
2018-12-05Rollup merge of #56498 - GuillaumeGomez:line-numbers, r=QuietMisdreavusPietro Albini-2/+2
Fix line numbers display Thanks to @talchas for finding the bug and suggesting the solution! r? @QuietMisdreavus
2018-12-05Rollup merge of #56476 - GuillaumeGomez:invalid-line-number-match, ↵Pietro Albini-1/+1
r=QuietMisdreavus Fix invalid line number match If a code line is longer than the width, it then gets to the next line making the line number not matching it anymore. r? @QuietMisdreavus
2018-12-05Rollup merge of #55563 - GuillaumeGomez:doc-search-sentence, r=QuietMisdreavusPietro Albini-0/+7
Improve no result found sentence in doc search Fixes #55531. Look: <img width="1440" alt="screenshot 2018-11-01 at 02 21 56" src="https://user-images.githubusercontent.com/3050060/47827257-f6236c80-dd7c-11e8-9ea9-99c8cb4b2de5.png"> r? @QuietMisdreavus
2018-12-04Fix line numbers displayGuillaume Gomez-2/+2
2018-12-04Auto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavusbors-4/+70
Add source file sidebar This is just a start currently but that gives a good overview of what it'll look like: <img width="1440" alt="screenshot 2018-11-06 at 01 39 15" src="https://user-images.githubusercontent.com/3050060/48035592-05336180-e165-11e8-82e1-5ead0c345eb9.png"> r? @QuietMisdreavus
2018-12-03Rollup merge of #56416 - GuillaumeGomez:css-body, r=QuietMisdreavuskennytm-2/+2
Remove unneeded body class selector r? @QuietMisdreavus