on master help sign in
Update mdbook style and fix unreadable table head (#806)
4260b31Ivan Tham
book/theme/css/chrome.css+1−1
@@ -196,7 +196,7 @@ a > .hljs {
196 border-radius: 3px;
196 border-radius: 3px;
197}
197}
198
198
199−:not(pre):not(a) > .hljs {
199+:not(pre):not(a):not(td):not(p) > .hljs {
200 color: var(--inline-code-color);
200 color: var(--inline-code-color);
201 overflow-x: initial;
201 overflow-x: initial;
202}
202}
book/theme/css/general.css+4−1
@@ -162,7 +162,6 @@ table thead td {
162table thead th {
162table thead th {
163 padding: .75rem;
163 padding: .75rem;
164 text-align: left;
164 text-align: left;
165− color: var(--table-border-color);
166 font-weight: 500;
165 font-weight: 500;
167 line-height: 1.5;
166 line-height: 1.5;
168 width: auto;
167 width: auto;
@@ -228,3 +227,7 @@ blockquote *:last-child {
228 margin: 5px 0px;
227 margin: 5px 0px;
229 font-weight: bold;
228 font-weight: bold;
230}
229}
230+
231+.result-no-output {
232+ font-style: italic;
233+}
book/theme/css/variables.css+4−10
@@ -13,7 +13,6 @@
13.ayu {
13.ayu {
14 --bg: hsl(210, 25%, 8%);
14 --bg: hsl(210, 25%, 8%);
15 --fg: #c5c5c5;
15 --fg: #c5c5c5;
16− --heading-fg: #c5c5c5;
17
16
18 --sidebar-bg: #14191f;
17 --sidebar-bg: #14191f;
19 --sidebar-fg: #c8c9db;
18 --sidebar-fg: #c8c9db;
@@ -54,7 +53,6 @@
54.coal {
53.coal {
55 --bg: hsl(200, 7%, 8%);
54 --bg: hsl(200, 7%, 8%);
56 --fg: #98a3ad;
55 --fg: #98a3ad;
57− --heading-fg: #98a3ad;
58
56
59 --sidebar-bg: #292c2f;
57 --sidebar-bg: #292c2f;
60 --sidebar-fg: #a1adb8;
58 --sidebar-fg: #a1adb8;
@@ -95,7 +93,6 @@
95.light {
93.light {
96 --bg: hsl(0, 0%, 100%);
94 --bg: hsl(0, 0%, 100%);
97 --fg: hsl(0, 0%, 0%);
95 --fg: hsl(0, 0%, 0%);
98− --heading-fg: hsl(0, 0%, 0%);
99
96
100 --sidebar-bg: #fafafa;
97 --sidebar-bg: #fafafa;
101 --sidebar-fg: hsl(0, 0%, 0%);
98 --sidebar-fg: hsl(0, 0%, 0%);
@@ -110,7 +107,7 @@
110
107
111 --links: #20609f;
108 --links: #20609f;
112
109
113− --inline-code-color: #a39e9b;
110+ --inline-code-color: #301900;
114
111
115 --theme-popup-bg: #fafafa;
112 --theme-popup-bg: #fafafa;
116 --theme-popup-border: #cccccc;
113 --theme-popup-border: #cccccc;
@@ -136,7 +133,6 @@
136.navy {
133.navy {
137 --bg: hsl(226, 23%, 11%);
134 --bg: hsl(226, 23%, 11%);
138 --fg: #bcbdd0;
135 --fg: #bcbdd0;
139− --heading-fg: #bcbdd0;
140
136
141 --sidebar-bg: #282d3f;
137 --sidebar-bg: #282d3f;
142 --sidebar-fg: #c8c9db;
138 --sidebar-fg: #c8c9db;
@@ -177,7 +173,6 @@
177.rust {
173.rust {
178 --bg: hsl(60, 9%, 87%);
174 --bg: hsl(60, 9%, 87%);
179 --fg: #262625;
175 --fg: #262625;
180− --heading-fg: #262625;
181
176
182 --sidebar-bg: #3b2e2a;
177 --sidebar-bg: #3b2e2a;
183 --sidebar-fg: #c8c9db;
178 --sidebar-fg: #c8c9db;
@@ -192,7 +187,7 @@
192
187
193 --links: #2b79a2;
188 --links: #2b79a2;
194
189
195− --inline-code-color: #c5c8c6;
190+ --inline-code-color: #6e6b5e;
196
191
197 --theme-popup-bg: #e1e1db;
192 --theme-popup-bg: #e1e1db;
198 --theme-popup-border: #b38f6b;
193 --theme-popup-border: #b38f6b;
@@ -218,8 +213,7 @@
218@media (prefers-color-scheme: dark) {
213@media (prefers-color-scheme: dark) {
219 .light.no-js {
214 .light.no-js {
220 --bg: hsl(200, 7%, 8%);
215 --bg: hsl(200, 7%, 8%);
221− --fg: #ebeafa;
216+ --fg: #98a3ad;
222− --heading-fg: #ebeafa;
223
217
224 --sidebar-bg: #292c2f;
218 --sidebar-bg: #292c2f;
225 --sidebar-fg: #a1adb8;
219 --sidebar-fg: #a1adb8;
@@ -234,7 +228,7 @@
234
228
235 --links: #2b79a2;
229 --links: #2b79a2;
236
230
237− --inline-code-color: #6e6b5e;
231+ --inline-code-color: #c5c8c6;
238
232
239 --theme-popup-bg: #141617;
233 --theme-popup-bg: #141617;
240 --theme-popup-border: #43484d;
234 --theme-popup-border: #43484d;
helix-core/src/selection.rs+4−4
@@ -29,10 +29,10 @@ use std::borrow::Cow;
29/// "(anchor, head)", followed by example text with "[" and "]"
29/// "(anchor, head)", followed by example text with "[" and "]"
30/// inserted to represent the anchor and head positions:
30/// inserted to represent the anchor and head positions:
31///
31///
32−/// - (0, 3): [Som]e text.
32+/// - (0, 3): `[Som]e text`.
33−/// - (3, 0): ]Som[e text.
33+/// - (3, 0): `]Som[e text`.
34−/// - (2, 7): So[me te]xt.
34+/// - (2, 7): `So[me te]xt`.
35−/// - (1, 1): S[]ome text.
35+/// - (1, 1): `S[]ome text`.
36///
36///
37/// Ranges are considered to be inclusive on the left and
37/// Ranges are considered to be inclusive on the left and
38/// exclusive on the right, regardless of anchor-head ordering.
38/// exclusive on the right, regardless of anchor-head ordering.