Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

CSS transitions for dark mode

Smaug6739798e4e507d76
diff --git a/frontend/components/Sidebar/Resizable.vue b/frontend/components/Sidebar/Resizable.vue
index 1ae23c7e..3bae91d3 100644
--- a/frontend/components/Sidebar/Resizable.vue
+++ b/frontend/components/Sidebar/Resizable.vue
@@ -57,7 +57,6 @@ nav {
}
.sidebar {
- background-color: var(--bg-color);
overflow-x: hidden;
height: 100%;
display: flex;
diff --git a/frontend/components/Sidebar/Sidebar.vue b/frontend/components/Sidebar/Sidebar.vue
index b60c1a6c..ab7b7bfb 100644
--- a/frontend/components/Sidebar/Sidebar.vue
+++ b/frontend/components/Sidebar/Sidebar.vue
@@ -118,9 +118,9 @@ onBeforeUnmount(() => {
max-height: 100%;
overflow-y: scroll;
width: 100%;
- font-family: Inter;
+ font-family: $external-font;
* {
- font-family: Inter;
+ font-family: $external-font;
}
}
@@ -172,6 +172,7 @@ onBeforeUnmount(() => {
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232573cf" height="24" viewBox="0 -960 960 960" width="22"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>');
background-repeat: no-repeat;
background-position: 5px;
+ transition: background-color $transition-duration;
padding-left: 30px;
}
.user {
diff --git a/frontend/components/Sidebar/SidebarItem.vue b/frontend/components/Sidebar/SidebarItem.vue
index dc37a96a..899f845f 100644
--- a/frontend/components/Sidebar/SidebarItem.vue
+++ b/frontend/components/Sidebar/SidebarItem.vue
@@ -101,6 +101,7 @@ const drop = async (event: DragEvent) => {
&:hover,
&:has(.router-link-exact-active:not(.nav)) {
background: var(--bg-contrast-2);
+ transition: background-color $transition-duration;
}
.icon {
diff --git a/frontend/pages/dashboard/docs/_components/DocumentCardHeader.vue b/frontend/pages/dashboard/docs/_components/DocumentCardHeader.vue
index f1341da1..70f855e3 100644
--- a/frontend/pages/dashboard/docs/_components/DocumentCardHeader.vue
+++ b/frontend/pages/dashboard/docs/_components/DocumentCardHeader.vue
@@ -33,6 +33,7 @@ const category = computed(() => categories_store.getById(props.doc?.category ||
padding: 0.7rem 1rem;
border-radius: 0.625rem;
display: flex;
+ transition: background-color $transition-duration;
}
p {
diff --git a/frontend/styles/main.scss b/frontend/styles/main.scss
index 6c0cbfb1..49eb3b12 100644
--- a/frontend/styles/main.scss
+++ b/frontend/styles/main.scss
@@ -63,6 +63,7 @@ body {
color: var(--font-color);
font-family: $external-font;
line-height: 1.5;
+ transition: background-color $transition-duration;
}
:root {