This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add card image tag and horizontal card (#333)
* Add card image tag * Add FAB to image card
- Loading branch information
Showing
13 changed files
with
319 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
<div class="card-content"> | ||
|
||
<div #cardTitle class="card-title" *ngIf="hasCardTitle"> | ||
<ng-content select="mz-card-title"></ng-content> | ||
<div #cardImage class="card-image" *ngIf="hasCardImage"> | ||
<ng-content select="mz-card-image"></ng-content> | ||
<div class="card-title" *ngIf="hasCardImageTitle"> | ||
<ng-content select="mz-card-image-title"></ng-content> | ||
</div> | ||
|
||
<ng-content select="mz-card-content"></ng-content> | ||
</div> | ||
|
||
<div #cardAction class="card-action" *ngIf="hasCardAction"> | ||
<ng-content select="mz-card-action"></ng-content> | ||
<div [class.card-stacked]="horizontal"> | ||
<div class="card-content"> | ||
<div #cardTitle class="card-title" *ngIf="hasCardTitle"> | ||
<ng-content select="mz-card-title"></ng-content> | ||
</div> | ||
|
||
<ng-content select="mz-card-content"></ng-content> | ||
</div> | ||
|
||
<div #cardAction class="card-action" *ngIf="hasCardAction"> | ||
<ng-content select="mz-card-action"></ng-content> | ||
</div> | ||
</div> |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Directive, HostBinding } from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: ` | ||
a[mz-halfway-fab], | ||
a[mzHalfwayFab], | ||
button[mz-halfway-fab], | ||
button[mzHalfwayFab]`, | ||
}) | ||
export class MzHalfwayFabDirective { | ||
@HostBinding('class.halfway-fab') true; | ||
} |
Oops, something went wrong.