diff --git a/theme/src/client/styles/twoslash.scss b/theme/src/client/styles/twoslash.scss index ca937ca5..f997f258 100644 --- a/theme/src/client/styles/twoslash.scss +++ b/theme/src/client/styles/twoslash.scss @@ -31,6 +31,17 @@ div[class*="language-"].line-numbers-mode:has(> .twoslash) { } } +@supports not selector(:has(a)) { + div[class*="language-"] .twoslash + .line-numbers { + display: none; + } + + div[class*="language-"] pre.twoslash { + padding-left: 1.5rem; + margin-left: 0; + } +} + /* Respect people's wishes to not have animations */ @media (prefers-reduced-motion: reduce) { .twoslash * {