Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cybercongress/cyber
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercyb committed Sep 23, 2024
2 parents bfc79b3 + aed63be commit f78e911
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 23 deletions.
33 changes: 10 additions & 23 deletions logseq/custom.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions logseq/custom.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions logseq/custom.js
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
// change theme to black
if (document.querySelector("html").getAttribute("data-theme") === "light") {
document.querySelector("html").setAttribute("data-theme", "dark");

document.querySelector("body").classList.remove("light-theme");
document.querySelector("body").classList.remove("white-theme");
document.querySelector("body").classList.add("dark-theme");

localStorage.setItem("theme", '"dark"');
}

document.querySelector(".journals-nav .flex-1").innerHTML = "Blog";

// Override the pushState method for correct hashchange event (for analytics)
// seems router issue
const originalPushState = history.pushState;

history.pushState = function (state, title, url) {
originalPushState.apply(history, arguments);
window.dispatchEvent(new Event("hashchange"));
};
21 changes: 21 additions & 0 deletions logseq/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
html[data-theme="dark"] {
--ls-main-content-background: black;

/* --rx-green-09: #30a46c; */
/* --rx-green-10: #3cb179; */
/* --rx-green-11: #4cc38a; */

body {
background-color: black;
}

#app-container,
.left-sidebar-inner,
#right-sidebar .cp__right-sidebar-topbar,
#right-sidebar-container,
.sidebar-item-list,
.sidebar-item,
#logseq-tabs_lsp_main {
background-color: black !important;
}
}

0 comments on commit f78e911

Please sign in to comment.