Skip to content

Commit

Permalink
Update global.css
Browse files Browse the repository at this point in the history
I've replaced the :is() pseudo-class with the appropriate HTML class selector since :is() is not supported in all browsers.
  • Loading branch information
volosianko77 committed Mar 13, 2024
1 parent fccdc3a commit 8a8ace8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions styles/global.css
Expand Up @@ -4,9 +4,7 @@
@import url("theme.css");

/* Override Nextra so content gets more breathing room */
.nextra-content h2 ~ p {
margin-top: 1.0rem
}
.nextra-content h2 ~ p,
.nextra-content h3 ~ p {
margin-top: 1.0rem;
}
Expand Down Expand Up @@ -45,7 +43,7 @@ span.shasum {
border-radius: 4px;
padding: 0.5rem;
}
:is(html[class~="dark"]) span.shasum {
html.dark span.shasum {
background-color: var(--op-neutral-700) !important;
}
span.shasum code {
Expand All @@ -54,3 +52,4 @@ span.shasum code {
border: none;
background-color: transparent !important;
}

0 comments on commit 8a8ace8

Please sign in to comment.