diff --git a/package-lock.json b/package-lock.json index cf0eef725..114e86fc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ctemplar", - "version": "2.5.11", + "version": "2.5.12", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -18378,6 +18378,28 @@ "extend": "^3.0.2", "parchment": "^1.1.4", "quill-delta": "^3.6.2" + }, + "dependencies": { + "fast-diff": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz", + "integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==" + }, + "parchment": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/parchment/-/parchment-1.1.4.tgz", + "integrity": "sha512-J5FBQt/pM2inLzg4hEWmzQx/8h8D0CiDxaG3vyp9rKrQRSDgBlhjdP5jQGgosEajXPSQouXGHOmVdgo7QmJuOg==" + }, + "quill-delta": { + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/quill-delta/-/quill-delta-3.6.3.tgz", + "integrity": "sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==", + "requires": { + "deep-equal": "^1.0.1", + "extend": "^3.0.2", + "fast-diff": "1.1.2" + } + } } }, "quill-delta": { diff --git a/package.json b/package.json index 81c32946b..6c5da5785 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ctemplar", - "version": "2.5.12", + "version": "2.5.13", "license": "Apache", "main": "electron-main.js", "description": "Angular webclient (with Linux, macOS and Windows desktop clients) for CTemplar's encrypted email service.", diff --git a/src/app/mail/mail-contact/mail-contact.component.scss b/src/app/mail/mail-contact/mail-contact.component.scss index 5fe9711ab..db08b5d62 100644 --- a/src/app/mail/mail-contact/mail-contact.component.scss +++ b/src/app/mail/mail-contact/mail-contact.component.scss @@ -27,7 +27,7 @@ } .mail-contact-header { - background: #f5f5f5; + background: var(--contacts-header-background); border-radius: 2px 2px 0 0; tr { @@ -55,7 +55,7 @@ } .mail-contact-body.is-bordered { - border: 1px solid #f5f5f5; + border: 1px solid var(--mail-row-border-bottom-color); border-bottom: 0; tr { @@ -96,7 +96,7 @@ } .mail-contact .mail-list-row { - border-color: #f5f5f5; + border-color: var(--mail-row-border-bottom-color); font-size: 0.875rem; @include media('sm') { @@ -186,6 +186,10 @@ // == Mail actions form .mail-actions-form-title { margin-bottom: 1.25rem; + + .icon { + font-size: 0.75rem; + } } .mail-actions-form-holder { @@ -295,10 +299,6 @@ margin-right: 0.625rem; width: 2.75rem; } - - .icon { - font-size: 0.75rem; - } } .has-error .error-msg { @@ -376,10 +376,21 @@ } .modal-content-email { white-space: pre-wrap; - background: #fff; + background: var(--bg-white); padding: 1rem; } .mailbox-section { height: calc(100vh - 118px); overflow: auto; } + +.select-all-checkbox { + top: 4px; +} + +::ng-deep .mat-checkbox .mat-checkbox-frame { + border: 2px solid var(--mat-checkbox-border-color); +} +::ng-deep .mat-checkbox .mat-checkbox-background { + border: var(--width-0-2) solid var(--mat-checkbox-border-color); +} \ No newline at end of file diff --git a/src/app/mail/mail-contact/save-contact/save-contact.component.html b/src/app/mail/mail-contact/save-contact/save-contact.component.html index ade012cd8..810586de3 100644 --- a/src/app/mail/mail-contact/save-contact/save-contact.component.html +++ b/src/app/mail/mail-contact/save-contact/save-contact.component.html @@ -38,7 +38,6 @@
- @@ -76,7 +75,6 @@
- @@ -88,7 +86,6 @@
- @@ -100,7 +97,6 @@
-
 
diff --git a/src/app/mail/mail-detail/mail-detail.component.ts b/src/app/mail/mail-detail/mail-detail.component.ts index 8aecd9e2d..bcdde53d4 100644 --- a/src/app/mail/mail-detail/mail-detail.component.ts +++ b/src/app/mail/mail-detail/mail-detail.component.ts @@ -772,7 +772,7 @@ export class MailDetailComponent implements OnInit, OnDestroy { this.mail.children && !this.mail.children.filter(child => child.id !== mail.id).some(child => child.folder === MailFolderType.TRASH) ) { - this.changeMailAfterDelete(this.currentMailIndex + 1); + this.goBackAfterDelete(); } } else { this.store.dispatch( @@ -804,19 +804,14 @@ export class MailDetailComponent implements OnInit, OnDestroy { this.mail.folder === MailFolderType.TRASH) || (mail.id === this.mail.id && this.mail.folder === MailFolderType.TRASH) ) { - this.changeMailAfterDelete(this.currentMailIndex + 1); + this.goBackAfterDelete(); } } - changeMailAfterDelete(index: number) { - if (index < 0 || index >= this.mails.length) { - this.goBack(500); - } + goBackAfterDelete() { + this.goBack(500); this.mail = null; - setTimeout(() => { - this.markedAsRead = false; - this.router.navigateByUrl(`/mail/${this.mailFolder}/page/${this.page}/message/${this.mails[index].id}`); - }, 500); + this.markedAsRead = false; } onDeleteForAll(mail: Mail) { @@ -825,7 +820,7 @@ export class MailDetailComponent implements OnInit, OnDestroy { this.mail.children = this.mail.children.filter(child => child.id !== mail.id); } if (mail.id === this.mail.id) { - this.changeMailAfterDelete(this.currentMailIndex + 1); + this.goBackAfterDelete(); } } diff --git a/src/app/mail/mail-footer/mail-footer.component.scss b/src/app/mail/mail-footer/mail-footer.component.scss index 17ac0bf52..917806c0c 100644 --- a/src/app/mail/mail-footer/mail-footer.component.scss +++ b/src/app/mail/mail-footer/mail-footer.component.scss @@ -10,7 +10,7 @@ bottom: 0; left: 0; padding: 1.5rem 0.938rem; - background: $brand-white; + background: var(--bg-white); @include media('>=ipad') { padding: 0.5rem 1.563rem; @@ -32,7 +32,7 @@ > a { position: relative; display: block; - color: $brand-gray; + color: var(--brand-gray); &:hover { color: $brand-primary; } @@ -42,7 +42,7 @@ top: 50%; right: -0.5rem; content: ''; - border-right: 1px solid $brand-gray; + border-right: 1px solid var(--brand-gray); height: 10px; transform: translateY(-50%); } diff --git a/src/app/mail/mail-header/mail-header.component.html b/src/app/mail/mail-header/mail-header.component.html index 8852f8b01..0d0701c7e 100644 --- a/src/app/mail/mail-header/mail-header.component.html +++ b/src/app/mail/mail-header/mail-header.component.html @@ -24,7 +24,7 @@
-
@@ -71,8 +71,11 @@
- - +
diff --git a/src/app/mail/mail-header/mail-header.component.scss b/src/app/mail/mail-header/mail-header.component.scss index bf23b6df7..8be2d1cd2 100644 --- a/src/app/mail/mail-header/mail-header.component.scss +++ b/src/app/mail/mail-header/mail-header.component.scss @@ -2,13 +2,15 @@ @import '../../../styles/vendors/include-media/include-media'; @import '../../../styles/config/include-media-config'; @import '../../../styles/vendors/ceaser/ceaser-easing'; +@import '../../../styles/theme-variables-collection'; +@import '../../../styles/themes'; // == Mailbox navbar .mailbox-navbar { position: relative; padding: 0.5rem 0.938rem; - background-color: $brand-faded; - border: 1px solid $dropdown-border-color; + background-color: var(--brand-faded); + border: 1px solid var(--dropdown-border-color); border-right: 0; border-left: 0; @@ -119,9 +121,9 @@ @include media('>sm') { padding: 0.438rem 0.813rem; - background: $brand-white; - border: 1px solid $dropdown-border-color; - color: $brand-light-gray; + background: var(--dropdown-toggle-bg); + border: 1px solid var(--dropdown-border-color); + color: var(--brand-light-gray); font-size: 1.25rem; &.active, @@ -156,7 +158,7 @@ a:hover, .dropdown-toggle:hover { - background: $brand-faded; + background: var(--brand-faded); // TODO: add scss variables files in refactor color: #8a9095; border-color: #8a9095; @@ -179,7 +181,7 @@ .dropdown-toggle { padding-top: 0.938rem; padding-bottom: 0.938rem; - color: $brand-light-gray; + color: var(--brand-light-gray); font-size: 0.875rem; height: 3rem; width: 4.625rem; @@ -211,7 +213,7 @@ // == Search form .search-form { - @include media('sm') { width: 90%; } @@ -245,7 +247,7 @@ background: transparent; border: 0; cursor: pointer; - + color: var(--text-dark); i { &:hover { color: $brand-secondary; @@ -278,7 +280,7 @@ .dropdown-menu { position: absolute; - top: -0.5rem !important; + top: 0.2rem !important; right: 0.938rem; left: 0.938rem !important; z-index: $zindex-default; diff --git a/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.html b/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.html index 542f6f638..b583eb93d 100644 --- a/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.html +++ b/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.html @@ -115,6 +115,10 @@ Inbox + + + Sent + @@ -143,7 +147,7 @@
  • - + Delete all permanently diff --git a/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.scss b/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.scss index 7b1c6a91f..05949fdc0 100644 --- a/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.scss +++ b/src/app/mail/mail-list/mail-folder/generic-folder/generic-folder.component.scss @@ -35,7 +35,10 @@ a.disabled { top: 8px; ::ng-deep .mat-checkbox .mat-checkbox-frame { - border-color: rgba(0, 0, 0, 0.38); + border: 2px solid var(--mat-checkbox-border-color); + } + ::ng-deep .mat-checkbox .mat-checkbox-background { + border: var(--width-0-2) solid var(--mat-checkbox-border-color); } } diff --git a/src/app/mail/mail-settings/custom-domains/custom-domains.component.scss b/src/app/mail/mail-settings/custom-domains/custom-domains.component.scss index 89aeff9bb..b4eae2bd5 100644 --- a/src/app/mail/mail-settings/custom-domains/custom-domains.component.scss +++ b/src/app/mail/mail-settings/custom-domains/custom-domains.component.scss @@ -2,6 +2,8 @@ @import '~styles/vendors/include-media/include-media'; @import '~styles/config/include-media-config'; @import '~styles/vendors/ceaser/ceaser-easing'; +@import '~styles/theme-variables-collection'; +@import '~styles/themes'; .domain-body { padding-left: 1.563rem; @@ -126,7 +128,7 @@ &:hover { opacity: 1; - background-color: $brand-faded; + background-color: var(--brand-faded); color: #949494; } } @@ -138,7 +140,7 @@ .stepper-form { padding: 1.5625rem 1.875rem 2.5rem 1.875rem; font-size: 0.875rem; - background-color: #fafafa; + background-color: var(--bg-faded); .domain-input { width: 28.125rem; diff --git a/src/app/mail/mail-settings/custom-domains/custom-domains.component.ts b/src/app/mail/mail-settings/custom-domains/custom-domains.component.ts index 7f6d0a030..7cfe1ef7d 100644 --- a/src/app/mail/mail-settings/custom-domains/custom-domains.component.ts +++ b/src/app/mail/mail-settings/custom-domains/custom-domains.component.ts @@ -205,6 +205,6 @@ export class CustomDomainsComponent implements OnInit, OnDestroy { } gotoPricingPlans() { - this.onGotoTab.emit('dashboard-plans'); + this.onGotoTab.emit('dashboard-and-plans'); } } diff --git a/src/app/mail/mail-settings/folders/folders.component.html b/src/app/mail/mail-settings/folders/folders.component.html index 287abe9c3..90551209c 100644 --- a/src/app/mail/mail-settings/folders/folders.component.html +++ b/src/app/mail/mail-settings/folders/folders.component.html @@ -21,10 +21,13 @@
    -