965 lines
18 KiB
CSS
965 lines
18 KiB
CSS
html {
|
|
color-scheme: light;
|
|
}
|
|
|
|
html[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
body {
|
|
--reader-text-color: #23272f;
|
|
margin: 0;
|
|
background: #f6f7f9;
|
|
color: #23272f;
|
|
font-family: var(--reader-font-family);
|
|
font-size: var(--reader-font-size);
|
|
line-height: 1.72;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) body {
|
|
--reader-text-color: #e4e8ef;
|
|
background: #17191f;
|
|
color: #e4e8ef;
|
|
}
|
|
|
|
.reader {
|
|
box-sizing: border-box;
|
|
max-width: var(--reader-paper-width);
|
|
min-height: 100vh;
|
|
margin: 0 auto;
|
|
padding: 34px 42px 56px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .reader {
|
|
background: #20242c;
|
|
}
|
|
.reader-shell {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
line-height: 1.32;
|
|
color: #121722;
|
|
margin: 1.35em 0 0.55em;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
h1 {
|
|
margin-top: 0;
|
|
padding-bottom: 0.34em;
|
|
border-bottom: 1px solid #d9dee7;
|
|
font-size: 2.05em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.48em;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
p {
|
|
margin: 0.74em 0;
|
|
}
|
|
|
|
a {
|
|
color: #1769aa;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) a {
|
|
color: #79b8ff;
|
|
}
|
|
|
|
blockquote {
|
|
margin: 1em 0;
|
|
padding: 0.55em 1em;
|
|
border-left: 4px solid #4f8cc9;
|
|
background: #eef5fc;
|
|
color: #344258;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) blockquote {
|
|
background: #26313f;
|
|
color: #d6deeb;
|
|
}
|
|
|
|
.admonition {
|
|
margin: 1em 0;
|
|
padding: 0.72em 1em;
|
|
border: 1px solid #cfe0f2;
|
|
border-left: 5px solid #3b82c4;
|
|
border-radius: 8px;
|
|
background: #f0f7ff;
|
|
color: #28384f;
|
|
}
|
|
|
|
.admonition-title {
|
|
display: block;
|
|
margin: 0 0 0.38em;
|
|
color: #17395f;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.admonition-title + p,
|
|
.admonition p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.admonition-tip {
|
|
border-color: #ccebd9;
|
|
border-left-color: #2f9e63;
|
|
background: #f0fff6;
|
|
}
|
|
|
|
.admonition-note {
|
|
border-color: #cfe0f2;
|
|
border-left-color: #3b82c4;
|
|
background: #f0f7ff;
|
|
}
|
|
|
|
.admonition-warning,
|
|
.admonition-caution {
|
|
border-color: #f1d7a8;
|
|
border-left-color: #d08700;
|
|
background: #fff8e8;
|
|
}
|
|
|
|
.admonition-important {
|
|
border-color: #e0cef3;
|
|
border-left-color: #8b5cf6;
|
|
background: #f8f4ff;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .admonition {
|
|
border-color: #344e68;
|
|
border-left-color: #5aa5e8;
|
|
background: #1e2b38;
|
|
color: #dce8f4;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .admonition-title {
|
|
color: #f0f7ff;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .admonition-tip {
|
|
border-color: #294f39;
|
|
border-left-color: #54c07d;
|
|
background: #1d3026;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .admonition-note {
|
|
border-color: #344e68;
|
|
border-left-color: #5aa5e8;
|
|
background: #1e2b38;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .admonition-warning,
|
|
:where(html[data-theme="dark"]) .admonition-caution {
|
|
border-color: #584725;
|
|
border-left-color: #f0b849;
|
|
background: #332b1b;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .admonition-important {
|
|
border-color: #4a3b66;
|
|
border-left-color: #ad8cff;
|
|
background: #2c253b;
|
|
}
|
|
|
|
.task-list {
|
|
padding-left: 1.1em;
|
|
}
|
|
|
|
.task-list-item {
|
|
list-style: none;
|
|
margin-left: -1.1em;
|
|
}
|
|
|
|
.task-list-item-checkbox {
|
|
width: 1em;
|
|
height: 1em;
|
|
margin: 0 0.42em 0 0;
|
|
vertical-align: -0.12em;
|
|
accent-color: #2f7ecb;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
margin: 1.2em 0;
|
|
border-collapse: collapse;
|
|
font-size: 0.96em;
|
|
}
|
|
|
|
.table-wrapper {
|
|
position: relative;
|
|
margin: max(1.2em, 28px) 0 1.2em;
|
|
}
|
|
|
|
.table-scroll {
|
|
overflow-x: auto;
|
|
border-radius: 6px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
.table-wrapper table {
|
|
margin: 0;
|
|
table-layout: auto;
|
|
}
|
|
|
|
.table-tools {
|
|
position: absolute;
|
|
bottom: 100%;
|
|
right: 2px;
|
|
padding-bottom: 4px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.table-wrapper:hover .table-tools,
|
|
.table-wrapper:focus-within .table-tools {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.copy-table-button {
|
|
padding: 2px 8px;
|
|
border: 1px solid #c8d0dc;
|
|
border-radius: 5px;
|
|
background: #ffffff;
|
|
color: #354052;
|
|
font: 600 12px/18px "Segoe UI", "Microsoft YaHei UI", sans-serif;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.copy-table-button:hover {
|
|
background: #f0f4f8;
|
|
}
|
|
|
|
.copy-table-button:focus-visible {
|
|
outline: 2px solid #3578c8;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
@media (hover: none) {
|
|
.table-tools { opacity: 1; pointer-events: auto; }
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .table-scroll {
|
|
background: #20242c;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .reader {
|
|
--reader-table-stripe: #252c37;
|
|
--reader-table-header: #2b3340;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .copy-table-button {
|
|
border-color: #445063;
|
|
background: #2d3542;
|
|
color: #edf2f7;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .copy-table-button:hover {
|
|
background: #364151;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
border: 1px solid #d5dbe5;
|
|
border-left-color: #e8ecf2;
|
|
border-right-color: #e8ecf2;
|
|
padding: 0.62em 0.76em;
|
|
vertical-align: top;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
th {
|
|
background: #f1f5f9;
|
|
font-weight: 650;
|
|
text-align: left;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) th,
|
|
:where(html[data-theme="dark"]) td {
|
|
border-color: #3a4352;
|
|
border-left-color: #303845;
|
|
border-right-color: #303845;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) th {
|
|
background: #2b3340;
|
|
}
|
|
|
|
:where(th, td) code {
|
|
white-space: normal;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
thead { display: table-header-group; }
|
|
tr { break-inside: avoid; }
|
|
|
|
@media print {
|
|
.table-tools { display: none; }
|
|
.table-wrapper { margin: 1.2em 0; }
|
|
.table-scroll { overflow: visible; border-radius: 0; }
|
|
}
|
|
|
|
code {
|
|
font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
|
|
}
|
|
|
|
p code,
|
|
li code,
|
|
td code {
|
|
padding: 0.12em 0.32em;
|
|
border-radius: 4px;
|
|
background: #eef1f5;
|
|
color: #9b2c2c;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
.code-block {
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: auto 360px;
|
|
position: relative;
|
|
margin: 1.2em 0;
|
|
border: 1px solid #d4d4d4;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: #ffffff;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .code-block {
|
|
border-color: #3c3c3c;
|
|
background: #1e1e1e;
|
|
}
|
|
|
|
.code-title {
|
|
padding: 0.42em 0.76em;
|
|
border-bottom: 1px solid #d4d4d4;
|
|
background: #f3f3f3;
|
|
color: #616161;
|
|
font-size: 0.82em;
|
|
font-weight: 650;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .code-title {
|
|
border-bottom-color: #3c3c3c;
|
|
background: #252526;
|
|
color: #cccccc;
|
|
}
|
|
|
|
pre:where(.highlight) {
|
|
margin: 0;
|
|
padding: 1em;
|
|
overflow-x: auto;
|
|
background: #ffffff;
|
|
color: #000000;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) pre:where(.highlight) {
|
|
background: #1e1e1e;
|
|
color: #d4d4d4;
|
|
}
|
|
|
|
pre.highlight code {
|
|
display: block;
|
|
min-width: max-content;
|
|
}
|
|
|
|
.highlight .c,
|
|
.highlight .cm,
|
|
.highlight .c1,
|
|
.highlight .cs {
|
|
color: #008000;
|
|
font-style: italic;
|
|
}
|
|
|
|
.highlight .k,
|
|
.highlight .kc,
|
|
.highlight .kd,
|
|
.highlight .kn,
|
|
.highlight .kp,
|
|
.highlight .kr,
|
|
.highlight .ow {
|
|
color: #0000ff;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.highlight .kt,
|
|
.highlight .nc,
|
|
.highlight .nn {
|
|
color: #267f99;
|
|
}
|
|
|
|
.highlight .s,
|
|
.highlight .sa,
|
|
.highlight .sb,
|
|
.highlight .sc,
|
|
.highlight .dl,
|
|
.highlight .sd,
|
|
.highlight .s1,
|
|
.highlight .s2,
|
|
.highlight .se,
|
|
.highlight .sh,
|
|
.highlight .si,
|
|
.highlight .sx,
|
|
.highlight .sr,
|
|
.highlight .ss {
|
|
color: #a31515;
|
|
}
|
|
|
|
.highlight .m,
|
|
.highlight .mb,
|
|
.highlight .mf,
|
|
.highlight .mh,
|
|
.highlight .mi,
|
|
.highlight .mo,
|
|
.highlight .il {
|
|
color: #098658;
|
|
}
|
|
|
|
.highlight .nf,
|
|
.highlight .fm,
|
|
.highlight .nb,
|
|
.highlight .bp {
|
|
color: #795e26;
|
|
}
|
|
|
|
.highlight .na,
|
|
.highlight .nv,
|
|
.highlight .vc,
|
|
.highlight .vg,
|
|
.highlight .vi,
|
|
.highlight .vm {
|
|
color: #001080;
|
|
}
|
|
|
|
.highlight .nd,
|
|
.highlight .ne,
|
|
.highlight .nl {
|
|
color: #af00db;
|
|
}
|
|
|
|
.highlight .o,
|
|
.highlight .p {
|
|
color: #000000;
|
|
}
|
|
|
|
.highlight .err {
|
|
background: transparent;
|
|
color: #a31515;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .highlight .kt,
|
|
:where(html[data-theme="dark"]) .highlight .nc,
|
|
:where(html[data-theme="dark"]) .highlight .nn {
|
|
color: #4ec9b0;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
: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;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .highlight .nd,
|
|
:where(html[data-theme="dark"]) .highlight .ne,
|
|
:where(html[data-theme="dark"]) .highlight .nl {
|
|
color: #c586c0;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .highlight .o,
|
|
:where(html[data-theme="dark"]) .highlight .p {
|
|
color: #d4d4d4;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .highlight .err {
|
|
color: #f48771;
|
|
}
|
|
|
|
.code-line {
|
|
box-sizing: border-box;
|
|
display: block;
|
|
min-width: 100%;
|
|
width: max-content;
|
|
min-height: 1.5em;
|
|
padding-left: 3.4em;
|
|
position: relative;
|
|
white-space: pre;
|
|
}
|
|
|
|
.code-line::before {
|
|
content: attr(data-line);
|
|
position: absolute;
|
|
left: 0;
|
|
width: 2.5em;
|
|
color: #858585;
|
|
text-align: right;
|
|
user-select: none;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .code-line::before {
|
|
color: #858585;
|
|
}
|
|
|
|
.code-block.is-collapsible.is-collapsed pre.highlight {
|
|
max-height: 18.5em;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.code-block.is-collapsible.is-collapsed::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 3.2em;
|
|
pointer-events: none;
|
|
background: linear-gradient(rgb(255 255 255 / 0), #ffffff);
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .code-block.is-collapsible.is-collapsed::after {
|
|
background: linear-gradient(rgb(30 30 30 / 0), #1e1e1e);
|
|
}
|
|
|
|
.plain-file-view {
|
|
margin: 1em 0;
|
|
padding: 1em;
|
|
overflow: auto;
|
|
border: 1px solid #d8dee8;
|
|
border-radius: 8px;
|
|
background: #f7f9fc;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .plain-file-view {
|
|
border-color: #384252;
|
|
background: #171b22;
|
|
}
|
|
|
|
.diagram-block,
|
|
.math-block {
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: auto 320px;
|
|
margin: 1.2em 0;
|
|
border: 1px solid #d8dee8;
|
|
border-radius: 8px;
|
|
overflow: auto;
|
|
background: #f7f9fc;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .diagram-block,
|
|
:where(html[data-theme="dark"]) .math-block {
|
|
border-color: #384252;
|
|
background: #171b22;
|
|
}
|
|
|
|
.diagram-title {
|
|
padding: 0.42em 0.76em;
|
|
border-bottom: 1px solid #d8dee8;
|
|
background: #edf1f6;
|
|
color: #53606f;
|
|
font-size: 0.82em;
|
|
font-weight: 650;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .diagram-title {
|
|
border-bottom-color: #384252;
|
|
background: #242b36;
|
|
color: #b7c0cc;
|
|
}
|
|
|
|
.mermaid,
|
|
.math-block {
|
|
padding: 1em;
|
|
}
|
|
|
|
.math-block,
|
|
.math-display {
|
|
font-size: var(--reader-math-font-size, 1em);
|
|
}
|
|
|
|
.math-block .katex,
|
|
.math-display .katex,
|
|
.math-inline .katex,
|
|
.math-block mjx-container,
|
|
.math-display mjx-container,
|
|
.math-inline mjx-container {
|
|
font-size: 1em !important;
|
|
}
|
|
|
|
.diagram-missing-runtime::before {
|
|
content: "Mermaid 本地资源未加载,下面显示原始图表代码。";
|
|
display: block;
|
|
margin-bottom: 0.75em;
|
|
color: #9b2c2c;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.diagram-render-error::before {
|
|
content: "Mermaid 图表渲染失败,下面显示原始图表代码。";
|
|
display: block;
|
|
margin-bottom: 0.75em;
|
|
color: #9b2c2c;
|
|
font-weight: 650;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .diagram-missing-runtime::before,
|
|
:where(html[data-theme="dark"]) .diagram-render-error::before {
|
|
color: #f2b8b5;
|
|
}
|
|
|
|
.copy-code-button {
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 8px;
|
|
padding: 0.24em 0.58em;
|
|
border: 1px solid #c8d0dc;
|
|
border-radius: 5px;
|
|
background: #ffffff;
|
|
color: #354052;
|
|
font: 600 0.78em "Segoe UI", "Microsoft YaHei UI", sans-serif;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle-code-button {
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 62px;
|
|
z-index: 2;
|
|
padding: 0.24em 0.58em;
|
|
border: 1px solid #c8d0dc;
|
|
border-radius: 5px;
|
|
background: #ffffff;
|
|
color: #354052;
|
|
font: 600 0.78em "Segoe UI", "Microsoft YaHei UI", sans-serif;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle-code-button:hover {
|
|
background: #f0f4f8;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .toggle-code-button {
|
|
border-color: #445063;
|
|
background: #2d3542;
|
|
color: #edf2f7;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .toggle-code-button:hover {
|
|
background: #364151;
|
|
}
|
|
|
|
.copy-code-button:hover {
|
|
background: #f0f4f8;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .copy-code-button {
|
|
border-color: #445063;
|
|
background: #2d3542;
|
|
color: #edf2f7;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .copy-code-button:hover {
|
|
background: #364151;
|
|
}
|
|
|
|
.pseudo-keyword {
|
|
color: #0000ff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .pseudo-keyword {
|
|
color: #569cd6;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.reader img {
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.media-block {
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: auto 420px;
|
|
margin: 1.25em 0;
|
|
}
|
|
|
|
.media-block img,
|
|
.media-block video {
|
|
display: block;
|
|
width: min(100%, 880px);
|
|
max-height: 70vh;
|
|
object-fit: contain;
|
|
border: 1px solid #d8dee8;
|
|
border-radius: 8px;
|
|
background: #0f1115;
|
|
}
|
|
|
|
.media-audio audio {
|
|
width: min(100%, 680px);
|
|
}
|
|
|
|
.media-player-link__box {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1em;
|
|
width: min(100%, 680px);
|
|
box-sizing: border-box;
|
|
padding: 1em 1.1em;
|
|
border: 1px solid #d8dee8;
|
|
border-radius: 8px;
|
|
background: #f7f9fc;
|
|
}
|
|
|
|
.media-player-link__title {
|
|
color: #344258;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.media-player-link__actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.55em;
|
|
}
|
|
|
|
.media-player-link__button {
|
|
display: inline-block;
|
|
padding: 0.42em 0.82em;
|
|
border-radius: 6px;
|
|
background: #1769aa;
|
|
color: #ffffff;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.media-player-link__button:hover {
|
|
background: #0f5d99;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.media-player-link__button--secondary {
|
|
background: #e7edf5;
|
|
color: #344258;
|
|
}
|
|
|
|
.media-player-link__button--secondary:hover {
|
|
background: #dbe4ef;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .media-player-link__box {
|
|
border-color: #384252;
|
|
background: #242b36;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .media-player-link__title {
|
|
color: #dce3ec;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .media-player-link__button--secondary {
|
|
background: #303948;
|
|
color: #edf2f7;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .media-player-link__button--secondary:hover {
|
|
background: #3a4658;
|
|
}
|
|
|
|
.media-fallback {
|
|
display: none;
|
|
margin-top: 0.72em;
|
|
padding: 0.7em 0.85em;
|
|
border: 1px solid #d8dee8;
|
|
border-radius: 8px;
|
|
background: #f7f9fc;
|
|
color: #3f4a5d;
|
|
}
|
|
|
|
.media-fallback.is-visible {
|
|
display: block;
|
|
}
|
|
|
|
.media-fallback a {
|
|
font-weight: 650;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) .media-fallback {
|
|
border-color: #384252;
|
|
background: #242b36;
|
|
color: #dce3ec;
|
|
}
|
|
|
|
figcaption {
|
|
margin-top: 0.45em;
|
|
color: #697586;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) figcaption {
|
|
color: #a9b4c4;
|
|
}
|
|
|
|
hr {
|
|
border: 0;
|
|
border-top: 1px solid #d9dee7;
|
|
margin: 2em 0;
|
|
}
|
|
|
|
:where(html[data-theme="dark"]) hr {
|
|
border-top-color: #384252;
|
|
}
|
|
|
|
.image-lightbox {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 34px;
|
|
background: rgb(12 15 20 / 88%);
|
|
}
|
|
|
|
.image-lightbox.is-open {
|
|
display: flex;
|
|
}
|
|
|
|
.image-lightbox__toolbar {
|
|
position: fixed;
|
|
top: 18px;
|
|
left: 50%;
|
|
z-index: 1001;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
max-width: min(92vw, 760px);
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.image-lightbox__toolbar button {
|
|
min-width: 36px;
|
|
height: 34px;
|
|
padding: 0 10px;
|
|
border: 1px solid rgb(255 255 255 / 22%);
|
|
border-radius: 6px;
|
|
background: rgb(24 28 36 / 92%);
|
|
color: #f5f7fb;
|
|
font: 700 0.9em "Segoe UI", "Microsoft YaHei UI", sans-serif;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.image-lightbox__toolbar button:hover {
|
|
background: rgb(48 56 70 / 96%);
|
|
}
|
|
|
|
.image-lightbox img {
|
|
max-width: 96vw;
|
|
max-height: 92vh;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
box-shadow: 0 20px 70px rgb(0 0 0 / 45%);
|
|
cursor: grab;
|
|
transition: transform 120ms ease-out;
|
|
}
|
|
|
|
.image-lightbox__caption {
|
|
position: fixed;
|
|
left: 24px;
|
|
right: 24px;
|
|
bottom: 16px;
|
|
color: #f5f7fb;
|
|
font-size: 0.92em;
|
|
text-align: center;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.reader {
|
|
padding: 24px 20px 42px;
|
|
}
|
|
}
|