Skip to content

Instantly share code, notes, and snippets.

@pablogiralt
Last active May 12, 2022 13:47
Show Gist options
  • Save pablogiralt/4a03786802692949a3199b5601a1d683 to your computer and use it in GitHub Desktop.
Save pablogiralt/4a03786802692949a3199b5601a1d683 to your computer and use it in GitHub Desktop.
Yotpo Loyalty Modals Customization
@font-face {
font-family: 'Proxima Nova';
src: url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/ecef0faef83874e9f6bb9b5e9fa05a0e.woff2') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/a8ea564afc114e1a061cb9ef27a0560b.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Proxima Nova';
src: url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/c8dbfaebe26388f2e76b0d95a25aafb3.woff2') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/3c4a5cdaa683834b9cc535dbcdd75153.woff') format('woff');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Proxima Nova';
src: url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/571f1669e7fa974280ed8388c62eec13.woff2') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/637c241b1d81e95d681796891e1fb1ac.woff') format('woff');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Proxima Nova';
src: url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/693ed635469351bcfbddb890f931a852.woff2') format('woff2'),
url('https://cdn.shopify.com/s/files/1/0581/6814/8141/t/4/assets/7f277b30c2d157a866644f7d861cbd6e.woff') format('woff');
font-weight: 800;
font-style: normal;
font-display: swap;
}
.swell-modal,
.modal-dialog,
#swell-bootstrap .modal-content {
height: 100%;
}
#swell-bootstrap .modal-header {
padding: 24px 24px 0;
/* border-bottom: 1px solid #e5e5e5; */
border-bottom: none !important;
}
#swell-bootstrap.swell-standalone-modal .swell-modal .modal-header .close {
opacity: 1;
cursor: pointer;
background: url(https://cdn.shopify.com/s/files/1/0564/9717/6744/t/21/assets/icon-close.svg) no-repeat 50%;
font-size: 0;
display: block;
width: 30px;
height: 30px;
padding: 5px;
}
.swell-standalone-modal .swell-modal .modal-header {
background-color: white;
color: #373737;
text-align: center;
}
#swell-bootstrap .modal-body {
position: relative;
padding: 16px 24px 24px 24px;
}
#swell-bootstrap .modal-content {
border-radius: 0px;
box-shadow: none;
border: none;
}
#swell-bootstrap .modal-title {
font-weight: 600;
font-stretch: normal;
font-style: normal;
line-height: 2.06 !important;
letter-spacing: 2px;
color: #373737;
margin: 0;
text-align: center;
font-size: 18px;
font-family: 'Proxima Nova',sans-serif;
}
#swell-bootstrap p,
.swell-standalone-modal .swell-modal .modal-body,
body {
margin: 0 0 16px;
font-size: 16px;
line-height: 1.5;
letter-spacing: .6px;
color: #373737;
font-family: 'Proxima Nova',sans-serif;
}
#swell-bootstrap small {
margin: 0 0 16px;
font-size: 14px;
line-height: 1.5;
letter-spacing: .6px;
color: #373737;
font-family: 'Proxima Nova',sans-serif;
}
.swell-campaign-btn {
margin-top: 24px;
}
#swell-bootstrap .btn-default {
color: #fff;
background-color: #373737;
border-color: #373737;
font-family: 'Proxima Nova',sans-serif;
border-radius: 0;
font-weight: 400 !important;
}
#swell-bootstrap .btn-default:hover {
color: #fff;
background-color: #373737;
border-color: #373737;
}
#swell-bootstrap .btn {
cursor: pointer;
user-select: none;
-ms-touch-action: manipulation;
-moz-user-select: none;
-ms-user-select: none;
color: #fff;
background-color: #373737;
font-size: .875rem;
font-weight: 600;
font-style: normal;
line-height: normal;
letter-spacing: 2px;
border: 0;
padding: 0.5rem 1.25rem;
height: 2.5rem;
transition: all .3s ease-in-out;
text-decoration: none;
text-transform: uppercase;
min-width: 8.5rem;
display: -ms-inline-flexbox;
display: inline-flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
}
#swell-bootstrap .form-control {
/* height: auto; */
}
#swell-bootstrap .form-control {
margin-bottom: 16px;
border-radius: 0;
box-shadow: none;
height: 40px;
margin: 0;
padding: 0 10px;
border: 1px solid #b0b0b0;
background-color: #fff;
transition: all .3s ease-in-out;
color: #969696;
font-size: 14px;
font-weight: 400;
font-stretch: normal;
font-style: normal;
line-height: 1.43;
letter-spacing: .4px;
width: 100%;
margin-bottom: 16px;
}
#swell-bootstrap .form-control:focus {
border-color: #000;
outline: 0;
font-size: .875rem;
}
#swell-bootstrap button, #swell-bootstrap input, #swell-bootstrap select, #swell-bootstrap textarea {
height: 40px;
padding: 0 10px;
border: 1px solid #b0b0b0;
background-color: #fff;
color: #969696;
font-size: 14px;
font-weight: 400;
font-stretch: normal;
font-style: normal;
line-height: 1.43;
letter-spacing: .4px;
width: 100%;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
#swell-bootstrap select,
#swell-bootstrap select.form-control {
background-image: url('https://cdn.shopify.com/s/files/1/0564/9717/6744/t/21/assets/chevronDown.svg');
background-repeat: no-repeat;
background-position: calc(100% - 10px) 50%;
background-size: 16px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment