diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 189f2da15..c817fe797 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -457,7 +457,7 @@ header { } } -.subnavigation-container { +.subnavigation-background { background: white; height: rem-calc(50); margin-top: rem-calc(-50); @@ -473,7 +473,6 @@ header { a { color: white; display: inline-block; - font-family: $font-sans; line-height: $line-height*2; position: relative; text-align: left; @@ -502,6 +501,36 @@ header { } } +.submenu { + background: white; + border-bottom: 1px solid $border; + clear: both; + margin: $line-height 0 $line-height/2; + + a { + color: $text; + display: inline-block; + font-weight: bold; + margin-right: $line-height; + margin-right: 12px\9; + position: relative; + text-align: left; + + @media (min-width: $small-breakpoint) { + margin-right: $line-height*1.5; + } + + &:hover { + color: $link; + } + + &.active { + border-bottom: 2px solid $brand; + color: $brand; + } + } +} + // 03. Footer // - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/controllers/debates_controller.rb b/app/controllers/debates_controller.rb index e28f053c7..824118c8d 100644 --- a/app/controllers/debates_controller.rb +++ b/app/controllers/debates_controller.rb @@ -7,7 +7,7 @@ class DebatesController < ApplicationController before_action :set_search_order, only: :index before_action :authenticate_user!, except: [:index, :show] - has_orders %w{hot_score confidence_score created_at most_commented random relevance}, only: :index + has_orders %w{hot_score confidence_score created_at relevance}, only: :index has_orders %w{most_voted newest oldest}, only: :show load_and_authorize_resource diff --git a/app/controllers/proposals_controller.rb b/app/controllers/proposals_controller.rb index cc8a286ec..4a5e17af3 100644 --- a/app/controllers/proposals_controller.rb +++ b/app/controllers/proposals_controller.rb @@ -7,7 +7,7 @@ class ProposalsController < ApplicationController before_action :set_search_order, only: :index before_action :authenticate_user!, except: [:index, :show] - has_orders %w{hot_score confidence_score created_at most_commented random relevance}, only: :index + has_orders %w{hot_score confidence_score created_at relevance}, only: :index has_orders %w{most_voted newest oldest}, only: :show load_and_authorize_resource diff --git a/app/views/debates/index.html.erb b/app/views/debates/index.html.erb index b1a4b8007..16197f221 100644 --- a/app/views/debates/index.html.erb +++ b/app/views/debates/index.html.erb @@ -24,21 +24,7 @@ <% end %> - <% if @tag_filter || @search_terms %> -