Add a hotfix for :has() selector
This hotfix requires not using that selector at all, which worsens the experience in Chrome.
This commit is contained in:
+20
-15
@@ -16,51 +16,56 @@ details.block > summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
details.block > summary:has(h1),
|
||||
/* details.block > summary:has(h1),
|
||||
details.block > summary:has(h2),
|
||||
details.block > summary:has(h3),
|
||||
details.block > summary:has(h4),
|
||||
details.block > summary:has(h5),
|
||||
details.block > summary:has(h6),
|
||||
details.block > summary[data-heading] {
|
||||
details.block > summary:has(h6), */
|
||||
details.block > summary[data-has~=h1],
|
||||
details.block > summary[data-has~=h2],
|
||||
details.block > summary[data-has~=h3],
|
||||
details.block > summary[data-has~=h4],
|
||||
details.block > summary[data-has~=h5],
|
||||
details.block > summary[data-has~=h6] {
|
||||
font-variant: small-caps;
|
||||
font-weight: bold;
|
||||
line-height: 1.333em;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
details.block > summary:has(h1),
|
||||
details.block > summary[data-heading="1"] {
|
||||
/* details.block > summary:has(h1), */
|
||||
details.block > summary[data-has~=h1]{
|
||||
font-size: 2.0rem;
|
||||
background: $theme-article-heading-h1-background;
|
||||
}
|
||||
|
||||
details.block > summary:has(h2),
|
||||
details.block > summary[data-heading="2"] {
|
||||
/* details.block > summary:has(h2), */
|
||||
details.block > summary[data-has~=h2] {
|
||||
font-size: 1.8rem;
|
||||
background: $theme-article-heading-h2-background;
|
||||
}
|
||||
|
||||
details.block > summary:has(h3),
|
||||
details.block > summary[data-heading="3"] {
|
||||
/* details.block > summary:has(h3), */
|
||||
details.block > summary[data-has~=h3] {
|
||||
font-size: 1.6667rem;
|
||||
background: $theme-article-heading-h3-background;
|
||||
}
|
||||
|
||||
details.block > summary:has(h4),
|
||||
details.block > summary[data-heading="4"] {
|
||||
/* details.block > summary:has(h4), */
|
||||
details.block > summary[data-has~=h4] {
|
||||
font-size: 1.45rem;
|
||||
background: $theme-article-heading-h4-background;
|
||||
}
|
||||
|
||||
details.block > summary:has(h5),
|
||||
details.block > summary[data-heading="5"] {
|
||||
/* details.block > summary:has(h5), */
|
||||
details.block > summary[data-has~=h5] {
|
||||
font-size: 1.3333rem;
|
||||
background: $theme-article-heading-h5-background;
|
||||
}
|
||||
|
||||
details.block > summary:has(h6),
|
||||
details.block > summary[data-heading="6"] {
|
||||
/* details.block > summary:has(h6), */
|
||||
details.block > summary[data-has~=h6] {
|
||||
font-size: 1.2rem;
|
||||
background: $theme-article-heading-h6-background;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user