summary refs log tree commit diff
path: root/src/librustdoc/html/static/rustdoc.css
AgeCommit message (Collapse)AuthorLines
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
2016-09-26Rollup merge of #36676 - bluss:rustdoc-where-css, r=steveklabnikJonathan Turner-0/+5
rustdoc css: Put `where` in trait listings on a new line This is about the gray area at the top of a trait's documentation page, that lists all methods and their signatures. A big trait page like Iterator is very crowded without this tweak.
2016-09-23rustdoc css: Put `where` in trait listings on a new lineUlrik Sverdrup-0/+5
This is about the gray area at the top of a trait's documentation page, that lists all methods and their signatures. A big trait page like Iterator is very crowded without this tweak.
2016-09-17invisible isn't a tagEitan Adler-1/+1
2016-09-17add missing semi-colonEitan Adler-1/+2
2016-09-17Fix order of @importEitan Adler-2/+2
In CSS 2.1, any @import rules must precede all other rules (except the @charset rule, if present).
2016-09-14Auto merge of #36293 - liigo:docblock-short, r=steveklabnikbors-7/+7
rustdoc: don't collapse `docblock-short` ![docblock-short](https://cloud.githubusercontent.com/assets/346530/18267298/137d2542-7451-11e6-9c8e-dd4e1f1fea29.png)
2016-09-09rustdoc: more docblock-short stylesLiigo-3/+3
2016-09-09rustdoc: don't collapse `docblock-short`Liigo-4/+4
2016-09-08Set run button transparent instead of invisibleGuillaume Gomez-1/+4
2016-08-17Review changesNick Cameron-1/+8
2016-07-19[CSS] Fix unwanted top margin for toggle wrapperggomez-1/+4
2016-07-06Remove invalid CSS rule for doc titlesggomez-8/+0
2016-06-25rustdoc: Fix search result layout for enum variants and struct fieldsOliver Middleton-1/+1
2016-06-12Fix invalid inliningGuillaume Gomez-0/+4
2016-06-07Rollup merge of #34138 - hoodie:bug/bool_colors, r=steveklabnikSteve Klabnik-1/+1
Bug/bool colors This is actually #33661 @steveklabnik, sorry about this, github ate my homework
2016-06-04rustdoc: Fix a few missing colors in the CSSOliver Middleton-3/+3
This adds color to some of the search results and sidebar items which were missing.
2016-05-30print enum variant fields in docsOliver Schneider-0/+19
2016-05-20Added a `rustdoc` shortcut for collapse/expand allAlex Ozdemir-1/+1
Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior.
2016-05-16Fix selected item background styleGuillaume Gomez-0/+4
2016-05-15true color, fixed boolval style in docHendrik Sollich-1/+1
2016-05-10Improve "since" tag placementGuillaume Gomez-0/+6
2016-05-05Improve rustdoc css of "source" and "since" elementsggomez-4/+34
2016-05-06Update CSS for future rustdoc mergeGuillaume Gomez-0/+5
2016-03-03Responsive layout correction.gohyda-3/+7
2016-02-09Rustdoc - display `since` version for stable itemsWesley Wiser-0/+15
Fixes #27607
2016-01-20tweak struct colorsSteve Klabnik-1/+1
2016-01-02Rustdoc - Specify max-image sizeWesley Wiser-0/+4
Fixes #24861
2015-12-04Split rustdoc css to modify it more easilyGuillaume Gomez-0/+649