-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc-style.css
More file actions
154 lines (130 loc) · 3.07 KB
/
Copy pathdoc-style.css
File metadata and controls
154 lines (130 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/* Polygon.io brand colors for docs.rs */
:root[data-theme="dark"] {
/* Polygon.io brand colors */
--polygon-bg: oklch(0.21 0.034 264.665);
--polygon-active: oklch(0.673 0.182 276.935);
--polygon-muted: oklch(0.707 0.022 261.325);
--polygon-text: #ffffff;
--font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
/* Override rustdoc dark theme variables */
--main-background-color: var(--polygon-bg);
--main-color: var(--polygon-muted);
--sidebar-background-color: var(--polygon-bg);
--sidebar-background-color-hover: rgba(255, 255, 255, 0.02);
--link-color: var(--polygon-muted);
--sidebar-link-color: var(--polygon-muted);
--sidebar-current-link-background-color: transparent;
--search-input-focused-border-color: var(--polygon-active);
--headings-border-bottom-color: var(--polygon-muted);
--settings-button-border-focus: var(--polygon-active);
}
#crate-search,
h1,
h2,
h3,
h4,
h5,
h6,
.sidebar,
.mobile-topbar,
.search-input,
.search-results .result-name,
.item-table dt>a,
.out-of-band,
.sub-heading,
span.since,
a.src,
rustdoc-toolbar,
summary.hideme,
.scraped-example-list,
.rustdoc-breadcrumbs,
ul.all-items {
font-family: var(--font-family);
}
/* Override dark theme background */
body {
background-color: var(--polygon-bg);
font-family: var(--font-family)
}
.sidebar,
.sidebar-elems,
nav.sub {
background-color: var(--polygon-bg);
}
/* Main content area */
.content,
main {
background-color: var(--polygon-bg);
color: var(--polygon-muted);
}
/* Links - muted by default, purple on hover */
a {
color: var(--polygon-muted);
text-decoration: none;
}
a:hover {
color: var(--polygon-active);
}
/* Headers - h1-h3 white, rest muted */
h1,
h2,
h3 {
color: var(--polygon-text);
}
h4,
h5,
h6 {
color: var(--polygon-muted);
}
/* Sidebar section headers */
.sidebar .block h3,
.sidebar-elems .block h3,
.sidebar .block h3 a,
.sidebar-elems .block h3 a {
color: var(--polygon-text);
}
/* Sidebar active item - subtle highlight */
.sidebar .current {
background-color: var(--polygon-bg) !important;
color: var(--polygon-active);
}
.sidebar a {
color: var(--polygon-muted);
}
.sidebar-elems a:hover,
.sidebar a:hover,
.sidebar .current a {
color: var(--polygon-text);
background-color: rgba(255, 255, 255, 0.02) !important;
}
:target:not([data-nosnippet]) {
background-color: rgba(255, 255, 255, 0.05);
color: var(--polygon-active);
border-right: 1px solid var(--polygon-active);
}
/* Search box */
.search-input {
background-color: rgba(255, 255, 255, 0.02);
border: none;
border-radius: 0;
color: var(--polygon-text);
}
.search-input:focus {
border: 1px solid var(--polygon-active);
}
/* Muted text */
.since,
.stability,
.out-of-band,
.docblock .warning {
color: var(--polygon-muted);
}
/* Function/type signatures */
.item-decl {
background-color: rgba(0, 0, 0, 0.2);
}
/* Top bar */
.top-doc .docblock,
.search-container {
background-color: var(--polygon-bg);
}