feat: moneta 2.0, MONETA.Assistant payment module for PHPShop 6.7+
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
/* Êàðòî÷êà îïëàòû íà ñòðàíèöå «Çàêàç îôîðìëåí» (templates/payment_forma.tpl).
|
||||
Ñâîè êëàññû, áåç îïîðû íà Bootstrap òåìû: òåìû PHPShop áûâàþò íà Bootstrap 3 è 4/5. */
|
||||
.moneta-checkout {
|
||||
max-width: 30rem;
|
||||
margin: 1rem auto;
|
||||
padding: 1.5rem;
|
||||
border: 1px solid #dee2e6;
|
||||
border-radius: 1.25rem;
|
||||
background: #fff;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.moneta-checkout-brand {
|
||||
display: inline-block;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.moneta-checkout-logo {
|
||||
display: block;
|
||||
height: 36px;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.moneta-checkout-info {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
.moneta-checkout-total {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 0.25rem 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 1.25rem 0;
|
||||
border-top: 1px solid #dee2e6;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
}
|
||||
|
||||
.moneta-checkout-total-label {
|
||||
color: #6c757d;
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
.moneta-checkout-cost {
|
||||
margin-left: auto;
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.moneta-checkout .moneta-payment-button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 0.75rem;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.moneta-checkout-note {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.5rem;
|
||||
margin-top: 1.25rem;
|
||||
color: #6c757d;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.moneta-checkout-lock {
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
|
||||
/* Ñêðûòü ïóñòîé áëîê: êëàññû hidden (Bootstrap 3) è d-none (4/5) åñòü íå âî âñåõ òåìàõ. */
|
||||
.moneta-checkout .moneta-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 575.98px) {
|
||||
.moneta-checkout {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
|
||||
.moneta-checkout-cost {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Ñòðàíèöà âîçâðàòà /moneta/ (templates/return_forma.tpl): èêîíêà ïî ñîñòîÿíèþ, çàãîëîâîê,
|
||||
òåêñò è êíîïêè — êàê ñòðàíèöû ðåçóëüòàòà â ìîäóëå 1Ñ-Áèòðèêñ. */
|
||||
.moneta-result {
|
||||
max-width: 40rem;
|
||||
margin: 2rem auto 3rem;
|
||||
padding: 0 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.moneta-result-icon {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.moneta-result-icon svg {
|
||||
display: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.moneta-result--success .moneta-result-icon-success,
|
||||
.moneta-result--error .moneta-result-icon-error,
|
||||
.moneta-result--wait .moneta-result-icon-wait,
|
||||
.moneta-result--info .moneta-result-icon-info,
|
||||
.moneta-result--warning .moneta-result-icon-warning {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.moneta-result-spinner {
|
||||
animation: moneta-spin 1.2s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes moneta-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.moneta-result-title {
|
||||
margin: 0 0 0.75rem;
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.moneta-result-text {
|
||||
margin: 0 0 2rem;
|
||||
color: #555;
|
||||
font-size: 1.0625rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.moneta-result-buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.moneta-result-buttons .btn {
|
||||
flex: 1 1 12rem;
|
||||
max-width: 16rem;
|
||||
padding: 0.625rem 1.25rem;
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.moneta-result .moneta-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 575.98px) {
|
||||
.moneta-result-title {
|
||||
font-size: 1.375rem;
|
||||
}
|
||||
|
||||
.moneta-result-buttons .btn {
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user