Peach Payment Copy and Pay UI is so Bad. Here is the fix in css
Find a file
2023-12-26 19:33:08 +00:00
README.md ♻️ remove tw references 2023-12-26 19:33:08 +00:00

Copy and Pay CSS for Peach Payment

Payment UI for Peach Payment needs improvement. This is now to change the UI.

From this:

Screenshot 2023-12-26 at 23 12 56

To this:

Screenshot 2023-12-26 at 23 13 28

First of all, configure the style so it is plain.

var wpwlOptions = {style: "plain"}

Then, Copy and Paste this into your CSS area!

/* Reset styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: "Inter var", system-ui, sans-serif; 
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-variation-settings: normal;
  font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Base styles */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

/* Custom styles */

:root {
   --bg-opacity: 1;
   --ring-offset-width: 0px;
   --ring-offset-color: #fff;
   --ring-opacity: 1;
   --text-opacity: 1;
   --shadow-color: rgb(0 0 0 / .05);
   --shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
   --shadow-colored: 0 1px 2px 0 var(--shadow-color);
   --ring-offset-shadow: var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color);
   --ring-shadow: var(--ring-inset) 0 0 0 calc(1px + var(--ring-offset-width)) var(--ring-color);
   --ring-inset: inset;
   --ring-color: rgb(209 213 219 / var(--ring-opacity));
}

.wpwl-label {
    box-sizing: border-box;
    border-width: 0px;
    border-style: solid;
    border-color: rgb(229, 231, 235);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: rgb(17 24 39 / var(--text-opacity));
}

.wpwl-control {
    font-variation-settings: normal;
    box-sizing: border-box;
    border-style: solid;    
    font-family: inherit;
    font-weight: inherit;
    margin: 0px;
    appearance: none;
    background-color: rgb(255, 255, 255);
    border-color: rgb(107, 114, 128);
    font-size: 1rem;
    line-height: 1.5rem;
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border-width: 0px;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: rgb(17 24 39 / var(--text-opacity));
    box-shadow: var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000);
}

button {
    user-select: none;
    font-size: .8125rem;
    line-height: 1.25rem;
    color: rgb(15 23 42 / var(--text-opacity));
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
    pointer-events: auto;
    border-radius: .375rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--ring-offset-shadow),var(--ring-shadow),var(--shadow, 0 0 #0000);
}

.wpwl-control-brand {
   display: none;
 }