mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
fix: markdown list marking, markdown code light theme, closes #1176
This commit is contained in:
parent
ff7a88ab90
commit
caf4079302
@ -1,5 +1,9 @@
|
||||
@use "sass:meta";
|
||||
|
||||
.dark {
|
||||
.markdown {
|
||||
@include meta.load-css("prismjs/themes/prism-tomorrow.min.css");
|
||||
|
||||
table thead th {
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -97,6 +97,11 @@
|
||||
p + ol {
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
li > ul,
|
||||
li > ol {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// override prism stuff
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user