Skip to content

Commit

Permalink
CoverTheme: Don't nest CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ckoates committed Sep 8, 2024
1 parent cd04213 commit 1b076d4
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions plugins/CoverTheme/src/transparent.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,15 @@ main,
}

/* Use cover colors in search results header */
[data-test="search-results-top"] {
> [class*="container--"]::before {
background-image: var(--cover-gradient);
z-index: -1;
left: -36px;
right: -36px;
height: calc(var(--topSpacing) + 50px);
}
[data-test="search-results-top"] > [class*="container"]::before {
background-image: var(--cover-gradient);
z-index: -1;
left: -36px;
right: -36px;
height: calc(var(--topSpacing) + 50px);
}

> [class*="container--"] {
background-color: unset;
[class*="divider"] {
background-color: unset;
}
}
[data-test="search-results-top"] > [class*="container"],
[data-test="search-results-top"] > [class*="container"] > [class*="divider"] {
background-color: unset;
}

0 comments on commit 1b076d4

Please sign in to comment.