From 4549ac1484625190009609d2805fb1d9f58fbc2f Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 27 Jun 2019 16:30:09 -0300 Subject: [PATCH 1/3] =?UTF-8?q?Ajustes=20de=20estilo=20e=20funcionamento?= =?UTF-8?q?=20da=20busca=20avan=C3=A7ada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack/app/brasilgovtemas.js | 2 +- webpack/app/scss/_search.scss | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/webpack/app/brasilgovtemas.js b/webpack/app/brasilgovtemas.js index e596d955..0aa97c4e 100644 --- a/webpack/app/brasilgovtemas.js +++ b/webpack/app/brasilgovtemas.js @@ -28,7 +28,7 @@ $(() => { if ($('.template-centrais-de-conteudo')[0] != null) { new ContentCentral(); } - if ($('.template-filtro-de-resultados')[0] != null) { + if ($('.template-busca')[0] != null) { new ResultsFilter(); } if ($('#viewlet-social-like')[0] != null) { diff --git a/webpack/app/scss/_search.scss b/webpack/app/scss/_search.scss index f193bafa..e472289e 100644 --- a/webpack/app/scss/_search.scss +++ b/webpack/app/scss/_search.scss @@ -12,7 +12,7 @@ #search-field { border: 1px solid #ccc !important; border-bottom: 0; - margin: 0 13px -16px 12px; + margin: 0 -5px -16px 12px; padding: 10px; text-align: left; @@ -40,7 +40,7 @@ } form .actionMenuHeader { position: absolute; - top: -40px; + top: -50px; right: 40px; border-left: 1px solid #ccc; padding-left: 30px; @@ -57,6 +57,9 @@ color: #333; } } +#content #search-filter fieldset { + margin-right: 25px; +} #search-results-wrapper { position: initial; } @@ -66,7 +69,7 @@ padding: 1em; box-sizing: border-box; border: 1px solid #ccc; - margin: -1px 0 30px 12px; + margin: -1px 0 30px -4px; dl { float: none; @@ -94,6 +97,12 @@ bottom: 20px; right: 20px; } + .actionMenuContent.closed { + display: none; + } + #search-filter-toggle.closed:after { + transform: rotate(180deg); + } } #search-results-bar.open { border: 1px solid #ccc; @@ -218,7 +227,7 @@ white-space: nowrap; float: right; margin-left: 5px; - margin-top: 5px; + margin-top: 2px; } #search-filter-toggle.open:after { @@ -516,4 +525,3 @@ fieldset.noborder { #results ul:first-child li:nth-child(5n-0) {background: #53cfd0 !important;} #results ul:first-child li:nth-child(4n-3) {margin-left: 0;} - From 73f0e50afd0ffef7552f36640ea7f19a26aa0acd Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 27 Jun 2019 16:32:30 -0300 Subject: [PATCH 2/3] Update changelog --- CHANGES.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 34c20970..828dae1a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changelog 2.0.4 (unreleased) ^^^^^^^^^^^^^^^^^^ -- Nothing changed yet. +- Corrige estilos e funcionamento dos filtros da busca. + [agnogueira] 2.0.3 (2019-02-22) From e71c65930618dfdc99b689ba78a02b2a102fa2be Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 27 Jun 2019 16:51:57 -0300 Subject: [PATCH 3/3] Corrige o posicionamento do menu quando esta sobre a busca avancada --- webpack/app/scss/_header.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/app/scss/_header.scss b/webpack/app/scss/_header.scss index 02a581d5..6aadf7c0 100644 --- a/webpack/app/scss/_header.scss +++ b/webpack/app/scss/_header.scss @@ -30,7 +30,7 @@ header#main-header { position: absolute; left: 0; right: 0; - z-index: 1; + z-index: 2; box-shadow: 0 8px 6px -6px #ccc;