:root { --main-background-color: white; --main-color: black; --settings-input-color: #2196f3; --sidebar-background-color: #F5F5F5; --sidebar-background-color-hover: #E0E0E0; --code-block-background-color: #F5F5F5; --scrollbar-track-background-color: #dcdcdc; --scrollbar-thumb-background-color: rgba(36, 37, 39, 0.6); --scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9; --headings-border-bottom-color: #ddd; --border-color: #e0e0e0; --button-background-color: #fff; --right-side-color: grey; --code-attribute-color: #999; --toggles-color: #999; --search-input-focused-border-color: #66afe9; --copy-path-button-color: #999; --copy-path-img-filter: invert(50%); --copy-path-img-hover-filter: invert(35%); --codeblock-error-hover-color: rgb(255, 0, 0); --codeblock-error-color: rgba(255, 0, 0, .5); --codeblock-ignore-hover-color: rgb(255, 142, 0); --codeblock-ignore-color: rgba(255, 142, 0, .6); --type-link-color: #ad378a; --trait-link-color: #6e4fc9; --assoc-item-link-color: #3873ad; --function-link-color: #ad7c37; --macro-link-color: #068000; --keyword-link-color: #3873ad; --mod-link-color: #3873ad; --link-color: #3873ad; } .slider { background-color: #ccc; } .slider:before { background-color: white; } input:focus + .slider { box-shadow: 0 0 0 2px #0a84ff, 0 0 0 6px rgba(10, 132, 255, 0.3); } .rust-logo { /* This rule exists to force other themes to explicitly style the logo. * Rustdoc has a custom linter for this purpose. */ } .sidebar .current, .sidebar a:hover { background-color: #fff; } .line-numbers span { color: #c67e2d; } .line-numbers .line-highlighted { background-color: #FDFFD3 !important; } .search-results a:hover { background-color: #ddd; } .search-results a:focus { color: #000 !important; background-color: #ccc; } .search-results a:focus span { color: #000 !important; } a.result-trait:focus { background-color: #c7b6ff; } a.result-traitalias:focus { background-color: #c7b6ff; } a.result-mod:focus, a.result-externcrate:focus { background-color: #afc6e4; } a.result-enum:focus { background-color: #e7b1a0; } a.result-struct:focus { background-color: #e7b1a0; } a.result-union:focus { background-color: #e7b1a0; } a.result-fn:focus, a.result-method:focus, a.result-tymethod:focus { background-color: #c6afb3; } a.result-type:focus { background-color: #e7b1a0; } a.result-associatedtype:focus { background-color: #afc6e4; } a.result-foreigntype:focus { background-color: #e7b1a0; } a.result-attr:focus, a.result-derive:focus, a.result-macro:focus { background-color: #8ce488; } a.result-constant:focus, a.result-static:focus { background-color: #afc6e4; } a.result-primitive:focus { background-color: #e7b1a0; } a.result-keyword:focus { background-color: #afc6e4; } .content .item-info::before { color: #ccc; } .sidebar a { color: #356da4; } .sidebar a.current.enum { color: #a63283; } .sidebar a.current.struct { color: #a63283; } .sidebar a.current.type { color: #a63283; } .sidebar a.current.foreigntype { color: #356da4; } .sidebar a.current.attr, .sidebar a.current.derive, .sidebar a.current.macro { color: #067901; } .sidebar a.current.union { color: #a63283; } .sidebar a.current.constant .sidebar a.current.static { color: #356da4; } .sidebar a.current.primitive { color: #a63283; } .sidebar a.current.trait { color: #6849c3; } .sidebar a.current.traitalias { color: #4b349e; } .sidebar a.current.fn { color: #a67736; } .sidebar a.current.keyword { color: #356da4; } body.source .example-wrap pre.rust a { background: #eee; } #crate-search-div::after { /* match border-color; uses https://codepen.io/sosuke/pen/Pjoqqp */ filter: invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%); } #crate-search:hover, #crate-search:focus { border-color: #717171 !important; } #crate-search-div:hover::after, #crate-search-div:focus-within::after { filter: invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%); } .stab { background: #FFF5D6; border-color: #FFC600; } .stab.portability > code { background: none; } .line-numbers :target { background-color: transparent; } /* Code highlighting */ pre.rust .kw { color: #8959A8; } pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; } pre.rust .number, pre.rust .string { color: #718C00; } pre.rust .self, pre.rust .bool-val, pre.rust .prelude-val, pre.rust .attribute { color: #C82829; } pre.rust .comment { color: #8E908C; } pre.rust .doccomment { color: #4D4D4C; } pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; } pre.rust .lifetime { color: #B76514; } pre.rust .question-mark { color: #ff9011; } .example-wrap > pre.line-number { border-color: #c7c7c7; } a.test-arrow { color: #f5f5f5; background-color: rgba(78, 139, 202, 0.2); } a.test-arrow:hover{ background-color: #4e8bca; } :target { background: #FDFFD3; border-right: 3px solid #AD7C37; } .search-failed a { color: #3873AD; } .tooltip::after { background-color: #000; color: #fff; } .tooltip::before { border-color: transparent black transparent transparent; } .notable-traits-tooltiptext { background-color: #eee; } #titles > button:not(.selected) { background-color: #e6e6e6; border-top-color: #e6e6e6; } #titles > button:hover, #titles > button.selected { background-color: #ffffff; border-top-color: #0089ff; } #titles > button > div.count { color: #888; } kbd { color: #000; background-color: #fafbfc; box-shadow: inset 0 -1px 0 #c6cbd1; } #settings-menu > a:hover, #settings-menu > a:focus, #help-button > button:hover, #help-button > button:focus { border-color: #717171; } .search-results .result-name span.alias { color: #000; } .search-results .result-name span.grey { color: #999; } #source-sidebar div.files > a:hover, details.dir-entry summary:hover, #source-sidebar div.files > a:focus, details.dir-entry summary:focus { background-color: #E0E0E0; } #source-sidebar div.files > a.selected { background-color: #fff; } .scraped-example-list .scrape-help { border-color: #555; color: #333; } .scraped-example-list .scrape-help:hover { border-color: black; color: black; } .scraped-example .example-wrap .rust span.highlight { background: #fcffd6; } .scraped-example .example-wrap .rust span.highlight.focus { background: #f6fdb0; } .scraped-example:not(.expanded) .code-wrapper:before { background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); } .scraped-example:not(.expanded) .code-wrapper:after { background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); } .toggle-line-inner { background: #ccc; } .toggle-line:hover .toggle-line-inner { background: #999; }