share certificate and share product maker checker
This commit is contained in:
+351
@@ -0,0 +1,351 @@
|
||||
/**
|
||||
* Copyright since 2025 Mifos Initiative
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
.dialog-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
padding-bottom: 12px;
|
||||
margin-bottom: 16px;
|
||||
font-weight: 500;
|
||||
color: #1a252c;
|
||||
}
|
||||
|
||||
.dialog-content-container {
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/* Certificate Outer Container */
|
||||
.certificate-container {
|
||||
background-color: #faf8f5;
|
||||
padding: 20px;
|
||||
font-family: Georgia, 'Times New Roman', Times, serif;
|
||||
color: #2c2520;
|
||||
box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
|
||||
border-radius: 8px;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Classic Ornate Border System */
|
||||
.certificate-border-outer {
|
||||
border: 5px double #c5a059; /* Gold double border */
|
||||
padding: 8px;
|
||||
background-color: #fdfcf7; /* Textured light cream */
|
||||
border-radius: 4px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.certificate-border-inner {
|
||||
border: 1px solid #dcd1bd;
|
||||
padding: 30px;
|
||||
border-radius: 2px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Watermark */
|
||||
.certificate-watermark {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
opacity: 0.03;
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
|
||||
.watermark-icon {
|
||||
font-size: 280px;
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
color: #c5a059;
|
||||
}
|
||||
}
|
||||
|
||||
.certificate-header,
|
||||
.cert-meta-row,
|
||||
.cert-body-section,
|
||||
.certificate-details-table,
|
||||
.cert-footer {
|
||||
position: relative;
|
||||
z-index: 2; /* Ensure content is above watermark */
|
||||
}
|
||||
|
||||
/* Header styling */
|
||||
.certificate-header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
border-bottom: 2px solid #f2edd5;
|
||||
padding-bottom: 20px;
|
||||
|
||||
.bank-name {
|
||||
font-size: 26px;
|
||||
font-weight: bold;
|
||||
color: #0b3c5d; /* Dark Premium Blue */
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1.5px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.bank-sub {
|
||||
font-size: 13px;
|
||||
color: #7b6f63;
|
||||
font-style: italic;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.cert-title {
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
color: #c5a059; /* Classic Gold */
|
||||
letter-spacing: 4px;
|
||||
margin-bottom: 5px;
|
||||
font-family: Georgia, serif;
|
||||
}
|
||||
|
||||
.cert-subtitle {
|
||||
font-size: 11px;
|
||||
color: #7b6f63;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Meta Data Grid (Top of cert) */
|
||||
.cert-meta-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 30px;
|
||||
border-bottom: 1px solid #f2edd5;
|
||||
padding-bottom: 15px;
|
||||
|
||||
.meta-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.meta-label {
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
color: #928374;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.meta-value {
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
color: #322f2b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Main Body text */
|
||||
.cert-body-section {
|
||||
margin-bottom: 35px;
|
||||
|
||||
.cert-main-text {
|
||||
font-size: 15px;
|
||||
line-height: 1.8;
|
||||
text-align: center;
|
||||
color: #4a453f;
|
||||
margin-bottom: 25px;
|
||||
|
||||
.highlight-text {
|
||||
color: #1a202c;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px dotted #c5a059;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Issued To Details Block */
|
||||
.issued-to-details {
|
||||
border: 1px solid #f0e6d2;
|
||||
background-color: #fbfaf5;
|
||||
padding: 15px 20px;
|
||||
border-radius: 4px;
|
||||
margin: 20px auto;
|
||||
max-width: 90%;
|
||||
text-align: left;
|
||||
|
||||
.issued-to-title {
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: #c5a059;
|
||||
letter-spacing: 1.5px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.client-name-details {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #0b3c5d;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.client-ids {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.client-address {
|
||||
font-size: 12px;
|
||||
color: #7b6f63;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
|
||||
/* Certificate Data Table */
|
||||
.certificate-details-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 40px;
|
||||
|
||||
td {
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #ede8db;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.lbl-col {
|
||||
background-color: #f7f5ee;
|
||||
font-weight: bold;
|
||||
color: #7b6f63;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.val-col {
|
||||
color: #322f2b;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.highlight-row {
|
||||
background-color: #f5f2e9;
|
||||
border-top: 2px solid #c5a059;
|
||||
}
|
||||
|
||||
.lbl-col-highlight {
|
||||
font-weight: bold;
|
||||
color: #0b3c5d;
|
||||
font-size: 14px;
|
||||
letter-spacing: 1px;
|
||||
text-align: right;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.val-col-highlight {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #b8860b; /* Dark Goldenrod */
|
||||
}
|
||||
}
|
||||
|
||||
/* Certificate Footer Seal / Signatures */
|
||||
.cert-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 20px;
|
||||
|
||||
.seal-container {
|
||||
width: 25%;
|
||||
|
||||
.seal-ring {
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
border: 2px dashed #b8860b;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
transform: rotate(-15deg);
|
||||
|
||||
.seal-text {
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: #b8860b;
|
||||
text-align: center;
|
||||
line-height: 1.2;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.closing-text {
|
||||
width: 45%;
|
||||
font-size: 12px;
|
||||
color: #7b6f63;
|
||||
font-style: italic;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.signatures-container {
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
|
||||
.signature-block {
|
||||
display: inline-block;
|
||||
width: 80%;
|
||||
|
||||
.signature-line {
|
||||
border-bottom: 1px solid #7b6f63;
|
||||
margin-bottom: 8px;
|
||||
height: 40px; /* Space for signature */
|
||||
}
|
||||
|
||||
.signatory-title {
|
||||
font-size: 12px;
|
||||
color: #7b6f63;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Print CSS */
|
||||
@media print {
|
||||
/* Hide non-overlay contents during print */
|
||||
body > :not(.cdk-overlay-container) {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Make certificate fill page */
|
||||
#share-certificate-print {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
background-color: #fff !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.certificate-border-outer {
|
||||
border-width: 8px !important;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
.no-print {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mat-mdc-dialog-container {
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user