mirror of https://github.com/helix-editor/helix
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 #796pull/826/head
parent
a6852fb88f
commit
4260b31ec0
|
@ -196,7 +196,7 @@ a > .hljs {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:not(pre):not(a) > .hljs {
|
:not(pre):not(a):not(td):not(p) > .hljs {
|
||||||
color: var(--inline-code-color);
|
color: var(--inline-code-color);
|
||||||
overflow-x: initial;
|
overflow-x: initial;
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,7 +162,6 @@ table thead td {
|
||||||
table thead th {
|
table thead th {
|
||||||
padding: .75rem;
|
padding: .75rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: var(--table-border-color);
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -228,3 +227,7 @@ blockquote *:last-child {
|
||||||
margin: 5px 0px;
|
margin: 5px 0px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.result-no-output {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
.ayu {
|
.ayu {
|
||||||
--bg: hsl(210, 25%, 8%);
|
--bg: hsl(210, 25%, 8%);
|
||||||
--fg: #c5c5c5;
|
--fg: #c5c5c5;
|
||||||
--heading-fg: #c5c5c5;
|
|
||||||
|
|
||||||
--sidebar-bg: #14191f;
|
--sidebar-bg: #14191f;
|
||||||
--sidebar-fg: #c8c9db;
|
--sidebar-fg: #c8c9db;
|
||||||
|
@ -54,7 +53,6 @@
|
||||||
.coal {
|
.coal {
|
||||||
--bg: hsl(200, 7%, 8%);
|
--bg: hsl(200, 7%, 8%);
|
||||||
--fg: #98a3ad;
|
--fg: #98a3ad;
|
||||||
--heading-fg: #98a3ad;
|
|
||||||
|
|
||||||
--sidebar-bg: #292c2f;
|
--sidebar-bg: #292c2f;
|
||||||
--sidebar-fg: #a1adb8;
|
--sidebar-fg: #a1adb8;
|
||||||
|
@ -95,7 +93,6 @@
|
||||||
.light {
|
.light {
|
||||||
--bg: hsl(0, 0%, 100%);
|
--bg: hsl(0, 0%, 100%);
|
||||||
--fg: hsl(0, 0%, 0%);
|
--fg: hsl(0, 0%, 0%);
|
||||||
--heading-fg: hsl(0, 0%, 0%);
|
|
||||||
|
|
||||||
--sidebar-bg: #fafafa;
|
--sidebar-bg: #fafafa;
|
||||||
--sidebar-fg: hsl(0, 0%, 0%);
|
--sidebar-fg: hsl(0, 0%, 0%);
|
||||||
|
@ -110,7 +107,7 @@
|
||||||
|
|
||||||
--links: #20609f;
|
--links: #20609f;
|
||||||
|
|
||||||
--inline-code-color: #a39e9b;
|
--inline-code-color: #301900;
|
||||||
|
|
||||||
--theme-popup-bg: #fafafa;
|
--theme-popup-bg: #fafafa;
|
||||||
--theme-popup-border: #cccccc;
|
--theme-popup-border: #cccccc;
|
||||||
|
@ -136,7 +133,6 @@
|
||||||
.navy {
|
.navy {
|
||||||
--bg: hsl(226, 23%, 11%);
|
--bg: hsl(226, 23%, 11%);
|
||||||
--fg: #bcbdd0;
|
--fg: #bcbdd0;
|
||||||
--heading-fg: #bcbdd0;
|
|
||||||
|
|
||||||
--sidebar-bg: #282d3f;
|
--sidebar-bg: #282d3f;
|
||||||
--sidebar-fg: #c8c9db;
|
--sidebar-fg: #c8c9db;
|
||||||
|
@ -177,7 +173,6 @@
|
||||||
.rust {
|
.rust {
|
||||||
--bg: hsl(60, 9%, 87%);
|
--bg: hsl(60, 9%, 87%);
|
||||||
--fg: #262625;
|
--fg: #262625;
|
||||||
--heading-fg: #262625;
|
|
||||||
|
|
||||||
--sidebar-bg: #3b2e2a;
|
--sidebar-bg: #3b2e2a;
|
||||||
--sidebar-fg: #c8c9db;
|
--sidebar-fg: #c8c9db;
|
||||||
|
@ -192,7 +187,7 @@
|
||||||
|
|
||||||
--links: #2b79a2;
|
--links: #2b79a2;
|
||||||
|
|
||||||
--inline-code-color: #c5c8c6;
|
--inline-code-color: #6e6b5e;
|
||||||
|
|
||||||
--theme-popup-bg: #e1e1db;
|
--theme-popup-bg: #e1e1db;
|
||||||
--theme-popup-border: #b38f6b;
|
--theme-popup-border: #b38f6b;
|
||||||
|
@ -218,8 +213,7 @@
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
.light.no-js {
|
.light.no-js {
|
||||||
--bg: hsl(200, 7%, 8%);
|
--bg: hsl(200, 7%, 8%);
|
||||||
--fg: #ebeafa;
|
--fg: #98a3ad;
|
||||||
--heading-fg: #ebeafa;
|
|
||||||
|
|
||||||
--sidebar-bg: #292c2f;
|
--sidebar-bg: #292c2f;
|
||||||
--sidebar-fg: #a1adb8;
|
--sidebar-fg: #a1adb8;
|
||||||
|
@ -234,7 +228,7 @@
|
||||||
|
|
||||||
--links: #2b79a2;
|
--links: #2b79a2;
|
||||||
|
|
||||||
--inline-code-color: #6e6b5e;
|
--inline-code-color: #c5c8c6;
|
||||||
|
|
||||||
--theme-popup-bg: #141617;
|
--theme-popup-bg: #141617;
|
||||||
--theme-popup-border: #43484d;
|
--theme-popup-border: #43484d;
|
||||||
|
|
|
@ -29,10 +29,10 @@ use std::borrow::Cow;
|
||||||
/// "(anchor, head)", followed by example text with "[" and "]"
|
/// "(anchor, head)", followed by example text with "[" and "]"
|
||||||
/// inserted to represent the anchor and head positions:
|
/// inserted to represent the anchor and head positions:
|
||||||
///
|
///
|
||||||
/// - (0, 3): [Som]e text.
|
/// - (0, 3): `[Som]e text`.
|
||||||
/// - (3, 0): ]Som[e text.
|
/// - (3, 0): `]Som[e text`.
|
||||||
/// - (2, 7): So[me te]xt.
|
/// - (2, 7): `So[me te]xt`.
|
||||||
/// - (1, 1): S[]ome text.
|
/// - (1, 1): `S[]ome text`.
|
||||||
///
|
///
|
||||||
/// Ranges are considered to be inclusive on the left and
|
/// Ranges are considered to be inclusive on the left and
|
||||||
/// exclusive on the right, regardless of anchor-head ordering.
|
/// exclusive on the right, regardless of anchor-head ordering.
|
||||||
|
|
Loading…
Reference in New Issue