summary refs log tree commit diff
path: root/src/librustdoc/html/static/main.css
AgeCommit message (Collapse)AuthorLines
2015-09-09rustdoc: Tweak the main template and CSS for semantic mark-up.Kang Seonghoon-4/+10
- section.sidebar -> nav.sidebar, also added an unordered list. - div#help -> aside#help, also added a hidden heading. - the current crate is now emphasized in the sidebar. Fixes #16310.
2015-08-17rustdoc: Adjusted style for unstable feature-nameMartin Wernstål-1/+5
2015-08-16rustdoc: Print feature flag and issue link if present in short_stabilityMartin Wernstål-3/+3
2015-07-20librustdoc: blur page when help dialogue is presentAndreas Tolfsen-8/+19
Blurs the document's background when the help dialogue is present, making the contents of the dialogue stand out more.
2015-07-12Set zero padding for pre tagsIvan Ukhov-0/+3
2015-07-08librustdoc: sharpen help dialogue edgesAndreas Tolfsen-2/+1
Sharpens the help dialogues edges by removing border-padding, which matches better with the rest of the document. Also increases somewhat the rounded edges of the key symbols to make it clear they are symbols. Also introduces closing apostrophes and ellipsis for search field placeholder.
2015-05-31rustdoc: Tweak css of function where clausesUlrik Sverdrup-3/+3
Method where clauses are put indented on a new line, do the same tweak to free functions, which makes it cleaner and easier to read.
2015-05-22Rustdoc Search: Add Hint to Primitive Type ResultPascal Hertleif-0/+2
Closes #25167
2015-05-19rustdoc: Fix left margin for type aliasesUlrik Sverdrup-1/+1
Fixes #24655 Margin for associated types was applied to type aliases (in return value) by mistake.
2015-05-07Refactor doc toggle button label changingRory O’Kane-1/+1
To separate concerns, instead of checking the state of `#toggle-all-docs` by looking at its label text, I add or remove a class `will-expand` depending on whether the button’s next click will expand everything. (The `if` statement’s two branches were swapped as part of this change.) I moved the desired text values to a function `labelForToggleButton`, so changing the values will be easier. I also note in a comment the other file where the text is duplicated. To allow the labels of both types of toggle buttons to be uniformly set, I added a `span.inner` to the global button too. I split the template in `render.rs` into multiple lines to make room for the `span`, and that adds whitespace around the `[` and `]` text elements. That seems to be okay, though – the page still looks the same. I updated the CSS styling for `.collapse-toggle > .inner` to add a little extra space around the symbol, to make minus signs easier to identify. (`#toggle-all-docs > .inner` does not need the same style, since its text size is bigger, so it naturally puts more space around the symbol.)
2015-04-25rustdoc: change color of trait typesLiigo Zhuang-1/+1
Fixes #24441
2015-04-16rustdoc: Inline methods inhereted through DerefAlex Crichton-2/+6
Whenever a type implements Deref, rustdoc will now add a section to the "methods available" sections for "Methods from Deref<Target=Foo>", listing all the inherent methods of the type `Foo`. Closes #19190
2015-04-16rustdoc: Overhaul stability displaysAlex Crichton-29/+30
This commit is an overhaul to how rustdoc deals with stability of the standard library. The handling has all been revisited with respect to Rust's current approach to stability in terms of implementation as well as the state of the standard library today. The high level changes made were: * Stable items now have no marker by default * Color-based small stability markers have been removed * Module listings now fade out unstable/deprecated items slightly * Trait methods have a separate background color based on stability and also list the reason that they are unstable. * `impl` blocks with stability no longer render at all. This may be re-added once the compiler recognizes stability on `impl` blocks. * `impl` blocks no longer have stability of the methods implemente indicated * The stability summary has been removed Closes #15468 Closes #21674 Closes #24201
2015-03-29Fix extremely small stability bars on docs pageWesley Wiser-0/+4
Fixes #23397
2015-03-09Rustdoc: Add Headline Style for `tymethod`Pascal Hertleif-2/+2
Fixes #23230
2015-02-20Fix style fallout from 204e2bd442Simonas Kazlauskas-2/+17
Links in docblock headers also became blue, which was not intended.
2015-02-18Style all docblock links properlySimonas Kazlauskas-2/+2
Fixes #22493
2015-02-15Add styles for docblock tablesSimonas Kazlauskas-0/+21
Fixes #22357
2015-02-09Make fallback font 'serif', rather than 'sans-serif' fontsSean Collins-1/+1
2015-01-24Improve mobile-friendliness of API docsKevin Yap-1/+8
Removes min-width rule from body so that the page does not scroll horizontally on mobile displays; hides out-of-band information.
2015-01-21rustdoc: fix fallout of merging ast::ViewItem into ast::Item.Eduard Burtescu-2/+0
2015-01-08Fix rustdoc fallout from #20092Barosl Lee-1/+1
Due to the CSS changes done by the previous patch to make the line numbers clickable (#20092), the sidebar became unclickable. This commit reverts the changes and adopts an alternative approach.
2015-01-05rollup merge of #20092: barosl/rustdoc-line-number-clickableAlex Crichton-3/+13
While talking on IRC, someone wanted to post a link to the Rust source code, but while the lines of the rendered source code do have anchors (`<span id="[line number]">`), there is no convenient way to make links as they are not clickable. This PR makes them clickable. Also, a minor fix of the FAQ is included.
2014-12-28Use CSS whitespace rather than padding to indentDirk Gadsden-2/+4
2014-12-27Indent where clause in rustdocDirk Gadsden-0/+3
* Add <span class=‘where’> around clause * CSS rule to format the span (for #20176)
2014-12-27Make the line numbers of the source code clickableBarosl Lee-3/+13
2014-11-24rustdoc: Render associated types on traits and implsTom Jakubowski-6/+7
2014-11-23Highlight trait methods in rustdoc’s search resultsP1start-0/+2
2014-11-14Hide interactive elements when printing rustdocCorey Ford-0/+6
Hide the search form and expand/collapse buttons, since they aren't useful when printed.
2014-11-01doc: enable OpenType kerning and ligaturesAdrien Tétar-1/+5
2014-11-01rustdoc: stop trying to use font-variants we don't haveAdrien Tétar-3/+2
Browser-generated weights or slants is the last thing we want...
2014-09-17Restore colour to rustdoc, add colour to ffi functions and methodsP1start-5/+9
2014-09-05rustdoc/html: emphasize the crate part of the full path.NODA, Kai-0/+2
2014-08-31Make doc search results use <a> tags instead of js for navigatingCarol Nichols-7/+13
This has the primary advantage of not interfering with browser default behavior for links like being able to cmd/ctrl+click on a result to open the result in a new tab but leave the current page as-is (previous behavior both opened a new tab and changed the current tab's location to the result's)
2014-08-08auto merge of #16277 : Gankro/rust/responsive-docs, r=cmrbors-21/+72
* move some sidebar contents to a title bar when small * inline description toggle when small * make out-of-band and in-band content share space, rather than float and clash * compress wording of out-of-band content to avoid line-wrap as much as possible ## [Live Version Here](http://cg.scs.carleton.ca/~abeinges/doc/index.html) Pages Of Interest: * [Vec](http://cg.scs.carleton.ca/~abeinges/doc/std/vec/struct.Vec.html) (small path) * [TreeSet](http://cg.scs.carleton.ca/~abeinges/doc/collections/treemap/struct.TreeSet.html) (long path) * [std](http://cg.scs.carleton.ca/~abeinges/doc/std/index.html) (for stability dash) TBD in a future PR is to convert links in the sidebar into a series of nest ul/li's, so that they can easily be moved to a drop-down in the new title bar. I think this is out of scope for this PR, but am willing to implement it now if desired.
2014-08-06make rustdoc more responsiveAlexis Beingessner-21/+72
* move some sidebar contents to a title bar when small * inline description toggle when small * make out-of-band and in-band content share space, rather than float and clash * compress wording of out-of-band content to avoid line-wrap as much as possible
2014-08-06Rustdoc: Add padding on <code>Simon Sapin-0/+1
… to separate text from the edge of the newly added background.
2014-08-06Rustdoc: Highlight <code> elements (from Markdown `backticks`)Simon Sapin-0/+4
2014-08-02auto merge of #16169 : Gankro/rust/simple-docs, r=cmrbors-3/+39
<strike>Adds a simple/detailed toggle to api doc pages. Detailed mode is the current behaviour, simple mode hides all doccomment details leaving only signatures for quick browsing. </strike> Adds [expand all] and [collapse all] "links" to all api doc pages. All doccomments are collapsed, leaving only signatures for quick browsing. In addition, clicking on a <strike>function name</strike> function's [toggle details] link now toggles the visibility of the associated doccomment. -------- # [Live Build Here](http://cg.scs.carleton.ca/~abeinges/doc/std/vec/struct.Vec.html) This is something that's been bothering me, and I've seen some people mention in IRC before. The docs are *great* if you want a full in-depth look at an API, but *awful* if you want to scan them. This provides the ability to toggle complexity freely. Interacts perfectly well with noscript, since the static page is effectively unchanged. Collapsing is just hiding divs with css. I'm not much of a designer, so design input welcome on the actual UX for toggling. The actual javascript is *a bit* brittle to layout changes, but it always will be without adding lots of extra junk to the actual markup, which didn't seem worth it.
2014-08-02Add hide/show detail toggles to rustdocAlexis Beingessner-3/+39
All doccomments are now collapsable via a nearby [-] button Adds [collapse all] and [expand all] buttons to the top of all api pages Tweaks some layout to accomadate this
2014-08-01Fix API docs css reversing elements that it shouldn'ttinaun-1/+2
remove unneeded `pre.rust a' selector move transform into `.test-arrow` fixes #16138
2014-07-29making raw source display betterAlexis Beingessner-0/+8
* Make the code fill up the full width of the page (no massive whitespace on the left) * Move the code down to make it not intersect the logo * Set a min-width and remove the max-width so that the code doesn't scroll internally, but instead scrolls the page, meaning horizontal scroll bars are always available * Set overflow to actually overflow, just to be sure Fixes #15891
2014-07-28rustdoc: improvements to stability dashboardAaron Turon-2/+2
* Makes dashboard width dynamic. * Colors unmarked items. * Gives overall crate percentages.
2014-07-10rustdoc: Add stability dashboardAaron Turon-1/+10
This commit adds a crate-level dashboard summarizing the stability levels of all items for all submodules of the crate. The information is also written as a json file, intended for consumption by pages like http://huonw.github.io/isrustfastyet/ Closes #13541
2014-07-08webfonts: serve Source Code Pro locallyAdrien Tétar-0/+12
So that we have freestanding docs.
2014-07-08webfonts: proper fixAdrien Tétar-7/+7
2014-06-30rustdoc: incorporate stability index throughoutAaron Turon-9/+19
This commit hooks rustdoc into the stability index infrastructure in two ways: 1. It looks up stability levels via the index, rather than by manual attributes. 2. It adds stability level information throughout rustdoc output, rather than just at the top header. In particular, a stability color (with mouseover text) appears next to essentially every item that appears in rustdoc's HTML output. Along the way, the stability index code has been lightly refactored.
2014-06-19(doc) Properly doc hotkeys in generated docs.Zach Pomerantz-1/+1
Updated search bar to match help text. Used correct, normalized hotkeys in search. Updated shortcut menu with working shortcuts (tabs). Changed height of search help.
2014-06-13rustdoc: Larger click areas for sidebar itemsValentin Tsatskin-4/+8
* Change links to display:block for click larger targets * Remove linebreaks due to extra space * Adjust margins so that element spacing stays the same * Sidebar item hover background colour chosen from <pre> styling
2014-06-06rustdoc: Submit examples to play.rust-lang.orgAlex Crichton-1/+12
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes #14654