mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01:00
This commit is contained in:
parent
65ec365f57
commit
0825f45577
4 changed files with 35 additions and 0 deletions
|
|
@ -143,6 +143,7 @@
|
|||
--b3-graph-olist-point: #b3005f;
|
||||
--b3-graph-listitem-point: #f65b00;
|
||||
--b3-graph-bq-point: #8d48e3;
|
||||
--b3-graph-callout-point: var(--b3-theme-success);
|
||||
--b3-graph-super-point: #dd79ff;
|
||||
--b3-graph-doc-point: #202124;
|
||||
--b3-graph-tag-point: #dbf32f;
|
||||
|
|
@ -183,6 +184,10 @@
|
|||
--b3-pdf-background7: #C885DA;
|
||||
--b3-pdf-dark: #212224;
|
||||
|
||||
/* callout */
|
||||
--b3-callout-important: var(--b3-protyle-inline-blockref-color);
|
||||
--b3-callout-warning: var(--b3-protyle-inline-mark-background);
|
||||
|
||||
/* 表格 */
|
||||
--b3-table-even-background: rgba(0, 0, 0, .02);
|
||||
|
||||
|
|
|
|||
|
|
@ -151,6 +151,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
&[data-subtype="WARNING"] {
|
||||
.callout-info {
|
||||
color: var(--b3-callout-warning);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-subtype="TIP"] {
|
||||
.callout-info {
|
||||
color: var(--b3-theme-success);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-subtype="IMPORTANT"] {
|
||||
.callout-info {
|
||||
color: var(--b3-callout-important);
|
||||
}
|
||||
}
|
||||
|
||||
&[data-subtype="CAUTION"] {
|
||||
.callout-info {
|
||||
color: var(--b3-theme-error);
|
||||
}
|
||||
}
|
||||
|
||||
&-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ export const getIconByType = (type: string, sub?: string) => {
|
|||
case "NodeBlockquote":
|
||||
iconName = "iconQuote";
|
||||
break;
|
||||
case "NodeCallout":
|
||||
iconName = "iconCallout";
|
||||
break;
|
||||
case "NodeList":
|
||||
if (sub === "t") {
|
||||
iconName = "iconCheck";
|
||||
|
|
|
|||
|
|
@ -543,6 +543,9 @@ export class Graph extends Model {
|
|||
case "NodeBlockquote":
|
||||
item.color = {background: rootStyle.getPropertyValue("--b3-graph-bq-point").trim()};
|
||||
break;
|
||||
case "NodeCallout":
|
||||
item.color = {background: rootStyle.getPropertyValue("--b3-graph-callout-point").trim()};
|
||||
break;
|
||||
case "NodeSuperBlock":
|
||||
item.color = {background: rootStyle.getPropertyValue("--b3-graph-super-point").trim()};
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue