Skip to content

Commit

Permalink
style(quartz): 调整 Mermaid 图表背景颜色
Browse files Browse the repository at this point in the history
- 新增自定义变量 --mermaid-background,设置背景颜色为 #fffaf3
- 将图表背景颜色从 --ec-frm-trmBg 更改为 --mermaid-background
  • Loading branch information
hulinjiang committed Nov 30, 2024
1 parent a0e889c commit cb0e6fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions quartz/styles/mermaid.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root{
--mermaid-background: #fffaf3;
}

div.svg-pan-zoom-container {
width: 100%;
position: relative;
Expand Down Expand Up @@ -61,7 +65,7 @@ div.svg-pan-zoom-container {
.mermaid-svg {
position: absolute !important;
inset: 0 !important;
background: var(--ec-frm-trmBg);
background: var(--mermaid-background);
margin: 0 !important;
padding: 0 !important;
max-width: unset !important;
Expand Down Expand Up @@ -155,7 +159,7 @@ div.svg-pan-zoom-container {
padding: 20px;
border-radius: 8px;
overflow: hidden;
background: var(--ec-frm-trmBg);
background: var(--mermaid-background);

cursor: move;

Expand Down

0 comments on commit cb0e6fd

Please sign in to comment.