Skip to content
Merged
Changes from 1 commit
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 xarray/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ body.vscode-dark {
.xr-var-item label,
.xr-var-item > .xr-var-name span {
background-color: var(--xr-background-color-row-even);
border-color: var(--xr-background-color-row-odd);
margin-bottom: 0;
}

Expand All @@ -231,6 +232,7 @@ body.vscode-dark {
.xr-var-list > li:nth-child(odd) > label,
.xr-var-list > li:nth-child(odd) > .xr-var-name span {
background-color: var(--xr-background-color-row-odd);
border-color: var(--xr-background-color-row-even);
}

.xr-var-name {
Expand Down Expand Up @@ -280,8 +282,9 @@ body.vscode-dark {
.xr-var-data,
.xr-index-data {
display: none;
background-color: var(--xr-background-color) !important;
padding-bottom: 5px !important;
border-top: 2px dotted var(--xr-background-color);
padding-bottom: 20px !important;
padding-top: 10px !important;
}

.xr-var-attrs-in:checked ~ .xr-var-attrs,
Expand All @@ -294,6 +297,12 @@ body.vscode-dark {
float: right;
}

.xr-var-data > pre,
.xr-index-data > pre,
.xr-var-data > table > tbody > tr {
background-color: transparent !important;
Comment on lines +358 to +359
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a special case for dask's array repr so that it looks like this:

Screenshot 2025-05-28 at 10 27 33

instead of this:

Screenshot 2025-05-28 at 10 30 26

This trick may not work well for other wrapped arrays that have an html repr, though.

}

.xr-var-name span,
.xr-var-data,
.xr-index-name div,
Expand Down
Loading