<div *ngIf="destruction" (click)="outer_close()" class="layer_background">
  <div (click)="$event.cancelBubble = true;" [ngClass]="{'show':visible}" class="layer_content">
    <header *ngIf="!main">
      <div class="title">
        {{dialogTitle}}
      </div>
      <div (click)="close()" class="close">×</div>
    </header>
    <section>
      <ng-content select=".layer_content"></ng-content>
      <dstore-scrollbar [flex]="true">
        <ng-content select=".layer_scroll_content"></ng-content>
      </dstore-scrollbar>
    </section>
    <footer *ngIf="!main">
      <div class="button_group">
        <ng-content select=".layer_buttons"></ng-content>
      </div>
    </footer>
  </div>
</div>