[ADF-5406] SCSS and HTML template path fixes (#7063)

* remove useless mixin

* fix scss paths

* style fixes

* fix styles

* style fixes

* style fixes

* style fixes

* style fixes

* insights fixes

* css and template path fixes

* bug fixes
This commit is contained in:
Denys Vuika
2021-06-01 09:21:00 +01:00
committed by GitHub
parent 9e0000a307
commit e94b2f99bd
229 changed files with 557 additions and 934 deletions

View File

@@ -1,5 +1,3 @@
@import '~@angular/material/theming';
@mixin adf-image-viewer-theme($theme) {
$background: map-get($theme, background);
$viewer-image-outline: 1px solid mat-color($alfresco-ecm-blue, A200) !default;

View File

@@ -32,7 +32,6 @@ import Cropper from 'cropperjs';
@Component({
selector: 'adf-img-viewer',
templateUrl: './img-viewer.component.html',
styleUrls: ['./img-viewer.component.scss'],
host: { 'class': 'adf-image-viewer' },
encapsulation: ViewEncapsulation.None
})

View File

@@ -1,14 +1,11 @@
@import '~@angular/material/theming';
.adf-fill-remaining-space {
flex: 1 1 auto;
}
.adf-full-width {
width: 100%;
}
@mixin adf-dialog-theme($theme) {
.adf-fill-remaining-space {
flex: 1 1 auto;
}
.adf-full-width {
width: 100%;
}
$primary: map-get($theme, primary);
@@ -19,5 +16,4 @@
.adf-dialog-action-button:enabled {
color: mat-color($primary);
}
}

View File

@@ -1,5 +1,3 @@
@import '~@angular/material/theming';
@mixin adf-pdf-thumbnails-theme($theme) {
$background: map-get($theme, background);

View File

@@ -28,7 +28,6 @@ import { delay } from 'rxjs/operators';
@Component({
selector: 'adf-pdf-thumbnails',
templateUrl: './pdf-viewer-thumbnails.component.html',
styleUrls: ['./pdf-viewer-thumbnails.component.scss'],
host: { class: 'adf-pdf-thumbnails' },
encapsulation: ViewEncapsulation.None
})

View File

@@ -1,5 +1,3 @@
@import '~@angular/material/theming';
@mixin adf-pdf-viewer-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);

View File

@@ -40,10 +40,7 @@ declare const pdfjsViewer: any;
@Component({
selector: 'adf-pdf-viewer',
templateUrl: './pdf-viewer.component.html',
styleUrls: [
'./pdf-viewer.component.scss',
'./pdf-viewer-host.component.scss'
],
styleUrls: ['./pdf-viewer-host.component.scss'],
providers: [RenderingQueueServices],
host: { 'class': 'adf-pdf-viewer' },
encapsulation: ViewEncapsulation.None

View File

@@ -1,5 +1,3 @@
@import '~@angular/material/theming';
@mixin adf-text-viewer-theme($theme) {
$background: map-get($theme, background);

View File

@@ -22,7 +22,6 @@ import { AppConfigService } from './../../app-config/app-config.service';
@Component({
selector: 'adf-txt-viewer',
templateUrl: './txt-viewer.component.html',
styleUrls: ['./txt-viewer.component.scss'],
host: { 'class': 'adf-txt-viewer' },
encapsulation: ViewEncapsulation.None
})

View File

@@ -1,5 +1,3 @@
@import '~@angular/material/theming';
@mixin adf-unknown-viewer-theme($theme) {
$foreground: map-get($theme, foreground);

View File

@@ -19,8 +19,7 @@ import { Component } from '@angular/core';
@Component({
selector: 'adf-viewer-unknown-format',
templateUrl: 'unknown-format.component.html',
styleUrls: ['unknown-format.component.scss']
templateUrl: './unknown-format.component.html'
})
export class UnknownFormatComponent {
}

View File

@@ -1,5 +1,3 @@
@import '~@angular/material/theming';
@mixin adf-viewer-theme($theme) {
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);

View File

@@ -40,7 +40,6 @@ import { FileModel } from '../../models';
@Component({
selector: 'adf-viewer',
templateUrl: './viewer.component.html',
styleUrls: ['./viewer.component.scss'],
host: { 'class': 'adf-viewer' },
encapsulation: ViewEncapsulation.None
})