-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
CSS for all diagram items #3021
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @amolenaar, this looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, reapproved this by accident.
58fdc74
to
5d7b180
Compare
@danyeaw I added a lot more changes to this PR. |
Similar to Component
Otherwise padding is applied multiple times.
Now all other elements can start using `text_name()` to display their name.
Now all names in all elements can be styled.
Needed for regions
Top compartment is not similar to classifiers.
Just define it in CSS.
Now we have to use CSS.
Group by language and add a few improvements (nested classifiers, metadata).
Let's focus on (classifier) compartments here.
efcb26b
to
54aa687
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @amolenaar!! This is such a nice improvement, it will be much easier to create new toolboxes and maintain the ones we have with all the style centralized like this! 🤩
A next step may be to create some style sheets, so users can pick from a few predefined styles. |
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #3023
What is the new behavior?
New CSS capabilities:
icon
nodes.compartment
nodes.:first-child
selector.stereotype_watches()
function where possibleDoes this PR introduce a breaking change?
Other information
text-align
andfont-*
leak through to child items in a diagram.