Skip to content

Commit

Permalink
Fix CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Jul 16, 2024
1 parent cbcff26 commit 83c28b6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions vizro-core/examples/chart-gallery/utils/_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@


class CodeClipboard(vm.VizroBaseModel):
"""Contains code snippet with a copy to clipboard button."""

type: Literal["code_clipboard"] = "code_clipboard"
title: str = "Code"
text: str
Expand All @@ -36,6 +38,8 @@ def build(self):


class Markdown(vm.VizroBaseModel):
"""Markdown component."""

type: Literal["markdown"] = "markdown"
text: str = Field(
..., description="Markdown string to create card title/text that should adhere to the CommonMark Spec."
Expand Down
2 changes: 1 addition & 1 deletion vizro-core/examples/chart-gallery/utils/_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def tidy_chart_title(chart: str) -> str:
]
)
FLOW_CHARTS = sorted(["sankey", "waterfall", "chord", "network"])
SPATIAL_CHARTS = sorted(["choropleth", "dot-density", "flow-map", "proportional-symbol"])
SPATIAL_CHARTS = sorted(["choropleth", "dot-map", "flow-map", "bubble-map"])

ALL_CHARTS = sorted(
set(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ code.language-python.hljs {
font-family: unset;
}

.hljs-string {
.hljs-string, .hljs-params .hljs-string, .hljs-number {
color: var(--text-code-string);
font-family: unset;
}
Expand All @@ -17,3 +17,8 @@ code.language-python.hljs {
color: var(--text-code-keyword);
font-family: unset;
}

.hljs-title.function_, .hljs-meta, .hljs-built_in, .hljs-type {
color: var(--text-code-meta);
font-family: unset;
}
File renamed without changes.
4 changes: 4 additions & 0 deletions vizro-core/src/vizro/static/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
--status-warning: var(--status-dark-mode-warning);
--text-code-string: #95c2e7;
--text-code-keyword: #f4766e;
--text-code-meta: #c8ace1;
--text-code-type: #f69d50;
}

.vizro_light {
Expand Down Expand Up @@ -158,4 +160,6 @@
--inverse-color: invert(100%);
--text-code-string: #0a3069;
--text-code-keyword: #d12d39;
--text-code-meta: #6f42c1;
--text-code-type: #f69d50;
}

0 comments on commit 83c28b6

Please sign in to comment.