Fix unknown style (#5810)

* fix unknown style

* missing var

* remove delete because there is already delete site

* fix test
This commit is contained in:
Eugenio Romano
2020-06-24 11:22:09 +01:00
committed by GitHub
parent 9fd10687e4
commit 094f247889
9 changed files with 21 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
<div class="adf-viewer__unknown-format-view">
<div>
<mat-icon class="icon">error</mat-icon>
<div class="label">{{ 'ADF_VIEWER.UNKNOWN_FORMAT' | translate }}</div>
<div class="adf-viewer__unknown-label">{{ 'ADF_VIEWER.UNKNOWN_FORMAT' | translate }}</div>
</div>
</div>

View File

@@ -1,8 +1,18 @@
.adf-viewer__unknown-format-view {
height: 90vh;
text-align: center;
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;
@import '~@angular/material/theming';
@mixin adf-unknown-viewer-theme($theme) {
$foreground: map-get($theme, foreground);
.adf-viewer__unknown-format-view {
height: 90vh;
text-align: center;
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;
.adf-viewer__unknown-label {
color: mat-color($foreground, text);
}
}
}