Last active
October 23, 2018 18:18
-
-
Save danielkuhlwein/e99c5e2d30560d409a12658dc2393623 to your computer and use it in GitHub Desktop.
Content Header Row Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mat-card id="content-header" class="m-1d p-1d bl-3-green shadow"> | |
<!-- Row 1 --> | |
<div class="content-header-row my-auto d-inline-flex flex-wrap"> | |
<span class="d-flex m-1d"> | |
<span class="font-medium-14 mr-3">Title:</span> | |
<span class="font-regular-14 ss-green">An Interesting Title About DNA</span> | |
</span> | |
</div> | |
<!-- Row 2 --> | |
<div class="content-header-row my-auto d-inline-flex flex-wrap"> | |
<span class="d-flex m-1d" [ngClass]="{'my-0': editing}"> | |
<span class="font-medium-14 mr-2" [ngClass]="{'mt-0 b-auto': !editing}">From:</span> | |
<mat-form-field floatLabel="never" *ngIf="editing"> | |
<input matInput [value]="fromName" [(ngModel)]="fromName" placeholder="Name" (change)="onInputChange($event, $event.target.value)"> | |
</mat-form-field> | |
<span class="font-regular-14" *ngIf="!editing">{{fromName}}</span> | |
</span> | |
<div class="d-flex m-1d" [ngClass]="{'my-0': editing}"> | |
<span class="font-medium-14 mr-2">Type:</span> | |
<mat-form-field floatLabel="never" *ngIf="editing"> | |
<!-- The widths of these are handled case-by-case --> | |
<mat-select name="alerts" placeholder="Select"> | |
<mat-option *ngFor="let alert of alerts" [value]="alert?.value"> | |
{{alert.value}} | |
</mat-option> | |
</mat-select> | |
</mat-form-field> | |
<span class="font-regular-14" *ngIf="!editing && alert">{{alert?.value}}</span> | |
<span class="font-regular-14 ss-dark-blue" *ngIf="!editing && !alert">Please Select</span> | |
</div> | |
<span class="d-flex m-1d btn-section" [ngClass]="{'my-0': editing}"> | |
<span class="font-medium-14 mr-2">Related Documents:</span> | |
<span class="mt-20-minus"> | |
<button mat-raised-button class="sec-btn m-1"> | |
<mat-icon svgIcon="message"></mat-icon> Emergency Drill Record</button> | |
<button mat-raised-button class="sec-btn m-1"> | |
<mat-icon svgIcon="time"></mat-icon> Login Records</button> | |
</span> | |
</span> | |
</div> | |
<mat-divider></mat-divider> | |
<!-- Row 3 --> | |
<p class="m-1d">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus commodo nulla sed enim pulvinar dapibus. Sed lectus | |
libero, molestie in semper in, posuere quis dolor. Morbi ornare malesuada libero, eu rutrum nisl luctus quis. Class | |
aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse facilisis nisi | |
a orci consequat dignissim.</p> | |
</mat-card> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment