fix: markdown list marking, markdown code light theme, closes #1176

This commit is contained in:
MiniDigger | Martin 2023-04-23 20:45:23 +02:00
parent ff7a88ab90
commit caf4079302
4 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,9 @@
@use "sass:meta";
.dark {
.markdown {
@include meta.load-css("prismjs/themes/prism-tomorrow.min.css");
table thead th {
color: #e0e0e0;
}

View File

@ -1,5 +1,9 @@
@use "sass:meta";
.light {
.markdown {
@include meta.load-css("prismjs/themes/prism.min.css");
table tr:nth-child(2n) {
background-color: #f5f5f5;
}
@ -18,7 +22,7 @@
}
pre {
background-color: #dfe0e1;
background-color: #f2f2f3;
code {
background-color: transparent;
}

View File

@ -97,6 +97,11 @@
p + ol {
margin-top: -10px;
}
li > ul,
li > ol {
margin: 0;
}
}
// override prism stuff

View File

@ -2,7 +2,6 @@ import { defineStore } from "pinia";
import type { highlightAll, Languages } from "prismjs";
import { ref } from "#imports";
import { prismLog } from "~/composables/useLog";
import "prismjs/themes/prism-tomorrow.min.css";
export const usePrismStore = defineStore("prism", () => {
const prism = ref<{ highlightAll: typeof highlightAll; languages: Languages } | null>(null);