hexo-theme-stellar/source/css/_plugins/mermaid.styl

116 lines
2.1 KiB
Stylus
Raw Normal View History

2023-07-18 22:17:14 +08:00
pre.mermaid
2024-02-20 12:34:03 +08:00
display: flex;
align-items: center;
justify-content: center;
2023-07-18 22:17:14 +08:00
font-family: $ff-body
2023-07-18 22:17:14 +08:00
.mermaid span,text
font-family: $ff-body
.mermaid .edgeLabel
padding: 4px
background-color: var(--site-bg) !important
.mermaid rect.basic.label-container
stroke: var(--block-border) !important
fill: var(--block) !important
2024-02-20 12:34:03 +08:00
2024-02-07 16:21:19 +08:00
_dark_mermaid()
2024-02-20 12:34:03 +08:00
.mermaid
2023-07-18 22:17:14 +08:00
fill: #ccc !important
2024-02-20 12:34:03 +08:00
.mermaid .error-icon
2023-07-18 22:17:14 +08:00
fill: #a44141 !important
2024-02-20 12:34:03 +08:00
.mermaid .error-text
2023-07-18 22:17:14 +08:00
fill: #ddd !important
stroke: #ddd !important
2024-02-20 12:34:03 +08:00
.mermaid .marker
2023-07-18 22:17:14 +08:00
fill: lightgrey !important
stroke: lightgrey !important
2024-02-20 12:34:03 +08:00
.mermaid .marker.cross
2023-07-18 22:17:14 +08:00
stroke: lightgrey !important
2024-02-20 12:34:03 +08:00
.mermaid .label
2023-07-18 22:17:14 +08:00
color: #ccc !important
2024-02-20 12:34:03 +08:00
.mermaid .cluster-label text
2023-07-18 22:17:14 +08:00
fill: #F9FFFE !important
2024-02-20 12:34:03 +08:00
.mermaid .cluster-label span
2023-07-18 22:17:14 +08:00
color: #F9FFFE !important
2024-02-20 12:34:03 +08:00
.mermaid .label text,
2024-02-20 12:34:03 +08:00
.mermaid span
2023-07-18 22:17:14 +08:00
fill: #ccc !important
color: #ccc !important
2024-02-20 12:34:03 +08:00
.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon,
2024-02-20 12:34:03 +08:00
.mermaid .node path
2023-07-18 22:17:14 +08:00
fill: #1f2020 !important
stroke: #81B1DB !important
2024-02-20 12:34:03 +08:00
.mermaid .arrowheadPath
2023-07-18 22:17:14 +08:00
fill: lightgrey !important
2024-02-20 12:34:03 +08:00
.mermaid .edgePath .path
2023-07-18 22:17:14 +08:00
stroke: lightgrey !important
2024-02-20 12:34:03 +08:00
.mermaid .flowchart-link
2023-07-18 22:17:14 +08:00
stroke: lightgrey !important
2024-02-20 12:34:03 +08:00
.mermaid .edgeLabel
2023-07-18 22:17:14 +08:00
background-color: hsl(0, 0%, 34.4117647059%) !important
2024-02-20 12:34:03 +08:00
.mermaid .edgeLabel rect
2023-07-18 22:17:14 +08:00
background-color: hsl(0, 0%, 34.4117647059%) !important
fill: hsl(0, 0%, 34.4117647059%) !important
2024-02-20 12:34:03 +08:00
.mermaid .cluster rect
2023-07-18 22:17:14 +08:00
fill: hsl(180, 1.5873015873%, 28.3529411765%) !important
stroke: rgba(255, 255, 255, 0.25) !important
2024-02-20 12:34:03 +08:00
.mermaid .cluster text
2023-07-18 22:17:14 +08:00
fill: #F9FFFE !important
2024-02-20 12:34:03 +08:00
.mermaid .cluster span
2023-07-18 22:17:14 +08:00
color: #F9FFFE !important
2024-02-20 12:34:03 +08:00
.mermaid div.mermaidTooltip
2023-07-18 22:17:14 +08:00
background: hsl(20, 1.5873015873%, 12.3529411765%) !important
border: 1px solid rgba(255, 255, 255, 0.25) !important
2024-02-20 12:34:03 +08:00
.mermaid .flowchartTitleText
2023-07-18 22:17:14 +08:00
fill: #ccc
2024-02-20 12:34:03 +08:00
:root[data-theme="dark"]
2024-02-07 16:21:19 +08:00
_dark_mermaid()
:root:not([data-theme])
@media (prefers-color-scheme: dark)
2024-02-07 16:21:19 +08:00
_dark_mermaid()