Fixed attribute styles in entity-relationship diagrams

This commit is contained in:
squidfunk 2023-02-07 18:40:42 +01:00
parent 2e689f062f
commit f7598410cb
5 changed files with 24 additions and 9 deletions

View File

@ -246,6 +246,10 @@ a specific domain of knowledge:
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
LINE-ITEM {
string name
int pricePerUnit
}
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
```
````
@ -256,6 +260,10 @@ erDiagram
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
LINE-ITEM {
string name
int pricePerUnit
}
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
```

View File

@ -240,7 +240,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.6df46069.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.1ef2e63d.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -262,7 +262,14 @@ defs #statediagram-barbEnd {
* Rules: entity-relationship diagrams
* ------------------------------------------------------------------------- */
/* Entity node */
/* Attribute box */
.attributeBoxEven,
.attributeBoxOdd {
fill: var(--md-mermaid-node-bg-color);
stroke: var(--md-mermaid-node-fg-color);
}
/* Entity node */
.entityBox {
fill: var(--md-mermaid-label-bg-color);
stroke: var(--md-mermaid-node-fg-color);