Skip to content

Commit

Permalink
Merge pull request #420 from RedeMapas/feature/botao-aplicar-filtros-…
Browse files Browse the repository at this point in the history
…eventos

Coloquei botao de aplicar filtros para mobile
  • Loading branch information
lpirola authored Aug 28, 2024
2 parents 6d16e9a + 8617e0d commit dcd297a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/modules/Search/components/search-filter/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
</button>
</div>
<div :class="['search-filter__filter', {'show': showMenu}]">
<div class="content">
<a href="#main-app" class="search-filter__filter--close button button--icon" @click="toggleFilter()"><?= i::_e('Fechar') ?> <mc-icon name="close"></mc-icon></a>
<slot><?= i::__('Filtrar'); ?></slot>
<div class="content button--filter--bottom">
<slot><?= i::__('Filtrar'); ?></slot>
<a href="#main-app" class="button--primary button--large button--icon button button--icon" @click="toggleFilter()"><?= i::_e('Aplicar Filtros') ?></a>

</div>
</div>
</div>
Expand Down
19 changes: 19 additions & 0 deletions src/themes/BaseV2/assets-src/sass/2.components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,23 @@
color: var(--mc-warning-500);
}
}
@media (max-width: 900px){
&--filter--bottom{
top: -35px;
position: relative;
.button--primary.button--large{
position: relative;
top: 30px;
}
}
}
@media (min-width: 901px){
&--filter--bottom{
top: 0px;
position: relative;
.button--primary.button--large{
display: none;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@
display: block;
}
}
@media (min-width: 901px) {
&__filter {
display: block;
}

}

// in list
.list {
Expand Down

0 comments on commit dcd297a

Please sign in to comment.