diff --git a/src/css/base.css b/src/css/base.css index 2316865c2..123d9c468 100644 --- a/src/css/base.css +++ b/src/css/base.css @@ -248,31 +248,20 @@ td { } pre { - --tab-size: 2; - --top-inset: calc(var(--lineheight) / 2); - - direction: ltr; text-align: left; line-height: var(--leading); white-space: pre; word-spacing: normal; word-break: normal; hyphens: none; - tab-size: var(--tab-size); - background: var(--pre-background); + tab-size: 2; color: var(--code-color); - border-radius: 8px; - padding: var(--top-inset) calc(var(--lineheight)); -webkit-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: none; font-size: var(--f5); overflow: auto; position: relative; - @media screen and (max-width: 480px) { - padding-left: 0.25em; - } - & .line-highlight { --cycle: 27px; --color: 112 20% 50%; diff --git a/src/css/prism-matrix.css b/src/css/prism-matrix.css index 1bd974c07..85352ceaf 100644 --- a/src/css/prism-matrix.css +++ b/src/css/prism-matrix.css @@ -1,16 +1,5 @@ /* Matrix theme in light and dark versions by Johan. */ -code[class*='language-'], -pre[class*='language-'] { - color: hsl(112 30% 30%); - background-color: hsl(112 29.98% 97%); - - @media (prefers-color-scheme: dark) { - color: hsl(112, 70%, 80%); - background-color: hsl(112, 1.27%, 13.33%); - } -} - .token { --hue: 112; --sat: 40%;