55
66 (Quarto doesn't control this: mermaid does textual substitution in the
77 CSS you pass them. So you can't just pass a URL to a CSS file.)
8+
9+ we currently use https://www.npmjs.com/package/css-minify to minify
10+
11+ $ deno
12+ > import m from "npm:css-minify"
13+ > let t = Deno.readTextFileSync("src/resources/formats/html/mermaid/embed-mermaid.css")
14+ > await m(t)
815*/
916
1017.label text {
@@ -28,6 +35,7 @@ marker {
2835.label {
2936 color : var (--mermaid-label-fg-color );
3037 font-family : var (--mermaid-font-family );
38+ font-weight : var (--mermaid-font-weight );
3139}
3240.label foreignObject {
3341 line-height : normal;
@@ -61,6 +69,7 @@ marker {
6169.cluster span {
6270 color : var (--mermaid-label-fg-color );
6371 font-family : var (--mermaid-font-family );
72+ font-weight : var (--mermaid-font-weight );
6473}
6574defs # flowchart-circleEnd ,
6675defs # flowchart-circleStart ,
@@ -78,6 +87,7 @@ g.classGroup rect {
7887g .classGroup text {
7988 fill : var (--mermaid-label-fg-color );
8089 font-family : var (--mermaid-font-family );
90+ font-weight : var (--mermaid-font-weight );
8191}
8292.classLabel .box {
8393 fill : var (--mermaid-label-bg-color );
@@ -87,6 +97,7 @@ g.classGroup text {
8797.classLabel .label {
8898 fill : var (--mermaid-label-fg-color );
8999 font-family : var (--mermaid-font-family );
100+ font-weight : var (--mermaid-font-weight );
90101}
91102.node .divider {
92103 stroke : var (--mermaid-node-fg-color );
@@ -97,6 +108,7 @@ g.classGroup text {
97108.cardinality {
98109 fill : var (--mermaid-label-fg-color );
99110 font-family : var (--mermaid-font-family );
111+ font-weight : var (--mermaid-font-weight );
100112}
101113.cardinality text {
102114 fill : inherit !important ;
@@ -122,13 +134,15 @@ g.stateGroup rect {
122134g .stateGroup .state-title {
123135 fill : var (--mermaid-label-fg-color ) !important ;
124136 font-family : var (--mermaid-font-family );
137+ font-weight : var (--mermaid-font-weight );
125138}
126139g .stateGroup .composit {
127140 fill : var (--mermaid-label-bg-color );
128141}
129142.nodeLabel {
130143 color : var (--mermaid-label-fg-color );
131144 font-family : var (--mermaid-font-family );
145+ font-weight : var (--mermaid-font-weight );
132146}
133147.node circle .state-end ,
134148.node circle .state-start ,
@@ -173,6 +187,7 @@ defs #statediagram-barbEnd {
173187.entityLabel {
174188 fill : var (--mermaid-label-fg-color );
175189 font-family : var (--mermaid-font-family );
190+ font-weight : var (--mermaid-font-weight );
176191}
177192.relationshipLabelBox {
178193 fill : var (--mermaid-label-bg-color );
@@ -207,6 +222,7 @@ defs #ZERO_OR_MORE_START circle {
207222text .actor > tspan {
208223 fill : var (--mermaid-label-fg-color );
209224 font-family : var (--mermaid-font-family );
225+ font-weight : var (--mermaid-font-weight );
210226}
211227line {
212228 stroke : var (--mermaid-fg-color--lighter );
@@ -221,6 +237,7 @@ line {
221237 fill : var (--mermaid-edge-color );
222238 stroke : none;
223239 font-family : var (--mermaid-font-family ) !important ;
240+ font-weight : var (--mermaid-font-weight ) !important ;
224241}
225242.noteText > tspan {
226243 fill : # 000 ;
@@ -243,4 +260,5 @@ line {
243260.labelText > span {
244261 fill : var (--mermaid-node-fg-color );
245262 font-family : var (--mermaid-font-family );
263+ font-weight : var (--mermaid-font-weight );
246264}
0 commit comments