Skip to content

Commit

Permalink
add mermaid css for accessbility
Browse files Browse the repository at this point in the history
  • Loading branch information
tang-mm committed Dec 12, 2023
1 parent e00fa58 commit 0fd7d63
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docs/.sphinx/_static/checkbox-doc.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.mermaid {
display: flex;
justify-content: center;
padding-bottom: 0.5rem;
font-family: Ubuntu, sans-serif;
}

.mermaid .node rect,
.mermaid .node circle,
.mermaid .node ellipse,
.mermaid .node polygon,
.mermaid .node path,
.mermaid rect.actor,
.mermaid .labelBox polygon
{
fill: var(--color-background-item) !important;
stroke: var(--color-background-border) !important;
}


.mermaid .label text,
.mermaid span,
.mermaid p
{
color: var(--color-content-foreground) !important;
}

.mermaid .actor tspan,
.mermaid text.messageText
{
fill: var(--color-content-foreground) !important;
}

.mermaid .flowchart-link,
.mermaid line
{
stroke: var(--color-content-foreground) !important;
}

.mermaid .marker
{
fill: var(--color-content-foreground) !important;
stroke: var(--color-content-foreground) !important;
}
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
html_css_files = [
'custom.css',
'github_issue_links.css',
'checkbox-doc.css'
]
html_js_files = [
'github_issue_links.js',
Expand Down

0 comments on commit 0fd7d63

Please sign in to comment.