Skip to content

Instantly share code, notes, and snippets.

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 ZhenDeng/39fadb636d0145a13b59c88d84a7a3a8 to your computer and use it in GitHub Desktop.
Save ZhenDeng/39fadb636d0145a13b59c88d84a7a3a8 to your computer and use it in GitHub Desktop.
/*HTML*/
<button class="close-button" (click)="onNoClick()">
<span aria-hidden="true">&times;</span>
</button>
<div mat-dialog-title>
<div class="modal-header">
<h6 class="modal-title">Air freight terms</h6>
</div>
<div class="modal-body">
<div mat-dialog-content>
<div class="description">
Dicker Data cannot guarantee that this order will be shipped today as it is after
2PM EST. If you would still like to ship this order by air, but acknowledge that
it may not leave until the next business day, please click accept. If you wish to
choose an alternative shipping method please click decline.
</div>
</div>
</div>
<div mat-dialog-actions style="display: block;">
<div class="row" style="margin: auto;">
<button mat-button cdkFocusInitial class="button button-red button-large" style="margin: 0 auto;"
(click)="accept()">Accept</button>
</div>
<div class="row" style="margin: auto;">
<a href="javascript:void(0)" class="declineLink" (click)="onNoClick()">Decline</a>
</div>
</div>
</div>
/*CSS*/
:host {
height: 50%;
display: flex;
flex-direction: column;
}
.poptitle {
min-height: 120px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: baseline;
}
.subbanner {
background: #333333;
color: white;
text-align: center;
height: 30px;
line-height: 30px;
font-size: 1em;
clear: both;
width: 96%;
margin-left: auto;
margin-right: auto;
}
.description {
width: 96%;
margin-left: auto;
margin-right: auto;
padding-bottom: 20px;
border: 1px solid #ddd;
background: white;
box-sizing: border-box;
padding: 15px;
font-size: 12px;
color: #808080;
}
.logoImg {
width: 75px;
height: 28px;
margin: auto;
display: inherit;
}
.contactInfo {
margin: auto;
margin-top: 15px;
margin-left: -18px;
}
.contactText {
font-family: Roboto;
font-style: normal;
font-size: 11px;
line-height: 14px;
text-align: center;
letter-spacing: -0.02em;
color: #808080;
}
.poptitle .register-logo {
flex: 3;
padding-left: 27px;
}
.mat-dialog-actions {
margin: 20px auto 0 !important;
}
.poptitle .register-logo img {
height: 86.5px;
width: 192px;
}
.poptitle .company-info,
.poptitle .company-contact {
box-sizing: border-box;
font-weight: bold;
flex: 2;
}
.mat-dialog-title {
line-height: 20px !important;
font-size: 12px !important;
}
.saveupdate {
background: #C20047;
border-radius: 20px;
border: 1px solid #C20047;
width: 298px;
height: 23px;
font-weight: 900;
font-size: 10px;
line-height: 12px;
text-align: center;
letter-spacing: 0.02em;
margin: auto;
color: white;
}
.saveupdate:hover {
background: #E90055 !important;
}
.modal-title {
font-style: normal;
font-weight: 300;
font-size: 24px;
line-height: 28px;
}
.modal-header {
margin-top: -10px;
}
.declineLink {
font-weight: normal;
font-size: 12px;
line-height: 12px;
text-align: center;
display: inline-block;
color: #C20047;
padding-top: 15px;
margin: auto;
}
.declineLink:hover {
text-decoration: underline;
}
/* Customize Scroll Bars */
/* width */
::-webkit-scrollbar {
-webkit-appearance: none;
width: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: white;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #808080;
border-radius: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment