Skip to content

Commit

Permalink
release/4.5.0 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerfinnell authored Aug 16, 2022
1 parent 08c9d6f commit 5f202fa
Show file tree
Hide file tree
Showing 50 changed files with 1,676 additions and 190 deletions.
2 changes: 1 addition & 1 deletion data/templates/recurring-services-form.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "46c15e72-102c-4dfa-8855-f19919eab18f",
"id": "02ff50b2-f55d-4dbe-b274-e265338f9bcc",
"license": [
"plus",
"professional",
Expand Down
11 changes: 9 additions & 2 deletions includes/core/assets/css/admin/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1729,8 +1729,8 @@ select.simpay-currency-symbol {
}
}

.simpay-instant-payouts-notice {
color: #000;
.simpay-form-settings-notice {
color: #1d2327;
position: relative;
margin: 18px 18px 0;
padding: 14px;
Expand Down Expand Up @@ -1807,3 +1807,10 @@ select.simpay-currency-symbol {
#wpsp-api-keys-row-hide {
display: none;
}

/**
* Preview button
*/
.post-type-simple-pay #post-preview:not(.simpay-preview-button) {
display: none;
}
98 changes: 97 additions & 1 deletion includes/core/assets/css/frontend/public.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ $error-text-color: #eb1c26;
}
}

html body.simpay-payment-page,
html body.simpay-form-preview {
font-family: $base-font;
margin: 50px;
Expand Down Expand Up @@ -114,7 +115,7 @@ html body.simpay-form-preview {

&-actions {
display: flex;
justify-content: space-around;
justify-content: center;
flex-wrap: wrap;
}

Expand Down Expand Up @@ -178,3 +179,98 @@ html body.simpay-form-preview {
max-width: 400px;
}
}

html body.simpay-payment-page {
display: flex;
justify-content: center;
align-items: center;

.simpay-payment-page-wrap {
margin: 0 auto;
width: calc(400px + 4rem);
padding: 2rem;
background: white;
border-radius: 4px;
box-shadow: 0 25px 50px -12px rgb(0, 0, 0, 0.25);
}

.simpay-payment-page-wrap img {
max-width: 100%;
max-height: 125px;
margin: 0 auto 2rem;
display: block;
}

.simpay-embedded-heading:not(.simpay-heading) {
display: none;
}

.simpay-payment-page-footer {
text-align: center;
font-family: $base-font;
font-size: 15px;
color: rgba(255, 255, 255, 0.85);
line-height: 1.45;
margin: 2rem auto 1rem;
max-width: 440px;
border-radius: 4px;
}

.simpay-payment-page-powered-by {
color: #fff;
text-align: center;
font-family: $base-font;
font-size: 14px;
text-decoration: none;
margin-top: 1rem;
display: block;
align-items: center;
opacity: 0.65;

&:hover {
opacity: 1;
}

img {
vertical-align: middle;
width: 200px;
margin-left: 10px;
}
}

.simpay-payment-receipt-wrap {
max-width: 400px;

p {
color: $base-text-color;
font-size: 15px;
font-family: $base-font;
line-height: 1.5;
}

p:only-child {
margin: 0;
}

p:first-of-type {
margin-top: 0;
}

p:last-of-type {
margin-bottom: 0;
}
}

// Set width to 90vw when less than 500px.
@media (max-width: 500px) {
margin: 20px;

.simpay-payment-page-wrap {
min-width: 0;
width: 90vw;
padding: 1.5rem;
min-width: 0;
}
}

}
2 changes: 1 addition & 1 deletion includes/core/assets/css/simpay-admin.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/core/assets/css/simpay-admin.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/core/assets/css/simpay-public.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5f202fa

Please sign in to comment.