fix codeblock styles
This commit is contained in:
File diff suppressed because one or more lines are too long
+8
-1
@@ -8,7 +8,14 @@ import { defineConfig } from "astro/config";
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: "https://ghall.space",
|
site: "https://ghall.space",
|
||||||
output: "static",
|
output: "static",
|
||||||
|
markdown: {
|
||||||
|
shikiConfig: {
|
||||||
|
themes: {
|
||||||
|
light: "github-light",
|
||||||
|
dark: "github-dark",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
integrations: [mdx(), alpinejs({ entrypoint: "/src/entrypoint" })],
|
integrations: [mdx(), alpinejs({ entrypoint: "/src/entrypoint" })],
|
||||||
redirects: {
|
redirects: {
|
||||||
"/posts/[...slug]": "/blog/[...slug]",
|
"/posts/[...slug]": "/blog/[...slug]",
|
||||||
|
|||||||
@@ -39,6 +39,9 @@
|
|||||||
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
|
"includes": ["**/*.svelte", "**/*.astro", "**/*.vue"],
|
||||||
"linter": {
|
"linter": {
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"complexity": {
|
||||||
|
"noImportantStyles": "off"
|
||||||
|
},
|
||||||
"style": {
|
"style": {
|
||||||
"useConst": "off",
|
"useConst": "off",
|
||||||
"useImportType": "off"
|
"useImportType": "off"
|
||||||
|
|||||||
@@ -136,3 +136,19 @@ kbd {
|
|||||||
.icon-button > svg {
|
.icon-button > svg {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* shiki */
|
||||||
|
|
||||||
|
.astro-code,
|
||||||
|
.astro-code span {
|
||||||
|
background-color: var(--background) !important;
|
||||||
|
/* Optional, if you also want font styles */
|
||||||
|
font-style: var(--shiki-light-font-style);
|
||||||
|
font-weight: var(--shiki-light-font-weight);
|
||||||
|
text-decoration: var(--shiki-light-text-decoration);
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-dark .astro-code,
|
||||||
|
.theme-dark .astro-code span {
|
||||||
|
color: var(--shiki-dark) !important;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user