mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-09 09:42:26 +00:00
add markdown styles and change the way the config backdrop is shown so notifications are above it
This commit is contained in:
parent
8b2d6fa141
commit
48d57498aa
5 changed files with 24 additions and 5 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
"chroma-js": "^2.1.2",
|
"chroma-js": "^2.1.2",
|
||||||
"jquery": "^3.6.0",
|
"jquery": "^3.6.0",
|
||||||
"markdown-it": "^12.2.0",
|
"markdown-it": "^12.2.0",
|
||||||
|
"markdown-it-attrs": "^4.1.0",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
"node-vibrant": "3.1.4",
|
"node-vibrant": "3.1.4",
|
||||||
"raw-loader": "^4.0.2"
|
"raw-loader": "^4.0.2"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import MarkdownIt from "markdown-it";
|
import MarkdownIt from "markdown-it";
|
||||||
|
import MarkdownItAttrs from "markdown-it-attrs";
|
||||||
|
|
||||||
import svgUndo from "../svg/undo.svg";
|
import svgUndo from "../svg/undo.svg";
|
||||||
|
|
||||||
|
|
@ -62,8 +63,10 @@ export default class ConfigMenu {
|
||||||
this.md = MarkdownIt({
|
this.md = MarkdownIt({
|
||||||
html: true,
|
html: true,
|
||||||
breaks: true,
|
breaks: true,
|
||||||
linkify: true
|
linkify: true,
|
||||||
|
typographer: true
|
||||||
});
|
});
|
||||||
|
this.md.use(MarkdownItAttrs);
|
||||||
|
|
||||||
const container = document.createElement("div");
|
const container = document.createElement("div");
|
||||||
container.id = "dribbblish-config";
|
container.id = "dribbblish-config";
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,7 @@ waitForElement(["#main"], () => {
|
||||||
data: "Copy",
|
data: "Copy",
|
||||||
onChange: function () {
|
onChange: function () {
|
||||||
copyToClipboard(this.description.replace(/\`/g, ""));
|
copyToClipboard(this.description.replace(/\`/g, ""));
|
||||||
Spicetify.showNotification("Copied Versions");
|
Spicetify.showNotification("Copied!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -546,7 +546,6 @@ DribbblishShared.config.register({
|
||||||
defaultValue: "dark",
|
defaultValue: "dark",
|
||||||
showChildren: (val) => {
|
showChildren: (val) => {
|
||||||
if (val == "time") return ["darkModeOnTime", "darkModeOffTime"];
|
if (val == "time") return ["darkModeOnTime", "darkModeOffTime"];
|
||||||
//if (val == 3) return [""];
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
onChange: (val) => {
|
onChange: (val) => {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,14 @@
|
||||||
|
|
||||||
&[active] {
|
&[active] {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
& ~ #main::after {
|
||||||
|
z-index: 4;
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
inset: 0px;
|
||||||
|
backdrop-filter: blur(3px) brightness(60%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dribbblish-config-container {
|
.dribbblish-config-container {
|
||||||
|
|
@ -133,6 +141,7 @@
|
||||||
grid-area: description;
|
grid-area: description;
|
||||||
height: min-content;
|
height: min-content;
|
||||||
color: spiceColor("subtext");
|
color: spiceColor("subtext");
|
||||||
|
line-height: calc(1em + 6px); // To have line gaps
|
||||||
}
|
}
|
||||||
|
|
||||||
.x-settings-secondColumn {
|
.x-settings-secondColumn {
|
||||||
|
|
@ -154,6 +163,5 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "";
|
content: "";
|
||||||
inset: 0px;
|
inset: 0px;
|
||||||
backdrop-filter: blur(3px) brightness(60%);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,11 @@
|
||||||
*[markdown] {
|
*[markdown] {
|
||||||
// This would be where we change any styles associated with markdown
|
code {
|
||||||
|
background-color: spiceColor("subtext", 0.1);
|
||||||
|
padding: 0px 5px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.muted {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue