From 54b771066d0ed26ae8e8c38d72774d666353b587 Mon Sep 17 00:00:00 2001 From: Mischa The Evil Date: Thu, 8 Jun 2017 17:43:44 +0200 Subject: [PATCH 3/4] Unify query_form structure on calendar/gantt views. This: * moves the p with inline style on the calendar view (which wraps the navigation buttons) out of div#query_form_content and adds the contextual class to the element to unify this with the gantt view (and to remove the inline style from the element now that it's styled through a stylesheets' style [.contextual in fact]); * restores the 12px font-size of the calendar navigation buttons; * increases the font-size of the gantt zoom buttons to 12px; * increases the margin of the calendar navigation and gantt zoom buttons to 12px 0px. --- app/views/calendars/show.html.erb | 8 ++++---- public/stylesheets/application.css | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/calendars/show.html.erb b/app/views/calendars/show.html.erb index e0ea4b0..060789b 100644 --- a/app/views/calendars/show.html.erb +++ b/app/views/calendars/show.html.erb @@ -12,12 +12,12 @@ <%= render :partial => 'queries/filters', :locals => {:query => @query} %> - -

- <%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %> | <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %> -

+

+ <%= link_to_previous_month(@year, @month, :accesskey => accesskey(:previous)) %> | <%= link_to_next_month(@year, @month, :accesskey => accesskey(:next)) %> +

+

<%= label_tag('month', l(:label_month)) %> <%= select_month(@month, :prefix => "month", :discard_type => true) %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 06c2dff..f7fefeb 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -365,6 +365,7 @@ div.table-list.boards .table-list-cell.name {width: 30%;} table.messages td.last_message {text-align:left;} #query_form_content {font-size:90%;} +#query_form_with_buttons > p.contextual {font-size:12px; margin:12px 0px;} .query_sort_criteria_count { display: inline-block; -- 1.9.1