feat: checkou style #7

Merged
Thiago.bronisio merged 1 commits from feature/checkout-style into main 2022-12-18 23:57:16 +00:00
8 changed files with 610 additions and 154 deletions

View File

@ -0,0 +1,3 @@
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="12" height="12" rx="3" fill="#00C8FF"/>
</svg>

After

Width:  |  Height:  |  Size: 156 B

View File

@ -0,0 +1,3 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="17" height="17" rx="2.5" stroke="#C4C4C4"/>
</svg>

After

Width:  |  Height:  |  Size: 176 B

View File

@ -47,6 +47,10 @@ body {
.container-order-form, .container-order-form,
.container-cart { .container-cart {
width: 80%; width: 80%;
@include mq(md, max) {
width: 100%;
}
} }
} }
@ -70,7 +74,7 @@ body {
font-weight: 700; font-weight: 700;
font-size: 24px; font-size: 24px;
line-height: 33px; line-height: 33px;
margin: 16px 0 17px; margin: 16px 0 17px 17px;
letter-spacing: 1px; letter-spacing: 1px;
text-transform: uppercase; text-transform: uppercase;
} }

View File

@ -1,5 +1,5 @@
.checkout-container { .checkout-container {
min-height: 410px; box-sizing: border-box;
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $color-gray4;
font-family: $font-family; font-family: $font-family;
@ -116,6 +116,10 @@
border-radius: 5px; border-radius: 5px;
width: 400px; width: 400px;
@include mq(md, max) {
width: 100%;
}
h3 { h3 {
color: $black-padrao; color: $black-padrao;
margin: 0 0 9.5px 0; margin: 0 0 9.5px 0;
@ -154,21 +158,30 @@
.shipping-data, .shipping-data,
.payment-data, .payment-data,
.client-profile-data { .client-profile-data {
margin-left: 16px; @include mq(md, max) {
width: 100% !important;
box-sizing: border-box;
}
.accordion-group { .accordion-group {
border-radius: 0; border-radius: 8px;
border: 1px solid $color-gray3; border: 1px solid $color-gray3;
font-family: $font-family; font-family: $font-family;
padding: 11px; padding: 16px;
.accordion-heading { .accordion-heading {
span { span {
color: #303030; margin: 8px 0 15px 0px;
margin-bottom: 8px;
padding: 0; padding: 0;
height: 19px;
font-weight: 400;
font-size: 16px;
line-height: 19px;
color: $color-black;
font-family: $font-family-secundary;
i::before { i::before {
fill: #303030; display: none;
} }
} }
@ -186,16 +199,7 @@
.accordion-inner { .accordion-inner {
padding: 0; padding: 0;
.shipping-summary-info {
/* General configurations */
.client-notice {
display: none;
}
.client-first-name p {
margin: 16px 10px 0 0;
label {
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 19px;
@ -203,89 +207,25 @@
color: $color-gray2; color: $color-gray2;
} }
select, .ship-country {
input {
border-radius: 0;
border: 1px solid $color-gray9;
border-radius: 5px;
box-shadow: none;
height: 32px;
width: 100%;
font-weight: 400;
font-size: 14px;
line-height: 19px;
font-family: $font-family;
color: $color-gray10;
}
.help.error {
color: red;
}
}
.box-client-info-pj {
display: none; display: none;
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $color-black;
font-weight: 500;
text-decoration: underline;
}
} }
.state-inscription-box span { /* General configurations */
font-weight: 500;
.client-notice {
display: none;
} }
#opt-in-newsletter { #ship-postalCode {
width: 18px; box-sizing: border-box;
height: 18px; display: flex;
} max-width: 100% !important;
.newsletter-text {
position: relative;
top: 2px;
font-weight: 400px;
line-height: 16px;
font-size: 12px;
font-family: $font-family;
}
.submit {
margin: 45px 0;
button {
border: none;
border-radius: 8px;
background: $color-blue-100;
outline: none;
transition: all 0.2s linear;
width: 100%; width: 100%;
height: 45px;
font-weight: 700; border: solid 1px $color-gray7;
font-size: 14px; border-radius: 8px;
line-height: 19px; color: $black-padrao;
letter-spacing: 0.05em;
text-transform: uppercase;
font-family: $font-family;
color: $color-white;
&:hover {
background: lighten($color-blue-hover, 5);
}
&:active {
background: darken($color-blue-hover, 5);
}
}
}
/* Shipping configurations */
.ship-postalCode small a {
color: #303030;
font-weight: 500;
text-decoration: underline;
} }
.vtex-omnishipping-1-x-deliveryGroup { .vtex-omnishipping-1-x-deliveryGroup {
@ -353,18 +293,280 @@
padding-left: 16px; padding-left: 16px;
} }
.vtex-omnishipping-1-x-addressFormPart1 {
small {
margin: 10px 0 25px 0;
}
a {
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-decoration: underline;
color: $color-black;
font-family: $font-family;
}
}
// PARTE DE ENTREGA //
.vtex-omnishipping-1-x-deliveryGroup {
.vtex-omnishipping-1-x-shippingSectionTitle {
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
color: $color-gray2;
font-family: $font-family;
margin: 0 0 11px 0;
}
#delivery-packages-options {
border: 1px solid $color-gray9;
border-radius: 8px;
}
.shp-lean-option {
//.vtex-omnishipping-1-x-leanShippingIcon {
// width: 12px;
// height: 12px;
// content: url("https://agenciamagma.vteximg.com.br/arquivos/icon-radios-input-M3Academy")
// no-repeat center center;
// flex: none;
// margin-right: 8px;
// .vtex-omnishipping-1-x-svg {
// content: url("https://agenciamagma.vteximg.com.br/arquivos/icon-radios-input-Active-M3Academy")
// no-repeat center center;
// }
// }
.shp-option-text {
border-right: 1px solid $color-gray9;
flex: auto;
.shp-option-text-label {
font-weight: 400;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
color: $color-gray2;
font-family: $font-family;
}
.shp-option-text-time span {
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-gray2;
font-family: $font-family;
}
}
}
.vtex-omnishipping-1-x-optionPrice {
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-gray2;
font-family: $font-family;
}
}
.vtex-omnishipping-1-x-addressForm {
.vtex-omnishipping-1-x-shippingSectionTitle {
font-weight: 700;
margin-bottom: 11px;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
color: $color-gray2;
font-family: $font-family;
}
.vtex-omnishipping-1-x-addressSummary {
border: 1px solid $color-gray9;
border-radius: 8px;
margin-bottom: 0;
.address-summary {
position: relative;
border: 0;
margin-bottom: 0;
.street {
font-weight: 400;
font-size: 12px;
line-height: 16px;
font-family: $font-family;
color: $color-gray2;
}
.neighborhood {
font-weight: 400;
font-size: 12px;
line-height: 16px;
font-family: $font-family;
color: $color-gray2;
}
.city {
font-weight: 400;
font-size: 12px;
line-height: 16px;
font-family: $font-family;
color: $color-gray2;
}
.state-delimiter {
font-weight: 400;
font-size: 12px;
line-height: 16px;
font-family: $font-family;
color: $color-gray2;
}
.state {
font-weight: 400;
font-size: 12px;
line-height: 16px;
font-family: $font-family;
color: $color-gray2;
}
#force-shipping-fields {
position: absolute;
right: 13px;
font-weight: 400;
text-decoration: none;
text-transform: lowercase;
font-size: 12px;
line-height: 16px;
font-family: $font-family;
color: $color-blue-100;
margin-left: 24px;
}
}
}
.vtex-omnishipping-1-x-address {
.ship-number {
width: 100%;
margin-bottom: 15px;
label {
margin-bottom: 3px;
font-weight: 700;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
font-family: $font-family;
color: $color-gray2;
}
input {
box-sizing: border-box;
width: 100%;
border: 1px solid $color-gray9;
border-radius: 8px;
height: 35px;
}
}
.ship-complement {
margin-bottom: 8px;
label {
margin: 15px 0 3px;
font-weight: 700;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
font-family: $font-family;
color: $color-gray2;
}
input {
margin-bottom: 8px;
box-sizing: border-box;
width: 100%;
border: 1px solid $color-gray9;
border-radius: 8px;
height: 35px;
}
}
.ship-receiverName {
label {
margin-bottom: 3px;
font-weight: 700;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
font-family: $font-family;
color: $color-gray2;
}
input {
box-sizing: border-box;
width: 100%;
border: 1px solid $color-gray9;
border-radius: 8px;
height: 35px;
}
}
}
}
.vtex-omnishipping-1-x-submitPaymentButton {
margin: 0;
button {
width: 100%;
background-color: $color-blue-100;
color: $color-white;
font-family: $font-family;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
margin-bottom: 28px;
border-radius: 8px;
&:hover {
background-color: $color-blue-hover;
}
&:active {
background-color: $color-blue-hover;
border: none;
}
}
}
.vtex-omnishipping-1-x-summaryChange { .vtex-omnishipping-1-x-summaryChange {
border-color: #303030; border-color: #303030;
color: #303030; color: #303030;
} }
.vtex-omnishipping-1-x-deliveryChannelsToggle { .vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac; background-color: $color-white;
border: 1px solid #d8c8ac; border: 1px solid $color-black;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
border-radius: 100px;
text-transform: uppercase;
} }
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50); font-weight: 400;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
color: $color-roxo;
font-family: $font-family;
}
.shp-method-option-text {
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
color: $color-roxo;
font-family: $font-family;
} }
} }
} }

View File

@ -6,7 +6,6 @@
.cart-template { .cart-template {
font-family: $font-family; font-family: $font-family;
margin: 0 !important;
@include mq(md, max) { @include mq(md, max) {
padding: 0 0; padding: 0 0;
@ -28,6 +27,29 @@
border-right: none; border-right: none;
border-radius: 0; border-radius: 0;
} }
@include mq(sm, max) {
height: 91px;
}
.cart-items {
thead {
@include mq(md, max) {
.item-remove {
display: none;
}
.product {
display: none;
}
.product-price {
display: none;
}
.quantity {
display: none;
}
}
}
}
} }
.cart-fixed.affix { .cart-fixed.affix {
@ -114,6 +136,9 @@
.cart-items { .cart-items {
.product-item { .product-item {
padding: 16px 0; padding: 16px 0;
@include mq(md, max) {
margin: 0;
}
} }
th { th {
@ -148,9 +173,8 @@
max-width: 60px !important; max-width: 60px !important;
margin: 0 16px 16px 0; margin: 0 16px 16px 0;
@include mq(sm, max) { @include mq(sm, min) {
height: 72px; margin-top: 16px;
width: auto;
} }
} }
} }
@ -172,14 +196,14 @@
color: $black-padrao; color: $black-padrao;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
@include mq(md, max) {
margin-left: 24px;
}
&:hover { &:hover {
color: darken($color-blue, 10); color: darken($color-blue, 10);
text-decoration: none; text-decoration: none;
} }
@media (max-width: 490px) {
margin-left: 23px;
}
} }
.brand, .brand,
@ -219,10 +243,14 @@
@include mq(md, max) { @include mq(md, max) {
min-width: 78px; min-width: 78px;
} }
@media (max-width: 490px) { @include mq(sm, max) {
position: absolute; text-align: right;
bottom: 0; position: relative;
right: 0; top: -50px;
float: right;
margin-right: 5px;
height: 38px;
padding: 0;
} }
span.list-price { span.list-price {
@ -256,8 +284,10 @@
position: relative; position: relative;
top: 5px; top: 5px;
@media (max-width: 490px) { @include mq(sm, max) {
margin-left: 84px !important; margin-left: 84px !important;
position: relative;
top: -58px;
} }
input { input {
@ -356,6 +386,11 @@
i { i {
height: 10px; height: 10px;
width: 10px; width: 10px;
@include mq(sm, max) {
position: relative;
top: 6px;
}
} }
} }
@ -583,9 +618,10 @@
color: red; color: red;
font-size: 12px; font-size: 12px;
position: absolute; position: absolute;
left: 0; left: 0px;
width: 100%; width: 100%;
top: 17px; top: 81px;
right: 0px;
} }
} }
} }

View File

@ -4,8 +4,200 @@ body .container-main.container-order-form .orderform-template.active {
margin-left: unset; margin-left: unset;
margin-right: 0; margin-right: 0;
float: right; float: right;
@include mq(md, max) {
width: 100%;
padding: 0 16px;
}
.cart-fixed {
h2 {
border: 1px solid $color-gray5;
border-radius: 8px 8px 0 0;
border-bottom: none;
box-sizing: border-box;
padding: 24px 0px 34px 17px;
font-weight: 400;
font-size: 16px;
line-height: 19px;
color: $color-black;
text-align: start;
font-family: $font-family-secundary;
}
.summary-cart-template-holder {
.cart {
border: 1px solid $color-gray5;
border-top: none;
width: 100%;
height: 60px;
border-bottom: none;
border-radius: 0;
margin-bottom: 0;
.cart-items {
li {
position: relative;
height: 60px;
a img {
height: 60px;
width: 60px;
}
.product-name {
display: flex;
align-items: center;
font-weight: 400;
font-size: 12px;
line-height: 14px;
font-family: $font-family-secundary;
color: $black-padrao;
}
.quantity {
display: none;
}
.description {
.shipping-date {
display: none;
}
.price {
position: relative;
bottom: 40px;
right: 0px;
@media screen and (min-width: 1440px) and (max-width: 2499px) {
bottom: 0;
right: 0;
}
}
}
}
}
}
}
#go-to-cart-button {
border: 1px solid $color-gray5;
border-top: none;
width: 100%;
padding: 0px 17px 10px;
box-sizing: border-box;
display: flex;
justify-content: end;
margin-top: 19px;
small {
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-align: right;
text-decoration-line: underline;
font-family: $font-family;
color: $black-padrao;
}
}
.summary-template-holder {
padding-top: 0;
.summary {
border: 1px solid $color-gray5;
box-sizing: border-box;
border-top: none;
border-radius: 0 0 8px 8px;
.summary-totalizers {
.accordion-group {
.accordion-body {
.accordion-inner {
.table {
.totalizers-list {
.Items {
.info {
font-weight: 400;
font-size: 14px;
line-height: 19px;
box-sizing: border-box;
padding: 25px 17px;
font-family: $font-family;
color: $color-gray2;
}
.monetary {
font-weight: 400;
font-size: 14px;
line-height: 19px;
box-sizing: border-box;
padding: 25px 17px;
font-family: $font-family;
color: $color-gray2;
}
}
.Discounts {
border: 1px solid $color-gray5;
border-left: none;
border-right: none;
.info {
font-weight: 400;
font-size: 14px;
line-height: 19px;
box-sizing: border-box;
padding: 25px 17px;
font-family: $font-family;
color: $color-gray2;
}
.monetary {
font-weight: 400;
font-size: 14px;
line-height: 19px;
box-sizing: border-box;
padding: 25px 17px;
font-family: $font-family;
color: $color-gray2;
}
}
}
tfoot {
.info {
font-weight: 700;
font-size: 18px;
line-height: 25px;
box-sizing: border-box;
padding: 25px 0 8px 17px;
font-family: $font-family;
color: $color-black;
}
.monetary {
font-weight: 700;
font-size: 18px;
line-height: 25px;
box-sizing: border-box;
padding: 25px 17px 8px 0;
font-family: $font-family;
color: $color-black;
}
}
}
}
}
}
}
}
}
}
} }
.orderform-template-holder { .orderform-template-holder {
width: 66.1132%; width: 66.1132%;
@include mq(md, max) {
width: 100%;
padding: 0 16px;
margin-bottom: 16px;
}
} }
} }

View File

@ -10,25 +10,38 @@
} }
&-title { &-title {
font-size: 20px; font-weight: 700;
font-size: 18px;
line-height: 25px;
margin-bottom: 0;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
text-transform: uppercase;
color: $black-padrao;
font-family: $font-family;
}
&-message {
display: none;
} }
&-links { &-links {
display: flex;
justify-content: center;
.link-choose-products { .link-choose-products {
background: $color-black; width: 250px;
border: none; border-radius: inherit;
border-radius: 5px; border: 1px solid $black-padrao;
transition: ease-in 0.22s all; background: $color-white;
outline: none; color: $color-black;
font-family: $font-family; font-weight: 400;
font-style: normal;
font-weight: 500;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
text-align: center; text-align: center;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase; text-transform: uppercase;
font-family: $font-family-secundary;
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten($color-black, 5);

View File

@ -22,6 +22,7 @@ $color-gray7: #c4c4c4;
$color-gray8: #989898; $color-gray8: #989898;
$color-gray9: #e0e0e0; $color-gray9: #e0e0e0;
$color-gray10: #bdbdbd; $color-gray10: #bdbdbd;
$color-gray11: #808080;
$color-blue: #4267b2; $color-blue: #4267b2;
$color-blue-100: #00c8ff; $color-blue-100: #00c8ff;
@ -29,14 +30,16 @@ $color-blue-hover: #01addd;
$color-green: #4caf50; $color-green: #4caf50;
$color-roxo: #41115d;
/* Grid breakpoints */ /* Grid breakpoints */
$grid-breakpoints: ( $grid-breakpoints: (
xs: 0, xs: 0,
cstm: 400, cstm: 400,
sm: 576px, sm: 576px,
md: 768px, md: 1025px,
lg: 992px, lg: 2500px,
xl: 1200px, xl: 2501px,
) !default; ) !default;
$z-index: ( $z-index: (