feat: tabela das transportadoras terminada e responsiva

This commit is contained in:
Adilson Fernando Neves Ornellas 2023-01-27 00:44:54 -03:00
parent fa6a770735
commit 32629e54a2
3 changed files with 220 additions and 1 deletions

View File

@ -136,7 +136,6 @@
"rich-text#titleCep", "rich-text#titleCep",
"shipping-simulator" "shipping-simulator"
// "share#default" // "share#default"
] ]
}, },
"shipping-simulator":{ "shipping-simulator":{

View File

@ -229,6 +229,12 @@
width: 409px; width: 409px;
height: 49px; height: 49px;
} }
@media (max-width: 560px) {
.shippingContainer {
width: 296px;
margin-bottom: 40px;
}
}
.shippingContainer :global(.vtex-address-form__postalCode) { .shippingContainer :global(.vtex-address-form__postalCode) {
display: flex; display: flex;
padding: 0%; padding: 0%;
@ -238,6 +244,11 @@
width: 280px; width: 280px;
height: 49px; height: 49px;
} }
@media (max-width: 560px) {
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) {
width: 247px;
}
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) :global(.vtex-input__label) { .shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-input) :global(.vtex-input__label) {
display: none; display: none;
} }
@ -260,6 +271,12 @@
position: absolute; position: absolute;
right: -57px; right: -57px;
} }
@media (max-width: 560px) {
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-address-form__postalCode-forgottenURL) {
top: 45px;
right: -4px;
}
}
.shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-address-form__postalCode-forgottenURL) :global(.vtex__icon-external-link) { .shippingContainer :global(.vtex-address-form__postalCode) :global(.vtex-address-form__postalCode-forgottenURL) :global(.vtex__icon-external-link) {
display: none; display: none;
} }
@ -281,3 +298,95 @@
color: #ffffff; color: #ffffff;
padding: 0; padding: 0;
} }
.shippingTable .shippingTableHead {
display: block;
}
.shippingTable .shippingTableHead .shippingTableRow {
display: flex;
margin-left: 7px;
}
.shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryName {
width: 108px;
text-transform: uppercase;
text-align: start;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #202020;
}
.shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryEstimate {
display: flex;
order: 1;
text-transform: uppercase;
width: 136px;
text-align: start;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #202020;
}
.shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryPrice {
text-transform: uppercase;
font-size: 0;
width: 62px;
text-align: start;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
line-height: 19px;
color: #202020;
}
.shippingTable .shippingTableHead .shippingTableRow .shippingTableHeadDeliveryPrice::after {
content: "FRETE";
font-size: 14px;
}
.shippingTable .shippingTableHead .shippingTableBody {
display: block;
}
.shippingTable .shippingTableRadioBtn {
display: none;
}
.shippingTable .shippingTableBody .shippingTableRow {
display: flex;
flex-direction: row;
}
.shippingTable .shippingTableBody .shippingTableCellDeliveryName {
width: 108px;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #afafaf;
}
.shippingTable .shippingTableBody .shippingTableCellDeliveryPrice {
width: 62px;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #afafaf;
}
.shippingTable .shippingTableBody .shippingTableCellDeliveryEstimate {
width: 136px;
display: flex;
order: 1;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #afafaf;
}

View File

@ -209,6 +209,10 @@
position: relative; position: relative;
width: 409px; width: 409px;
height: 49px; height: 49px;
@media (max-width: 560px) {
width: 296px;
margin-bottom: 40px;
}
:global(.vtex-address-form__postalCode) { :global(.vtex-address-form__postalCode) {
display: flex; display: flex;
padding: 0%; padding: 0%;
@ -216,6 +220,9 @@
:global(.vtex-input) { :global(.vtex-input) {
width: 280px; width: 280px;
height: 49px; height: 49px;
@media (max-width: 560px) {
width: 247px;
}
:global(.vtex-input__label) { :global(.vtex-input__label) {
display: none; display: none;
} }
@ -238,6 +245,10 @@
color: #000000; color: #000000;
position: absolute; position: absolute;
right: -57px; right: -57px;
@media (max-width: 560px) {
top: 45px;
right: -4px;
}
:global(.vtex__icon-external-link) { :global(.vtex__icon-external-link) {
display: none; display: none;
} }
@ -262,3 +273,103 @@
} }
} }
} }
.shippingTable {
// max-width: 326px;
.shippingTableHead {
display: block;
.shippingTableRow {
display: flex;
margin-left: 7px;
.shippingTableHeadDeliveryName {
width: 108px;
text-transform: uppercase;
text-align: start;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #202020;
}
.shippingTableHeadDeliveryEstimate{
display: flex;
order: 1;
text-transform: uppercase;
width: 136px;
text-align: start;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #202020;
}
.shippingTableHeadDeliveryPrice{
text-transform: uppercase;
font-size: 0;
width: 62px;
text-align: start;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
line-height: 19px;
color: #202020;
}
.shippingTableHeadDeliveryPrice::after{
content: "FRETE";
font-size: 14px;
}
}
.shippingTableBody {
display: block;
}
}
.shippingTableRadioBtn {
display: none;
}
.shippingTableBody {
.shippingTableRow {
display: flex;
flex-direction: row;
}
.shippingTableCellDeliveryName {
width: 108px;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #afafaf;
}
.shippingTableCellDeliveryPrice {
width: 62px;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #afafaf;
}
.shippingTableCellDeliveryEstimate {
width: 136px;
display: flex;
order: 1;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
display: flex;
align-items: center;
color: #afafaf;
}
}
}