feature/development #1

Merged
ManuelaLuanaSchumackerTavares merged 15 commits from feature/development into main 2022-12-07 22:53:14 +00:00
10 changed files with 270 additions and 55 deletions
Showing only changes of commit 0cf7b50c8a - Show all commits

View File

@ -18,6 +18,7 @@
@import "./partials/header"; @import "./partials/header";
@import "./partials/menu"; @import "./partials/menu";
@import "./partials/search";
@import "./partials/barraDeVantagens"; @import "./partials/barraDeVantagens";
@import "./partials/footer"; @import "./partials/footer";
@import "./partials/breadcrumb"; @import "./partials/breadcrumb";

View File

@ -26,43 +26,6 @@
} }
} }
.busca {
display: flex;
align-items: center;
margin: 0;
legend,
label,
select {
display: none;
}
.fulltext-search-box {
flex: 1;
height: 23px;
padding: 0;
border: 0;
background: transparent;
color: $color-white;
font-size: 10px;
line-height: 12px;
outline: 0;
}
.btn-buscar {
width: 23px;
height: 23px;
padding: 0;
border: 0;
outline: 0;
font-size: 0;
background-color: transparent;
@extend .sprite;
@extend .sprite-search-icon;
}
}
.user-items { .user-items {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -1,5 +1,6 @@
.menu { .menu {
align-self: stretch; align-self: stretch;
&__button { &__button {
padding: 0; padding: 0;
border: 0; border: 0;
@ -11,20 +12,85 @@
} }
} }
.menu-header {
&__top-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
}
&__text {
display: flex;
align-items: center;
font-size: 12px;
line-height: 15px;
color: $color-grey2;
}
i {
margin-right: 10px;
}
&__close-button {
padding: 0;
border: 0;
outline: 0;
background: transparent;
}
&__search-box {
background: $color-black;
.busca {
padding: 16px;
}
}
}
.main-menu { .main-menu {
height: 100%; height: 100%;
@include mq(lg, max) {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: translateX(-100%);
z-index: map-get($z-index, Level-5);
background: $color-white;
}
&__departments { &__departments {
display: flex; display: flex;
margin: 0; margin: 0;
@include mq(lg, max) {
flex-direction: column;
flex: 1;
position: relative;
overflow: hidden auto;
}
@include mq(lg, min) {
height: 100%; height: 100%;
} }
}
&__department { &__department {
display: flex; display: flex;
align-items: center; align-items: center;
margin-right: 40px;
@include mq(lg, max) {
border-bottom: 1px solid $color-grey1;
}
@include mq(lg, min) { @include mq(lg, min) {
margin-right: 40px;
&:hover { &:hover {
.main-menu__department-link { .main-menu__department-link {
font-weight: 700; font-weight: 700;
@ -46,6 +112,15 @@
line-height: 15px; line-height: 15px;
color: $color-white; color: $color-white;
@include mq(lg, max) {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 20px 16px;
color: $color-black;
}
@include mq(lg, min) { @include mq(lg, min) {
&::after { &::after {
content: attr(tittle); content: attr(tittle);
@ -57,14 +132,40 @@
} }
} }
} }
&__account-link {
display: flex;
align-items: center;
justify-content: center;
height: 64px;
line-height: 12px;
font-size: 10px;
color: $color-white;
background: $color-black;
i {
margin-right: 16px;
}
}
} }
.submenu { .submenu {
position: absolute; position: absolute;
width: 100%;
@include mq(lg, max) {
top: 0;
left: 100%;
height: 100%;
overflow: auto;
padding-bottom: 34px;
background: $color-white;
}
@include mq(lg, min) {
top: 100%; top: 100%;
left: 0; left: 0;
top: calc(100% + 32px); top: calc(100% + 32px);
width: 100%;
padding: 30px 0 43px; padding: 30px 0 43px;
z-index: map-get($z-index, Level-4); z-index: map-get($z-index, Level-4);
background: rgba($color-white, 0.95); background: rgba($color-white, 0.95);
@ -72,6 +173,7 @@
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
}
&::before { &::before {
content: ""; content: "";
@ -84,16 +186,49 @@
background: transparent; background: transparent;
} }
.container {
@include mq(lg, max) {
padding: 0 16px;
}
}
&__return-button {
display: flex;
align-items: center;
width: 100%;
margin-bottom: 34px;
padding: 16px;
border: 0;
border-bottom: 1px solid $color-grey;
outline: 0;
text-align: left;
background: transparent;
i {
margin-right: 8px;
}
}
&__title { &__title {
margin: 0 0 8px; margin: 0 0 8px;
font-size: 20px; font-size: 20px;
line-height: 24px; line-height: 24px;
@include mq(lg, max) {
font-size: 12px;
line-height: 14px;
text-decoration-line: underline;
color: $color-blue;
}
} }
&__categories-wrapper { &__categories-wrapper {
margin-bottom: 16px;
@include mq(lg, min) {
display: flex; display: flex;
margin-bottom: 8px; margin-bottom: 8px;
} }
}
&__categories { &__categories {
margin-right: 30px; margin-right: 30px;

View File

@ -0,0 +1,36 @@
.busca {
display: flex;
align-items: center;
margin: 0;
legend,
label,
select {
display: none;
}
.fulltext-search-box {
flex: 1;
height: 23px;
padding: 0;
border: 0;
background: transparent;
color: $color-white;
font-size: 10px;
line-height: 12px;
outline: 0;
}
.btn-buscar {
width: 23px;
height: 23px;
padding: 0;
border: 0;
outline: 0;
font-size: 0;
background-color: transparent;
@extend .sprite;
@extend .sprite-search-icon;
}
}

View File

@ -13,6 +13,8 @@ $font-height: 1.5;
$color-black: #000; $color-black: #000;
$color-white: #fff; $color-white: #fff;
$color-blue: #00c8ff; $color-blue: #00c8ff;
$color-grey1: #e0e0e0;
$color-grey2: #828282;
$color-grey: #333333; $color-grey: #333333;
// Grid breakpoints // Grid breakpoints
@ -39,5 +41,5 @@ $z-index: (
// avise-me: 5, // avise-me: 5,
// scroll-top: 7, // scroll-top: 7,
// header-fixo: 10, // header-fixo: 10,
// popup-user: 15,,,,,, // popup-user: 15,,,,,,,,
) !default; ) !default;

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

View File

@ -1,9 +1,34 @@
<nav class="main-menu"> <nav class="main-menu">
<div class="menu-header">
<div class="menu-header__top-wrapper">
<div class="menu-header__text">
<i class="sprite sprite-lock-icon"></i>
COMPRA 100% SEGURA
</div>
<button class="menu-header__close-button">
<i class="sprite sprite-close-menu-icon"></i>
</button>
</div>
<div class="menu-header__search-box">
<vtex.cmc:fullTextSearchBox/>
</div>
</div>
<ul class="main-menu__departments"> <ul class="main-menu__departments">
<li class="main-menu__department"> <li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">LOREM IPSUM</a> <a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
<div class="submenu"> <div class="submenu">
<button class="submenu__return-button">
<i class="sprite sprite-menu-left-arrow-icon"></i>
VOLTAR
</button>
<div class="container"> <div class="container">
<h2 class="submenu__title">LOREM IPSUM</h2> <h2 class="submenu__title">LOREM IPSUM</h2>
@ -54,11 +79,64 @@
</li> </li>
<li class="main-menu__department"> <li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">LOREM IPSUM</a> <a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li> </li>
<li class="main-menu__department"> <li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">LOREM IPSUM</a> <a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li>
<li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li>
<li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li>
<li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li>
<li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li>
<li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li>
<li class="main-menu__department">
<a class="main-menu__department-link" href="#" title="LOREM IPSUM">
LOREM IPSUM
<i class="sprite sprite-menu-mobile-arrow-icon"></i>
</a>
</li> </li>
</ul> </ul>
<a class="main-menu__account-link" href="/account">
<i class="sprite sprite-user-icon"></i>
ENTRAR / MEUS PEDIDOS
</a>
</nav> </nav>