-
{{ userName }}
-
- {{ userInitials }}
-
+
+
{{ userName }}
+
+ {{ userInitials }}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/components/current-user/current-user.component.scss b/src/app/components/current-user/current-user.component.scss
deleted file mode 100644
index b301ce7bc..000000000
--- a/src/app/components/current-user/current-user.component.scss
+++ /dev/null
@@ -1,49 +0,0 @@
-@import 'variables';
-
-$am-avatar-size: 40px;
-
-$am-avatar-light-bg: rgba(white, .15);
-$am-avatar-dark-bg: rgba(black, .15);
-
-:host {
- font-weight: lighter;
- position: relative;
-
- color: $alfresco-white;
- line-height: 20px;
-
- .am-avatar {
- margin-left: 5px;
- cursor: pointer;
-
- display: inline-block;
- width: $am-avatar-size;
- height: $am-avatar-size;
- line-height: $am-avatar-size;
- font-size: 1.2em;
- text-align: center;
- color: inherit;
- border-radius: 100%;
-
- &--light {
- background: $am-avatar-light-bg;
- }
-
- &--dark {
- background: $am-avatar-dark-bg;
- }
- }
-
- .current-user__full-name {
- width: 100px;
- text-align: right;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- display:inline-block;
- height: 20px;
- font-size: 14px;
- line-height: 1.43;
- letter-spacing: -0.2px;
- }
-}
diff --git a/src/app/components/current-user/current-user.component.theme.scss b/src/app/components/current-user/current-user.component.theme.scss
new file mode 100644
index 000000000..6a22fa665
--- /dev/null
+++ b/src/app/components/current-user/current-user.component.theme.scss
@@ -0,0 +1,38 @@
+@mixin aca-current-user-theme($theme) {
+ $background: map-get($theme, background);
+ $am-avatar-size: 40px;
+
+ .aca-current-user {
+ font-weight: lighter;
+ position: relative;
+ color: mat-color($background, card);
+ line-height: 20px;
+
+ .am-avatar {
+ margin-left: 5px;
+ cursor: pointer;
+ display: inline-block;
+ width: $am-avatar-size;
+ height: $am-avatar-size;
+ line-height: $am-avatar-size;
+ font-size: 1.2em;
+ text-align: center;
+ color: inherit;
+ border-radius: 100%;
+ background-color: mat-color($background, card, .15);
+ }
+
+ .current-user__full-name {
+ width: 100px;
+ text-align: right;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display:inline-block;
+ height: 20px;
+ font-size: 14px;
+ line-height: 1.43;
+ letter-spacing: -0.2px;
+ }
+ }
+}
diff --git a/src/app/components/current-user/current-user.component.ts b/src/app/components/current-user/current-user.component.ts
index b91bd6ce1..996646cf5 100644
--- a/src/app/components/current-user/current-user.component.ts
+++ b/src/app/components/current-user/current-user.component.ts
@@ -23,14 +23,15 @@
* along with Alfresco. If not, see
.
*/
-import { Component, OnInit, OnDestroy } from '@angular/core';
+import { Component, OnInit, OnDestroy, ViewEncapsulation } from '@angular/core';
import { PeopleContentService } from '@alfresco/adf-core';
import { Subscription } from 'rxjs/Rx';
@Component({
- selector: 'app-current-user',
+ selector: 'aca-current-user',
templateUrl: './current-user.component.html',
- styleUrls: [ './current-user.component.scss' ]
+ encapsulation: ViewEncapsulation.None,
+ host: { class: 'aca-current-user' }
})
export class CurrentUserComponent implements OnInit, OnDestroy {
private subscriptions: Subscription[] = [];
diff --git a/src/app/components/files/files.component.html b/src/app/components/files/files.component.html
index 41ebb77cd..e24f683c7 100644
--- a/src/app/components/files/files.component.html
+++ b/src/app/components/files/files.component.html
@@ -94,7 +94,7 @@
diff --git a/src/app/components/generic-error/generic-error.component.html b/src/app/components/generic-error/generic-error.component.html
index 1525e9ba3..ac7157b63 100644
--- a/src/app/components/generic-error/generic-error.component.html
+++ b/src/app/components/generic-error/generic-error.component.html
@@ -1,4 +1,4 @@
-
-
ic_error
-
This file / folder no longer exists or you don't have permission to view it.
-
\ No newline at end of file
+
ic_error
+
+ {{ 'APP.MESSAGES.ERRORS.MISSING_CONTENT' | translate }}
+
diff --git a/src/app/components/generic-error/generic-error.component.scss b/src/app/components/generic-error/generic-error.component.scss
deleted file mode 100644
index a3b5b67f1..000000000
--- a/src/app/components/generic-error/generic-error.component.scss
+++ /dev/null
@@ -1,25 +0,0 @@
-@import 'variables';
-
-$alfresco-warn-color--hue-2: #ff5252;
-
-.generic-error {
- color: $alfresco-secondary-text-color;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- width: 100%;
- height: 100%;
-
- &__title {
- font-size: 16px;
- }
-
- mat-icon {
- color: $alfresco-warn-color--hue-2;
- direction: rtl;
- font-size: 52px;
- height: 52px;
- width: 52px;
- }
- }
diff --git a/src/app/components/generic-error/generic-error.component.theme.scss b/src/app/components/generic-error/generic-error.component.theme.scss
new file mode 100644
index 000000000..bbf0735e9
--- /dev/null
+++ b/src/app/components/generic-error/generic-error.component.theme.scss
@@ -0,0 +1,27 @@
+@mixin aca-generic-error-theme($theme) {
+ $warn: map-get($theme, warn);
+ $foreground: map-get($theme, foreground);
+
+ .aca-generic-error {
+ color: mat-color($foreground, text, 0.54);
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+ width: 100%;
+ height: 100%;
+
+ &__title {
+ font-size: 16px;
+ }
+
+ mat-icon {
+ color: mat-color($warn);
+ direction: rtl;
+ font-size: 52px;
+ height: 52px;
+ width: 52px;
+ }
+ }
+}
diff --git a/src/app/components/generic-error/generic-error.component.ts b/src/app/components/generic-error/generic-error.component.ts
index abfbf9a6d..dfae6b91e 100644
--- a/src/app/components/generic-error/generic-error.component.ts
+++ b/src/app/components/generic-error/generic-error.component.ts
@@ -23,12 +23,14 @@
* along with Alfresco. If not, see
.
*/
-import { Component } from '@angular/core';
+import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
@Component({
- selector: 'app-generic-error',
- styleUrls: ['./generic-error.component.scss'],
- templateUrl: './generic-error.component.html'
+ selector: 'aca-generic-error',
+ templateUrl: './generic-error.component.html',
+ encapsulation: ViewEncapsulation.None,
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ host: { class: 'aca-generic-error' }
})
export class GenericErrorComponent {}
diff --git a/src/app/components/header/header.component.html b/src/app/components/header/header.component.html
index c389a6072..2a4668d66 100644
--- a/src/app/components/header/header.component.html
+++ b/src/app/components/header/header.component.html
@@ -16,9 +16,9 @@
-
+
-
+
diff --git a/src/app/components/header/header.component.scss b/src/app/components/header/header.component.scss
deleted file mode 100644
index 1ef205891..000000000
--- a/src/app/components/header/header.component.scss
+++ /dev/null
@@ -1,55 +0,0 @@
-@import 'variables';
-
-$app-menu-height: 64px;
-
-.app-menu {
- height: $app-menu-height;
-
- &.adf-toolbar {
- .mat-toolbar {
- background-color: inherit;
- font-family: inherit;
- min-height: $app-menu-height;
- height: $app-menu-height;
-
- .mat-toolbar-layout {
- height: $app-menu-height;
-
- .mat-toolbar-row {
- height: $app-menu-height;
- }
- }
- }
-
- .adf-toolbar-divider {
- margin-left: 5px;
- margin-right: 5px;
-
- & > div {
- background-color: $alfresco-white !important;
- }
- }
-
- .adf-toolbar-title {
- color: $alfresco-white;
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- }
- }
-
- .app-menu__title {
- width: 100px;
- height: 50px;
- margin-left: 40px;
- display: flex;
- justify-content: center;
- align-items: stretch;
-
- &> img {
- width: 100%;
- object-fit: contain;
- }
- }
-}
diff --git a/src/app/components/header/header.component.theme.scss b/src/app/components/header/header.component.theme.scss
new file mode 100644
index 000000000..8b56a4224
--- /dev/null
+++ b/src/app/components/header/header.component.theme.scss
@@ -0,0 +1,59 @@
+@mixin aca-header-theme($theme) {
+ $background: map-get($theme, background);
+ $app-menu-height: 64px;
+
+ .aca-header {
+
+ .app-menu {
+ height: $app-menu-height;
+
+ &.adf-toolbar {
+ .mat-toolbar {
+ background-color: inherit;
+ font-family: inherit;
+ min-height: $app-menu-height;
+ height: $app-menu-height;
+
+ .mat-toolbar-layout {
+ height: $app-menu-height;
+
+ .mat-toolbar-row {
+ height: $app-menu-height;
+ }
+ }
+ }
+
+ .adf-toolbar-divider {
+ margin-left: 5px;
+ margin-right: 5px;
+
+ & > div {
+ background-color: mat-color($background, card);
+ }
+ }
+
+ .adf-toolbar-title {
+ color: mat-color($background, card);
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ }
+ }
+
+ .app-menu__title {
+ width: 100px;
+ height: 50px;
+ margin-left: 40px;
+ display: flex;
+ justify-content: center;
+ align-items: stretch;
+
+ &> img {
+ width: 100%;
+ object-fit: contain;
+ }
+ }
+ }
+ }
+}
diff --git a/src/app/components/header/header.component.ts b/src/app/components/header/header.component.ts
index 2c121e61a..6ad498bb3 100644
--- a/src/app/components/header/header.component.ts
+++ b/src/app/components/header/header.component.ts
@@ -30,10 +30,10 @@ import { AppStore } from '../../store/states/app.state';
import { selectHeaderColor, selectAppName, selectLogoPath } from '../../store/selectors/app.selectors';
@Component({
- selector: 'app-header',
+ selector: 'aca-header',
templateUrl: './header.component.html',
- styleUrls: [ './header.component.scss' ],
- encapsulation: ViewEncapsulation.None
+ encapsulation: ViewEncapsulation.None,
+ host: { class: 'aca-header' }
})
export class HeaderComponent {
@Output() menu: EventEmitter
= new EventEmitter();
diff --git a/src/app/components/layout/layout.component.html b/src/app/components/layout/layout.component.html
index 754195e4c..52c37d768 100644
--- a/src/app/components/layout/layout.component.html
+++ b/src/app/components/layout/layout.component.html
@@ -15,7 +15,7 @@
-
+
@@ -35,4 +35,4 @@
-