Skip to content

Commit f78e911

Browse files
committed
Merge branch 'master' of https://github.com/cybercongress/cyber
2 parents bfc79b3 + aed63be commit f78e911

File tree

4 files changed

+52
-23
lines changed

4 files changed

+52
-23
lines changed

logseq/custom.css

Lines changed: 10 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

logseq/custom.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

logseq/custom.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1+
// change theme to black
2+
if (document.querySelector("html").getAttribute("data-theme") === "light") {
3+
document.querySelector("html").setAttribute("data-theme", "dark");
4+
5+
document.querySelector("body").classList.remove("light-theme");
6+
document.querySelector("body").classList.remove("white-theme");
7+
document.querySelector("body").classList.add("dark-theme");
8+
9+
localStorage.setItem("theme", '"dark"');
10+
}
11+
112
document.querySelector(".journals-nav .flex-1").innerHTML = "Blog";
13+
14+
// Override the pushState method for correct hashchange event (for analytics)
15+
// seems router issue
16+
const originalPushState = history.pushState;
17+
18+
history.pushState = function (state, title, url) {
19+
originalPushState.apply(history, arguments);
20+
window.dispatchEvent(new Event("hashchange"));
21+
};

logseq/custom.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
html[data-theme="dark"] {
2+
--ls-main-content-background: black;
3+
4+
/* --rx-green-09: #30a46c; */
5+
/* --rx-green-10: #3cb179; */
6+
/* --rx-green-11: #4cc38a; */
7+
8+
body {
9+
background-color: black;
10+
}
11+
12+
#app-container,
13+
.left-sidebar-inner,
14+
#right-sidebar .cp__right-sidebar-topbar,
15+
#right-sidebar-container,
16+
.sidebar-item-list,
17+
.sidebar-item,
18+
#logseq-tabs_lsp_main {
19+
background-color: black !important;
20+
}
21+
}

0 commit comments

Comments
 (0)