summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/themes
AgeCommit message (Collapse)AuthorLines
2022-12-29Migrate more scraped examples CSS rules to CSS variablesGuillaume Gomez-24/+12
2022-12-28Migrate scraped examples higlight CSS to variablesGuillaume Gomez-18/+6
2022-12-27Remove unused empty CSS rules in ayu themeGuillaume Gomez-4/+0
2022-12-26Fix missing renaming for #titles into #search-tabsGuillaume Gomez-8/+8
2022-12-24Auto merge of #106110 - GuillaumeGomez:toggle-line-background, r=notriddlebors-18/+6
Migrate toggle-line-inner background to CSS variable r? `@notriddle`
2022-12-24Migrate toggle-line-inner background to CSS variableGuillaume Gomez-18/+6
2022-12-23rustdoc: make line number CSS for doc comment and scraped the sameMichael Howell-4/+1
Discussed in https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Line.20number.20styling
2022-12-23Use correct CSS pseudo-element selectorGuillaume Gomez-6/+6
2022-12-22Migrate search tab title color to CSS variableGuillaume Gomez-12/+3
2022-12-15Migrate Jump to def links background to CSS variableGuillaume Gomez-11/+3
2022-12-14rustdoc: remove no-op CSS `.item-info:before { color }`Michael Howell-6/+0
No content is set, so this pseudo-element does not exist. The CSS was obsoleted by 73d0f7c7b68784f1db0a1f53855c20d118a7e8b0.
2022-12-09rustdoc: make stability badge CSS more consistentMichael Howell-5/+0
* They all get rounded corners now. A test case has been added for this, too. * There are now broadly two kinds of stability badge, where there used to be three: item-info "fat badge", and the "thin badge" in both item tables and in docblocks (which got merged). The fat badges can have icons, while the thin badges can't.
2022-12-07rustdoc: clean up docblock table CSSMichael Howell-0/+3
* The rule `display: block` had no noticeable effect. Technically, because markdown tables have a tbody and thead, they get wrapped in an [anonymous table box] in the CSS tree, nested within the `<table>` element's block layout box. This rule was added in #87230 to make the table side-scrolling, but this same issue was doubly fixed in #88742 by wrapping it in an explicit `<div>` tag. Since accessibility advocates recommend the wrapper div over marking the table as `display: block`, we'll stick with that. https://adrianroselli.com/2020/11/under-engineered-responsive-tables.html * The rule `width: calc(100% - 2px)` had no visible effect, because the anonymous table box was not affected. * The style is tweaked to basically be the same style GitHub uses. In particular, it adds zebra stripes, and removes dotted borders. [anonymous table box]: https://www.w3.org/TR/CSS2/tables.html#anonymous-boxes
2022-12-01Migrate summary toggle filter to CSS variableGuillaume Gomez-8/+3
2022-11-25rustdoc: revert tooltip background color on light theme to readableMichael Howell-1/+1
text #fff on background #fdffd3 fails the [WCAG color contrast checker], and seems like a mistake in 16b55903ee16503e7026677c169727d1907704c2. [WCAG color contrast checker]: https://accessibleweb.com/color-contrast-checker/
2022-11-24Migrate source code elements style to CSS variablesGuillaume Gomez-20/+7
2022-11-21Migrate search result alias to CSS variablesGuillaume Gomez-24/+9
2022-11-20Migrate kdb colors to CSS variablesGuillaume Gomez-18/+9
2022-11-19Rollup merge of #104604 - GuillaumeGomez:migrate-top-button-to-css-var, ↵Matthias Krüger-27/+6
r=notriddle Migrate top buttons style to CSS variables No UI changes. r? `@notriddle`
2022-11-19Migrate top buttons style to CSS variablesGuillaume Gomez-27/+6
2022-11-17Migrate tooltip style to CSS variablesGuillaume Gomez-29/+7
2022-11-13Rollup merge of #104177 - notriddle:notriddle/js-notable-trait-v2, ↵Yuki Okushi-12/+0
r=GuillaumeGomez rustdoc: use consistent "popover" styling for notable traits Follow-up to #104129 Fixes https://github.com/rust-lang/rust/issues/104313. Preview: https://notriddle.com/notriddle-rustdoc-demos/js-notable-trait-v2/std/iter/trait.Iterator.html#method.step_by ## Before ![image](https://user-images.githubusercontent.com/1593513/200710372-d2d992ce-0bdc-4437-9a2e-379a29df09cf.png) ![image](https://user-images.githubusercontent.com/1593513/200711266-e372b176-daa9-45f3-a022-738ef0a77d3c.png) ## After ![image](https://user-images.githubusercontent.com/1593513/200710601-09b3b717-116f-43c6-b14f-34a8b02b33c0.png) ![image](https://user-images.githubusercontent.com/1593513/200711288-3978cdc1-a6c2-47f6-9216-e22e3c1f5bdf.png)
2022-11-12Use same color for links in no result searchGuillaume Gomez-3/+0
2022-11-12Migrate no result page link color to CSS variablesGuillaume Gomez-13/+3
2022-11-12Rollup merge of #104267 - notriddle:notriddle/checkbox, r=GuillaumeGomezDylan DPC-29/+0
rustdoc: use checkbox instead of switch for settings toggles Preview: http://notriddle.com/notriddle-rustdoc-demos/checkbox/test_dingus/index.html ## Before ![image](https://user-images.githubusercontent.com/1593513/201232887-dee27ef5-b091-49bb-be4a-103d2e7983f3.png) ## After ![image](https://user-images.githubusercontent.com/1593513/201232835-95b40b77-6535-4280-8719-44c992a07772.png) ## Description The switch ("slider") is designed to give the application a "physical" feel, but nothing else in here really followed through. They didn't support the "flick" gesture that real iOS switches support, and the radio buttons that were also used in Rustdoc Settings were a more "classic" form element anyway. Also, while switches are the exclusive toggle design on iOS (since [Apple HIG] reserves checkboxes for Mac only), the [Google Material] guidelines say that lists of switches are bad, and you should just use check boxes. [Apple HIG]: https://developer.apple.com/design/human-interface-guidelines/components/selection-and-input/toggles [Google Material]: https://m3.material.io/components/checkbox/guidelines#6902f23d-ceba-4b19-ae3b-b78b9b01d185
2022-11-11rustdoc: use consistent "popover" styling for notable traitsMichael Howell-12/+0
2022-11-10rustdoc: use checkbox instead of switch for settings togglesMichael Howell-29/+0
The switch is designed to give the application a "physical" feel, but nothing else in here really followed through. They didn't support the "flick" gesture that real iOS switches support, and the radio buttons that were also used in Rustdoc Settings were a more "classic" form element anyway. Also, while "switches" are the exclusive toggle design on iOS (since [Apple HIG] reserves checkboxes for Mac only), the [Google Material] guidelines say that lists of switches are bad, and you should just use check boxes. [Apple HIG]: https://developer.apple.com/design/human-interface-guidelines/components/selection-and-input/toggles [Google Material]: https://m3.material.io/components/checkbox/guidelines#6902f23d-ceba-4b19-ae3b-b78b9b01d185
2022-11-10Migrate :target rules to use CSS variablesGuillaume Gomez-15/+6
2022-11-09Migrate crate-search element to CSS variablesGuillaume Gomez-33/+18
2022-11-06Migrate rust logo filter to CSS variablesGuillaume Gomez-20/+9
2022-11-06Rollup merge of #104014 - GuillaumeGomez:run-button-css-var, r=notriddleMatthias Krüger-30/+12
Migrate test-arrow to CSS variables There should be no UI changes. I kept both `color` and `background-color` properties even though only the ayu theme is actually completely making use of them on hover. r? ``@notriddle``
2022-11-05Migrate test-arrow to CSS variablesGuillaume Gomez-30/+12
2022-11-05Fix search result bottom border colorGuillaume Gomez-0/+3
2022-10-27Migrate line numbers CSS to CSS variablesGuillaume Gomez-31/+9
2022-10-15rustdoc: make the help button a link to a pageMichael Howell-5/+9
This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page.
2022-10-14Rollup merge of #102914 - ↵Dylan DPC-49/+42
GuillaumeGomez:migrate-css-highlight-without-change, r=notriddle Migrate css highlight without change This is a "previous" version of https://github.com/rust-lang/rust/pull/102663: only migrating to CSS variables, no changes. It's a bit more verbose because rules are not coherent between themes. r? ``@notriddle``
2022-10-11rustdoc: remove unneeded `.content` selector from link colorsMichael Howell-1/+1
Since 98f05a0282625a5fda6e90ebf3b05a4bd7608f65 and b5963f07e611cf2a09a310eb74c1a93adfaeb9de removed color classes from sidebar items, there's no need for the selectors to be so specific any more. This commit does have to change `h1.fqn a` to just be `h1 a`, so that the header link color selector is less specific than the typed link at the end. Since #89506 made docblocks start at `h2`, the main page link header should be the only h1 in the page now.
2022-10-11Migrate highlight style to CSS variablesGuillaume Gomez-49/+42
2022-10-06Migrate search input color to CSS variableGuillaume Gomez-8/+3
2022-10-03Migrate search results theme style to CSS variablesGuillaume Gomez-84/+3
2022-10-03Migrate stab elements style to CSS variablesGuillaume Gomez-20/+6
2022-09-30* Migrate sidebar links color to new CSS theme handlingGuillaume Gomez-63/+6
* Remove specific color handling for ".current" items in the sidebar.
2022-09-26rustdoc: simplify example-line-numbers CSS selectorMichael Howell-3/+3
2022-09-26rustdoc: give `.line-number` / `.line-numbers` meaningful namesMichael Howell-12/+12
2022-09-16Create new CSS variables for links colorGuillaume Gomez-78/+24
2022-09-16Remove unneeded empty ayu CSS rulesGuillaume Gomez-21/+3
2022-09-16Remove unused `.block a.current*` rulesGuillaume Gomez-48/+51
2022-09-16Remove some unused CSS rulesGuillaume Gomez-62/+18
2022-09-09Clean up themes a bit moreGuillaume Gomez-144/+12
2022-09-03Clean up themes CSSGuillaume Gomez-91/+21