mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-02 18:45:14 +01:00
fix: define excludeBkgColor for theme-dark
Define `excludeBkgColor` for `theme-dark` to fix invalid CSS for gantt diagrams. All the other themes defined this to '#eeeeee', but I thought that was a bit too bright in a dark theme, so instead I set it to `darken(this.sectionBkgColor, 10);`.
This commit is contained in:
@@ -64,6 +64,7 @@ class Theme {
|
|||||||
this.sectionBkgColor = darken('#EAE8D9', 30);
|
this.sectionBkgColor = darken('#EAE8D9', 30);
|
||||||
this.altSectionBkgColor = 'calculated';
|
this.altSectionBkgColor = 'calculated';
|
||||||
this.sectionBkgColor2 = '#EAE8D9';
|
this.sectionBkgColor2 = '#EAE8D9';
|
||||||
|
this.excludeBkgColor = darken(this.sectionBkgColor, 10);
|
||||||
this.taskBorderColor = rgba(255, 255, 255, 70);
|
this.taskBorderColor = rgba(255, 255, 255, 70);
|
||||||
this.taskBkgColor = 'calculated';
|
this.taskBkgColor = 'calculated';
|
||||||
this.taskTextColor = 'calculated';
|
this.taskTextColor = 'calculated';
|
||||||
|
|||||||
Reference in New Issue
Block a user