Add margin to all h3 admin headers

This commit is contained in:
decabeza
2020-03-16 12:54:00 +01:00
committed by Javi Martín
parent 428c1695f2
commit 16dc5821d1
22 changed files with 25 additions and 21 deletions

View File

@@ -42,6 +42,10 @@ $table-header: #ecf1f6;
} }
} }
h3 {
margin: $line-height 0;
}
.back { .back {
float: none; float: none;
} }

View File

@@ -5,7 +5,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.activity.show" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.activity.show" %>
<% if @activity.any? %> <% if @activity.any? %>
<h3 class="margin"><%= page_entries_info @activity %></h3> <h3><%= page_entries_info @activity %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<div id="administrators"> <div id="administrators">
<% if @administrators.any? %> <% if @administrators.any? %>
<h3 class="margin"><%= page_entries_info @administrators %></h3> <h3><%= page_entries_info @administrators %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<div id="administrators"> <div id="administrators">
<% if @users.any? %> <% if @users.any? %>
<h3 class="margin"><%= page_entries_info @users %></h3> <h3><%= page_entries_info @users %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_budget_investments.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_budget_investments.index" %>
<% if @investments.any? %> <% if @investments.any? %>
<h3 class="margin"><%= page_entries_info @investments %></h3> <h3><%= page_entries_info @investments %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_comments.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_comments.index" %>
<% if @comments.any? %> <% if @comments.any? %>
<h3 class="margin"><%= page_entries_info @comments %></h3> <h3><%= page_entries_info @comments %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_debates.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_debates.index" %>
<% if @debates.any? %> <% if @debates.any? %>
<h3 class="margin"><%= page_entries_info @debates %></h3> <h3><%= page_entries_info @debates %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_proposal_notifications.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_proposal_notifications.index" %>
<% if @proposal_notifications.any? %> <% if @proposal_notifications.any? %>
<h3 class="margin"><%= page_entries_info @proposal_notifications %></h3> <h3><%= page_entries_info @proposal_notifications %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_proposals.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_proposals.index" %>
<% if @proposals.any? %> <% if @proposals.any? %>
<h3 class="margin"><%= page_entries_info @proposals %></h3> <h3><%= page_entries_info @proposals %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_users.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_users.index" %>
<% if @users.any? %> <% if @users.any? %>
<h3 class="margin"><%= page_entries_info @users %></h3> <h3><%= page_entries_info @users %></h3>
<table> <table>
<thead> <thead>

View File

@@ -1,5 +1,5 @@
<% if @local_census_records.any? %> <% if @local_census_records.any? %>
<h3 class="margin"><%= page_entries_info @local_census_records %></h3> <h3><%= page_entries_info @local_census_records %></h3>
<table> <table>
<thead> <thead>
<tr> <tr>

View File

@@ -4,7 +4,7 @@
<div id="managers"> <div id="managers">
<% if @managers.any? %> <% if @managers.any? %>
<h3 class="margin"><%= page_entries_info @managers %></h3> <h3><%= page_entries_info @managers %></h3>
<table> <table>
<thead> <thead>

View File

@@ -6,7 +6,7 @@
<div id="moderators"> <div id="moderators">
<% if @moderators.any? %> <% if @moderators.any? %>
<h3 class="margin"><%= page_entries_info @moderators %></h3> <h3><%= page_entries_info @moderators %></h3>
<table> <table>
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<div id="moderators"> <div id="moderators">
<% if @users.any? %> <% if @users.any? %>
<h3 class="margin"><%= page_entries_info @users %></h3> <h3><%= page_entries_info @users %></h3>
<table id="moderators"> <table id="moderators">
<thead> <thead>

View File

@@ -4,7 +4,7 @@
<%= render "admin/shared/user_search", url: search_admin_officials_path %> <%= render "admin/shared/user_search", url: search_admin_officials_path %>
<% if @officials.any? %> <% if @officials.any? %>
<h3 class="margin"><%= page_entries_info @officials %></h3> <h3><%= page_entries_info @officials %></h3>
<table> <table>
<thead> <thead>

View File

@@ -8,7 +8,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.organizations.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.organizations.index" %>
<% if @organizations.any? %> <% if @organizations.any? %>
<h3 class="margin"><%= page_entries_info @organizations %></h3> <h3><%= page_entries_info @organizations %></h3>
<table> <table>
<% hidden = 0 %> <% hidden = 0 %>

View File

@@ -4,7 +4,7 @@
<div id="search-results"> <div id="search-results">
<% if @organizations.any? %> <% if @organizations.any? %>
<h3 class="margin"><%= page_entries_info @organizations %></h3> <h3><%= page_entries_info @organizations %></h3>
<table> <table>
<thead> <thead>

View File

@@ -10,7 +10,7 @@
<% end %> <% end %>
<hr> <hr>
<h3 class="margin"><%= t("admin.tags.index.title") %>: <%= page_entries_info @tags %></h3> <h3><%= t("admin.tags.index.title") %>: <%= page_entries_info @tags %></h3>
<table> <table>
<thead> <thead>

View File

@@ -1,7 +1,7 @@
<%= render "shared/filter_subnav", i18n_namespace: "admin.users.index" %> <%= render "shared/filter_subnav", i18n_namespace: "admin.users.index" %>
<% if @users.any? %> <% if @users.any? %>
<h3 class="margin"><%= page_entries_info @users %></h3> <h3><%= page_entries_info @users %></h3>
<table> <table>
<thead> <thead>

View File

@@ -3,7 +3,7 @@
<%= link_to t("admin.valuator_groups.index.new"), new_admin_valuator_group_path, class: "button float-right" %> <%= link_to t("admin.valuator_groups.index.new"), new_admin_valuator_group_path, class: "button float-right" %>
<% if @groups.any? %> <% if @groups.any? %>
<h3 class="margin"><%= page_entries_info @groups %></h3> <h3><%= page_entries_info @groups %></h3>
<table> <table>
<thead> <thead>

View File

@@ -6,7 +6,7 @@
<div id="valuators"> <div id="valuators">
<% if @valuators.any? %> <% if @valuators.any? %>
<h3 class="margin"><%= page_entries_info @valuators %></h3> <h3><%= page_entries_info @valuators %></h3>
<%= render "valuators", valuators: @valuators %> <%= render "valuators", valuators: @valuators %>

View File

@@ -4,7 +4,7 @@
<div id="valuators"> <div id="valuators">
<% if @users.any? %> <% if @users.any? %>
<h3 class="margin"><%= page_entries_info @users %></h3> <h3><%= page_entries_info @users %></h3>
<%= render "valuators", valuators: @users %> <%= render "valuators", valuators: @users %>
<% else %> <% else %>
<div class="callout alert margin"> <div class="callout alert margin">