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

Funkyheatmap dark theme #208

Merged
merged 1 commit into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions results/_blocks/_summary_figure.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,15 @@ funkyheatmap(
fontSize: 14,
rowHeight: 26,
rootStyle: 'max-width: none',
colorByRank: color_by_rank
colorByRank: color_by_rank,
theme: {
oddRowBackground: 'var(--bs-body-bg)',
evenRowBackground: 'var(--bs-button-hover)',
textColor: 'var(--bs-body-color)',
strokeColor: 'var(--bs-body-color)',
headerColor: 'var(--bs-white)',
hoverColor: 'var(--bs-body-color)'
}
}
);
```
Expand All @@ -154,6 +162,7 @@ funkyheatmap(
//| echo: false
funkyheatmap = (await require('d3@7').then(d3 => {
window.d3 = d3;
return import('https://unpkg.com/[email protected]');
window._ = _;
return import('https://unpkg.com/[email protected]');
})).default;
```
34 changes: 0 additions & 34 deletions results/task_template.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,40 +53,6 @@ div.dtsp-panesContainer div.dataTables_wrapper div.dataTables_scrollBody {
background-color: var(--bs-body-bg) !important;
}

/* Funkyheatmap */

.quarto-figure svg text {
fill: var(--bs-body-color);
}

.quarto-figure svg rect.row:first-child ~ text {
fill: var(--bs-body-color);
}

.quarto-figure svg rect:first-child ~ text {
fill: var(--bs-white);
}

.quarto-figure svg rect.row:nth-child(2n) {
fill: var(--bs-button-hover);
}

.quarto-figure svg rect.row {
fill: var(--bs-body-bg);
}

.quarto-figure svg g:first-child ~ g text ~ rect {
stroke: var(--bs-body-color) !important;
}

.quarto-figure svg g:first-child ~ g text ~ circle {
stroke: var(--bs-body-color) !important;
}

.quarto-figure svg line {
stroke: var(--bs-body-color);
}

/* Raw results figure */

section#details details img.img-fluid {
Expand Down