summary refs log tree commit diff
path: root/src/librustdoc/html/static/themes/dark.css
AgeCommit message (Collapse)AuthorLines
2021-03-15No background for code in portability snippetsSimonas Kazlauskas-4/+1
This better matches the appearance of this kind of snippet in the full item view and is less jarring to read due to repeated foreground-background changes.
2021-02-02Better styling of "Switch result tab" shortcutSmitty-1/+0
2020-12-24Auto merge of #79742 - GuillaumeGomez:move-tooltips-messages-out-of-html, ↵bors-2/+2
r=Nemo157 Move tooltips messages out of html First thing first: nothing in the output has changed. You still have the "i" on the left of code blocks examples when they have `ignore`, `compile_fail`, `should_panic` and `edition`. The behavior also remains the same: when you hover the "i", you have the corresponding message showing up. So now, why this PR then? I realized recently that we were actually generating those messages into the HTML every time whereas all messages are the same (except for the edition ones, I'll come back to it later). So instead of generating more content, I simply moved it inside the CSS thanks to pseudo elements (`::before` and `::after`). The message is now inside `::after` and we use the `::before` to have the small triangle on the left of the message. So now, we have less HTML generated which is seems pretty nice. So now, back to the `edition` change: the message is globally the same, but the "edition" itself can be different (2015 or 2018 currently, I expect 2021 to arrive not too far in the future). So the only difference for it is that I added a new attribute on the tooltip called `edition` which contains this information. Then, the `::after` uses it inside its `content` (you can get the content of an element's attribute by using `attr` and concat different strings by simply having them after the other). Don't hesitate if a part of my explanations isn't clear. r? `@jyn514`
2020-12-10Make search results tab and help button focusable with keyboardGuillaume Gomez-3/+4
2020-12-05Move tooltips messages to CSS instead of inside HTMLGuillaume Gomez-2/+2
2020-11-24Rename "stability" CSS class to "item-info"Guillaume Gomez-2/+2
2020-10-19Add link to rustdoc book in rustdoc help popupGuillaume Gomez-1/+6
2020-08-23Fix font color for help button in ayu and dark themesGuillaume Gomez-0/+1
2020-08-11Rollup merge of #75366 - GuillaumeGomez:help-button, r=jyn514Dylan DPC-2/+3
Add help button Part of #75197. Here is a screenshot of the result: ![Screenshot from 2020-08-10 16-53-20](https://user-images.githubusercontent.com/3050060/89796547-14112a00-db2a-11ea-9f25-57b30ab68f9b.png) r? @jyn514
2020-08-11Rollup merge of #75249 - GuillaumeGomez:rust-logo-border, r=ManishearthDylan DPC-2/+5
Only add a border for the rust logo ![Screenshot from 2020-08-07 11-22-51](https://user-images.githubusercontent.com/3050060/89631113-9dadc700-d8a0-11ea-8063-ad40207decaa.png) ![Screenshot from 2020-08-07 11-19-47](https://user-images.githubusercontent.com/3050060/89631114-9e465d80-d8a0-11ea-96ba-1d6926c8e7a9.png) ![Screenshot from 2020-08-07 11-19-41](https://user-images.githubusercontent.com/3050060/89631117-9edef400-d8a0-11ea-9c66-0df3d8c1ac2d.png) I didn't add a border for the light theme though, as I felt it as unnecessary. r? @Manishearth
2020-08-10Add help buttonGuillaume Gomez-2/+3
2020-08-09Rename "Important traits" to "Notable traits"Camelid-1/+1
* Rename it in the UI * Rename the CSS classes
2020-08-07Only add a border for the rust logoGuillaume Gomez-2/+5
2020-07-24Rollup merge of #74504 - lzutao:ayu-border-selected-fn, r=GuillaumeGomezYuki Okushi-0/+1
Add right border bar to Dark and Light theme Demo: Light theme: https://github.com/rust-lang/rust/pull/74504#issuecomment-662491120 Dark theme: https://github.com/rust-lang/rust/pull/74504#issuecomment-662522446 Ayu theme: https://github.com/rust-lang/rust/pull/74504#issuecomment-662625685
2020-07-24Rollup merge of #74361 - GuillaumeGomez:theme-logo, r=ManishearthYuki Okushi-0/+4
Improve doc theme logo display Fixes #74350. The first commit cleans up the whitespaces and converts them to tabs. We should definitely write a tidy check for this (will do it in another PR). Screenshots: ![Screenshot from 2020-07-15 14-08-25](https://user-images.githubusercontent.com/3050060/87543748-8581c800-c6a5-11ea-8417-cbf98ebbfd10.png) ![Screenshot from 2020-07-15 14-11-59](https://user-images.githubusercontent.com/3050060/87543747-84e93180-c6a5-11ea-8cea-976b1470e809.png) ![Screenshot from 2020-07-15 14-12-12](https://user-images.githubusercontent.com/3050060/87543745-84509b00-c6a5-11ea-8324-c3c46ab2d9ef.png) r? @lzutao cc @Cldfire
2020-07-24Add right border bar to Dark and Light themeLzu Tao-0/+1
Ayu has it. Adding similar rule to other themes makes users less surprised and makes GUI more consistent.
2020-07-17Fix tidy issuesGuillaume Gomez-2/+4
2020-07-17Improve logo image display in different themesGuillaume Gomez-0/+4
2020-07-16Rollup merge of #74351 - lzutao:remove-rustc-internal-compiler-warns, ↵Manish Goregaokar-5/+0
r=Mark-Simulacrum Do not render unstable items for rustc doc See the zulip conversion: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/rustc.20doc.3A.20.22internal.20compiler.20API.22.20warns.20are.20everywhere!/near/203850782 Before: ![image](https://user-images.githubusercontent.com/15225902/87501971-9cff8780-c68a-11ea-93b4-ea53ce18a77b.png) After: ![image](https://user-images.githubusercontent.com/15225902/87501985-a7218600-c68a-11ea-81c0-a6b5b120832c.png) Nothing changes in unstable items of std: Before: ![image](https://user-images.githubusercontent.com/15225902/87502004-b7d1fc00-c68a-11ea-9224-a27a1d2a81d6.png) After: ![image](https://user-images.githubusercontent.com/15225902/87502018-c0c2cd80-c68a-11ea-9773-4c63158025cb.png) Closes #54682
2020-07-16Remove !important on border-color and background-colorManish Goregaokar-2/+2
2020-07-16Make spotlight show on hoverManish Goregaokar-31/+3
This makes the spotlight show on hover instead of click. Clicks can be used to persist it, which is also what's used on mobile.
2020-07-16Revert "Remove "important traits" feature"Manish Goregaokar-0/+33
This reverts commit 1244ced9580b942926afc06815e0691cf3f4a846.
2020-07-15Remove unused CSS rules for internal rustc itemsLzu Tao-5/+0
2020-06-18Added tooltip for should_panic code examples.Jake Degen-0/+16
Previously, compile_fail and ignore code examples displayed a tooltip indicating this in the documentation. This tooltip has now also been added to should_panic examples.
2020-04-07Extend sidebar scrollbar changes to all scrollbarsGuillaume Gomez-4/+14
2020-04-07Improve scrollbar display in rustdocGuillaume Gomez-0/+12
2020-03-14Make ignore and compile fail signs more visibleGuillaume Gomez-4/+5
2020-02-27Remove "important traits" featureGuillaume Gomez-33/+0
2020-01-09rustdoc: improve stability mark arrowsLiigo Zhuang-0/+2
2019-11-20Change background-color of search input if disabledGuillaume Gomez-0/+4
2019-10-29add sub settings in rustdocGuillaume Gomez-0/+3
2019-10-01Improve sidebar styling to make its integration easierGuillaume Gomez-1/+1
2019-05-02Fix search sidebar width when no crate select is presentGuillaume Gomez-3/+4
2019-04-16Fix dark css ruleGuillaume Gomez-2/+2
2019-03-26Fix code block display in portability element in dark themeGuillaume Gomez-0/+4
2019-02-20Rollup merge of #58384 - GuillaumeGomez:fix-table-display, r=QuietMisdreavuskennytm-11/+1
Fix tables display Fixes #58134. cc @lzutao r? @QuietMisdreavus
2019-02-20Rollup merge of #58303 - GuillaumeGomez:stability-tags-display, ↵kennytm-5/+5
r=QuietMisdreavus Improve stability tags display The issue was the font color on dark theme. Fixed now: <img width="352" alt="screenshot 2019-02-08 at 14 15 24" src="https://user-images.githubusercontent.com/3050060/52483276-bd810380-2bb3-11e9-8d46-95368569ac85.png"> r? @QuietMisdreavus
2019-02-19Fix tables displayGuillaume Gomez-11/+1
2019-02-10Add style for trait aliasesGuillaume Gomez-0/+2
2019-02-08Improve stability tags displayGuillaume Gomez-5/+5
2019-01-28Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavusMazdak Farrokhzad-4/+0
Fix invalid background color As discussed in #57814. r? @QuietMisdreavus
2019-01-23Fix invalid background colorGuillaume Gomez-4/+0
2019-01-15Fixes text becoming invisible when element targettedGuillaume Gomez-7/+1
2018-12-29Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavusbors-1/+5
Add no-crate filter option on rustdoc @onur asked me about it so here it is! r? @QuietMisdreavus
2018-12-25Remove licensesMark Rousskov-12/+0
2018-12-24Add no-crate filter option on rustdocGuillaume Gomez-1/+5
2018-12-20display rustc_private APIs as "Internal"Andy Russell-0/+5
2018-12-06Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=QuietMisdreavusPietro Albini-1/+7
[rustdoc] Specific crate search Reopening of #54706. Fixes #54616. <img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png"> r? @QuietMisdreavus
2018-12-05Rollup merge of #55563 - GuillaumeGomez:doc-search-sentence, r=QuietMisdreavusPietro Albini-1/+1
Improve no result found sentence in doc search Fixes #55531. Look: <img width="1440" alt="screenshot 2018-11-01 at 02 21 56" src="https://user-images.githubusercontent.com/3050060/47827257-f6236c80-dd7c-11e8-9ea9-99c8cb4b2de5.png"> r? @QuietMisdreavus
2018-11-28Add crate filteringGuillaume Gomez-1/+7