diff --git a/app/assets/javascripts/advanced_search.js.coffee b/app/assets/javascripts/advanced_search.js.coffee index 5bd7467c3..8bff7f996 100644 --- a/app/assets/javascripts/advanced_search.js.coffee +++ b/app/assets/javascripts/advanced_search.js.coffee @@ -9,11 +9,11 @@ App.AdvancedSearch = toggle_date_options: -> if $('#js-advanced-search-date-min').val() == 'custom' - $('#js-customized-date').show() - $('#js-customized-date input').prop 'disabled', false + $('#js-custom-date').show() + $('#js-custom-date input').prop 'disabled', false else - $('#js-customized-date').hide() - $('#js-customized-date input').prop 'disabled', true + $('#js-custom-date').hide() + $('#js-custom-date input').prop 'disabled', true initialize: -> if App.AdvancedSearch.advanced_search_terms() diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index d7cf4d4d1..b76e4052a 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -230,6 +230,10 @@ a { } } +.small { + font-size: $small-font-size; +} + // 02. Header // - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1033,6 +1037,34 @@ img.avatar, img.admin-avatar, img.moderator-avatar, img.initialjs-avatar { } } +.advanced-search { + float: left; + margin: $line-height 0; + + @media (min-width: $small-breakpoint) { + float: right; + margin-bottom: 0; + margin-top: rem-calc(28); + position: absolute; + right: 15px; + z-index: 2; + } +} + +.advanced-search-form { + + select { + height: $line-height*2; + } + + @media (max-width: $medium-breakpoint) { + + .column { + padding: 0; + } + } +} + // 10. Officials levels // - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/views/debates/index.html.erb b/app/views/debates/index.html.erb index 231b06b7b..1c3aba998 100644 --- a/app/views/debates/index.html.erb +++ b/app/views/debates/index.html.erb @@ -29,10 +29,7 @@ <%= render "featured_debates_static" %> <% end %> -