Skip to content
Snippets Groups Projects
Commit 63d0fffc authored by Vitaliy Marchuk's avatar Vitaliy Marchuk Committed by Jonathan Sacksick
Browse files

Issue #3385414: Provide a basic replacement for Classys messages library in the Payment module

parent 68ea0060
No related branches found
No related tags found
2 merge requests!235Issue #3115150 by mbovan: Submitting add to cart form with empty quantity...,!205Issue #3349465 by tBKoT, jsacksick, bojanz: Update several VAT rates and setup...
Pipeline #51572 canceled
......@@ -23,3 +23,9 @@ offsite_redirect:
dependencies:
- core/jquery
- core/drupal
payment_messages:
version: VERSION
css:
theme:
css/commerce_payment.payment_messages.css: {}
/**
* @file
* Styles for the payment messages.
*/
.payment-messages {
padding: 15px 20px 15px 35px;
word-wrap: break-word;
border: 1px solid;
border-width: 1px 1px 1px 0;
border-radius: 2px;
background: no-repeat 10px 17px;
overflow-wrap: break-word;
}
[dir="rtl"] .payment-messages {
padding-right: 35px;
padding-left: 20px;
text-align: right;
border-width: 1px 0 1px 1px;
background-position: right 10px top 17px;
}
.payment-messages + .payment-messages {
margin-top: 1.538em;
}
.payment-messages__list {
margin: 0;
padding: 0;
list-style: none;
}
.payment-messages__item + .payment-messages__item {
margin-top: 0.769em;
}
.payment-messages--status {
color: #325e1c;
border-color: #c9e1bd #c9e1bd #c9e1bd transparent;
background-color: #f3faef;
background-image: url(../images/check.svg);
box-shadow: -8px 0 0 #77b259;
}
[dir="rtl"] .payment-messages--status {
margin-left: 0;
border-color: #c9e1bd transparent #c9e1bd #c9e1bd;
box-shadow: 8px 0 0 #77b259;
}
.payment-messages--warning {
color: #734c00;
border-color: #f4daa6 #f4daa6 #f4daa6 transparent;
background-color: #fdf8ed;
background-image: url(../images/warning.svg);
box-shadow: -8px 0 0 #e09600;
}
[dir="rtl"] .payment-messages--warning {
border-color: #f4daa6 transparent #f4daa6 #f4daa6;
box-shadow: 8px 0 0 #e09600;
}
.payment-messages--error {
color: #a51b00;
border-color: #f9c9bf #f9c9bf #f9c9bf transparent;
background-color: #fcf4f2;
background-image: url(../images/error.svg);
box-shadow: -8px 0 0 #e62600;
}
[dir="rtl"] .payment-messages--error {
border-color: #f9c9bf transparent #f9c9bf #f9c9bf;
box-shadow: 8px 0 0 #e62600;
}
.payment-messages--error p.error {
color: #a51b00;
}
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#73b355"><path d="M6.464 13.676c-.194.194-.513.194-.707 0l-4.96-4.955c-.194-.193-.194-.513 0-.707l1.405-1.407c.194-.195.512-.195.707 0l2.849 2.848c.194.193.513.193.707 0l6.629-6.626c.195-.194.514-.194.707 0l1.404 1.404c.193.194.193.513 0 .707l-8.741 8.736z"/></svg>
\ No newline at end of file
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#e32700"><path d="M8.002 1c-3.868 0-7.002 3.134-7.002 7s3.134 7 7.002 7c3.865 0 7-3.134 7-7s-3.135-7-7-7zm4.025 9.284c.062.063.1.149.1.239 0 .091-.037.177-.1.24l-1.262 1.262c-.064.062-.15.1-.24.1s-.176-.036-.24-.1l-2.283-2.283-2.286 2.283c-.064.062-.15.1-.24.1s-.176-.036-.24-.1l-1.261-1.262c-.063-.062-.1-.148-.1-.24 0-.088.036-.176.1-.238l2.283-2.285-2.283-2.284c-.063-.064-.1-.15-.1-.24s.036-.176.1-.24l1.262-1.262c.063-.063.149-.1.24-.1.089 0 .176.036.24.1l2.285 2.284 2.283-2.284c.064-.063.15-.1.24-.1s.176.036.24.1l1.262 1.262c.062.063.1.149.1.24 0 .089-.037.176-.1.24l-2.283 2.284 2.283 2.284z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="#e29700"><path d="M14.66 12.316l-5.316-10.633c-.738-1.476-1.946-1.476-2.685 0l-5.317 10.633c-.738 1.477.008 2.684 1.658 2.684h10.002c1.65 0 2.396-1.207 1.658-2.684zm-7.66-8.316h2.002v5h-2.002v-5zm2.252 8.615c0 .344-.281.625-.625.625h-1.25c-.345 0-.626-.281-.626-.625v-1.239c0-.344.281-.625.626-.625h1.25c.344 0 .625.281.625.625v1.239z"/></svg>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment