Re-enable light/dark switch; frame palette preview images
This commit is contained in:
@@ -69,11 +69,10 @@
|
|||||||
const openGraphDomain = subRoot.note.getLabelValue("shareOpenGraphDomain");
|
const openGraphDomain = subRoot.note.getLabelValue("shareOpenGraphDomain");
|
||||||
%>
|
%>
|
||||||
<title><%= pageTitle %></title>
|
<title><%= pageTitle %></title>
|
||||||
<style>#site-header .theme-selection{display:none}</style>
|
|
||||||
<% if (pageUrl) { %><link rel="canonical" href="<%= pageUrl %>"><% } %>
|
<% if (pageUrl) { %><link rel="canonical" href="<%= pageUrl %>"><% } %>
|
||||||
<script>
|
<script>
|
||||||
// Theme is fixed to dark – light/dark switching is disabled.
|
// Site theme toggle (light/dark); default is dark.
|
||||||
const theme = "dark";
|
const theme = localStorage.getItem("theme") || "dark";
|
||||||
document.documentElement.classList.add(`theme-${theme}`);
|
document.documentElement.classList.add(`theme-${theme}`);
|
||||||
|
|
||||||
window.glob = {
|
window.glob = {
|
||||||
|
|||||||
@@ -1897,3 +1897,8 @@ html.theme-light .hljs-attr { color: #4f6b00; }
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
|
||||||
|
#content figure.image img.palette-img {
|
||||||
|
border: 1px solid var(--background-highlight);
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1897,3 +1897,8 @@ html.theme-light .hljs-attr { color: #427b58; }
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
|
||||||
|
#content figure.image img.palette-img {
|
||||||
|
border: 1px solid var(--background-highlight);
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1897,3 +1897,8 @@ html.theme-light .hljs-attr { color: #556753; }
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
|
||||||
|
#content figure.image img.palette-img {
|
||||||
|
border: 1px solid var(--background-highlight);
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1902,3 +1902,8 @@ html.theme-light .hljs-attr { color: #586e75; }
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
|
||||||
|
#content figure.image img.palette-img {
|
||||||
|
border: 1px solid var(--background-highlight);
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1902,3 +1902,8 @@ html.theme-light .hljs-attr { color: #a0a6c2; }
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* ---------- Palette preview images: subtle frame so bars stay visible on any background ---------- */
|
||||||
|
#content figure.image img.palette-img {
|
||||||
|
border: 1px solid var(--background-highlight);
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user