Skip to content

Commit

Permalink
Fixed diagram title not switching color in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Dec 10, 2024
1 parent 0f97a8d commit b368cee
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.83f73b43.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.88dd0f4e.min.js' | url }}"></script>
{% for script in config.extra_javascript %}
{{ script | script_tag }}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ marker {
* Rules: flowcharts
* ------------------------------------------------------------------------- */

/* Flowchart title */
.flowchartTitleText {
fill: var(--md-mermaid-label-fg-color);
}

/* Flowchart node label */
.label {
color: var(--md-mermaid-label-fg-color);
Expand Down Expand Up @@ -113,6 +118,11 @@ g #flowchart-pointEnd {
* Rules: class diagrams
* ------------------------------------------------------------------------- */

/* Class diagram title */
.classDiagramTitleText {
fill: var(--md-mermaid-label-fg-color);
}

/* Class group node */
g.classGroup line,
g.classGroup rect {
Expand Down Expand Up @@ -182,6 +192,11 @@ defs #classDiagram-aggregationEnd {
* Rules: state diagrams
* ------------------------------------------------------------------------- */

/* State diagram title */
.statediagramTitleText {
fill: var(--md-mermaid-label-fg-color);
}

/* State group node */
g.stateGroup rect {
fill: var(--md-mermaid-node-bg-color);
Expand Down Expand Up @@ -269,6 +284,11 @@ defs #statediagram-barbEnd {
* Rules: entity-relationship diagrams
* ------------------------------------------------------------------------- */

/* Entity-relationship diagram title */
.entityTitleText {
fill: var(--md-mermaid-label-fg-color);
}

/* Attribute box */
.attributeBoxEven,
.attributeBoxOdd {
Expand Down Expand Up @@ -328,6 +348,11 @@ defs #ZERO_OR_MORE_END circle {
* Rules: sequence diagrams
* ------------------------------------------------------------------------- */

/* Sequence diagram title */
text:not([class]):last-child {
fill: var(--md-mermaid-label-fg-color);
}

/* Sequence actor */
.actor {
fill: var(--md-mermaid-sequence-actor-bg-color);
Expand Down

0 comments on commit b368cee

Please sign in to comment.