diff --git a/assets/css/code.css b/assets/css/code.css index 3dcb68fb7d..08d9346fcc 100644 --- a/assets/css/code.css +++ b/assets/css/code.css @@ -24,6 +24,20 @@ } } + /* Indented code blocks */ + :not(.highlight) > pre { + @apply my-4 overflow-x-auto p-3; + font-size: 0.875em; + border: 1px solid; + border-radius: theme("spacing.1"); + background: theme("colors.white"); + border-color: theme("colors.gray.light.300"); + .dark & { + background: theme("colors.gray.dark.200"); + border-color: theme("colors.gray.dark.300"); + } + } + .highlight { @apply my-4 overflow-x-auto p-3;