Group styles setting padding to the main content
So we don't add the same lines to pretty much every stylesheet we create. Eventually we'll remove this code and add a padding to every <main> element, or (even better) to the <body> element itself.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
.budget-investment-new {
|
||||
$border-width: 4px;
|
||||
@include grid-column-gutter;
|
||||
|
||||
h1 {
|
||||
margin-bottom: 0;
|
||||
|
||||
@@ -66,6 +66,12 @@ body {
|
||||
|
||||
main {
|
||||
display: block;
|
||||
|
||||
&.budget-investment-new,
|
||||
&.sdg-goals-index,
|
||||
&.sdg-goal-show {
|
||||
@include grid-column-gutter;
|
||||
}
|
||||
}
|
||||
|
||||
h1,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
.sdg-goals-index {
|
||||
@include grid-column-gutter;
|
||||
|
||||
.section-header {
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
.sdg-goal-show {
|
||||
@include grid-column-gutter;
|
||||
|
||||
.sdg-goal {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<% provide(:title) { goal.title } %>
|
||||
|
||||
<div class="sdg-goal-show">
|
||||
<main class="sdg-goal-show">
|
||||
<%= back_link_to sdg_goals_path %>
|
||||
|
||||
<article class="sdg-goal sdg-goal-<%= code %>">
|
||||
@@ -36,4 +36,4 @@
|
||||
<% end %>
|
||||
|
||||
<%= render SDG::Goals::TargetsComponent.new(goal) %>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user