Move header margin styles to CSS
Using HTML classes to apply styles to certain elements makes views harder to customize.
This commit is contained in:
@@ -909,6 +909,8 @@
|
|||||||
.help-header {
|
.help-header {
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
|
margin-top: -$line-height;
|
||||||
|
margin-bottom: $line-height;
|
||||||
padding-bottom: $line-height / 2;
|
padding-bottom: $line-height / 2;
|
||||||
padding-top: $line-height;
|
padding-top: $line-height;
|
||||||
|
|
||||||
@@ -1142,6 +1144,7 @@
|
|||||||
|
|
||||||
&.budget {
|
&.budget {
|
||||||
background: $budget;
|
background: $budget;
|
||||||
|
margin-top: -$line-height;
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if current_budget.present? %>
|
<% if current_budget.present? %>
|
||||||
<div id="budget_heading" class="expanded budget no-margin-top">
|
<div id="budget_heading" class="expanded budget">
|
||||||
<div class="row" data-equalizer data-equalizer-on="medium">
|
<div class="row" data-equalizer data-equalizer-on="medium">
|
||||||
<div class="small-12 medium-9 column padding" data-equalizer-watch>
|
<div class="small-12 medium-9 column padding" data-equalizer-watch>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="help-header no-margin-top margin-bottom">
|
<div class="help-header">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column" data-magellan>
|
<div class="small-12 column" data-magellan>
|
||||||
<%= image_tag "help/help_icon_#{image}.png", alt: t("#{i18n_namespace}.icon_alt"), class: "align-top" %>
|
<%= image_tag "help/help_icon_#{image}.png", alt: t("#{i18n_namespace}.icon_alt"), class: "align-top" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user