📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Scss variables fixes
Smaug67390e4d15d12965
diff --git a/frontend/components/AppButton.vue b/frontend/components/AppButton.vueindex 1aba05b2..fc520e35 100644--- a/frontend/components/AppButton.vue+++ b/frontend/components/AppButton.vue@@ -24,17 +24,17 @@ button {}}.primary {- background: $primary-400;+ background: var(--primary-color);color: white;&:hover {- background: $primary-500;+ background: var(--primary-color-500);}}.secondary {- outline: 1px solid $primary-400;+ outline: 1px solid var(--primary-color);color: var(--font-color);&:hover {- outline: 1px solid $primary-500;+ outline: 1px solid var(--primary-color-500);}}.success {@@ -46,7 +46,7 @@ button {}.link {background: none;- color: $primary-400;+ color: var(--primary-color);&:hover {text-decoration: underline;}diff --git a/frontend/components/BackToTop.vue b/frontend/components/BackToTop.vueindex 276efed0..65b43d39 100644--- a/frontend/components/BackToTop.vue+++ b/frontend/components/BackToTop.vue@@ -1,6 +1,5 @@<template>- <div class="back-to-top" @click="scrollToTop" v-if="show">- </div>+ <div class="back-to-top" @click="scrollToTop" v-if="show"></div></template><script setup lang="ts">@@ -8,7 +7,7 @@ const scrollTop = ref(0);const getScrollTop = () => window.scrollY || 0;const scrollToTop = () => window.scrollTo({ top: 0, behavior: 'smooth' });const show = computed(() => scrollTop.value > 300);-const onScroll = () => scrollTop.value = getScrollTop()+const onScroll = () => (scrollTop.value = getScrollTop());onMounted(() => {scrollTop.value = getScrollTop();@@ -25,14 +24,14 @@ onUnmounted(() => window.removeEventListener('scroll', onScroll));right: 2.5rem;width: 2rem;height: 1.2rem;- background-color: $primary-400;+ background-color: var(--primary-color);-webkit-mask: url('/svg/back-to-top.svg') no-repeat;mask: url('/svg/back-to-top.svg') no-repeat;z-index: 100;}.back-to-top:hover {- background-color: $primary-500;+ background-color: var(--primary-color-500);}@media (max-width: 959px) {@@ -46,4 +45,4 @@ onUnmounted(() => window.removeEventListener('scroll', onScroll));display: none;}}-</style>\ No newline at end of file+</style>diff --git a/frontend/components/Sidebar/SidebarItem.vue b/frontend/components/Sidebar/SidebarItem.vueindex fb48232d..133a440a 100644--- a/frontend/components/Sidebar/SidebarItem.vue+++ b/frontend/components/Sidebar/SidebarItem.vue@@ -109,20 +109,20 @@ const drop = async (event: DragEvent) => {align-items: center;&:deep(svg) {- fill: var(--blue);+ fill: var(--primary-color);width: 19px;max-height: 21px;margin-right: 5px;path {- fill: var(--blue);+ fill: var(--primary-color);}}}}.drag-over {- border-bottom: 2px solid var(--blue);+ border-bottom: 2px solid var(--primary-color);box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);}.nav {diff --git a/frontend/pages/dashboard/categories/index.vue b/frontend/pages/dashboard/categories/index.vueindex 7e3ca729..32769e4d 100644--- a/frontend/pages/dashboard/categories/index.vue+++ b/frontend/pages/dashboard/categories/index.vue@@ -34,7 +34,7 @@.add-category-btn {background: none;- color: var(--blue);+ color: var(--primary-color);cursor: pointer;font-size: 1.1em;margin-top: 20px;diff --git a/frontend/pages/dashboard/cdn.vue b/frontend/pages/dashboard/cdn.vueindex 07b59d35..176cad6d 100644--- a/frontend/pages/dashboard/cdn.vue+++ b/frontend/pages/dashboard/cdn.vue@@ -156,7 +156,7 @@ const deleteRessource = async (id: string) => {.loading-spinner {border: 5px solid #f3f3f3;- border-top: 5px solid $primary-400;+ border-top: 5px solid var(--primary-color);border-radius: 50%;width: 50px;height: 50px;diff --git a/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vue b/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vueindex 3480ae85..6755e009 100644--- a/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vue+++ b/frontend/pages/dashboard/docs/_components/DocumentCardFooter.vue@@ -1,25 +1,27 @@<template>- <footer>- <div class="infos">- <NuxtLink :to="`/dashboard/docs/edit/${document.id}`"><svg xmlns="http://www.w3.org/2000/svg" height="24"- viewBox="0 -960 960 960" width="24">- <path- d="M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h405l-60 60H180v600h600v-348l60-60v408q0 24-18 42t-42 18H180Zm300-360ZM360-360v-170l382-382q9-9 20-13t22-4q11 0 22.317 4.5T827-911l83 84q8.609 8.958 13.304 19.782Q928-796.394 928-785.197q0 11.197-4.5 22.697T910-742L530-360H360Zm508-425-84-84 84 84ZM420-420h85l253-253-43-42-43-42-252 251v86Zm295-295-43-42 43 42 43 42-43-42Z" />- </svg>- Edit this page</NuxtLink>- <p>Last update: {{ new Date(parseInt(document.updated_timestamp)).toLocaleDateString() }}</p>- </div>- <div class="items">- <NuxtLink v-if="previous" :to="`/dashboard/docs/${previous.id}`" class="item left">- <b class="min">Page précédente</b>- {{ previous.name }}- </NuxtLink>- <NuxtLink v-if="next" :to="`/dashboard/docs/${next.id}`" class="item right">- <b class="min">Page suivante</b>- {{ next.name }}- </NuxtLink>- </div>- </footer>+ <footer>+ <div class="infos">+ <NuxtLink :to="`/dashboard/docs/edit/${document.id}`"+ ><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">+ <path+ d="M180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h405l-60 60H180v600h600v-348l60-60v408q0 24-18 42t-42 18H180Zm300-360ZM360-360v-170l382-382q9-9 20-13t22-4q11 0 22.317 4.5T827-911l83 84q8.609 8.958 13.304 19.782Q928-796.394 928-785.197q0 11.197-4.5 22.697T910-742L530-360H360Zm508-425-84-84 84 84ZM420-420h85l253-253-43-42-43-42-252 251v86Zm295-295-43-42 43 42 43 42-43-42Z"+ />+ </svg>+ Edit this page</NuxtLink+ >+ <p>Last update: {{ new Date(parseInt(document.updated_timestamp)).toLocaleDateString() }}</p>+ </div>+ <div class="items">+ <NuxtLink v-if="previous" :to="`/dashboard/docs/${previous.id}`" class="item left">+ <b class="min">Page précédente</b>+ {{ previous.name }}+ </NuxtLink>+ <NuxtLink v-if="next" :to="`/dashboard/docs/${next.id}`" class="item right">+ <b class="min">Page suivante</b>+ {{ next.name }}+ </NuxtLink>+ </div>+ </footer></template><script lang="ts" setup>@@ -29,68 +31,68 @@ defineProps<{ document: Document; next?: Document; previous?: Document }>();<style scoped lang="scss">footer {- margin: 50px 0 40px;+ margin: 50px 0 40px;}@media screen and (min-width: 768px) {- .items {- display: flex;- justify-content: space-between;- }+ .items {+ display: flex;+ justify-content: space-between;+ }}.item {- display: block;- width: 100%;- max-width: 400px;- border-radius: 7px;- border: 1px solid var(--border-color);- padding: 10px;- margin: 5px 0;- font-weight: 500;- font-size: 15px;- transition: color 0.25s;+ display: block;+ width: 100%;+ max-width: 400px;+ border-radius: 7px;+ border: 1px solid var(--border-color);+ padding: 10px;+ margin: 5px 0;+ font-weight: 500;+ font-size: 15px;+ transition: color 0.25s;- b {- display: block;- }+ b {+ display: block;+ }- &:hover {- border: 1px solid $primary-400;- }+ &:hover {+ border: 1px solid var(--primary-color);+ }}.right {- margin-left: auto;- text-align: right;+ margin-left: auto;+ text-align: right;}.left {- margin-right: auto;- text-align: left;+ margin-right: auto;+ text-align: left;}.min {- font-size: small;+ font-size: small;}.infos {- display: flex;- justify-content: space-between;- align-items: center;- font-weight: 500;- border-bottom: 1px solid var(--border-color);+ display: flex;+ justify-content: space-between;+ align-items: center;+ font-weight: 500;+ border-bottom: 1px solid var(--border-color);- a {- display: flex;+ a {+ display: flex;- svg {- margin-right: 5px;- }- }+ svg {+ margin-right: 5px;+ }+ }}svg {- fill: var(--font-color);+ fill: var(--font-color);}</style>diff --git a/frontend/pages/dashboard/settings/_views/backups.vue b/frontend/pages/dashboard/settings/_views/backups.vueindex 17a00171..d52a7cc8 100644--- a/frontend/pages/dashboard/settings/_views/backups.vue+++ b/frontend/pages/dashboard/settings/_views/backups.vue@@ -46,7 +46,7 @@ watchEffect(() => (currentPage.value = route.query.p || 'profile'));}.loading-spinner {border: 5px solid #f3f3f3;- border-top: 5px solid $primary-400;+ border-top: 5px solid var(--primary-color);border-radius: 50%;width: 50px;height: 50px;diff --git a/frontend/pages/dashboard/settings/_views/preferences.vue b/frontend/pages/dashboard/settings/_views/preferences.vueindex 795dd56c..a66ebcdc 100644--- a/frontend/pages/dashboard/settings/_views/preferences.vue+++ b/frontend/pages/dashboard/settings/_views/preferences.vue@@ -64,7 +64,7 @@ const toggleOption = (index: number) => {transition: background-color 0.3s ease;&.active {- background-color: var(--blue);+ background-color: var(--primary-color);}.toggle-slider {diff --git a/frontend/pages/index.vue b/frontend/pages/index.vueindex f02c2935..020b5469 100644--- a/frontend/pages/index.vue+++ b/frontend/pages/index.vue@@ -175,7 +175,7 @@ h3 {}.get-started {- background: var(--blue);+ background: var(--primary-color);color: #fff;border: none;}diff --git a/frontend/pages/login.vue b/frontend/pages/login.vueindex 2344861b..3d8f3ceb 100644--- a/frontend/pages/login.vue+++ b/frontend/pages/login.vue@@ -123,7 +123,7 @@ async function connect(username: string, password: string) {background-color: $primary-300;color: white;&:hover {- background: $primary-500;+ background: var(--primary-color-500);transform: none;}}diff --git a/frontend/pages/signup.vue b/frontend/pages/signup.vueindex 7502fb66..6dff464b 100644--- a/frontend/pages/signup.vue+++ b/frontend/pages/signup.vue@@ -176,7 +176,7 @@ async function createAccount(username: string, email: string, password: string)color: white;&:hover {- background: $primary-500;+ background: var(--primary-color-500);transform: none;}}diff --git a/frontend/styles/_variables.scss b/frontend/styles/_variables.scssindex 3bc3e271..f6f9971c 100644--- a/frontend/styles/_variables.scss+++ b/frontend/styles/_variables.scss@@ -12,10 +12,6 @@ $green: #009879;$grey: #ffffffd9;$black: #27323A;-$primary-400: #007aff;-$primary-300: color.adjust($primary-400, $lightness: -10%);-$primary-500: color.adjust($primary-400, $lightness: 10%);-$secondary-400: #8e8d8a;$secondary-300: color.adjust($secondary-400, $lightness: -10%);$secondary-500: color.adjust($secondary-400, $lightness: 10%);@@ -30,6 +26,10 @@ $transition-duration: 0.3s;:root {+ --primary-color: #007aff;+ --primary-color-300: color.adjust(#007aff, $lightness: -10%);+ --primary-color-500: color.adjust(#007aff, $lightness: 10%);+--bg-color: #fff;--bg-contrast: #F1F6FD;--bg-contrast-2: #ECF2FF;diff --git a/frontend/styles/theme.scss b/frontend/styles/theme.scssindex 007b238a..4379bc87 100644--- a/frontend/styles/theme.scss+++ b/frontend/styles/theme.scss@@ -11,7 +11,7 @@ a {}blockquote {- border-left: 4px solid $primary-400;+ border-left: 4px solid var(--primary-color);padding: 0 15px;> :first-child {