Update packages/mermaid/src/docs/syntax/classDiagram.md

Co-authored-by: Alois Klink <alois@mermaidchart.com>
This commit is contained in:
Justin Greywolf 2023-12-11 04:45:16 -08:00 committed by GitHub
parent 24957f44df
commit 3dce04e0a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -530,14 +530,6 @@ classDiagram
style Mineral fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
```
```mermaid
classDiagram
class Animal
class Mineral
style Animal fill:#f9f,stroke:#333,stroke-width:4px
style Mineral fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
```
#### Classes
More convenient than defining the style every time is to define a class of styles and attach this class to the nodes that