From 8a8ace81952f2e2481738933a5d597c42487c157 Mon Sep 17 00:00:00 2001 From: volosianko77 <160537908+volosianko77@users.noreply.github.com> Date: Wed, 13 Mar 2024 20:23:02 +0100 Subject: [PATCH] Update global.css I've replaced the :is() pseudo-class with the appropriate HTML class selector since :is() is not supported in all browsers. --- styles/global.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/styles/global.css b/styles/global.css index ee26f237..6ebe1102 100644 --- a/styles/global.css +++ b/styles/global.css @@ -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; } @@ -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 { @@ -54,3 +52,4 @@ span.shasum code { border: none; background-color: transparent !important; } +