about summary refs log tree commit diff
path: root/src/librustdoc/html/static/css/themes/ayu.css
AgeCommit message (Collapse)AuthorLines
2023-09-15rustdoc: merge theme css into rustdoc.cssMichael Howell-181/+0
Based on https://github.com/rust-lang/rust/pull/115812#issuecomment-1717960119 Having them in separate files used to make more sense, before the migration to CSS variables made the theme files as small as they are nowadays. This is already how docs.rs and mdBook do it.
2023-08-27Unify CSS color formats a bit moreGuillaume Gomez-3/+3
2023-08-14Add warning block support in rustdocGuillaume Gomez-0/+1
2023-07-14rustdoc: use `src` consistently over `source` in codeMichael Howell-7/+7
The CSS uses an inconsistent mix of both. This commit switches it to always use `src`.
2023-04-12rustdoc: make settings radio and checks thicker, less contrastMichael Howell-0/+1
This is very dependent on subjectivity and what screen you use, but this change makes the radio buttons' outer circle less ugly. This is because I could see the pixels very clearly, thanks to the very thin line and high contrast. This change makes both less severe, giving your browser's antialiasing algorithm more to work with. Since it's thicker, lowering the contrast shouldn't impact visibility.
2023-03-02Put backtick content from rustdoc search errors into a <code> elementsGuillaume Gomez-0/+1
2023-02-13Rollup merge of #107340 - notriddle:notriddle/simplify-doctest-tooltip, ↵Matthias Krüger-2/+0
r=GuillaumeGomez rustdoc: merge doctest tooltip with notable traits tooltip Fixes https://discord.com/channels/442252698964721669/443150878111694848/1066420140167680000 <details><summary>a user report where the tooltip arrow overlaps the text</summary> ![](https://cdn.discordapp.com/attachments/443150878111694848/1066420139530145812/this-example-is-not-tested-busted-rendering.png) </details> Fixes #91100 Preview: <https://notriddle.com/notriddle-rustdoc-demos/simplify-doctest-tooltip/std/vec/struct.Vec.html#indexing> Screenshot: ![image](https://user-images.githubusercontent.com/1593513/214975516-72667632-4609-49fa-8c37-e8d2ba1ba7dc.png)
2023-02-04rustdoc: combine duplicate rules in ayu CSSMichael Howell-34/+14
2023-01-30Migrate last part of CSS themes to CSS variablesGuillaume Gomez-12/+5
2023-01-27rustdoc: merge doctest tooltip with notable traits tooltipMichael Howell-2/+0
Fixes https://discord.com/channels/442252698964721669/443150878111694848/1066420140167680000 Fixes #91100
2023-01-21Migrate scraped-examples top and bottom "borders" to CSS variablesGuillaume Gomez-7/+2
2022-12-29Migrate more scraped examples CSS rules to CSS variablesGuillaume Gomez-8/+4
2022-12-28Migrate scraped examples higlight CSS to variablesGuillaume Gomez-6/+2
2022-12-27Remove unused empty CSS rules in ayu themeGuillaume Gomez-4/+0
2022-12-26Fix missing renaming for #titles into #search-tabsGuillaume Gomez-4/+4
2022-12-24Auto merge of #106110 - GuillaumeGomez:toggle-line-background, r=notriddlebors-6/+2
Migrate toggle-line-inner background to CSS variable r? `@notriddle`
2022-12-24Migrate toggle-line-inner background to CSS variableGuillaume Gomez-6/+2
2022-12-23rustdoc: make line number CSS for doc comment and scraped the sameMichael Howell-2/+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-2/+2
2022-12-22Migrate search tab title color to CSS variableGuillaume Gomez-4/+1
2022-12-15Migrate Jump to def links background to CSS variableGuillaume Gomez-3/+1
2022-12-14rustdoc: remove no-op CSS `.item-info:before { color }`Michael Howell-2/+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/+1
* 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-4/+1
2022-11-24Migrate source code elements style to CSS variablesGuillaume Gomez-5/+3
2022-11-21Migrate search result alias to CSS variablesGuillaume Gomez-8/+3
2022-11-20Migrate kdb colors to CSS variablesGuillaume Gomez-6/+3
2022-11-19Rollup merge of #104604 - GuillaumeGomez:migrate-top-button-to-css-var, ↵Matthias Krüger-9/+2
r=notriddle Migrate top buttons style to CSS variables No UI changes. r? `@notriddle`
2022-11-19Migrate top buttons style to CSS variablesGuillaume Gomez-9/+2
2022-11-17Migrate tooltip style to CSS variablesGuillaume Gomez-9/+2
2022-11-13Rollup merge of #104177 - notriddle:notriddle/js-notable-trait-v2, ↵Yuki Okushi-4/+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-1/+0
2022-11-12Migrate no result page link color to CSS variablesGuillaume Gomez-4/+1
2022-11-12Rollup merge of #104267 - notriddle:notriddle/checkbox, r=GuillaumeGomezDylan DPC-10/+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-4/+0
2022-11-10rustdoc: use checkbox instead of switch for settings togglesMichael Howell-10/+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-5/+2
2022-11-09Migrate crate-search element to CSS variablesGuillaume Gomez-11/+6
2022-11-06Migrate rust logo filter to CSS variablesGuillaume Gomez-7/+4
2022-11-06Rollup merge of #104014 - GuillaumeGomez:run-button-css-var, r=notriddleMatthias Krüger-12/+4
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-12/+4
2022-11-05Fix search result bottom border colorGuillaume Gomez-0/+1
2022-10-27Migrate line numbers CSS to CSS variablesGuillaume Gomez-9/+3
2022-10-15rustdoc: make the help button a link to a pageMichael Howell-2/+2
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-20/+14
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-20/+14
2022-10-06Migrate search input color to CSS variableGuillaume Gomez-4/+1
2022-10-03Migrate search results theme style to CSS variablesGuillaume Gomez-24/+1