feature/body #2

Merged
YahToth merged 6 commits from feature/body into main 2022-12-19 08:58:30 +00:00
2 changed files with 766 additions and 241 deletions
Showing only changes of commit 2539faaf04 - Show all commits

View File

@ -1,16 +1,20 @@
.checkout-container {
.client-pre-email {
border-color: $color-gray4;
border-color: $color-black-500;
font-family: $font-family;
padding-top: 8px;
.link-cart {
a {
color: $color-black;
color: $color-black-500;
font-size: 14px;
font-weight: 400;
line-height: 16px;
text-transform: uppercase;
&:hover {
color: lighen($color-black, 10);
cursor: default;
color: lighen($color-black-100, 10);
}
}
}
@ -22,43 +26,70 @@
justify-content: center;
h3 {
margin-bottom: 16px;
margin: 0 0 20px 0;
span {
color: #303030;
font-size: 24px;
font-family: $font-family-secundary;
font-size: 20px;
font-weight: 400;
line-height: 23px;
text-transform: uppercase;
color: $color-black-500;
}
small {
color: $color-gray4;
font-family: $font-family-secundary;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
color: $color-black-500;
padding: 0;
}
}
}
.client-email {
margin: 0 0 16px;
display: flex;
flex-direction: column;
margin: 0 0 24px;
max-width: 562px;
width: 100%;
input {
box-shadow: none;
color: $color-black;
color: $color-black-500;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
font-size: 12px;
line-height: 16px;
padding: 0 14px;
height: 50px;
border: 1px solid $color-black-500;
box-sizing: border-box;
border-radius: 5px;
border-radius: 5px 0 0 5px;
max-width: 443px;
width: 100%;
@media (max-width: 490px) {
width: auto;
}
&::placeholder {
color: $color-black-500;
}
}
button {
background-color: $color-black;
border-radius: 5px;
background-color: $color-blue-100;
border-radius: 0 8px 8px 0;
border: none;
font-family: $font-family;
height: 54px;
right: 0;
font-size: 14px;
line-height: 19px;
font-weight: 700;
color: $color-black-500;
width: 126px;
height: 50px;
right: 0px;
top: 0;
@media (max-width: 490px) {
@ -69,19 +100,30 @@
}
span.help.error {
font-family: $font-family;
font-size: 12px;
line-height: 16px;
font-weight: 700;
color: red;
margin-top: 3px;
}
}
.emailInfo {
padding: 16px;
background-color: $color-white;
border: 1px solid $color-gray4;
border-radius: 0;
padding: 16px 16px 27px;
background-color: $color-white-500;
border: 1px solid $color-black-500;
border-radius: 5px;
max-width: 366px;
width: 100%;
h3 {
color: #303030;
margin: 0 0 8px 0;
font-family: $font-family;
color: $color-black-500;
font-size: 12px;
line-height: 16px;
font-weight: 700;
margin: 0 0 10px 0;
}
ul {
@ -89,11 +131,15 @@
li {
span {
color: $color-black;
font-family: $font-family;
font-size: 12px;
line-height: 16px;
color: $color-black-500;
font-weight: 700;
}
i::before {
color: $color-black;
color: $color-blue-100;
font-size: 1rem;
opacity: 1;
}
@ -101,40 +147,83 @@
}
i::before {
color: $color-black;
color: $color-black-100;
font-size: 6rem;
opacity: 0.5;
}
}
}
.client-profile-data {
.accordion-heading {
.accordion-toggle {
span {
font-size: 0 !important;
&::after {
font-family: $font-family-secundary;
color: $color-black-100;
content: "Identificação";
font-size: 16px;
line-height: 19px;
float: left;
}
}
}
}
}
.shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
border-radius: 8px;
border: 1px solid $color-gray3;
font-family: $font-family;
padding: 16px;
// width: 90.06%;
.accordion-heading {
.accordion-toggle-active {
i::after {
display: none;
}
}
span {
color: #303030;
margin-bottom: 8px;
font-family: $font-family-secundary;
font-size: 16px;
line-height: 18px;
color: $color-black-100;
margin-top: 7px;
margin-bottom: 25px;
padding: 0;
i::before {
fill: #303030;
content: "";
}
i::after {
content: "";
display: block;
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/lapisM3Academy.png");
background-size: 100% 100%;
background-repeat: no-repeat;
width: 20px;
height: 20px;
float: right;
cursor: pointer;
}
}
a {
display: flex;
opacity: 0;
align-items: center;
background-color: #303030;
border-radius: 8px;
border: none;
color: $color-white;
display: flex;
color: $color-white-500;
justify-content: center;
padding: 6px 5px 6px 8px;
}
@ -143,34 +232,220 @@
.accordion-inner {
padding: 0;
p {
input {
box-sizing: border-box;
width: 100%;
max-width: 100%;
}
}
.box-step {
.shipping-summary-info {
font-family: $font-family;
font-size: 14px;
line-height: 19px;
color: $color-gray2;
}
}
/* General configurations */
.client-notice {
color: $color-black;
display: none;
// &::after {
// position: absolute;
// content: "Identificação";
// font-family: $font-family-secundary;
// font-size: 16px;
// line-height: 19px;
// color: $color-black-500;
// top: 0;
// }
}
.ship-country {
display: none;
}
.ship-postalCode {
display: flex;
flex-direction: column;
label {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 700;
}
input {
border: 1px solid $color-gray8;
border-radius: 8px;
width: 100%;
max-width: 270px;
margin-bottom: 10px;
}
small {
font-family: $font-family;
color: $color-black-100;
font-size: 12px;
line-height: 16px;
text-decoration: underline;
margin: 0;
}
}
p {
font-size: 14px;
line-height: 19px;
font-family: $font-family;
color: $color-gray2;
margin: 0;
padding: 0;
label {
color: $color-black;
font-weight: 500;
// input {
// display: none;
// }
// &.checkbox {
// position: relative;
// padding-left: 26px;
// .newsletter-text {
// &::before {
// position: absolute;
// content: "";
// top: 0;
// left: 0;
// width: 16px;
// height: 16px;
// border: 1px solid $color-gray11;
// border-radius: 3px;
// }
// .newsletter-text:checked + .newsletter-text::before {
// // content: '';
// background: $color-blue-100;
// }
// }
font-family: $font-family;
color: $color-gray2;
font-size: 14px;
line-height: 19px;
font-weight: 400;
}
.btn-go-to-payment {
margin-top: 0;
}
}
select,
input {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
color: $color-black-100;
font-size: 14px;
line-height: 19px;
font-weight: 400;
border-radius: 5px;
border: 1px solid $color-gray8;
box-shadow: none;
padding: 0 12px;
}
p {
[type="checkbox"] {
display: none;
&:checked + .newsletter-text::after {
content: "";
width: 12px;
display: block;
position: absolute;
top: 3px;
border-radius: 3px;
left: 3px;
height: 12px;
background-color: $color-blue-100;
}
}
}
label {
&.checkbox {
position: relative;
padding-left: 26px;
.newsletter-text {
&::before {
position: absolute;
content: "";
border: 1px solid #828282;
border-radius: 3px;
width: 16px;
height: 16px;
top: 0;
left: 0;
}
}
}
}
.input-xlarge {
height: 40px;
margin-bottom: 16px;
}
.input-small {
height: 40px;
margin-bottom: 16px;
}
p.client-first-name,
p.client-document {
width: calc(50% - 15px);
margin-right: 15px;
}
p.client-last-name,
p.client-phone {
width: 50%;
}
.help.error {
display: none !important;
font-family: $font-family;
color: red;
font-size: 12px;
line-height: 16px;
font-weight: 700;
margin: 0;
padding: 0;
}
}
.newsletter {
.newsletter-text {
font-family: $font-family;
color: $color-gray10;
font-size: 12px;
line-height: 16px;
}
}
.box-client-info-pj {
display: none;
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $color-black;
color: $color-black-100;
font-weight: 500;
text-decoration: underline;
}
@ -180,21 +455,24 @@
font-weight: 500;
}
.btn-submit-wrapper {
margin: 0;
}
button.submit {
border: none;
border-radius: 5px;
background: $color-black;
margin-top: 8px;
font-family: $font-family;
color: $color-white-500;
letter-spacing: 0.05px;
font-size: 14px;
line-height: 19px;
font-weight: 700;
width: 100%;
border-radius: 8px;
background: $color-blue-100;
margin: 45px 0 29px 0;
text-transform: uppercase;
outline: none;
transition: all 0.2s linear;
&:hover {
background: lighten($color-black, 5);
}
&:active {
background: darken($color-black, 5);
}
border: none;
}
/* Shipping configurations */
@ -207,53 +485,76 @@
.vtex-omnishipping-1-x-deliveryGroup {
p {
color: #303030;
font-family: $font-family;
color: $color-gray2;
font-size: 14px;
font-weight: 500;
}
.shp-lean {
border: 1px solid $color-gray4;
border-radius: 0;
label {
background-color: $color-white;
box-shadow: none;
color: #303030;
padding: 8px 12px;
svg path {
fill: #d8c8ac;
}
}
line-height: 19px;
font-weight: 700;
padding-bottom: 10px;
}
}
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05px;
font-weight: 700;
padding-bottom: 10px;
}
.vtex-omnishipping-1-x-SummaryItemContent {
align-items: flex-end;
}
.shp-summary-package {
padding-left: 0 !important;
}
.shp-summary-group-info {
border-color: $color-gray4;
border-right: none;
}
.shipping-summary-placeholder {
.link-change-shipping {
display: none;
}
}
.vtex-omnishipping-1-x-addressSummaryActive {
.address-summary {
background: none;
border-color: $color-gray4;
border-radius: 0;
color: #303030;
border: 1px solid $color-gray8;
border-radius: 8px;
padding: 12px;
&::before {
content: "";
display: block;
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/homeM3Academy.png");
background-size: 100% 100%;
background-repeat: no-repeat;
width: 20px;
height: 20px;
float: left;
margin: 8px 9.4px 0 0;
}
@include mq(md, max) {
background-position: 8px 9px;
}
a {
color: #303030;
font-weight: 500;
text-decoration: underline;
font-family: $font-family;
color: $color-blue-100;
font-size: 12px;
line-height: 16px;
font-weight: 400;
text-transform: lowercase;
text-decoration: none;
float: right;
}
}
}
@ -270,20 +571,228 @@
padding-left: 16px;
}
.vtex-omnishipping-1-x-leanShippingText {
border-right: 1px solid $color-gray8;
}
.vtex-omnishipping-1-x-leanShippingTextLabel {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 400;
letter-spacing: 0.05px;
}
.vtex-omnishipping-1-x-option:hover,
.vtex-omnishipping-1-x-leanShippingOptionActive {
background: #f2f2f2;
}
.shp-option-icon {
position: relative;
svg {
display: none;
}
&::before {
display: block;
content: "";
border: 1px solid #828282;
border-radius: 3px;
width: 16px;
height: 16px;
top: 0;
left: 0;
}
}
.shp-lean-option-active .shp-option-icon {
&::after {
display: block;
content: "";
width: 12px;
display: block;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 3px;
height: 12px;
background-color: $color-blue-100;
}
}
.vtex-omnishipping-1-x-addressSummary {
span {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
}
}
.vtex-omnishipping-1-x-address {
label {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
font-weight: 700;
}
.input-large {
border: 1px solid $color-gray8;
border-radius: 8px;
max-width: 294px;
width: 100%;
height: 33px;
padding: 0;
}
.input-xlarge {
max-width: 294px;
width: 100%;
height: 33px;
margin-bottom: 16px;
}
}
.btn-ask-for-geolocation-cta {
color: $color-white-500;
background: $color-blue-100;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
}
.vtex-omnishipping-1-x-warning {
border-color: $color-gray10;
.onda-v1 {
font-family: $font-family;
color: $color-black-500;
font-size: 12px;
line-height: 16px;
}
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
background-color: $color-white-500;
border: 1px solid $color-black-100;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50);
font-family: $font-family;
color: $color-black-100;
text-transform: uppercase;
font-size: 14px;
line-height: 19px;
border-radius: 100px;
}
.vtex-omnishipping-1-x-deliveryOptionInactive {
font-family: $font-family;
color: $color-gray8;
text-transform: uppercase;
font-size: 14px;
line-height: 19px;
border-radius: 100px;
// text-shadow: 1.3px 1px lighten($color-black-100, 50);
}
.vtex-omnishipping-1-x-addressFormPart1 {
}
.ship-number {
.input-mini {
max-width: unset;
width: 90.91%;
height: 33px;
margin-bottom: 15px;
}
}
.ship-complement {
.input-large {
max-width: unset;
width: 90.91%;
height: 33px;
padding: 0 12px;
margin-bottom: 15px;
}
}
.ship-receiverName {
.input-xlarge {
max-width: unset;
width: 90.91%;
height: 33px;
margin-bottom: 15px;
}
}
}
}
}
.hproduct {
.badge {
display: none;
}
img {
transform: rotateY(180deg);
max-width: 60px;
width: 60px;
height: 60px;
}
span {
font-family: $font-family-secundary;
color: $color-black-500;
font-size: 12px;
line-height: 14px;
}
}
.vtex-omnishipping-1-x-address {
div {
display: flex;
flex-direction: column;
label {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 700;
letter-spacing: 0.05px;
margin-bottom: 3px;
}
.input-mini {
width: 100%;
border: 1px solid $color-gray10;
border-radius: 8px;
}
input {
width: 96.42%;
&::placeholder {
display: none;
}
}
}
}

View File

@ -5,21 +5,36 @@ $font-family: "Open Sans", sans-serif;
$font-family-secundary: "Tenor Sans", sans-serif;
/* Colors */
$color-black: #292929;
$color-black-1000: #000;
$color-black: black;
$color-black-500: black;
$color-black-100: #292929;
$color-black-200: #58595b;
$color-black-1000: #000000;
$color-white: #fff;
$color-red-100: #f15a31;
$color-white: white;
$color-white-500: #fff;
$color-white-1000: white;
$color-gray: #6c6c6c;
$color-gray1: #ededed;
$color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-gray6: #c4c4c4;
$color-gray7: #989898;
$color-gray8: #e0e0e0;
$color-gray9: #f2f2f2;
$color-gray10: #808080;
$color-gray12: grey;
$color-blue: #4267b2;
$color-blue-100: #00c8ff;
$color-green: #4caf50;
$color-green2: #298541;
/* Grid breakpoints */
$grid-breakpoints: (
@ -28,7 +43,8 @@ $grid-breakpoints: (
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xl: 1025px,
2xl: 2500px,
) !default;
$z-index: (