Skip to content

Instantly share code, notes, and snippets.

@Dssdiego
Created April 16, 2019 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dssdiego/92e6e571c84d0b0ee826b390946d1f6e to your computer and use it in GitHub Desktop.
Save Dssdiego/92e6e571c84d0b0ee826b390946d1f6e to your computer and use it in GitHub Desktop.
FAB Angular
<div id="app-fab">
<div class="handle">
<button mat-fab color="primary" (click)="fabClick()">
<mat-icon>person_add</mat-icon>
</button>
</div>
</div>
#app-fab {
position: fixed;
z-index: 100;
bottom: 16px;
right: 24px;
.handle {
float: right;
}
.mat-card-content {
padding: 1rem 1.5rem 2rem;
}
}
.pos-rel {
position: relative;
z-index: 99;
.olay {
position: absolute;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.5);
z-index: 100;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment