fix: preserve style edits and cross-surface inheritance
This commit is contained in:
@@ -16,7 +16,7 @@ body {
|
||||
line-height: 1.72;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] body {
|
||||
:where(html[data-theme="dark"]) body {
|
||||
--reader-text-color: #e4e8ef;
|
||||
background: #17191f;
|
||||
color: #e4e8ef;
|
||||
@@ -31,7 +31,7 @@ html[data-theme="dark"] body {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .reader {
|
||||
:where(html[data-theme="dark"]) .reader {
|
||||
background: #20242c;
|
||||
}
|
||||
.reader-shell {
|
||||
@@ -49,10 +49,10 @@ h4 {
|
||||
margin: 1.35em 0 0.55em;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] h1,
|
||||
html[data-theme="dark"] h2,
|
||||
html[data-theme="dark"] h3,
|
||||
html[data-theme="dark"] h4 {
|
||||
:where(html[data-theme="dark"]) h1,
|
||||
:where(html[data-theme="dark"]) h2,
|
||||
:where(html[data-theme="dark"]) h3,
|
||||
:where(html[data-theme="dark"]) h4 {
|
||||
color: #f4f7fb;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] a {
|
||||
:where(html[data-theme="dark"]) a {
|
||||
color: #79b8ff;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ blockquote {
|
||||
color: #344258;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] blockquote {
|
||||
:where(html[data-theme="dark"]) blockquote {
|
||||
background: #26313f;
|
||||
color: #d6deeb;
|
||||
}
|
||||
@@ -148,37 +148,37 @@ html[data-theme="dark"] blockquote {
|
||||
background: #f8f4ff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admonition {
|
||||
:where(html[data-theme="dark"]) .admonition {
|
||||
border-color: #344e68;
|
||||
border-left-color: #5aa5e8;
|
||||
background: #1e2b38;
|
||||
color: #dce8f4;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admonition-title {
|
||||
:where(html[data-theme="dark"]) .admonition-title {
|
||||
color: #f0f7ff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admonition-tip {
|
||||
:where(html[data-theme="dark"]) .admonition-tip {
|
||||
border-color: #294f39;
|
||||
border-left-color: #54c07d;
|
||||
background: #1d3026;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admonition-note {
|
||||
:where(html[data-theme="dark"]) .admonition-note {
|
||||
border-color: #344e68;
|
||||
border-left-color: #5aa5e8;
|
||||
background: #1e2b38;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admonition-warning,
|
||||
html[data-theme="dark"] .admonition-caution {
|
||||
:where(html[data-theme="dark"]) .admonition-warning,
|
||||
:where(html[data-theme="dark"]) .admonition-caution {
|
||||
border-color: #584725;
|
||||
border-left-color: #f0b849;
|
||||
background: #332b1b;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admonition-important {
|
||||
:where(html[data-theme="dark"]) .admonition-important {
|
||||
border-color: #4a3b66;
|
||||
border-left-color: #ad8cff;
|
||||
background: #2c253b;
|
||||
@@ -267,23 +267,23 @@ table {
|
||||
background: #f0f4f8;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .table-wrapper {
|
||||
:where(html[data-theme="dark"]) .table-wrapper {
|
||||
border-color: #3a4352;
|
||||
background: #20242c;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .table-tools {
|
||||
:where(html[data-theme="dark"]) .table-tools {
|
||||
border-bottom-color: #3a4352;
|
||||
background: #242b36;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .copy-table-button {
|
||||
:where(html[data-theme="dark"]) .copy-table-button {
|
||||
border-color: #445063;
|
||||
background: #2d3542;
|
||||
color: #edf2f7;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .copy-table-button:hover {
|
||||
:where(html[data-theme="dark"]) .copy-table-button:hover {
|
||||
background: #364151;
|
||||
}
|
||||
|
||||
@@ -300,12 +300,12 @@ th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] th,
|
||||
html[data-theme="dark"] td {
|
||||
:where(html[data-theme="dark"]) th,
|
||||
:where(html[data-theme="dark"]) td {
|
||||
border-color: #3a4352;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] th {
|
||||
:where(html[data-theme="dark"]) th {
|
||||
background: #2b3340;
|
||||
}
|
||||
|
||||
@@ -322,9 +322,9 @@ td code {
|
||||
color: #9b2c2c;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] p code,
|
||||
html[data-theme="dark"] li code,
|
||||
html[data-theme="dark"] td code {
|
||||
:where(html[data-theme="dark"]) p code,
|
||||
:where(html[data-theme="dark"]) li code,
|
||||
:where(html[data-theme="dark"]) td code {
|
||||
background: #303745;
|
||||
color: #f2b8b5;
|
||||
}
|
||||
@@ -340,7 +340,7 @@ html[data-theme="dark"] td code {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .code-block {
|
||||
:where(html[data-theme="dark"]) .code-block {
|
||||
border-color: #3c3c3c;
|
||||
background: #1e1e1e;
|
||||
}
|
||||
@@ -354,7 +354,7 @@ html[data-theme="dark"] .code-block {
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .code-title {
|
||||
:where(html[data-theme="dark"]) .code-title {
|
||||
border-bottom-color: #3c3c3c;
|
||||
background: #252526;
|
||||
color: #cccccc;
|
||||
@@ -368,7 +368,7 @@ pre.highlight {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] pre.highlight {
|
||||
:where(html[data-theme="dark"]) pre.highlight {
|
||||
background: #1e1e1e;
|
||||
color: #d4d4d4;
|
||||
}
|
||||
@@ -462,84 +462,84 @@ pre.highlight code {
|
||||
color: #a31515;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .c,
|
||||
html[data-theme="dark"] .highlight .cm,
|
||||
html[data-theme="dark"] .highlight .c1,
|
||||
html[data-theme="dark"] .highlight .cs {
|
||||
:where(html[data-theme="dark"]) .highlight .c,
|
||||
:where(html[data-theme="dark"]) .highlight .cm,
|
||||
:where(html[data-theme="dark"]) .highlight .c1,
|
||||
:where(html[data-theme="dark"]) .highlight .cs {
|
||||
color: #6a9955;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .k,
|
||||
html[data-theme="dark"] .highlight .kc,
|
||||
html[data-theme="dark"] .highlight .kd,
|
||||
html[data-theme="dark"] .highlight .kn,
|
||||
html[data-theme="dark"] .highlight .kp,
|
||||
html[data-theme="dark"] .highlight .kr,
|
||||
html[data-theme="dark"] .highlight .ow {
|
||||
:where(html[data-theme="dark"]) .highlight .k,
|
||||
:where(html[data-theme="dark"]) .highlight .kc,
|
||||
:where(html[data-theme="dark"]) .highlight .kd,
|
||||
:where(html[data-theme="dark"]) .highlight .kn,
|
||||
:where(html[data-theme="dark"]) .highlight .kp,
|
||||
:where(html[data-theme="dark"]) .highlight .kr,
|
||||
:where(html[data-theme="dark"]) .highlight .ow {
|
||||
color: #569cd6;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .kt,
|
||||
html[data-theme="dark"] .highlight .nc,
|
||||
html[data-theme="dark"] .highlight .nn {
|
||||
:where(html[data-theme="dark"]) .highlight .kt,
|
||||
:where(html[data-theme="dark"]) .highlight .nc,
|
||||
:where(html[data-theme="dark"]) .highlight .nn {
|
||||
color: #4ec9b0;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .s,
|
||||
html[data-theme="dark"] .highlight .sa,
|
||||
html[data-theme="dark"] .highlight .sb,
|
||||
html[data-theme="dark"] .highlight .sc,
|
||||
html[data-theme="dark"] .highlight .dl,
|
||||
html[data-theme="dark"] .highlight .sd,
|
||||
html[data-theme="dark"] .highlight .s1,
|
||||
html[data-theme="dark"] .highlight .s2,
|
||||
html[data-theme="dark"] .highlight .se,
|
||||
html[data-theme="dark"] .highlight .sh,
|
||||
html[data-theme="dark"] .highlight .si,
|
||||
html[data-theme="dark"] .highlight .sx,
|
||||
html[data-theme="dark"] .highlight .sr,
|
||||
html[data-theme="dark"] .highlight .ss {
|
||||
:where(html[data-theme="dark"]) .highlight .s,
|
||||
:where(html[data-theme="dark"]) .highlight .sa,
|
||||
:where(html[data-theme="dark"]) .highlight .sb,
|
||||
:where(html[data-theme="dark"]) .highlight .sc,
|
||||
:where(html[data-theme="dark"]) .highlight .dl,
|
||||
:where(html[data-theme="dark"]) .highlight .sd,
|
||||
:where(html[data-theme="dark"]) .highlight .s1,
|
||||
:where(html[data-theme="dark"]) .highlight .s2,
|
||||
:where(html[data-theme="dark"]) .highlight .se,
|
||||
:where(html[data-theme="dark"]) .highlight .sh,
|
||||
:where(html[data-theme="dark"]) .highlight .si,
|
||||
:where(html[data-theme="dark"]) .highlight .sx,
|
||||
:where(html[data-theme="dark"]) .highlight .sr,
|
||||
:where(html[data-theme="dark"]) .highlight .ss {
|
||||
color: #ce9178;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .m,
|
||||
html[data-theme="dark"] .highlight .mb,
|
||||
html[data-theme="dark"] .highlight .mf,
|
||||
html[data-theme="dark"] .highlight .mh,
|
||||
html[data-theme="dark"] .highlight .mi,
|
||||
html[data-theme="dark"] .highlight .mo,
|
||||
html[data-theme="dark"] .highlight .il {
|
||||
:where(html[data-theme="dark"]) .highlight .m,
|
||||
:where(html[data-theme="dark"]) .highlight .mb,
|
||||
:where(html[data-theme="dark"]) .highlight .mf,
|
||||
:where(html[data-theme="dark"]) .highlight .mh,
|
||||
:where(html[data-theme="dark"]) .highlight .mi,
|
||||
:where(html[data-theme="dark"]) .highlight .mo,
|
||||
:where(html[data-theme="dark"]) .highlight .il {
|
||||
color: #b5cea8;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .nf,
|
||||
html[data-theme="dark"] .highlight .fm,
|
||||
html[data-theme="dark"] .highlight .nb,
|
||||
html[data-theme="dark"] .highlight .bp {
|
||||
:where(html[data-theme="dark"]) .highlight .nf,
|
||||
:where(html[data-theme="dark"]) .highlight .fm,
|
||||
:where(html[data-theme="dark"]) .highlight .nb,
|
||||
:where(html[data-theme="dark"]) .highlight .bp {
|
||||
color: #dcdcaa;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .na,
|
||||
html[data-theme="dark"] .highlight .nv,
|
||||
html[data-theme="dark"] .highlight .vc,
|
||||
html[data-theme="dark"] .highlight .vg,
|
||||
html[data-theme="dark"] .highlight .vi,
|
||||
html[data-theme="dark"] .highlight .vm {
|
||||
:where(html[data-theme="dark"]) .highlight .na,
|
||||
:where(html[data-theme="dark"]) .highlight .nv,
|
||||
:where(html[data-theme="dark"]) .highlight .vc,
|
||||
:where(html[data-theme="dark"]) .highlight .vg,
|
||||
:where(html[data-theme="dark"]) .highlight .vi,
|
||||
:where(html[data-theme="dark"]) .highlight .vm {
|
||||
color: #9cdcfe;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .nd,
|
||||
html[data-theme="dark"] .highlight .ne,
|
||||
html[data-theme="dark"] .highlight .nl {
|
||||
:where(html[data-theme="dark"]) .highlight .nd,
|
||||
:where(html[data-theme="dark"]) .highlight .ne,
|
||||
:where(html[data-theme="dark"]) .highlight .nl {
|
||||
color: #c586c0;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .o,
|
||||
html[data-theme="dark"] .highlight .p {
|
||||
:where(html[data-theme="dark"]) .highlight .o,
|
||||
:where(html[data-theme="dark"]) .highlight .p {
|
||||
color: #d4d4d4;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .highlight .err {
|
||||
:where(html[data-theme="dark"]) .highlight .err {
|
||||
color: #f48771;
|
||||
}
|
||||
|
||||
@@ -564,7 +564,7 @@ html[data-theme="dark"] .highlight .err {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .code-line::before {
|
||||
:where(html[data-theme="dark"]) .code-line::before {
|
||||
color: #858585;
|
||||
}
|
||||
|
||||
@@ -584,7 +584,7 @@ html[data-theme="dark"] .code-line::before {
|
||||
background: linear-gradient(rgb(255 255 255 / 0), #ffffff);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .code-block.is-collapsible.is-collapsed::after {
|
||||
:where(html[data-theme="dark"]) .code-block.is-collapsible.is-collapsed::after {
|
||||
background: linear-gradient(rgb(30 30 30 / 0), #1e1e1e);
|
||||
}
|
||||
|
||||
@@ -598,7 +598,7 @@ html[data-theme="dark"] .code-block.is-collapsible.is-collapsed::after {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .plain-file-view {
|
||||
:where(html[data-theme="dark"]) .plain-file-view {
|
||||
border-color: #384252;
|
||||
background: #171b22;
|
||||
}
|
||||
@@ -614,8 +614,8 @@ html[data-theme="dark"] .plain-file-view {
|
||||
background: #f7f9fc;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .diagram-block,
|
||||
html[data-theme="dark"] .math-block {
|
||||
:where(html[data-theme="dark"]) .diagram-block,
|
||||
:where(html[data-theme="dark"]) .math-block {
|
||||
border-color: #384252;
|
||||
background: #171b22;
|
||||
}
|
||||
@@ -629,7 +629,7 @@ html[data-theme="dark"] .math-block {
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .diagram-title {
|
||||
:where(html[data-theme="dark"]) .diagram-title {
|
||||
border-bottom-color: #384252;
|
||||
background: #242b36;
|
||||
color: #b7c0cc;
|
||||
@@ -670,8 +670,8 @@ html[data-theme="dark"] .diagram-title {
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .diagram-missing-runtime::before,
|
||||
html[data-theme="dark"] .diagram-render-error::before {
|
||||
:where(html[data-theme="dark"]) .diagram-missing-runtime::before,
|
||||
:where(html[data-theme="dark"]) .diagram-render-error::before {
|
||||
color: #f2b8b5;
|
||||
}
|
||||
|
||||
@@ -706,13 +706,13 @@ html[data-theme="dark"] .diagram-render-error::before {
|
||||
background: #f0f4f8;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .toggle-code-button {
|
||||
:where(html[data-theme="dark"]) .toggle-code-button {
|
||||
border-color: #445063;
|
||||
background: #2d3542;
|
||||
color: #edf2f7;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .toggle-code-button:hover {
|
||||
:where(html[data-theme="dark"]) .toggle-code-button:hover {
|
||||
background: #364151;
|
||||
}
|
||||
|
||||
@@ -720,13 +720,13 @@ html[data-theme="dark"] .toggle-code-button:hover {
|
||||
background: #f0f4f8;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .copy-code-button {
|
||||
:where(html[data-theme="dark"]) .copy-code-button {
|
||||
border-color: #445063;
|
||||
background: #2d3542;
|
||||
color: #edf2f7;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .copy-code-button:hover {
|
||||
:where(html[data-theme="dark"]) .copy-code-button:hover {
|
||||
background: #364151;
|
||||
}
|
||||
|
||||
@@ -735,7 +735,7 @@ html[data-theme="dark"] .copy-code-button:hover {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .pseudo-keyword {
|
||||
:where(html[data-theme="dark"]) .pseudo-keyword {
|
||||
color: #569cd6;
|
||||
}
|
||||
|
||||
@@ -816,21 +816,21 @@ img {
|
||||
background: #dbe4ef;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .media-player-link__box {
|
||||
:where(html[data-theme="dark"]) .media-player-link__box {
|
||||
border-color: #384252;
|
||||
background: #242b36;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .media-player-link__title {
|
||||
:where(html[data-theme="dark"]) .media-player-link__title {
|
||||
color: #dce3ec;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .media-player-link__button--secondary {
|
||||
:where(html[data-theme="dark"]) .media-player-link__button--secondary {
|
||||
background: #303948;
|
||||
color: #edf2f7;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .media-player-link__button--secondary:hover {
|
||||
:where(html[data-theme="dark"]) .media-player-link__button--secondary:hover {
|
||||
background: #3a4658;
|
||||
}
|
||||
|
||||
@@ -852,7 +852,7 @@ html[data-theme="dark"] .media-player-link__button--secondary:hover {
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .media-fallback {
|
||||
:where(html[data-theme="dark"]) .media-fallback {
|
||||
border-color: #384252;
|
||||
background: #242b36;
|
||||
color: #dce3ec;
|
||||
@@ -864,7 +864,7 @@ figcaption {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] figcaption {
|
||||
:where(html[data-theme="dark"]) figcaption {
|
||||
color: #a9b4c4;
|
||||
}
|
||||
|
||||
@@ -874,7 +874,7 @@ hr {
|
||||
margin: 2em 0;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] hr {
|
||||
:where(html[data-theme="dark"]) hr {
|
||||
border-top-color: #384252;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user