alfresco-ng2-components/lib/core/templates/empty-content/empty-content.component.scss
Denys Vuika 3010cfb310
"Empty content" centering fixes (#6586)
* fix empty-content vertical centering

* fix empty-content vertical centering
2021-01-28 13:08:54 +00:00

49 lines
1.2 KiB
SCSS

@import '~@angular/material/theming';
@mixin adf-empty-content-theme($theme) {
$config: mat-typography-config();
$foreground: map-get($theme, foreground);
$adf-empty-content-icon-opacity: 0.6;
.adf-empty-content {
color: mat-color($foreground, text, 0.54);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
&__icon {
.mat-icon {
font-size: mat-font-size($config, display-3);
height: mat-font-size($config, display-3) !important;
width: mat-font-size($config, display-3) !important;
}
}
&__title {
font-size: 18px;
font-weight: 600;
line-height: 0;
white-space: normal;
text-align: center;
margin: 10px 0;
}
&__subtitle,
&__text {
font-size: 14px;
font-weight: 300;
line-height: inherit;
white-space: normal;
text-align: center;
}
.adf-icon {
opacity: $adf-empty-content-icon-opacity;
}
}
}