Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't change the style #10

Closed
8088boy opened this issue Oct 28, 2022 · 4 comments
Closed

Can't change the style #10

8088boy opened this issue Oct 28, 2022 · 4 comments

Comments

@8088boy
Copy link

8088boy commented Oct 28, 2022

Hi buddy,
Thanks for your amazing plugin, I like it very much, but only have a little problem.
I followed the instruction and added the following code into file custom.css , but nothing happened.

.dac-container {
  background-color: #eeeeee;
}

Thanks.

@npgrosser
Copy link
Owner

Hey,
thanks for your kind feedback.

My suspicion is that the diagram itself has an opaque background.
So, your gray background is covered by that.

The solution would then depend on the diagram type.

E.g., for Plantuml you can set the skinparam backgroundcolor to transparent:

Example:

@startuml
skinparam backgroundcolor transparent
class Car

Driver - Car : drives >
Car *- Wheel : has 4 >
Car -- Person : < owns

@enduml

Most diagram types should have a similar option

@8088boy
Copy link
Author

8088boy commented Nov 5, 2022

Your suggestion works. Thanks. Here's my code. Is that possible to set the background globally ?

@startuml
@startmindmap
skinparam backgroundcolor grey

+ Dimensionality Reduction
++ Feature Selection
+++ Missing Value Ratio
+++ Low Variance Filter
+++ High Correlation Filter
+++ Random Forest
+++ Backward Feature Extraction
+++ Forward Feature Selection
++ Dimensionality Reduction
+++ Components/Factors Based
++++ Factor Analysis
++++ PCA
++++ ICA
+++ Projection Based
++++ ISOMAP
++++ t-SNE
++++ UMAP
@endmindmap
@enduml

@npgrosser
Copy link
Owner

npgrosser commented Nov 8, 2022

There is no option to set diagram-type specific parameters globally.
However, you can of course just use skinparam backgroundcolor transparent on all diagrams to
use the .dac-container background-color globally, as you originally planned.

@8088boy
Copy link
Author

8088boy commented Nov 14, 2022

The original case is not working. But the inline setting works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants