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.

Style fixes

Smaug6739e56b72dff18f
diff --git a/frontend/components/sidebar/Sidebar.vue b/frontend/components/sidebar/Sidebar.vue
index 27b2f24b..f3cd161f 100644
--- a/frontend/components/sidebar/Sidebar.vue
+++ b/frontend/components/sidebar/Sidebar.vue
@@ -9,7 +9,7 @@
</span>
<IconClose class="btn" />
</section>
- <input type="text" placeholder="Search" class="search" v-model="filter" />
+ <input type="text" placeholder="Search or Ctrl + q" class="search" v-model="filter" />
<Search />
<CollapseItem v-for="(item, index) in items " :key="index" :item="item" :root="true" />
</div>
diff --git a/frontend/pages/dashboard/categories/index.vue b/frontend/pages/dashboard/categories/index.vue
index e8e1c9e2..6975bd68 100644
--- a/frontend/pages/dashboard/categories/index.vue
+++ b/frontend/pages/dashboard/categories/index.vue
@@ -36,8 +36,7 @@
.add-category-btn {
background: none;
- border: none;
- color: #007aff;
+ color: var(--blue);
cursor: pointer;
font-size: 1.1em;
margin-top: 20px;
@@ -45,7 +44,7 @@
.category-group {
width: 100%;
- border-bottom: 2px solid #eee;
+ border-bottom: 2px solid var(--border-color);
padding-bottom: 20px;
margin-bottom: 20px;
}
diff --git a/frontend/pages/dashboard/cdn.vue b/frontend/pages/dashboard/cdn.vue
index 9e4a5daa..f02817e8 100644
--- a/frontend/pages/dashboard/cdn.vue
+++ b/frontend/pages/dashboard/cdn.vue
@@ -97,147 +97,95 @@ const rows: any = computed(() => ressources.map((res) => {
flex-direction: column;
align-items: center;
gap: 1.5rem;
- padding: 3rem;
+ padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
+}
- .dropzone {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 150px;
- border: 2px dashed #9e9e9e;
- border-radius: 4px;
- font-size: 14px;
- color: #9e9e9e;
- position: relative;
- transition: background-color $transition-duration;
- background-color: var(--dropzone-bg, transparent);
-
- &:hover {
- background-color: var(--bg-contrast);
- }
-
- input[type="file"] {
- display: none;
- }
- }
+button {
+ background-color: var(--font-color);
+ color: var(--bg-color);
+}
- .file-info {
- display: flex;
- flex-direction: column;
- align-items: center;
- color: #2196F3;
- color: #2196F3;
-
- .file-size {
- font-size: 0.8rem;
- color: #757575;
- margin-top: 5px;
- }
- }
+h2 {
+ margin: 0;
+}
- .link-section {
- margin-top: 15px;
- display: flex;
- gap: 10px;
- width: 100%;
- display: flex;
- flex-direction: column;
+.dropzone {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+ height: 150px;
+ border: 2px dashed #9e9e9e;
+ border-radius: 4px;
+ font-size: 14px;
+ color: #9e9e9e;
+ position: relative;
+ transition: background-color $transition-duration;
+ background-color: var(--dropzone-bg, transparent);
+
+ &:hover {
+ background-color: var(--bg-contrast);
}
- .loading-spinner {
- border: 5px solid #f3f3f3;
- border-top: 5px solid $primary-400;
- border-radius: 50%;
- width: 50px;
- height: 50px;
- animation: spin 1s linear infinite;
+ input[type="file"] {
+ display: none;
}
+}
- .clickable {
- color: #2196F3;
- cursor: pointer;
- text-decoration: underline;
- }
+.drag-over {
+ background-color: #E3F2FD;
+ border-color: #2196F3;
+ transition: background-color $transition-duration, border-color $transition-duration;
+}
- @keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
+.file-info {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ color: #2196F3;
+ color: #2196F3;
- 100% {
- transform: rotate(360deg);
- }
+ .file-size {
+ font-size: 0.8rem;
+ color: #757575;
+ margin-top: 5px;
}
+}
- .ressources-list {
- width: 100%;
- display: flex;
- flex-direction: column;
- gap: 1rem;
-
- width: 100%;
- display: flex;
- flex-direction: column;
- gap: 1rem;
-
- .ressource-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 1rem;
- border: 1px solid #ddd;
- /* Lighter border for a subtler effect */
- border-radius: 8px;
- background-color: #fafafa;
- /* Light gray background for list items */
- transition: background-color 0.2s ease, box-shadow 0.2s ease;
-
- &:hover {
- background-color: #e3e3e3;
- /* Slightly darker on hover */
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- /* Subtle shadow on hover */
- }
-
- .ressource-info {
- display: flex;
- justify-content: space-around;
- width: 100%;
-
- .ressource-name {
- font-weight: bold;
- color: #333;
- /* Darker text for better contrast */
- }
-
- .ressource-size,
- .ressource-type,
- .ressource-date {
- font-size: 0.9rem;
- color: #757575;
- }
- }
-
- a {
- color: #2196f3;
- text-decoration: none;
- font-weight: bold;
-
- &:hover {
- text-decoration: underline;
- }
- }
- }
- }
+.link-section {
+ margin-top: 15px;
+ display: flex;
+ gap: 10px;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
}
-.dropzone.drag-over {
- background-color: #E3F2FD;
- border-color: #2196F3;
- transition: background-color $transition-duration, border-color $transition-duration;
+.loading-spinner {
+ border: 5px solid #f3f3f3;
+ border-top: 5px solid $primary-400;
+ border-radius: 50%;
+ width: 50px;
+ height: 50px;
+ animation: spin 1s linear infinite;
+}
+
+.clickable {
+ color: #2196F3;
+ cursor: pointer;
+ text-decoration: underline;
+}
+
+@keyframes spin {
+ 0% {
+ transform: rotate(0deg);
+ }
+
+ 100% {
+ transform: rotate(360deg);
+ }
}
.file-info {
diff --git a/frontend/styles/_variables.scss b/frontend/styles/_variables.scss
index 87ba5013..9d0cc4fe 100644
--- a/frontend/styles/_variables.scss
+++ b/frontend/styles/_variables.scss
@@ -1,4 +1,4 @@
-$blue: #007bff;
+$blue: #007aff;
$indigo: #6610f2;
$purple: #6f42c1;
$pink: #ff0e6a;
@@ -10,7 +10,7 @@ $green: #009879;
$grey: #ffffffd9;
$black: #27323A;
-$primary-400: #007bff;
+$primary-400: #007aff;
$primary-300: lighten($primary-400, 10%);
$primary-500: darken($primary-400, 10%);
@@ -35,7 +35,7 @@ $transition-duration: 0.3s;
// COLORS \\
--grey: #666;
--grey-bg: rgb(240, 240, 240);
- --blue: #007bff;
+ --blue: #007aff;
--blue-bg: #cce0ff;
--blue-border: rgba(0, 123, 255, 0.3);
--green: #009879;
@@ -92,7 +92,7 @@ $transition-duration: 0.3s;
--bg-contrast-2: #ECECEC;
--font-color: #333333;
// COLORS \\
- --blue: #007bff;
+ --blue: #007aff;
--blue-bg: rgba(0, 123, 255, 0.2);
--blue-border: rgba(0, 123, 255, 0.25);
--green: #009879;
diff --git a/frontend/styles/theme.scss b/frontend/styles/theme.scss
index deb155b9..cce5b5fe 100644
--- a/frontend/styles/theme.scss
+++ b/frontend/styles/theme.scss
@@ -36,7 +36,7 @@ button {
}
&:disabled {
- opacity: 0.6;
+ opacity: 0.8;
cursor: not-allowed;
}
}