on master help sign in
Update mdbook style and fix unreadable table head (#806)

The styles are now pulled from upstream styles, some of the changes I submitted it back to upstream. Fix #796

commit4260b31ec059ffa2207f8f2541af1c3996b00cf9 authorIvan Tham <pickfire@riseup.net> dateSat 9 Oct 2021, 19:35 (5 years ago) parenta6852fb
4 files changed+13−16
book/theme/css/chrome.css+1−1 book/theme/css/general.css+4−1 book/theme/css/variables.css+4−10 helix-core/src/selection.rs+4−4
book/theme/css/chrome.css+1−1
@@ -196,7 +196,7 @@ a > .hljs {
196196 border-radius: 3px;
197197}
198198
199−:not(pre):not(a) > .hljs {
199+:not(pre):not(a):not(td):not(p) > .hljs {
200200 color: var(--inline-code-color);
201201 overflow-x: initial;
202202}
book/theme/css/general.css+4−1
@@ -162,7 +162,6 @@ table thead td {
162162table thead th {
163163 padding: .75rem;
164164 text-align: left;
165− color: var(--table-border-color);
166165 font-weight: 500;
167166 line-height: 1.5;
168167 width: auto;
@@ -228,3 +227,7 @@ blockquote *:last-child {
228227 margin: 5px 0px;
229228 font-weight: bold;
230229}
230+
231+.result-no-output {
232+ font-style: italic;
233+}
book/theme/css/variables.css+4−10
@@ -13,7 +13,6 @@
1313.ayu {
1414 --bg: hsl(210, 25%, 8%);
1515 --fg: #c5c5c5;
16− --heading-fg: #c5c5c5;
1716
1817 --sidebar-bg: #14191f;
1918 --sidebar-fg: #c8c9db;
@@ -54,7 +53,6 @@
5453.coal {
5554 --bg: hsl(200, 7%, 8%);
5655 --fg: #98a3ad;
57− --heading-fg: #98a3ad;
5856
5957 --sidebar-bg: #292c2f;
6058 --sidebar-fg: #a1adb8;
@@ -95,7 +93,6 @@
9593.light {
9694 --bg: hsl(0, 0%, 100%);
9795 --fg: hsl(0, 0%, 0%);
98− --heading-fg: hsl(0, 0%, 0%);
9996
10097 --sidebar-bg: #fafafa;
10198 --sidebar-fg: hsl(0, 0%, 0%);
@@ -110,7 +107,7 @@
110107
111108 --links: #20609f;
112109
113− --inline-code-color: #a39e9b;
110+ --inline-code-color: #301900;
114111
115112 --theme-popup-bg: #fafafa;
116113 --theme-popup-border: #cccccc;
@@ -136,7 +133,6 @@
136133.navy {
137134 --bg: hsl(226, 23%, 11%);
138135 --fg: #bcbdd0;
139− --heading-fg: #bcbdd0;
140136
141137 --sidebar-bg: #282d3f;
142138 --sidebar-fg: #c8c9db;
@@ -177,7 +173,6 @@
177173.rust {
178174 --bg: hsl(60, 9%, 87%);
179175 --fg: #262625;
180− --heading-fg: #262625;
181176
182177 --sidebar-bg: #3b2e2a;
183178 --sidebar-fg: #c8c9db;
@@ -192,7 +187,7 @@
192187
193188 --links: #2b79a2;
194189
195− --inline-code-color: #c5c8c6;
190+ --inline-code-color: #6e6b5e;
196191
197192 --theme-popup-bg: #e1e1db;
198193 --theme-popup-border: #b38f6b;
@@ -218,8 +213,7 @@
218213@media (prefers-color-scheme: dark) {
219214 .light.no-js {
220215 --bg: hsl(200, 7%, 8%);
221− --fg: #ebeafa;
222− --heading-fg: #ebeafa;
216+ --fg: #98a3ad;
223217
224218 --sidebar-bg: #292c2f;
225219 --sidebar-fg: #a1adb8;
@@ -234,7 +228,7 @@
234228
235229 --links: #2b79a2;
236230
237− --inline-code-color: #6e6b5e;
231+ --inline-code-color: #c5c8c6;
238232
239233 --theme-popup-bg: #141617;
240234 --theme-popup-border: #43484d;
helix-core/src/selection.rs+4−4
@@ -29,10 +29,10 @@ use std::borrow::Cow;
2929/// "(anchor, head)", followed by example text with "[" and "]"
3030/// inserted to represent the anchor and head positions:
3131///
32−/// - (0, 3): [Som]e text.
33−/// - (3, 0): ]Som[e text.
34−/// - (2, 7): So[me te]xt.
35−/// - (1, 1): S[]ome text.
32+/// - (0, 3): `[Som]e text`.
33+/// - (3, 0): `]Som[e text`.
34+/// - (2, 7): `So[me te]xt`.
35+/// - (1, 1): `S[]ome text`.
3636///
3737/// Ranges are considered to be inclusive on the left and
3838/// exclusive on the right, regardless of anchor-head ordering.