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

Ensure VSCode does not apply white background #4923

Merged
merged 2 commits into from
May 24, 2023
Merged
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
10 changes: 9 additions & 1 deletion panel/_templates/jupyter.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
box-sizing: border-box;
font-family: var(--jp-ui-font-family);
font-size: var(--jp-ui-font-size1);
color: var(--jp-ui-font-color1);
color: var(--vscode-editor-foreground, var(--jp-ui-font-color1));
}

/* Override VSCode background color */
.cell-output-ipywidget-background:has(> .cell-output-ipywidget-background
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:has() pseudo selector is not available in Firefox yet. Given this change is related to vscode, then maybe this is not a concern.

> .lm-Widget
> *[data-root-id]),
.cell-output-ipywidget-background:has(> .lm-Widget > *[data-root-id]) {
background-color: transparent !important;
}