mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4323] Add style fixes from ACA (#4546)
* [ADF-4323] add style fix for adf-search-sorting-picker - moved from ACA * [ADF-4323] use Flex Layout's media query mixin * [ADF-4323] add style fix for adf-pagination - moved from ACA * [ADF-4323] add style fix for adf-version-manager - which fixed issue [ACA-1750] * [ADF-4323] remove not used property * [ADF-4323] remove extra bottom-border * [ADF-4323] upload-drag-area refactor to scss * [ADF-4323] add style fix for adf file upload - from ACA * [ADF-4323] add style fix for adf-info-drawer - from ACA * [ADF-4323] add style fix for adf-toolbar - from ACA * [ADF-4323] add style fix for adf-sidenav-layout - from ACA * [ADF-4323] add style fix for adf-search-filter - from ACA * [ADF-4323] add style fix for adf-upload-drag-area - from ACA * [ADF-4323] add style fix for adf-info-drawer - from ACA * [ADF-4323] move style fix for adf-manage-versions from demo-shell * [ADF-4323] use Flex Layout's media query mixin * [ADF-4323] small fix to remove scrolling * [ADF-4323] add adf-sidenav-layout host element class * [ADF-4323] change 'inline' class name to 'adf-toolbar--inline' - css lint was failing because of old naming * [ADF-4323] set pagination empty state styling * [ADF-4323] set pagination border to none
This commit is contained in:
committed by
Eugenio Romano
parent
ec9d2785fa
commit
e656cc6977
@@ -1,29 +1,27 @@
|
||||
<div class="adf-sidenav-layout">
|
||||
<ng-container *ngIf="!isHeaderInside">
|
||||
<ng-container class="adf-sidenav-layout-outer-header"
|
||||
*ngTemplateOutlet="headerTemplate; context:templateContext"></ng-container>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="!isHeaderInside">
|
||||
<ng-container class="adf-sidenav-layout-outer-header"
|
||||
*ngTemplateOutlet="headerTemplate; context:templateContext"></ng-container>
|
||||
</ng-container>
|
||||
|
||||
<adf-layout-container #container
|
||||
[position]="position"
|
||||
[sidenavMin]="sidenavMin"
|
||||
[sidenavMax]="sidenavMax"
|
||||
[mediaQueryList]="mediaQueryList"
|
||||
[hideSidenav]="hideSidenav"
|
||||
[expandedSidenav]="expandedSidenav"
|
||||
data-automation-id="adf-layout-container"
|
||||
class="adf-layout__content">
|
||||
<adf-layout-container #container
|
||||
[position]="position"
|
||||
[sidenavMin]="sidenavMin"
|
||||
[sidenavMax]="sidenavMax"
|
||||
[mediaQueryList]="mediaQueryList"
|
||||
[hideSidenav]="hideSidenav"
|
||||
[expandedSidenav]="expandedSidenav"
|
||||
data-automation-id="adf-layout-container"
|
||||
class="adf-layout__content">
|
||||
|
||||
<ng-container app-layout-navigation
|
||||
*ngTemplateOutlet="navigationTemplate; context:templateContext"></ng-container>
|
||||
<ng-container app-layout-navigation
|
||||
*ngTemplateOutlet="navigationTemplate; context:templateContext"></ng-container>
|
||||
|
||||
<ng-container app-layout-content>
|
||||
<ng-container *ngIf="isHeaderInside">
|
||||
<ng-container *ngTemplateOutlet="headerTemplate; context:templateContext"></ng-container>
|
||||
</ng-container>
|
||||
<ng-container *ngTemplateOutlet="contentTemplate; context:templateContext"></ng-container>
|
||||
<ng-container app-layout-content>
|
||||
<ng-container *ngIf="isHeaderInside">
|
||||
<ng-container *ngTemplateOutlet="headerTemplate; context:templateContext"></ng-container>
|
||||
</ng-container>
|
||||
</adf-layout-container>
|
||||
</div>
|
||||
<ng-container *ngTemplateOutlet="contentTemplate; context:templateContext"></ng-container>
|
||||
</ng-container>
|
||||
</adf-layout-container>
|
||||
|
||||
<ng-template #emptyTemplate></ng-template>
|
||||
|
@@ -1,18 +1,34 @@
|
||||
:host {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
@mixin adf-sidenav-layout-theme($theme) {
|
||||
$adf-sidenav-max: 300px !default;
|
||||
|
||||
.adf-sidenav-layout {
|
||||
@include flex-column;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.adf-layout__content {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
router-outlet {
|
||||
flex: 0 0;
|
||||
}
|
||||
|
||||
@include layout-bp(lt-sm) {
|
||||
.mat-drawer {
|
||||
width: calc(-50px + 100vw) !important;
|
||||
max-width: $adf-sidenav-max !important;
|
||||
}
|
||||
}
|
||||
|
||||
.mat-drawer-content {
|
||||
@include flex-column;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
router-outlet {
|
||||
flex: 0 0;
|
||||
.mat-drawer-content > div,
|
||||
.mat-drawer-content > div > div {
|
||||
@include flex-column;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
@@ -15,7 +15,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component, ContentChild, Input, Output, OnInit, AfterViewInit, ViewChild, OnDestroy, TemplateRef, EventEmitter } from '@angular/core';
|
||||
import {
|
||||
Component,
|
||||
ContentChild,
|
||||
Input,
|
||||
Output,
|
||||
OnInit,
|
||||
AfterViewInit,
|
||||
ViewChild,
|
||||
OnDestroy,
|
||||
TemplateRef,
|
||||
EventEmitter,
|
||||
ViewEncapsulation
|
||||
} from '@angular/core';
|
||||
import { MediaMatcher } from '@angular/cdk/layout';
|
||||
import { SidenavLayoutContentDirective } from '../../directives/sidenav-layout-content.directive';
|
||||
import { SidenavLayoutHeaderDirective } from '../../directives/sidenav-layout-header.directive';
|
||||
@@ -25,7 +37,9 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
||||
@Component({
|
||||
selector: 'adf-sidenav-layout',
|
||||
templateUrl: './sidenav-layout.component.html',
|
||||
styleUrls: ['./sidenav-layout.component.scss']
|
||||
styleUrls: ['./sidenav-layout.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
host: { class: 'adf-sidenav-layout' }
|
||||
})
|
||||
export class SidenavLayoutComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
|
Reference in New Issue
Block a user