Skip to content

Commit

Permalink
search fix najetí ven
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciframa committed Dec 24, 2024
1 parent 208e0f1 commit d5a4eb4
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions Fitmo_frontend/src/views/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,29 +118,6 @@
<img src="../../public/assets/logo.png" alt="Fitmo logo" />
</a>
<div class="content_wrapper__middle__search_wrapper">
<div class="search__items" v-show="this.search !== ''">
<div class="search__items__header"></div>
<div class="search__items__wrapper">
<div class="col-6-xs search__items__wrapper__categories">
<div class="col-5-xs"></div>
<div class="col-7-xs"></div>
</div>
<div class="col-6-xs search__items__wrapper__products">
<div class="search__items__wrapper__products__header">
Produkty
</div>
<div class="search__items__wrapper__products__items">
<Product
v-for="product in searchResults"
sizes="col-4-xs "
:products="product"
:key="product.id"
/>
</div>
</div>
</div>
</div>

<div class="search">
<div class="search__wrapper">
<input v-model="search" type="search" name="search" id="search" />
Expand All @@ -151,7 +128,30 @@
/>
</label>
</div>
<div class="search__items">
<div class="search__items__header"></div>
<div class="search__items__wrapper">
<div class="col-6-xs search__items__wrapper__categories">
<div class="col-5-xs"></div>
<div class="col-7-xs"></div>
</div>
<div class="col-6-xs search__items__wrapper__products">
<div class="search__items__wrapper__products__header">
Produkty
</div>
<div class="search__items__wrapper__products__items">
<Product
v-for="product in searchResults"
sizes="col-4-xs "
:products="product"
:key="product.id"
/>
</div>
</div>
</div>
</div>
</div>

<div class="content_wrapper__right">
<div class="content_wrapper__right__icons">
<div class="content_wrapper__right__icons__wrapper">
Expand Down Expand Up @@ -520,7 +520,7 @@ header {
padding: 0 20px;
background: transparent;
z-index: 999;
position: relative;
//position: relative;
&__wrapper {
z-index: 10;
Expand All @@ -529,24 +529,25 @@ header {
position: relative;
}
&:focus-within .search__items {
display: flex;
}
&__items {
display: none;
position: absolute;
background: #fff;
top: -3rem;
left: -3rem;
right: 0;
// display: none;
height: 1500px;
z-index: 99;
z-index: 3;
/* margin-right: 20px; */
border-radius: 16px 0 0 16px;
overflow: hidden;
flex-direction: column;
&.show {
display: block;
}
&__header {
width: 100%;
min-height: 8rem;
Expand Down

0 comments on commit d5a4eb4

Please sign in to comment.