fix: Cosertando o css header

This commit is contained in:
Savio Carvalho Moraes 2022-12-14 19:31:12 -03:00
parent 98efe6486d
commit 1ee14528ee
6 changed files with 50 additions and 7 deletions

View File

@ -2,11 +2,12 @@ import CheckoutUI from "./components/CheckoutUI";
import { Container } from "m3-utils"; import { Container } from "m3-utils";
import "slick-carousel"; import "slick-carousel";
import Header from "./components/Header"; import Header from "./components/Header";
import Body from "./components/Body";
import Footer from "./components/Footer"; import Footer from "./components/Footer";
const m3Checkout = new Container({ const m3Checkout = new Container({
appName: "m3-checkout", appName: "m3-checkout",
components: [CheckoutUI, Header, Footer], components: [CheckoutUI, Header, Body, Footer],
}); });
m3Checkout.start(); m3Checkout.start();

View File

@ -0,0 +1,16 @@
export default class Body {
constructor() {
this.init();
}
async init() {
await this.selectors();
}
async selectors() {
this.titleCart = await waitElement(".empty-cart-title");
}
trocaTitle() {
this.titleCart.innerHTML = ``;
}
}

View File

@ -1,5 +1,6 @@
@import "./utils/all"; @import "./utils/all";
@import "./lib/slick"; @import "./lib/slick";
@import "./partials/header"; @import "./partials/header";
@import "./partials/body";
@import "./partials/footer"; @import "./partials/footer";
@import "./checkout/checkout.scss"; @import "./checkout/checkout.scss";

View File

@ -0,0 +1,11 @@
/*#checkoutMainContainer {
width: 100%;
transform: translateY(-50%);
height: 1px;
border-bottom: 1px solid #000000;
}*/
.container-cart {
#cart-title {
display: none !important;
}
}

View File

@ -14,6 +14,8 @@
.container { .container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center;
justify-content: center;
} }
&__address { &__address {
color: $color-gray2; color: $color-gray2;

View File

@ -1,6 +1,14 @@
/* _header.scss */ /* _header.scss */
.headerCheckout { .headerCheckout {
.container { .container {
&::after {
margin-top: 30px;
width: 100%;
transform: translateY(-50%);
height: 1px;
border-bottom: 1px solid #000000;
}
width: auto !important; width: auto !important;
#progressBar { #progressBar {
width: 446px; width: 446px;
@ -60,25 +68,26 @@
} }
li .progress-bar-line-1 { li .progress-bar-line-1 {
position: absolute; position: absolute;
left: 25%; left: 57%;
transform: translateY(-50%); transform: translateY(-50%);
bottom: 5px; bottom: 4px;
width: 100%; width: 212%;
height: 1px; height: 1px;
border-top: 1px solid #000; border-top: 1px solid #000;
} }
li .progress-bar-line-2 { li .progress-bar-line-2 {
position: absolute; position: absolute;
right: 21%; right: 59%;
transform: translateY(-50%); transform: translateY(-50%);
bottom: 5px; bottom: 5px;
width: 100%; width: 242%;
height: 1px; height: 1px;
border-top: 1px solid #000; border-top: 1px solid #000;
} }
} }
} }
&__wrapper { &__wrapper {
margin-top: 30px;
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -92,9 +101,11 @@
} }
&__safeBuy { &__safeBuy {
display: flex;
span { span {
align-items: center; align-items: center;
display: flex; display: flex;
flex-direction: row;
text-transform: uppercase; text-transform: uppercase;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
@ -104,7 +115,8 @@
color: $color-gray; color: $color-gray;
} }
i { img {
width: 10%;
margin-right: 8px; margin-right: 8px;
} }
} }