improve spoilered markdown/quote/link

also changed light theme spoiler color so links will be visible
This commit is contained in:
ygg2
2026-05-15 00:42:04 -04:00
parent 006c2a5c92
commit c87ff44177
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -1005,8 +1005,8 @@ class MarkDown {
}
}
static unspoil(e: any): void {
e.target.classList.remove("spoiler");
e.target.classList.add("unspoiled");
e.currentTarget.classList.remove("spoiler");
e.currentTarget.classList.add("unspoiled");
}
onUpdate: (upto: string, pre: boolean) => unknown = () => {};
box = new WeakRef(document.createElement("div"));
+9 -8
View File
@@ -2788,19 +2788,20 @@ input[type="search"]:read-only {
background: var(--spoiler-bg);
color: var(--spoiler-bg);
cursor: pointer;
a {
color: var(--spoiler-bg);
samp, a {
background: transparent;
color: inherit;
}
.quote {
background: var(--spoiler-bg);
}
}
.spoiler:hover {
background: var(--spoiler-hover);
color: var(--spoiler-hover);
}
.unspoiled {
color: var(--spoiler-text);
}
a.unspoiled {
color: var(--link) !important;
.quote {
background: var(--spoiler-hover);
}
}
.quote {
display: inline-block;
+1 -2
View File
@@ -108,14 +108,13 @@
--button-bg: #babdd2;
--button-hover: #9c9fbf;
--spoiler-bg: #34333a;
--spoiler-bg: #c7c6e5;
--link: #283c8b;
--black: #434392;
--red: #ca304d;
--secondary-text-soft: #211f2e;
--blank-bg: #494985;
--spoiler-text: #e4e6ed;
}
.Dark-Accent-theme {