warnings
This commit is contained in:
parent
011ecf4b18
commit
9fa4cda569
1 changed files with 7 additions and 7 deletions
|
|
@ -1876,17 +1876,17 @@ func Render(diagram *d2target.Diagram, opts *RenderOpts) ([]byte, error) {
|
||||||
case "paper":
|
case "paper":
|
||||||
patternDefs += paper
|
patternDefs += paper
|
||||||
}
|
}
|
||||||
fmt.Fprint(upperBuf, fmt.Sprintf(`
|
fmt.Fprintf(upperBuf, `
|
||||||
.%s-overlay {
|
.%s-overlay {
|
||||||
fill: url(#%s);
|
fill: url(#%s);
|
||||||
mix-blend-mode: multiply;
|
mix-blend-mode: multiply;
|
||||||
}`, pattern, pattern))
|
}`, pattern, pattern)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if patternDefs != "" {
|
if patternDefs != "" {
|
||||||
fmt.Fprint(upperBuf, `]]></style>`)
|
fmt.Fprint(upperBuf, `]]></style>`)
|
||||||
fmt.Fprint(upperBuf, "<defs>")
|
fmt.Fprint(upperBuf, "<defs>")
|
||||||
fmt.Fprintf(upperBuf, patternDefs)
|
fmt.Fprint(upperBuf, patternDefs)
|
||||||
fmt.Fprint(upperBuf, "</defs>")
|
fmt.Fprint(upperBuf, "</defs>")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2135,11 +2135,11 @@ func singleThemeRulesets(diagramHash string, themeID int64) (rulesets string, er
|
||||||
out += fmt.Sprintf(".sketch-overlay-%s{fill:url(#streaks-%s);mix-blend-mode:%s}", color.N7, lc, blendMode(lc))
|
out += fmt.Sprintf(".sketch-overlay-%s{fill:url(#streaks-%s);mix-blend-mode:%s}", color.N7, lc, blendMode(lc))
|
||||||
|
|
||||||
if theme.IsDark() {
|
if theme.IsDark() {
|
||||||
out += fmt.Sprintf(".light-code{display: none}")
|
out += ".light-code{display: none}"
|
||||||
out += fmt.Sprintf(".dark-code{display: block}")
|
out += ".dark-code{display: block}"
|
||||||
} else {
|
} else {
|
||||||
out += fmt.Sprintf(".light-code{display: block}")
|
out += ".light-code{display: block}"
|
||||||
out += fmt.Sprintf(".dark-code{display: none}")
|
out += ".dark-code{display: none}"
|
||||||
}
|
}
|
||||||
|
|
||||||
return out, nil
|
return out, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue