about summary refs log tree commit diff
path: root/src/librustdoc/html/static/rustdoc.css
AgeCommit message (Collapse)AuthorLines
2017-10-01rustdoc: Style of [src] link for trait implementorsVitaly _Vi Shukela-1/+8
A change suggested by @GuillaumeGomez and @QuietMisdreavus. Also slight reindenting of the appropriate CSS section.
2017-09-24Rollup merge of #44789 - GuillaumeGomez:fix-rustdoc-display, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix warning position in rustdoc code blocks Before: <img width="1440" alt="screen shot 2017-09-23 at 14 07 08" src="https://user-images.githubusercontent.com/3050060/30773382-b9649288-a06f-11e7-94ec-faa3c3ed999b.png"> After: <img width="1440" alt="screen shot 2017-09-23 at 14 58 31" src="https://user-images.githubusercontent.com/3050060/30773384-bdfc9f3e-a06f-11e7-9030-9fb8a5308668.png"> r? @QuietMisdreavus
2017-09-23Fix warning position in rustdoc code blocksGuillaume Gomez-1/+1
2017-09-18Rollup merge of #44671 - GuillaumeGomez:run-button, r=steveklabnikAlex Crichton-0/+5
Fix run button r? @QuietMisdreavus Before: ![before](https://user-images.githubusercontent.com/3050060/30538927-612c6a44-9c70-11e7-9ca2-f3860d880b95.png) After: ![after](https://user-images.githubusercontent.com/3050060/30538929-6416ea0e-9c70-11e7-990a-7e4fbf5d7319.png) Quite urgent.
2017-09-18Fix run buttonGuillaume Gomez-0/+5
2017-09-17Add more links and put the link character to the leftGuillaume Gomez-2/+10
2017-09-11Add arrow and improve displayGuillaume Gomez-1/+41
2017-08-30Fix invalid display of enum sub-fields docsGuillaume Gomez-5/+9
2017-08-28Fix invalid linker positionGuillaume Gomez-1/+6
2017-08-26Rollup merge of #43979 - Jouan:Add-links-for-impls, r=GuillaumeGomezCorey Farwell-0/+4
Add links for impls Implements a solution for issue #23552 r? @QuietMisdreavus
2017-08-18Remove outline when details have focusGuillaume Gomez-0/+4
2017-08-18Add links for implsJouan Amate-0/+4
Implements a solution for issue #23552
2017-08-11Rollup merge of #43795 - GuillaumeGomez:improve-variants-doc-style, ↵Guillaume Gomez-0/+4
r=QuietMisdreavus Improve enum variants display r? @rust-lang/docs Before: <img width="1440" alt="screen shot 2017-08-11 at 00 22 54" src="https://user-images.githubusercontent.com/3050060/29194776-728ce0e2-7e2b-11e7-8299-8300cc0c168b.png"> After: <img width="1440" alt="screen shot 2017-08-11 at 00 22 57" src="https://user-images.githubusercontent.com/3050060/29194783-78867558-7e2b-11e7-9226-1327fd20163a.png"> (The doc of the variant is more aligned with the "[-]" now).
2017-08-11Rollup merge of #43760 - ollie27:rustdoc_search_css, r=GuillaumeGomezGuillaume Gomez-1/+1
rustdoc: Fix broken CSS in search results The layout is currently broken for struct/union fields and enum variants in the search results when searching from a struct, union or enum page. Some examples: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html?search=start https://doc.rust-lang.org/nightly/std/option/enum.Option.html?search=some #34477 was an incomplete fix
2017-08-11Improve enum variants displayGuillaume Gomez-0/+4
2017-08-09rustdoc: Fix broken CSS in search resultsOliver Middleton-1/+1
The layout is currently broken for struct/union fields and enum variants in the search results when searching from a struct, union or enum page.
2017-08-08Improve headers linkingGuillaume Gomez-0/+10
2017-08-07Auto merge of #43558 - GuillaumeGomez:union-const-colors, r=QuietMisdreavusbors-4/+0
Union const colors Fixes #43523 What do you think of these colors: <img width="1440" alt="screen shot 2017-07-30 at 15 10 57" src="https://user-images.githubusercontent.com/3050060/28753752-6b175a22-7539-11e7-978e-949f3a947d18.png"> ?
2017-08-02Improve color theme for color blind issuesGuillaume Gomez-6/+0
2017-08-01rustdoc: shrink headings in non-top-level docblocksQuietMisdreavus-3/+7
2017-07-30Add colors for constants and unionsGuillaume Gomez-0/+2
2017-07-27add [src] links to associated functions inside an impl blockQuietMisdreavus-0/+4
2017-07-23rustdoc: fix layout of Fields section in documentation for unionsZack M. Davis-1/+1
Previously, the union fields would all render on the same line with hideous spacing; comparison to the analogous section for structs makes it undoubtable that `display: block` is the true intent. Concisely and definitively resolves #43404 and its perfidious malignancy.
2017-07-09Add spacing between trait functionsGuillaume Gomez-0/+5
2017-05-21Update to trait bounds CSS in rustdocDaniel Lockyer-0/+2
Fixed resubmission of #40719.
2017-05-16improve collapse toggle render (css)Raphaël Huchet-0/+5
2017-05-12Rollup merge of #41951 - Eijebong:master, r=GuillaumeGomezMark Simulacrum-0/+1
rustdoc: Break words in the location box of the sidebar. This prevents long names from overflowing. Before: ![before](https://img.bananium.fr/eijebong/afcfe18b-393e-4d3b-bc11-fe3def6659b9.png) After: ![after](https://img.bananium.fr/eijebong/9483466b-3b6c-4509-ab0f-fd0c6572ef27.png)
2017-05-12rustdoc: Break words in the location box of the sidebar.Bastien Orivel-0/+1
This prevents long names from overflowing.
2017-05-11Fix search when looking to sourcesGuillaume Gomez-0/+3
2017-04-09merge with master to pick up pulldown switchQuietMisdreavus-4/+4
2017-03-31rustdoc: format where clauses like rust-lang-nursery/fmt-rfcs#38QuietMisdreavus-12/+1
2017-03-28Make the rustdoc sidebar white on `src` pagesWesley Wiser-3/+3
Fixes #40724
2017-03-13Fix sidebar not extending to the bottom of the pageWesley Wiser-1/+1
Fixes #40459
2017-03-09Clean up rustdoc cssGuillaume Gomez-27/+6
2017-03-06Improve the style of the sidebar in rustdoc outputWesley Wiser-1/+10
Makes the sidebar a light grey and highlights the currently viewed item in the sidebar more prominently. All visual design credit goes to @johnwhelchel (#37856)
2017-02-26Improve associated constant rendering in rustdocGuillaume Gomez-4/+4
2017-01-09Improved rustdoc rendering for unstable featuresManish Goregaokar-0/+8
2016-12-27Auto merge of #38329 - ollie27:rustdoc_stab_em_div, r=steveklabnikbors-4/+4
rustdoc: Fix invalid HTML in stability notices `em` tags cannot contain `p` tags so use `div`s instead of `em`s as the Markdown will create `p` tags.
2016-12-19Don't @import normalize.css.Clar Charr-2/+0
2016-12-13rustdoc: Fix invalid HTML in stability noticesOliver Middleton-4/+4
`em` tags cannot contain `p` tags so just use a `div` instead.
2016-12-04Avoid using locally installed Source Code Pro font (fixes #24355).Martin Pool-2/+4
In some versions of this font the ampersands are drawn badly.
2016-11-12Auto merge of #37728 - QuietMisdreavus:rustdoc-enum-struct, r=GuillaumeGomezbors-0/+8
rustdoc: fold fields for enum struct variants into a docblock Per discussion in #37500, this PR updates the enum rendering code to wrap variants with named struct fields in a `docblock` span that is hidden automatically upon load of the page. This gives struct variant fields a clean separation from other enum variants, giving a boost to the readability of such documentation. Preview output is available [on the issue page](https://github.com/rust-lang/rust/issues/37500#issuecomment-260069269), but for the sake of completeness I'll include the images here again. ![rustdoc struct enum variant 4 part 1](https://cloud.githubusercontent.com/assets/5217170/20231925/96160b7e-a82a-11e6-945b-bbba95c5e4bc.PNG) When you initially load the page, there's a line under variants with struct fields letting you know you can click to expand the listing. ![rustdoc struct enum variant 4 part 2](https://cloud.githubusercontent.com/assets/3050060/20232067/1dc63266-a866-11e6-9555-8fb1c8afdcec.png) If you click to expand, the header and table unfold into a nicely-indented listing. If you want to take a look in your own browser and screen size, [I've got this version hosted on my server](https://shiva.icesoldier.me/doctest/doctest/enum.OldTopicRemoval.html). Fixes #37500 r? @GuillaumeGomez
2016-11-12rustdoc: fold fields for enum struct variants into a docblockQuietMisdreavus-0/+8
2016-11-12Rollup merge of #37190 - QuietMisdreavus:rustdoc-where-newline, r=GuillaumeGomezEduard-Mihai Burtescu-2/+10
rustdoc: add line breaks to where clauses a la rustfmt Much like my last PR for rustdoc (#36679), this adds line breaks to certain statements based on their line length. Here the focus was on where clauses. Some examples: - [Where clause in a trait function](https://shiva.icesoldier.me/custom-std/std/iter/trait.Iterator.html?search=#method.unzip) (also in the trait header block at the top of the page) - [Where clause on a bare function](https://shiva.icesoldier.me/doc-custom2/petgraph/visit/fn.depth_first_search.html) - [Where clauses in trait impls on a struct](https://shiva.icesoldier.me/custom-std/std/collections/struct.HashMap.html) (scroll to the bottom) These are regularly not on their own line, but will be given their own line now if their "prefix text" doesn't give them enough room to sensibly print their constraints. HashMap's trait impls provide some examples of both behaviors. The libstd links above are the whole docs rendered with this, and the "bare function" link above is in another set that pulls some notable crates together. `petgraph` was the one that brought this request up, and that collection also includes [itertools](https://shiva.icesoldier.me/doc-custom2/itertools/trait.Itertools.html) which provided an easy sample to test with. r? @GuillaumeGomez
2016-11-06Improve attributes display and allow expansionGuillaume Gomez-365/+373
2016-10-15rustdoc: Improve playground run buttonsOliver Middleton-1/+0
The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-10-15rustdoc: break where clauses onto their own line if they don't have enough roomQuietMisdreavus-2/+10
2016-10-12Change color and make ? boldest31-1/+2
2016-10-12rustdoc: color the question mark operatorest31-0/+3
The idea was proposed by eddyb in: https://github.com/rust-lang/rust/issues/31436#issuecomment-247426582
2016-10-06Remove underline when run button hoveredGuillaume Gomez-0/+1