Merge branch 'develop' into docs/patch-1

This commit is contained in:
nashtechlabs 2023-11-09 05:34:57 +07:00 committed by GitHub
commit fadae38bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 25 deletions

View File

@ -100,6 +100,8 @@ Communication tools and platforms
- [phpbb-ext-mermaid](https://github.com/AlfredoRamos/phpbb-ext-mermaid) - [phpbb-ext-mermaid](https://github.com/AlfredoRamos/phpbb-ext-mermaid)
- [NodeBB](https://nodebb.org) - [NodeBB](https://nodebb.org)
- [Mermaid Plugin](https://www.npmjs.com/package/nodebb-plugin-mermaid) - [Mermaid Plugin](https://www.npmjs.com/package/nodebb-plugin-mermaid)
- [Slack](https://slack.com)
- [Mermaid for Slack](https://github.com/JackuB/mermaid-for-slack)
### Wikis ### Wikis

View File

@ -1,9 +1,9 @@
const getStyles = (options) => const getStyles = (options) =>
` `
.mermaid-main-font { .mermaid-main-font {
font-family: "trebuchet ms", verdana, arial, sans-serif; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
font-family: var(--mermaid-font-family);
} }
.exclude-range { .exclude-range {
fill: ${options.excludeBkgColor}; fill: ${options.excludeBkgColor};
} }
@ -45,11 +45,7 @@ const getStyles = (options) =>
.sectionTitle { .sectionTitle {
text-anchor: start; text-anchor: start;
// font-size: ${options.ganttFontSize}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
// text-height: 14px;
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
} }
@ -59,10 +55,11 @@ const getStyles = (options) =>
stroke: ${options.gridColor}; stroke: ${options.gridColor};
opacity: 0.8; opacity: 0.8;
shape-rendering: crispEdges; shape-rendering: crispEdges;
text { }
font-family: ${options.fontFamily};
fill: ${options.textColor}; .grid .tick text {
} font-family: ${options.fontFamily};
fill: ${options.textColor};
} }
.grid path { .grid path {
@ -89,33 +86,27 @@ const getStyles = (options) =>
.taskText { .taskText {
text-anchor: middle; text-anchor: middle;
font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
font-family: var(--mermaid-font-family);
} }
// .taskText:not([font-size]) {
// font-size: ${options.ganttFontSize};
// }
.taskTextOutsideRight { .taskTextOutsideRight {
fill: ${options.taskTextDarkColor}; fill: ${options.taskTextDarkColor};
text-anchor: start; text-anchor: start;
// font-size: ${options.ganttFontSize}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
} }
.taskTextOutsideLeft { .taskTextOutsideLeft {
fill: ${options.taskTextDarkColor}; fill: ${options.taskTextDarkColor};
text-anchor: end; text-anchor: end;
// font-size: ${options.ganttFontSize};
} }
/* Special case clickable */ /* Special case clickable */
.task.clickable { .task.clickable {
cursor: pointer; cursor: pointer;
} }
.taskText.clickable { .taskText.clickable {
cursor: pointer; cursor: pointer;
fill: ${options.taskTextClickableColor} !important; fill: ${options.taskTextClickableColor} !important;
@ -134,6 +125,7 @@ const getStyles = (options) =>
font-weight: bold; font-weight: bold;
} }
/* Specific task settings for the sections*/ /* Specific task settings for the sections*/
.taskText0, .taskText0,
@ -255,9 +247,8 @@ const getStyles = (options) =>
.titleText { .titleText {
text-anchor: middle; text-anchor: middle;
font-size: 18px; font-size: 18px;
fill: ${options.textColor} ; fill: ${options.titleColor || options.textColor};
font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
font-family: var(--mermaid-font-family);
} }
`; `;

View File

@ -104,6 +104,8 @@ Communication tools and platforms
- [phpbb-ext-mermaid](https://github.com/AlfredoRamos/phpbb-ext-mermaid) - [phpbb-ext-mermaid](https://github.com/AlfredoRamos/phpbb-ext-mermaid)
- [NodeBB](https://nodebb.org) - [NodeBB](https://nodebb.org)
- [Mermaid Plugin](https://www.npmjs.com/package/nodebb-plugin-mermaid) - [Mermaid Plugin](https://www.npmjs.com/package/nodebb-plugin-mermaid)
- [Slack](https://slack.com)
- [Mermaid for Slack](https://github.com/JackuB/mermaid-for-slack)
### Wikis ### Wikis