diff --git a/decidim-core/app/packs/src/decidim/sticky_header.js b/decidim-core/app/packs/src/decidim/sticky_header.js index f4ee87937a5c3..0b2b238b29c09 100644 --- a/decidim-core/app/packs/src/decidim/sticky_header.js +++ b/decidim-core/app/packs/src/decidim/sticky_header.js @@ -1,5 +1,5 @@ let prevScroll = window.scrollY; -const stickyHeader = document.getElementById("stickyHeader"); +const stickyHeader = document.getElementById("sticky-header"); document.addEventListener("scroll", () => { // if a subelement is not visible it has no offsetParent diff --git a/decidim-core/app/packs/stylesheets/decidim/_forms.scss b/decidim-core/app/packs/stylesheets/decidim/_forms.scss index a2882e35c0974..694189153d9c6 100644 --- a/decidim-core/app/packs/stylesheets/decidim/_forms.scss +++ b/decidim-core/app/packs/stylesheets/decidim/_forms.scss @@ -1,3 +1,11 @@ +#form-search-mobile { + @apply py-1.5 px-4 bg-gray-6 rounded-sm; + + input[type="text"] { + @apply bg-gray-6; + } +} + .form-defaults { /* text-like inputs */ input[type="date"], diff --git a/decidim-core/app/packs/stylesheets/decidim/_header.scss b/decidim-core/app/packs/stylesheets/decidim/_header.scss index 784cfff09ae0c..ccb9620f99aff 100644 --- a/decidim-core/app/packs/stylesheets/decidim/_header.scss +++ b/decidim-core/app/packs/stylesheets/decidim/_header.scss @@ -20,15 +20,25 @@ header { } } - #menu-bar { + #flash-messages-container { + @apply mt-28 md:mt-0; + } + + #menu-bar-container { @apply mt-24 md:mt-0; } - &.with-admin-bar #menu-bar { - @apply mt-[140px]; + &.with-admin-bar { + #flash-messages-container { + @apply mt-40 md:mt-0; + } + + #menu-bar-container{ + @apply mt-[140px] md:mt-0; + } } - #stickyHeader { + #sticky-header { @apply fixed top-0 shadow-lg z-40 bg-white md:relative; transition: top 0.3s; diff --git a/decidim-core/app/views/layouts/decidim/_wrapper.html.erb b/decidim-core/app/views/layouts/decidim/_wrapper.html.erb index e3d9fe4423636..1fdfbfa9a4022 100644 --- a/decidim-core/app/views/layouts/decidim/_wrapper.html.erb +++ b/decidim-core/app/views/layouts/decidim/_wrapper.html.erb @@ -12,16 +12,18 @@ end
> -
diff --git a/decidim-core/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb b/decidim-core/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb index 2701841e5bd09..c70feb1f28b91 100644 --- a/decidim-core/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb +++ b/decidim-core/app/views/layouts/decidim/header/_menu_form_search_mobile.html.erb @@ -1,4 +1,4 @@ -<%= form_tag(decidim.search_path, method: :get, class: "filter-search") do %> +<%= form_tag(decidim.search_path, method: :get, id: "form-search-mobile", class: "filter-search") do %> <%= text_field_tag( :term, nil, diff --git a/decidim-core/app/views/layouts/decidim/header/_mobile_language_choose.html.erb b/decidim-core/app/views/layouts/decidim/header/_mobile_language_choose.html.erb index 5475c06c63175..5de9215a6d21a 100644 --- a/decidim-core/app/views/layouts/decidim/header/_mobile_language_choose.html.erb +++ b/decidim-core/app/views/layouts/decidim/header/_mobile_language_choose.html.erb @@ -12,7 +12,7 @@ <% end %> -