2022-05-26 15:18:53 +08:00
|
|
|
@font-face {
|
|
|
|
|
font-family: 'JetBrainsMono-Regular';
|
2025-01-29 23:58:52 +08:00
|
|
|
/*! /* webpackIgnore: true */
|
2024-12-19 10:19:00 +08:00
|
|
|
src: url(../../../appearance/fonts/JetBrainsMono-2.304/JetBrainsMono-Regular.woff2) format('woff2');
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
2024-12-14 11:21:19 +08:00
|
|
|
|
2022-05-26 15:18:53 +08:00
|
|
|
.b3-typography,
|
|
|
|
|
.protyle-wysiwyg {
|
|
|
|
|
font-variant-ligatures: no-common-ligatures;
|
2023-07-19 19:19:40 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2025-01-30 11:51:07 +08:00
|
|
|
font-size: var(--b3-font-size-editor);
|
2024-12-14 11:21:19 +08:00
|
|
|
font-family: var(--b3-font-family-protyle);
|
2022-05-26 15:18:53 +08:00
|
|
|
|
|
|
|
|
img {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-13 09:17:05 +08:00
|
|
|
// 需显示 p 的使用范围 https://github.com/siyuan-note/siyuan/issues/11670
|
|
|
|
|
li > p,
|
|
|
|
|
& > p,
|
|
|
|
|
blockquote > p,
|
2022-05-26 15:18:53 +08:00
|
|
|
[data-node-id] {
|
|
|
|
|
line-height: 1.625;
|
|
|
|
|
padding: 4px;
|
2023-07-19 19:19:40 +08:00
|
|
|
margin: 2px 0;
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ins > iframe {
|
|
|
|
|
border: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iframe {
|
2022-10-14 23:41:53 +08:00
|
|
|
border: 1px solid var(--b3-theme-surface-lighter);
|
2022-05-26 15:18:53 +08:00
|
|
|
width: 765px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: 256px;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-16 09:41:37 +08:00
|
|
|
span[data-type~="sup"],
|
|
|
|
|
span[data-type~="sub"] {
|
|
|
|
|
position: relative;
|
|
|
|
|
font-size: 75%;
|
|
|
|
|
line-height: 0;
|
|
|
|
|
vertical-align: baseline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span[data-type~="sup"] {
|
2024-03-10 11:55:45 +08:00
|
|
|
top: -.5em;
|
2022-09-16 09:41:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span[data-type~="sub"] {
|
2024-03-10 11:55:45 +08:00
|
|
|
bottom: -.25em;
|
2022-09-16 09:41:37 +08:00
|
|
|
}
|
|
|
|
|
|
2022-09-13 23:31:12 +08:00
|
|
|
em,
|
|
|
|
|
span[data-type~="em"] {
|
2022-09-16 09:41:37 +08:00
|
|
|
font-style: italic;
|
2022-05-26 15:18:53 +08:00
|
|
|
color: var(--b3-protyle-inline-em-color);
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-13 23:58:16 +08:00
|
|
|
s,
|
|
|
|
|
span[data-type~="s"] {
|
2022-05-26 15:18:53 +08:00
|
|
|
color: var(--b3-protyle-inline-s-color);
|
2022-09-16 09:41:37 +08:00
|
|
|
text-decoration: line-through;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
2022-09-13 10:19:13 +08:00
|
|
|
strong,
|
|
|
|
|
span[data-type~="strong"] {
|
2022-09-16 09:41:37 +08:00
|
|
|
font-weight: bold;
|
2022-05-26 15:18:53 +08:00
|
|
|
color: var(--b3-protyle-inline-strong-color);
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-16 09:41:37 +08:00
|
|
|
span[data-type~="inline-math"] {
|
|
|
|
|
user-select: text;
|
|
|
|
|
display: inline;
|
|
|
|
|
// https://github.com/siyuan-note/siyuan/issues/3081 test $\begin{bmatrix} a & b \\c & d \\ e & f\end{bmatrix}$ test
|
|
|
|
|
// https://ld246.com/article/1626937851892 <u>test $\mu_p$ test</u>
|
|
|
|
|
// https://ld246.com/article/1636204769623 test $\rightarrow$ test
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-19 23:49:24 +08:00
|
|
|
kbd,
|
|
|
|
|
span[data-type~="kbd"] {
|
|
|
|
|
padding: 2px 4px;
|
2023-10-14 11:20:17 +08:00
|
|
|
font: 75% Consolas, "Liberation Mono", Menlo, Courier, monospace, var(--b3-font-family);
|
2022-09-19 23:49:24 +08:00
|
|
|
line-height: 1;
|
|
|
|
|
color: var(--b3-theme-on-surface);
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
background-color: var(--b3-theme-surface);
|
2022-10-14 23:41:53 +08:00
|
|
|
border: solid 1px var(--b3-theme-surface-lighter);
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-10-14 23:41:53 +08:00
|
|
|
box-shadow: inset 0 -1px 0 var(--b3-theme-surface-lighter);
|
2022-09-19 23:49:24 +08:00
|
|
|
}
|
|
|
|
|
|
2024-12-02 20:22:00 +08:00
|
|
|
u {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-19 23:49:24 +08:00
|
|
|
u,
|
|
|
|
|
span[data-type~="u"] {
|
2022-11-03 22:53:12 +08:00
|
|
|
border-bottom: 1px solid;
|
2024-11-06 10:14:48 +08:00
|
|
|
color: var(--b3-protyle-inline-u-color);
|
2022-09-19 23:49:24 +08:00
|
|
|
}
|
|
|
|
|
|
2022-09-17 23:14:02 +08:00
|
|
|
span[data-type~="inline-memo"] {
|
|
|
|
|
background-color: var(--b3-card-info-background);
|
|
|
|
|
border-bottom: 2px solid var(--b3-card-info-color);
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-29 21:46:10 +08:00
|
|
|
mark,
|
|
|
|
|
span[data-type~="mark"] {
|
|
|
|
|
background-color: var(--b3-protyle-inline-mark-background);
|
|
|
|
|
color: var(--b3-protyle-inline-mark-color);
|
|
|
|
|
|
|
|
|
|
&.mark--hl {
|
|
|
|
|
background-color: var(--b3-theme-primary-lighter);
|
|
|
|
|
box-shadow: 0 0 0 .5px var(--b3-theme-on-background);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-17 12:00:16 +08:00
|
|
|
blockquote {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-26 15:18:53 +08:00
|
|
|
blockquote,
|
|
|
|
|
.bq {
|
2024-11-26 20:17:49 +08:00
|
|
|
&::before {
|
2024-11-14 12:18:58 +08:00
|
|
|
content: '';
|
|
|
|
|
background-color: var(--b3-theme-surface-lighter);
|
|
|
|
|
width: .25em;
|
|
|
|
|
border-radius: var(--b3-border-radius);
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 2px;
|
|
|
|
|
top: 6px;
|
|
|
|
|
bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
padding-left: calc(0.25em + 6px);
|
2022-05-26 15:18:53 +08:00
|
|
|
color: var(--b3-theme-on-surface);
|
2024-10-11 11:32:27 +08:00
|
|
|
background-color: var(--b3-bq-background);
|
2024-11-14 11:54:20 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6 {
|
|
|
|
|
padding: 4px;
|
2025-01-29 20:48:56 +08:00
|
|
|
margin: 2px 0;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.h1,
|
2025-01-29 12:36:20 +08:00
|
|
|
.h2,
|
|
|
|
|
.h3,
|
|
|
|
|
.h4,
|
|
|
|
|
.h5,
|
2025-01-29 20:48:56 +08:00
|
|
|
.h6,
|
|
|
|
|
h1,
|
|
|
|
|
h2,
|
|
|
|
|
h3,
|
|
|
|
|
h4,
|
|
|
|
|
h5,
|
|
|
|
|
h6 {
|
2025-01-29 12:36:20 +08:00
|
|
|
font-weight: 600;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
2025-01-29 20:48:56 +08:00
|
|
|
h1,
|
2025-01-29 12:36:20 +08:00
|
|
|
.h1 {
|
|
|
|
|
font-size: 1.75em;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-29 20:48:56 +08:00
|
|
|
h2,
|
2025-01-29 12:36:20 +08:00
|
|
|
.h2 {
|
|
|
|
|
font-size: 1.55em;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-26 15:18:53 +08:00
|
|
|
.h3,
|
|
|
|
|
h3 {
|
|
|
|
|
font-size: 1.38em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.h4,
|
|
|
|
|
h4 {
|
|
|
|
|
font-size: 1.25em
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.h5,
|
|
|
|
|
h5 {
|
|
|
|
|
font-size: 1.13em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.h6,
|
|
|
|
|
h6 {
|
|
|
|
|
font-size: 1em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
audio {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
video {
|
|
|
|
|
max-height: 90vh;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table {
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
empty-cells: show;
|
|
|
|
|
margin: 0;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
border-spacing: 0;
|
|
|
|
|
width: max-content;
|
|
|
|
|
|
2025-06-08 22:34:14 +08:00
|
|
|
&[style*="text-align: left"] {
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
}
|
|
|
|
|
&[style*="text-align: center"] {
|
|
|
|
|
margin: auto;
|
|
|
|
|
}
|
|
|
|
|
&[style*="text-align: right"] {
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-11 11:21:04 +08:00
|
|
|
tr:nth-child(even) td {
|
|
|
|
|
background-color: var(--b3-table-even-background);
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
td,
|
|
|
|
|
th {
|
|
|
|
|
padding: 4px 8px;
|
2022-10-14 23:41:53 +08:00
|
|
|
border: 1px solid var(--b3-theme-surface-lighter);
|
2022-05-26 15:18:53 +08:00
|
|
|
box-sizing: border-box;
|
2024-01-10 22:22:49 +08:00
|
|
|
max-width: 620px;
|
|
|
|
|
word-wrap: break-word;
|
2022-05-26 15:18:53 +08:00
|
|
|
|
|
|
|
|
&:empty::after {
|
|
|
|
|
content: "";
|
|
|
|
|
height: 16px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
thead th,
|
|
|
|
|
thead td {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tbody th,
|
|
|
|
|
tbody td {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-13 23:58:16 +08:00
|
|
|
code:not(.hljs),
|
|
|
|
|
span[data-type~="code"] {
|
2022-08-12 12:08:16 +08:00
|
|
|
@extend .fn__code;
|
2023-08-28 11:20:19 +08:00
|
|
|
tab-size: 4;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a[href^=pdf-outline] {
|
|
|
|
|
white-space: pre !important;
|
|
|
|
|
border-left: none !important;
|
|
|
|
|
border-right: none !important;
|
|
|
|
|
border-top: none !important;
|
|
|
|
|
border-bottom: none !important;
|
|
|
|
|
display: inline-block !important;
|
|
|
|
|
position: absolute !important;
|
|
|
|
|
width: 1px !important;
|
2025-03-14 10:36:55 +08:00
|
|
|
left: 0 !important;
|
2022-05-26 15:18:53 +08:00
|
|
|
outline: 0 !important;
|
|
|
|
|
background: 0 0 !important;
|
|
|
|
|
text-decoration: initial !important;
|
|
|
|
|
text-shadow: initial !important;
|
|
|
|
|
color: var(--b3-theme-background);
|
2025-03-14 10:36:55 +08:00
|
|
|
font-size: 12px !important;
|
|
|
|
|
overflow: hidden !important;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
2024-09-05 11:54:14 +08:00
|
|
|
pre.code-block {
|
|
|
|
|
border-radius: var(--b3-border-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-block:not(pre) {
|
2025-01-29 12:36:20 +08:00
|
|
|
margin: 2px 0;
|
2024-08-18 21:45:18 +08:00
|
|
|
box-sizing: border-box;
|
2022-05-26 15:18:53 +08:00
|
|
|
|
|
|
|
|
.protyle-action {
|
|
|
|
|
left: 4px;
|
|
|
|
|
top: 4px;
|
|
|
|
|
display: flex;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 4px;
|
|
|
|
|
|
|
|
|
|
.protyle-action__language {
|
|
|
|
|
font-size: 85%;
|
|
|
|
|
color: var(--b3-theme-on-surface);
|
|
|
|
|
margin-top: -4px;
|
2024-03-07 11:24:55 +08:00
|
|
|
align-self: center;
|
2025-06-07 11:45:30 +08:00
|
|
|
margin-left: 1em;
|
2025-01-29 12:36:20 +08:00
|
|
|
opacity: 0;
|
|
|
|
|
transition: var(--b3-transition);
|
2025-06-07 11:45:30 +08:00
|
|
|
line-height: calc(1.625 / 0.85);
|
2025-01-29 12:36:20 +08:00
|
|
|
}
|
|
|
|
|
|
2025-06-07 11:45:30 +08:00
|
|
|
.protyle-icon {
|
2022-05-26 15:18:53 +08:00
|
|
|
opacity: 0;
|
|
|
|
|
transition: var(--b3-transition);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover .protyle-icon,
|
|
|
|
|
&:hover .protyle-action__language {
|
|
|
|
|
opacity: .86;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-05 11:54:14 +08:00
|
|
|
.hljs {
|
2022-05-26 15:18:53 +08:00
|
|
|
font-size: 85%;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
font-family: var(--b3-font-family-code);
|
|
|
|
|
min-height: 22px !important;
|
2022-06-01 18:31:40 +08:00
|
|
|
overflow-x: overlay;
|
2023-08-28 11:20:19 +08:00
|
|
|
tab-size: 4;
|
2024-09-01 23:20:39 +08:00
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.hljs {
|
2024-12-04 22:23:36 +08:00
|
|
|
padding: 2em 1em 1.6em;
|
2023-10-24 21:35:48 +08:00
|
|
|
flex: 1;
|
2024-08-15 11:03:16 +08:00
|
|
|
display: flex;
|
2024-08-30 12:09:55 +08:00
|
|
|
position: relative;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
2022-08-22 10:10:32 +08:00
|
|
|
[data-subtype="echarts"],
|
|
|
|
|
[data-subtype="mindmap"] {
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
2022-11-28 22:47:43 +08:00
|
|
|
& > div:not(.protyle-icons):not(.protyle-attr) {
|
2022-08-22 10:10:32 +08:00
|
|
|
overflow: hidden;
|
|
|
|
|
height: 420px;
|
|
|
|
|
}
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.katex-display {
|
|
|
|
|
user-select: none;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
overflow-y: hidden;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
padding: 4px 0; // https://ld246.com/article/1626774181074/comment/1626789173915#comments
|
|
|
|
|
// https://github.com/siyuan-note/siyuan/issues/3541
|
|
|
|
|
& > .katex > .katex-html {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: baseline; // https://ld246.com/article/1645933216334
|
|
|
|
|
|
2024-11-26 20:17:49 +08:00
|
|
|
&::before {
|
2022-05-26 15:18:53 +08:00
|
|
|
content: "";
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& > .tag {
|
|
|
|
|
position: initial;
|
|
|
|
|
margin-right: 2px;
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.katex {
|
2024-02-06 09:45:08 +08:00
|
|
|
// https://github.com/siyuan-note/siyuan/issues/10251
|
|
|
|
|
// https://github.com/siyuan-note/siyuan/issues/10321
|
2024-02-12 11:55:33 +08:00
|
|
|
// https://github.com/siyuan-note/siyuan/issues/10346
|
2022-05-26 15:18:53 +08:00
|
|
|
line-height: normal; // https://ld246.com/article/1649890278771
|
|
|
|
|
|
|
|
|
|
.mathnormal {
|
|
|
|
|
font-family: var(--b3-font-family-math);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-subtype="graphviz"] {
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
2024-04-29 22:46:02 +08:00
|
|
|
[contenteditable="false"] svg {
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2024-04-29 22:46:02 +08:00
|
|
|
max-width: 100%; // https://github.com/siyuan-note/siyuan/issues/11181
|
2025-02-24 17:48:27 +08:00
|
|
|
height: 100%; // https://github.com/siyuan-note/siyuan/issues/13852
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-subtype="flowchart"] {
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
[contenteditable="false"] svg {
|
|
|
|
|
background: var(--b3-theme-on-primary);
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-subtype="mermaid"],
|
|
|
|
|
[data-subtype="plantuml"],
|
|
|
|
|
[data-subtype="abc"] {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-23 10:22:06 +08:00
|
|
|
[data-subtype="flowchart"] > [spin="1"],
|
|
|
|
|
[data-subtype="plantuml"] > [spin="1"],
|
2024-01-18 11:23:32 +08:00
|
|
|
[data-subtype="mermaid"] > [spin="1"] {
|
|
|
|
|
// 不能加到上一级,否则属性会跟随滚动
|
2022-08-22 10:10:32 +08:00
|
|
|
overflow: auto;
|
2024-01-18 11:23:32 +08:00
|
|
|
line-height: initial;
|
2022-08-22 10:10:32 +08:00
|
|
|
}
|
|
|
|
|
|
2022-08-20 21:38:11 +08:00
|
|
|
[data-subtype="plantuml"] img {
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-08-20 21:38:11 +08:00
|
|
|
}
|
|
|
|
|
|
2022-05-26 15:18:53 +08:00
|
|
|
.abcjs-container svg,
|
|
|
|
|
.abcjs-container path {
|
|
|
|
|
fill: currentColor;
|
|
|
|
|
color: var(--b3-theme-on-background);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.img {
|
2023-03-08 20:22:05 +08:00
|
|
|
// inline-block 会导致 https://ld246.com/article/1677809509055
|
|
|
|
|
// initial 会导致 https://ld246.com/article/1678257197581?r=88250
|
|
|
|
|
display: inline-block;
|
2022-05-26 15:18:53 +08:00
|
|
|
text-align: center;
|
|
|
|
|
vertical-align: top; // https://ld246.com/article/1647522074722
|
|
|
|
|
margin: 0 auto;
|
2023-08-28 23:21:41 +08:00
|
|
|
max-width: 100%;
|
2023-11-06 23:10:57 +08:00
|
|
|
user-select: none;
|
2024-05-12 12:20:12 +08:00
|
|
|
word-break: keep-all;
|
|
|
|
|
white-space: nowrap;
|
2022-05-26 15:18:53 +08:00
|
|
|
|
2024-03-06 16:18:41 +08:00
|
|
|
& > span:nth-child(1),
|
|
|
|
|
& > span:nth-child(3) {
|
|
|
|
|
width: 4px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-26 15:18:53 +08:00
|
|
|
& > span:nth-child(2) {
|
2024-03-06 16:18:41 +08:00
|
|
|
max-width: calc(100% - 8px);
|
2022-05-26 15:18:53 +08:00
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
min-width: 22px;
|
2024-11-28 23:15:05 +08:00
|
|
|
|
|
|
|
|
&[style^=width] img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.protyle-action__title {
|
2024-11-28 11:14:26 +08:00
|
|
|
display: flex;
|
2022-05-26 15:18:53 +08:00
|
|
|
font-size: 85%;
|
|
|
|
|
color: var(--b3-theme-on-surface);
|
2024-05-18 16:19:17 +08:00
|
|
|
word-break: break-word;
|
|
|
|
|
white-space: break-spaces;
|
2024-10-27 16:56:13 +08:00
|
|
|
line-height: normal;
|
|
|
|
|
padding: 4px 0;
|
2024-11-28 11:14:26 +08:00
|
|
|
|
|
|
|
|
& > span {
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
}
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.iframe {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.b3-typography {
|
|
|
|
|
font-family: var(--b3-font-family);
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
line-height: 1.625;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
word-break: break-word;
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
list-style-type: disc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul,
|
|
|
|
|
ol {
|
|
|
|
|
padding-left: 2em;
|
|
|
|
|
margin: 4px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hr {
|
|
|
|
|
border: 0;
|
|
|
|
|
border-bottom: 1px solid var(--b3-theme-background-light);
|
2023-06-27 10:30:20 +08:00
|
|
|
margin: 21px 0;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table {
|
|
|
|
|
margin: 1em 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div[data-subtype="math"] {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-top: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.protyle-icons {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.protyle {
|
|
|
|
|
|
|
|
|
|
&-icons {
|
|
|
|
|
z-index: 1;
|
|
|
|
|
transition: var(--b3-transition);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 4px;
|
|
|
|
|
top: 4px;
|
|
|
|
|
display: flex;
|
2024-02-25 22:27:59 +08:00
|
|
|
|
|
|
|
|
&--show {
|
|
|
|
|
opacity: .86;
|
|
|
|
|
}
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
|
font-size: 85%;
|
2023-07-14 21:17:12 +08:00
|
|
|
line-height: 14px;
|
2022-05-26 15:18:53 +08:00
|
|
|
cursor: pointer;
|
2023-07-03 10:49:55 +08:00
|
|
|
padding: 5px;
|
2022-05-26 15:18:53 +08:00
|
|
|
transition: var(--b3-transition);
|
|
|
|
|
background-color: var(--b3-theme-on-surface);
|
2023-07-03 10:49:55 +08:00
|
|
|
height: 24px;
|
2022-05-26 15:18:53 +08:00
|
|
|
color: var(--b3-theme-surface);
|
2023-07-03 10:49:55 +08:00
|
|
|
box-sizing: border-box;
|
2022-05-26 15:18:53 +08:00
|
|
|
|
|
|
|
|
&--only {
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--first {
|
2023-06-28 22:40:34 +08:00
|
|
|
border-bottom-left-radius: var(--b3-border-radius);
|
|
|
|
|
border-top-left-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--last {
|
2023-06-28 22:40:34 +08:00
|
|
|
border-bottom-right-radius: var(--b3-border-radius);
|
|
|
|
|
border-top-right-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: var(--b3-theme-background);
|
|
|
|
|
background-color: var(--b3-theme-on-background);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&--text {
|
|
|
|
|
cursor: text;
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: var(--b3-theme-surface);
|
2022-08-12 12:08:16 +08:00
|
|
|
background-color: var(--b3-theme-on-surface);
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& > svg {
|
2023-07-03 10:49:55 +08:00
|
|
|
height: 14px;
|
|
|
|
|
float: left;
|
2022-05-26 15:18:53 +08:00
|
|
|
width: 14px;
|
|
|
|
|
fill: currentColor;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-15 11:21:05 +08:00
|
|
|
&-linenumber__rows {
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
counter-reset: linenumber;
|
|
|
|
|
font-size: 85%;
|
|
|
|
|
font-family: var(--b3-font-family-code);
|
|
|
|
|
text-align: right;
|
2024-08-30 12:09:55 +08:00
|
|
|
position: absolute;
|
2022-05-26 15:18:53 +08:00
|
|
|
|
2024-08-15 11:21:05 +08:00
|
|
|
& > span {
|
2022-05-26 15:18:53 +08:00
|
|
|
pointer-events: none;
|
2024-08-15 11:21:05 +08:00
|
|
|
display: block;
|
2022-05-26 15:18:53 +08:00
|
|
|
|
2024-08-15 11:21:05 +08:00
|
|
|
&::before {
|
|
|
|
|
counter-increment: linenumber;
|
|
|
|
|
content: counter(linenumber);
|
|
|
|
|
color: var(--b3-theme-on-surface);
|
2022-05-26 15:18:53 +08:00
|
|
|
display: block;
|
2024-08-15 11:21:05 +08:00
|
|
|
text-align: right;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
direction: rtl;
|
2022-05-26 15:18:53 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-speech {
|
|
|
|
|
position: absolute;
|
|
|
|
|
display: none;
|
|
|
|
|
background-color: var(--b3-theme-surface);
|
2022-10-14 23:41:53 +08:00
|
|
|
border: 1px solid var(--b3-theme-surface-lighter);
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
padding: 3px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
color: var(--b3-theme-on-surface);
|
|
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
|
&--current {
|
|
|
|
|
color: var(--b3-theme-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
height: 14px;
|
|
|
|
|
width: 14px;
|
|
|
|
|
fill: currentColor;
|
|
|
|
|
display: block;
|
|
|
|
|
stroke-width: 0;
|
|
|
|
|
stroke: currentColor;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-task {
|
|
|
|
|
list-style: none !important;
|
2024-05-15 17:31:40 +08:00
|
|
|
word-break: break-word;
|
2022-05-26 15:18:53 +08:00
|
|
|
position: relative;
|
|
|
|
|
|
2023-03-08 09:35:04 +08:00
|
|
|
&--done > div[data-node-id].p {
|
2023-02-26 10:32:10 +08:00
|
|
|
color: var(--b3-theme-on-surface-light);
|
|
|
|
|
text-decoration: line-through;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-26 15:18:53 +08:00
|
|
|
input {
|
|
|
|
|
left: -1.5em;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
height: 32px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
width: 1em;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-wysiwyg .table > div:first-child {
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mermaidTooltip {
|
|
|
|
|
position: fixed;
|
2023-06-28 22:40:34 +08:00
|
|
|
border-radius: var(--b3-border-radius);
|
2022-05-26 15:18:53 +08:00
|
|
|
box-shadow: var(--b3-dialog-shadow);
|
2023-01-27 14:07:59 +08:00
|
|
|
border: 1px solid var(--b3-theme-surface-lighter);
|
2023-04-21 09:51:04 +08:00
|
|
|
background-color: var(--b3-theme-surface);
|
2022-05-26 15:18:53 +08:00
|
|
|
z-index: 304;
|
|
|
|
|
padding: 4px;
|
|
|
|
|
}
|
2024-10-20 10:24:44 +08:00
|
|
|
|
|
|
|
|
.emoji {
|
|
|
|
|
width: 1.25em;
|
|
|
|
|
cursor: auto;
|
|
|
|
|
max-width: none;
|
|
|
|
|
vertical-align: sub; // text-top windows 不兼容
|
|
|
|
|
}
|