mirror of
https://github.com/mermaid-js/mermaid.git
synced 2024-09-11 20:12:46 +02:00
remove unused .attributeBoxText and oldAttributeBoxTextColor
This commit is contained in:
parent
84dfc8ee4b
commit
777f888892
7 changed files with 4 additions and 23 deletions
|
@ -14,11 +14,7 @@ const getStyles = (options) =>
|
|||
fill: ${options.attributeBackgroundColorEven};
|
||||
stroke: ${options.nodeBorder};
|
||||
}
|
||||
|
||||
.attributeBoxText {
|
||||
color: ${options.attributeTextColor};
|
||||
}
|
||||
|
||||
|
||||
.relationshipLabelBox {
|
||||
fill: ${options.tertiaryColor};
|
||||
opacity: 0.7;
|
||||
|
@ -28,9 +24,9 @@ const getStyles = (options) =>
|
|||
}
|
||||
}
|
||||
|
||||
.relationshipLine {
|
||||
stroke: ${options.lineColor};
|
||||
}
|
||||
.relationshipLine {
|
||||
stroke: ${options.lineColor};
|
||||
}
|
||||
`;
|
||||
|
||||
export default getStyles;
|
||||
|
|
|
@ -5,4 +5,3 @@
|
|||
*/
|
||||
export const oldAttributeBackgroundColorOdd = '#ffffff';
|
||||
export const oldAttributeBackgroundColorEven = '#f2f2f2';
|
||||
export const oldAttributeBoxTextColor = '#ff0000';
|
||||
|
|
|
@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
|
|||
import {
|
||||
oldAttributeBackgroundColorEven,
|
||||
oldAttributeBackgroundColorOdd,
|
||||
oldAttributeBoxTextColor,
|
||||
} from './erDiagram-oldHardcodedValues';
|
||||
|
||||
class Theme {
|
||||
|
@ -229,7 +228,6 @@ class Theme {
|
|||
/* -------------------------------------------------- */
|
||||
/* EntityRelationship diagrams */
|
||||
|
||||
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
|
||||
this.attributeBackgroundColorOdd =
|
||||
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
|
||||
this.attributeBackgroundColorEven =
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
import { invert, lighten, darken, rgba, adjust } from 'khroma';
|
||||
import { mkBorder } from './theme-helpers';
|
||||
import {
|
||||
oldAttributeBackgroundColorEven,
|
||||
oldAttributeBackgroundColorOdd,
|
||||
oldAttributeBoxTextColor,
|
||||
} from './erDiagram-oldHardcodedValues';
|
||||
|
||||
class Theme {
|
||||
constructor() {
|
||||
|
@ -228,7 +223,6 @@ class Theme {
|
|||
/* -------------------------------------------------- */
|
||||
/* EntityRelationship diagrams */
|
||||
|
||||
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
|
||||
this.attributeBackgroundColorOdd =
|
||||
this.attributeBackgroundColorOdd || lighten(this.background, 12);
|
||||
this.attributeBackgroundColorEven =
|
||||
|
|
|
@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
|
|||
import {
|
||||
oldAttributeBackgroundColorEven,
|
||||
oldAttributeBackgroundColorOdd,
|
||||
oldAttributeBoxTextColor,
|
||||
} from './erDiagram-oldHardcodedValues';
|
||||
|
||||
class Theme {
|
||||
|
@ -266,7 +265,6 @@ class Theme {
|
|||
/* -------------------------------------------------- */
|
||||
/* EntityRelationship diagrams */
|
||||
|
||||
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
|
||||
this.attributeBackgroundColorOdd =
|
||||
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
|
||||
this.attributeBackgroundColorEven =
|
||||
|
|
|
@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
|
|||
import {
|
||||
oldAttributeBackgroundColorEven,
|
||||
oldAttributeBackgroundColorOdd,
|
||||
oldAttributeBoxTextColor,
|
||||
} from './erDiagram-oldHardcodedValues';
|
||||
|
||||
class Theme {
|
||||
|
@ -229,7 +228,6 @@ class Theme {
|
|||
/* -------------------------------------------------- */
|
||||
/* EntityRelationship diagrams */
|
||||
|
||||
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
|
||||
this.attributeBackgroundColorOdd =
|
||||
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
|
||||
this.attributeBackgroundColorEven =
|
||||
|
|
|
@ -3,7 +3,6 @@ import { mkBorder } from './theme-helpers';
|
|||
import {
|
||||
oldAttributeBackgroundColorEven,
|
||||
oldAttributeBackgroundColorOdd,
|
||||
oldAttributeBoxTextColor,
|
||||
} from './erDiagram-oldHardcodedValues';
|
||||
|
||||
// const Color = require ( 'khroma/dist/color' ).default
|
||||
|
@ -270,7 +269,6 @@ class Theme {
|
|||
/* -------------------------------------------------- */
|
||||
/* EntityRelationship diagrams */
|
||||
|
||||
this.attributeTextColor = this.attributeTextColor || oldAttributeBoxTextColor;
|
||||
this.attributeBackgroundColorOdd =
|
||||
this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd;
|
||||
this.attributeBackgroundColorEven =
|
||||
|
|
Loading…
Reference in a new issue