Skip to content

Commit

Permalink
fix: #102 mermaid type
Browse files Browse the repository at this point in the history
  • Loading branch information
liangjingkanji committed Sep 4, 2022
1 parent 1b03767 commit 87718b0
Show file tree
Hide file tree
Showing 12 changed files with 385 additions and 25 deletions.
34 changes: 32 additions & 2 deletions drake-ayu.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,36 @@ p {
}

/*mermaid*/
[mermaid-type="journey"] line {
stroke: #7a7a7a !important;
}
[mermaid-type="journey"] .label {
color: #333 !important;
}
[id^=mermaidChart] .relationshipLabelBox {
fill: var(--bg-color) !important;
opacity: 1 !important;
background-color: var(--bg-color) !important;
}
[id^=mermaidChart] .legend {
fill: var(--text-color) !important;
}
[id^=mermaidChart] g.label {
font-size: 1rem !important;
}
[id^=mermaidChart] line.divider {
stroke: var(--table-border-color) !important;
}
[id^=mermaidChart] span.nodeLabel {
color: var(--code-block-color) !important;
line-height: 1.8rem;
}
tspan {
color: var(--text-color)
}
[id^=mermaidChart] .entityLabel {
fill: var(--code-block-color) !important;
}
[id^=mermaidChart] {
fill: var(--text-color) !important;
}
Expand All @@ -120,7 +150,7 @@ p {
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
.md-diagram-panel-preview .actor { /*方块*/
.md-diagram-panel-preview .actor, .md-diagram-panel-preview .entityBox { /*方块*/
stroke: var(--table-border-color) !important;
fill: var(--code-block-bg-color) !important;
}
Expand Down Expand Up @@ -189,7 +219,7 @@ pre.md-fences-advanced.md-focus .md-fences-adv-panel {
fill: var(--code-block-bg-color) !important;
}
#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/
color: var(--code-block-color) !important;
color: var(--code-block-color);
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
Expand Down
34 changes: 32 additions & 2 deletions drake-black.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,36 @@ p {
}

/*mermaid*/
[mermaid-type="journey"] line {
stroke: #7a7a7a !important;
}
[mermaid-type="journey"] .label {
color: #333 !important;
}
[id^=mermaidChart] .relationshipLabelBox {
fill: var(--bg-color) !important;
opacity: 1 !important;
background-color: var(--bg-color) !important;
}
[id^=mermaidChart] .legend {
fill: var(--text-color) !important;
}
[id^=mermaidChart] g.label {
font-size: 1rem !important;
}
[id^=mermaidChart] line.divider {
stroke: var(--table-border-color) !important;
}
[id^=mermaidChart] span.nodeLabel {
color: var(--code-block-color) !important;
line-height: 1.8rem;
}
tspan {
color: var(--text-color)
}
[id^=mermaidChart] .entityLabel {
fill: var(--code-block-color) !important;
}
[id^=mermaidChart] {
fill: var(--text-color) !important;
}
Expand All @@ -120,7 +150,7 @@ p {
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
.md-diagram-panel-preview .actor { /*方块*/
.md-diagram-panel-preview .actor, .md-diagram-panel-preview .entityBox { /*方块*/
stroke: var(--table-border-color) !important;
fill: var(--code-block-bg-color) !important;
}
Expand Down Expand Up @@ -189,7 +219,7 @@ pre.md-fences-advanced.md-focus .md-fences-adv-panel {
fill: var(--code-block-bg-color) !important;
}
#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/
color: var(--code-block-color) !important;
color: var(--code-block-color);
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
Expand Down
36 changes: 33 additions & 3 deletions drake-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,49 @@ p {
}

/*mermaid*/
[mermaid-type="journey"] line {
stroke: #7a7a7a !important;
}
[mermaid-type="journey"] .label {
color: #333 !important;
}
[id^=mermaidChart] .relationshipLabelBox {
fill: var(--bg-color) !important;
opacity: 1 !important;
background-color: var(--bg-color) !important;
}
[id^=mermaidChart] .legend {
fill: var(--text-color) !important;
}
[id^=mermaidChart] g.label {
font-size: 1rem !important;
}
[id^=mermaidChart] line.divider {
stroke: var(--table-border-color) !important;
}
[id^=mermaidChart] span.nodeLabel {
color: var(--code-block-color) !important;
line-height: 1.8rem;
}
tspan {
color: var(--text-color)
}
[id^=mermaidChart] .entityLabel {
fill: var(--code-block-color) !important;
}
[id^=mermaidChart] {
fill: var(--text-color) !important;
}
[id^=mermaidChart] rect.rect {
fill: rgba(175, 255, 212, 0.2) !important;
fill: rgba(175, 255, 212, 0.3) !important;
}
.md-diagram-panel-preview text.actor > tspan { /*方块文字*/
fill: var(--code-block-color) !important;
stroke: none !important;
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
.md-diagram-panel-preview .actor { /*方块*/
.md-diagram-panel-preview .actor, .md-diagram-panel-preview .entityBox { /*方块*/
stroke: var(--table-border-color) !important;
fill: var(--code-block-bg-color) !important;
}
Expand Down Expand Up @@ -189,7 +219,7 @@ pre.md-fences-advanced.md-focus .md-fences-adv-panel {
fill: var(--code-block-bg-color) !important;
}
#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/
color: var(--code-block-color) !important;
color: var(--code-block-color);
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
Expand Down
34 changes: 32 additions & 2 deletions drake-google.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,36 @@ p {
}

/*mermaid*/
[mermaid-type="journey"] line {
stroke: #7a7a7a !important;
}
[mermaid-type="journey"] .label {
color: #333 !important;
}
[id^=mermaidChart] .relationshipLabelBox {
fill: var(--bg-color) !important;
opacity: 1 !important;
background-color: var(--bg-color) !important;
}
[id^=mermaidChart] .legend {
fill: var(--text-color) !important;
}
[id^=mermaidChart] g.label {
font-size: 1rem !important;
}
[id^=mermaidChart] line.divider {
stroke: var(--table-border-color) !important;
}
[id^=mermaidChart] span.nodeLabel {
color: var(--code-block-color) !important;
line-height: 1.8rem;
}
tspan {
color: var(--text-color)
}
[id^=mermaidChart] .entityLabel {
fill: var(--code-block-color) !important;
}
[id^=mermaidChart] {
fill: var(--text-color) !important;
}
Expand All @@ -113,7 +143,7 @@ p {
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
.md-diagram-panel-preview .actor { /*方块*/
.md-diagram-panel-preview .actor, .md-diagram-panel-preview .entityBox { /*方块*/
stroke: var(--table-border-color) !important;
fill: var(--code-block-bg-color) !important;
}
Expand Down Expand Up @@ -182,7 +212,7 @@ pre.md-fences-advanced.md-focus .md-fences-adv-panel {
fill: var(--code-block-bg-color) !important;
}
#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/
color: var(--code-block-color) !important;
color: var(--code-block-color);
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
Expand Down
34 changes: 32 additions & 2 deletions drake-jb.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,36 @@ p {
}

/*mermaid*/
[mermaid-type="journey"] line {
stroke: #7a7a7a !important;
}
[mermaid-type="journey"] .label {
color: #333 !important;
}
[id^=mermaidChart] .relationshipLabelBox {
fill: var(--bg-color) !important;
opacity: 1 !important;
background-color: var(--bg-color) !important;
}
[id^=mermaidChart] .legend {
fill: var(--text-color) !important;
}
[id^=mermaidChart] g.label {
font-size: 1rem !important;
}
[id^=mermaidChart] line.divider {
stroke: var(--table-border-color) !important;
}
[id^=mermaidChart] span.nodeLabel {
color: var(--code-block-color) !important;
line-height: 1.8rem;
}
tspan {
color: var(--text-color)
}
[id^=mermaidChart] .entityLabel {
fill: var(--code-block-color) !important;
}
[id^=mermaidChart] {
fill: var(--text-color) !important;
}
Expand All @@ -117,7 +147,7 @@ p {
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
.md-diagram-panel-preview .actor { /*方块*/
.md-diagram-panel-preview .actor, .md-diagram-panel-preview .entityBox { /*方块*/
stroke: var(--table-border-color) !important;
fill: var(--code-block-bg-color) !important;
}
Expand Down Expand Up @@ -186,7 +216,7 @@ pre.md-fences-advanced.md-focus .md-fences-adv-panel {
fill: var(--code-block-bg-color) !important;
}
#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/
color: var(--code-block-color) !important;
color: var(--code-block-color);
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
Expand Down
34 changes: 32 additions & 2 deletions drake-juejin.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,36 @@ p {
}

/*mermaid*/
[mermaid-type="journey"] line {
stroke: #7a7a7a !important;
}
[mermaid-type="journey"] .label {
color: #333 !important;
}
[id^=mermaidChart] .relationshipLabelBox {
fill: var(--bg-color) !important;
opacity: 1 !important;
background-color: var(--bg-color) !important;
}
[id^=mermaidChart] .legend {
fill: var(--text-color) !important;
}
[id^=mermaidChart] g.label {
font-size: 1rem !important;
}
[id^=mermaidChart] line.divider {
stroke: var(--table-border-color) !important;
}
[id^=mermaidChart] span.nodeLabel {
color: var(--code-block-color) !important;
line-height: 1.8rem;
}
tspan {
color: var(--text-color)
}
[id^=mermaidChart] .entityLabel {
fill: var(--code-block-color) !important;
}
[id^=mermaidChart] {
fill: var(--text-color) !important;
}
Expand All @@ -123,7 +153,7 @@ p {
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
.md-diagram-panel-preview .actor { /*方块*/
.md-diagram-panel-preview .actor, .md-diagram-panel-preview .entityBox { /*方块*/
stroke: var(--table-border-color) !important;
fill: var(--code-block-bg-color) !important;
}
Expand Down Expand Up @@ -192,7 +222,7 @@ pre.md-fences-advanced.md-focus .md-fences-adv-panel {
fill: var(--code-block-bg-color) !important;
}
#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/
color: var(--code-block-color) !important;
color: var(--code-block-color);
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
Expand Down
34 changes: 32 additions & 2 deletions drake-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,36 @@ p {
}

/*mermaid*/
[mermaid-type="journey"] line {
stroke: #7a7a7a !important;
}
[mermaid-type="journey"] .label {
color: #333 !important;
}
[id^=mermaidChart] .relationshipLabelBox {
fill: var(--bg-color) !important;
opacity: 1 !important;
background-color: var(--bg-color) !important;
}
[id^=mermaidChart] .legend {
fill: var(--text-color) !important;
}
[id^=mermaidChart] g.label {
font-size: 1rem !important;
}
[id^=mermaidChart] line.divider {
stroke: var(--table-border-color) !important;
}
[id^=mermaidChart] span.nodeLabel {
color: var(--code-block-color) !important;
line-height: 1.8rem;
}
tspan {
color: var(--text-color)
}
[id^=mermaidChart] .entityLabel {
fill: var(--code-block-color) !important;
}
[id^=mermaidChart] {
fill: var(--text-color) !important;
}
Expand All @@ -112,7 +142,7 @@ p {
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
.md-diagram-panel-preview .actor { /*方块*/
.md-diagram-panel-preview .actor, .md-diagram-panel-preview .entityBox { /*方块*/
stroke: var(--table-border-color) !important;
fill: var(--code-block-bg-color) !important;
}
Expand Down Expand Up @@ -181,7 +211,7 @@ pre.md-fences-advanced.md-focus .md-fences-adv-panel {
fill: var(--code-block-bg-color) !important;
}
#write .md-diagram-panel .md-diagram-panel-preview div { /*形状内文字*/
color: var(--code-block-color) !important;
color: var(--code-block-color);
font-family: var(--text-font) !important;
font-size: 1rem !important;
}
Expand Down
Loading

0 comments on commit 87718b0

Please sign in to comment.