Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
chore(frontend:sidebar): improve menu hover with larger instant rounded background
johaven920d7d294167
diff --git a/frontend/package.json b/frontend/package.jsonindex c74acd1e..99235c7b 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -33,6 +33,7 @@"@angular/platform-browser-dynamic": "^20.1.7","@angular/router": "^20.1.7","@codemirror/language-data": "^6.5.2",+ "@fontsource-variable/inter": "^5.2.8","@fontsource/inter": "^5.2.8","@fortawesome/angular-fontawesome": "^3.0.0","@fortawesome/fontawesome-svg-core": "^7.0.0",diff --git a/frontend/src/styles/components/_app.scss b/frontend/src/styles/components/_app.scssindex ddc0fd74..ce49121c 100755--- a/frontend/src/styles/components/_app.scss+++ b/frontend/src/styles/components/_app.scss@@ -317,6 +317,10 @@background-color: transparent;color: transparent;+ @include media-breakpoint-down(sm) {+ font-size: $font-size-xxxxs;+ }+&.pagination-container {height: 40px;}diff --git a/frontend/src/styles/components/_boxes.scss b/frontend/src/styles/components/_boxes.scssindex cd479062..64f7438c 100644--- a/frontend/src/styles/components/_boxes.scss+++ b/frontend/src/styles/components/_boxes.scss@@ -78,7 +78,7 @@.box-header {border-bottom: 1px solid;height: auto;- padding: 0.35rem 0.8rem;+ padding: 0.3rem 0.8rem;> fa-icon {font-size: 1rem;@@ -100,7 +100,7 @@}.recents-grid {- padding-top: .4rem;+ padding: 10px 5px;row-gap: 16px;}diff --git a/frontend/src/styles/components/_core.scss b/frontend/src/styles/components/_core.scssindex 01123c39..ac9bd6f1 100644--- a/frontend/src/styles/components/_core.scss+++ b/frontend/src/styles/components/_core.scss@@ -1,6 +1,8 @@html, body {+ font-optical-sizing: auto;+ letter-spacing: -0.012em;+ text-rendering: optimizeLegibility;background-color: $sidebar-dark-icons-menu-bg;- -moz-osx-font-smoothing: grayscale;-webkit-font-smoothing: antialiased;scrollbar-width: thin;scrollbar-color: rgba(155, 155, 155, 0.5) transparent;diff --git a/frontend/src/styles/components/_sidebar_left.scss b/frontend/src/styles/components/_sidebar_left.scssindex 60f14229..12e74459 100755--- a/frontend/src/styles/components/_sidebar_left.scss+++ b/frontend/src/styles/components/_sidebar_left.scss@@ -136,7 +136,7 @@align-items: center;padding-left: 8px;padding-right: 0;- height: $sidebar-apps-height;+ max-height: $sidebar-apps-height;width: 100%;color: $sidebar-light-apps-menu-title-color;}@@ -186,6 +186,7 @@display: flex;flex-direction: column;flex: 1 1 auto;+ padding-top: 8px;}.menus-group {@@ -214,17 +215,24 @@> a {display: flex;align-items: center;- padding-left: 8px;- padding-right: 5px;- height: $sidebar-apps-height;- width: 100%;+ flex: 1 1 auto;+ width: auto;+ height: calc(#{$sidebar-apps-height} - 6px);+ margin: 3px 8px;+ padding: 0 10px;+ border-radius: 10px;+ max-height: none;@extend .text-truncate;@extend .no-select-pointer;+ transition: color .1s ease-in-out;> fa-icon {- color: inherit;- font-size: $font-size-lg;- margin-right: .25rem;+ font-size: $font-size-md;+ margin-right: .5rem;+ width: 1.25rem;+ min-width: 1.25rem;+ display: inline-flex;+ justify-content: center;}.menu-badge {diff --git a/frontend/src/styles/components/_theme_dark.scss b/frontend/src/styles/components/_theme_dark.scssindex 64d10a49..8b88f2e1 100755--- a/frontend/src/styles/components/_theme_dark.scss+++ b/frontend/src/styles/components/_theme_dark.scss@@ -67,9 +67,10 @@// background-color: darken($sidebar-dark-apps-menu-bg, 3%);//}&:hover, &.active {- background: $sidebar-dark-apps-menu-hover-bg;+ background: transparent;> a {+ background: $sidebar-dark-apps-menu-hover-bg;color: $sidebar-dark-apps-menu-hover-color;> fa-icon:first-child {diff --git a/frontend/src/styles/components/_theme_light.scss b/frontend/src/styles/components/_theme_light.scssindex dd9abc2f..b34f9e8c 100755--- a/frontend/src/styles/components/_theme_light.scss+++ b/frontend/src/styles/components/_theme_light.scss@@ -65,26 +65,36 @@}.menu {- border-bottom: .5px solid $sidebar-light-apps-menu-bg;+ border-bottom: 0;> a {- color: $sidebar-light-apps-menu-color;+ color: $sidebar-light-apps-menu-hover-color;}//&.submenu {// background-color: darken($sidebar-light-apps-menu-bg, 3%);//}&:hover, &.active {- background: $sidebar-light-apps-menu-hover-bg;+ background: transparent;> a {- color: $sidebar-light-apps-menu-hover-color;-> fa-icon:first-child {- color: $primary;+ color: darken($primary, 5%);}}}++ &:hover {+ > a {+ background: mix($primary, $sidebar-light-apps-menu-bg, 8%);+ }+ }++ &.active {+ > a {+ background: mix($primary, $sidebar-light-apps-menu-bg, 18%);+ }+ }}.sidebar-apps-footer {diff --git a/frontend/src/styles/components/_variables.scss b/frontend/src/styles/components/_variables.scssindex 40bd8d4d..bda8a0fb 100644--- a/frontend/src/styles/components/_variables.scss+++ b/frontend/src/styles/components/_variables.scss@@ -50,8 +50,8 @@ $sidebar-light-icons-menu-hover-color: $white;$sidebar-light-icons-menu-border-color: lighten($sidebar-light-icons-menu-bg, 10%);$sidebar-light-apps-menu-title-bg: $primary;$sidebar-light-apps-menu-title-color: #a6bdd5;-$sidebar-light-apps-menu-bg: $gray-lightest;-$sidebar-light-apps-menu-hover-bg: $gray-light;+$sidebar-light-apps-menu-bg: mix($gray-lightest, $gray-lighter, 60%);+$sidebar-light-apps-menu-hover-bg: mix($gray-light, $gray-lighter, 55%);$sidebar-light-apps-menu-color: $custom-dark-color;$sidebar-light-apps-menu-hover-color: $black;$sidebar-light-apps-menu-border-color: $gray-mid;diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scssindex 77833c7a..b52f88c6 100644--- a/frontend/src/styles/index.scss+++ b/frontend/src/styles/index.scss@@ -1,11 +1,5 @@/* You can add global styles to this file, and also import other style files */-@import '@fontsource/inter/400.css';-@import '@fontsource/inter/500.css';-@import '@fontsource/inter/600.css';-@import '@fontsource/inter/700.css';--$font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;-+@import '@fontsource-variable/inter';// Overload bootstrap variables@import 'variables';// Load Bootstrap 5@@ -19,4 +13,4 @@ $font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',// used for videogular@import '@videogular/ngx-videogular/fonts/videogular.css';// used for date picker-@import 'ngx-bootstrap/datepicker/bs-datepicker.scss';\ No newline at end of file+@import 'ngx-bootstrap/datepicker/bs-datepicker.scss';diff --git a/frontend/src/styles/variables.scss b/frontend/src/styles/variables.scssindex 4c7cba21..73d94936 100644--- a/frontend/src/styles/variables.scss+++ b/frontend/src/styles/variables.scss@@ -1,4 +1,5 @@// Custom variables+$font-family-sans-serif: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;$application_title: 'Sync-in';$application_background: linear-gradient(to bottom right, rgb(2, 0, 36) 0%, rgb(28, 104, 176) 35%, rgb(152, 92, 160) 100%);