Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

chore(frontend): improve colors and forms

johaven1b003b226517
diff --git a/frontend/src/app/applications/users/components/sidebar/user-profile.component.html b/frontend/src/app/applications/users/components/sidebar/user-profile.component.html
index ff27d004..506335c2 100755
--- a/frontend/src/app/applications/users/components/sidebar/user-profile.component.html
+++ b/frontend/src/app/applications/users/components/sidebar/user-profile.component.html
@@ -39,7 +39,7 @@
}
<select [ngModel]="user?.onlineStatus"
(ngModelChange)="setOnlineStatus($event)"
- class="form-select form-select-sm mt-1">
+ class="form-select form-select-sm mt-3">
@for (s of allOnlineStatus; track $index) {
<option [ngValue]="allOnlineStatus.indexOf(s)">{{ s | translate:locale.language | capitalize }}</option>
}
diff --git a/frontend/src/app/common/components/virtual-scroll.component.ts b/frontend/src/app/common/components/virtual-scroll.component.ts
index b710d8b3..dd49cb33 100644
--- a/frontend/src/app/common/components/virtual-scroll.component.ts
+++ b/frontend/src/app/common/components/virtual-scroll.component.ts
@@ -58,7 +58,7 @@ export class VirtualScrollComponent<T> implements OnInit, OnChanges, OnDestroy {
@ViewChild('shim', { read: ElementRef, static: true }) shimElementRef: ElementRef
@Output() isScrollBottom = new EventEmitter<boolean>()
@Output() isScrollTop = new EventEmitter<boolean>()
- @Input() resizeOffset = 130
+ @Input() resizeOffset = 132
@Input() galleryMode = false
@Input() selectedChat: any = null
@Input() items: T[] = []
diff --git a/frontend/src/styles/components/_app.scss b/frontend/src/styles/components/_app.scss
index b4bd515e..3aa3e76b 100755
--- a/frontend/src/styles/components/_app.scss
+++ b/frontend/src/styles/components/_app.scss
@@ -170,7 +170,7 @@
thead {
background-color: transparent;
font-size: $font-size-xxs;
- line-height: 16.5px;
+ line-height: 20px;
tr {
th {
diff --git a/frontend/src/styles/components/_boxes.scss b/frontend/src/styles/components/_boxes.scss
index fbdf5d20..d047f724 100644
--- a/frontend/src/styles/components/_boxes.scss
+++ b/frontend/src/styles/components/_boxes.scss
@@ -116,7 +116,6 @@
font-size: $font-size-xs;
margin: 0;
line-height: 1;
- user-select: none;
}
> fa-icon {
diff --git a/frontend/src/styles/components/_dropdowns.scss b/frontend/src/styles/components/_dropdowns.scss
index 67eb5519..bd5412c7 100644
--- a/frontend/src/styles/components/_dropdowns.scss
+++ b/frontend/src/styles/components/_dropdowns.scss
@@ -4,7 +4,7 @@
@include app-menu-surface-structure(.72rem, .25rem);
> li > a {
- @include app-menu-item-structure(.55rem, 1px);
+ @include app-menu-item-structure($btn-border-radius, 1px);
> .fas, .far {
margin-right: 10px;
@@ -18,7 +18,7 @@
.dropdown-item {
cursor: pointer;
- @include app-menu-item-structure(.55rem, 1px);
+ @include app-menu-item-structure($btn-border-radius, 1px);
> span {
display: flex;
diff --git a/frontend/src/styles/components/_mixins.scss b/frontend/src/styles/components/_mixins.scss
index fb5fb890..f2860dc1 100644
--- a/frontend/src/styles/components/_mixins.scss
+++ b/frontend/src/styles/components/_mixins.scss
@@ -30,7 +30,7 @@
}
}
-@mixin app-menu-item-structure($radius: .55rem, $margin-y: 1px, $important: false) {
+@mixin app-menu-item-structure($radius: $btn-border-radius, $margin-y: 1px, $important: false) {
@if $important {
border-radius: $radius !important;
margin: $margin-y 0 !important;
diff --git a/frontend/src/styles/components/_theme_dark.scss b/frontend/src/styles/components/_theme_dark.scss
index ac0b9d4f..61108f52 100755
--- a/frontend/src/styles/components/_theme_dark.scss
+++ b/frontend/src/styles/components/_theme_dark.scss
@@ -563,7 +563,8 @@
&:disabled {
color: $muted;
- background-color: lighten($sidebar-dark-apps-menu-title-bg, 4%);
+ cursor: not-allowed;
+ background-color: lighten($sidebar-dark-apps-menu-title-bg, 8%);
}
}
.small-box {
@@ -617,13 +618,6 @@
.product-list-in-box {
border-bottom-color: $sidebar-dark-icons-menu-border-color;
}
- .recents-grid::before {
- background: linear-gradient(
- 180deg,
- rgba($sidebar-dark-icons-menu-bg, 0.7) 0%,
- rgba($sidebar-dark-icons-menu-bg, 0.45) 100%
- );
- }
.ui-disabled {
background-color: $sidebar-dark-icons-menu-bg !important;
color: $body-color;
diff --git a/frontend/src/styles/components/_theme_light.scss b/frontend/src/styles/components/_theme_light.scss
index c73d1d93..0bfe162f 100755
--- a/frontend/src/styles/components/_theme_light.scss
+++ b/frontend/src/styles/components/_theme_light.scss
@@ -61,7 +61,7 @@
.sidebar-apps-menus {
.menus-content {
- background-color: #f6f9fb;
+ background-color: #ebeef5;
border-right: .5px solid $sidebar-light-apps-menu-border-color;
}
@@ -86,6 +86,8 @@
> a {
background: darken(#d4e1f1, 4%);
font-weight: 500;
+ color: $navy;
+
> fa-icon:first-child {
color: darken($primary, 5%);
}
@@ -102,17 +104,17 @@
@mixin skin-light-right-sidebar() {
.control-sidebar-theme-light {
- background: $gray-lightest;
+ background: #fcfdff;
border-left: .5px solid $sidebar-light-apps-menu-border-color;
.sidebar-component-title {
- background-color: $secondary-light;
+ background-color: #eaf1fb;
color: $black;
border-bottom: .5px solid $secondary;
}
.sidebar-title {
- background-color: $secondary-light;
+ background-color: #eaf1fb;
color: $black;
border-bottom: .5px solid $secondary;
}
@@ -124,7 +126,7 @@
}
.control-sidebar-menu {
.sidebar-apps-icons {
- background-color: $sidebar-light-icons-menu-color;
+ background-color: #f2f6fd;
border-left: .5px solid $sidebar-light-apps-menu-border-color;
.menu {
@@ -133,7 +135,7 @@
&:hover, &.active {
color: $black;
- background: $secondary;
+ background: darken(#d4e1f1, 4%);
}
}
}
@@ -343,10 +345,10 @@
.app-top-menu {
border-top-color: $gray-light;
border-bottom-color: $gray-light;
- background: linear-gradient(170deg, mix($white, $primary, 88%) 0%, mix($white, $gray-lightest, 92%) 100%);
+ background: linear-gradient(to right, #e1ebf8 0%, #eaf1fb 50%, #f4f8fe 100%);
.dropdown-menu {
- --menu-surface-bg: #f6f9fc;
+ --menu-surface-bg: #f4f6fa;
}
}
.app-foot-menu {
@@ -441,7 +443,7 @@
}
}
.app-small-card {
- background-color: $gray-light;
+ background-color: $gray-lighter;
}
.wizard {
background-color: lighten($primary, 50%);
@@ -482,7 +484,7 @@
// border-left: .5px solid $sidebar-light-apps-menu-border-color;
//}
.ngx-contextmenu {
- background-color: #f6f9fc !important;
+ background-color: #f4f6fa !important;
border-color: mix($primary, $gray-light, 14%) !important;
> button.ngx-context-menu-item {
@@ -512,6 +514,14 @@
background-color: $white !important;
}
}
+ .form-control, .form-select, .input-group-text {
+ &:disabled {
+ color: $muted;
+ cursor: not-allowed;
+ background-color: $gray-lighter;
+ }
+ }
+
.small-box {
//background: $gray-lightest;
border-color: $gray-lighter;
@@ -576,36 +586,24 @@
.bg-theme-alt {
background-color: $gray-lightest !important;
}
- .recents-grid::before {
- background: linear-gradient(
- 180deg,
- rgba($gray-light, 0.9) 0%,
- rgba($gray-lightest, 0.7) 100%
- );
- }
.recents-grid .box-transparent > .box-header {
- background: linear-gradient(
- 180deg,
- mix($primary, $white, 12%) 0%,
- mix($primary, $white, 6%) 100%
- );
+ background: #e1ebf8;
border-bottom-color: mix($primary, $white, 20%);
> fa-icon {
- color: darken($primary, 15%);
+ color: lighten($navy, 8%);
}
.box-title {
- color: darken($primary, 18%);
+ color: lighten($navy, 8%);
}
.btn-link {
- color: darken($primary, 12%);
- }
+ color: darken($gray, 24%);
- .btn-link:hover,
- .btn-link:focus {
- color: darken($primary, 24%);
+ &:hover, &:focus {
+ color: darken($primary, 8%);
+ }
}
}
.products-list > li:hover {
diff --git a/frontend/src/styles/variables.scss b/frontend/src/styles/variables.scss
index 213989d7..98132622 100644
--- a/frontend/src/styles/variables.scss
+++ b/frontend/src/styles/variables.scss
@@ -131,8 +131,8 @@ $btn-padding-y-xs: .2rem !default;
$btn-padding-x-xxs: .2rem !default;
$btn-padding-y-xxs: .1rem !default;
$btn-disabled-opacity: 0.4;
-$btn-border-radius: .5rem;
-$btn-border-radius-sm: .5rem;
+$btn-border-radius: .375rem;
+$btn-border-radius-sm: .375rem;
// Badges
$badge-font-weight: 500 !default;
// Pagination