From c4542457ac7a70274bd54ab32edde6d8090294a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 10 Jul 2021 02:49:58 +0200 Subject: [PATCH] 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
element, or (even better) to the element itself. --- app/assets/stylesheets/budgets/investments/new.scss | 1 - app/assets/stylesheets/layout.scss | 6 ++++++ app/assets/stylesheets/sdg/goals/index.scss | 1 - app/assets/stylesheets/sdg/goals/show.scss | 1 - app/components/sdg/goals/show_component.html.erb | 4 ++-- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/budgets/investments/new.scss b/app/assets/stylesheets/budgets/investments/new.scss index c60ad1a73..0c5b9f338 100644 --- a/app/assets/stylesheets/budgets/investments/new.scss +++ b/app/assets/stylesheets/budgets/investments/new.scss @@ -1,6 +1,5 @@ .budget-investment-new { $border-width: 4px; - @include grid-column-gutter; h1 { margin-bottom: 0; diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 33eaa85b4..5a70af40d 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -66,6 +66,12 @@ body { main { display: block; + + &.budget-investment-new, + &.sdg-goals-index, + &.sdg-goal-show { + @include grid-column-gutter; + } } h1, diff --git a/app/assets/stylesheets/sdg/goals/index.scss b/app/assets/stylesheets/sdg/goals/index.scss index 9ca2002f7..91588aaaa 100644 --- a/app/assets/stylesheets/sdg/goals/index.scss +++ b/app/assets/stylesheets/sdg/goals/index.scss @@ -1,5 +1,4 @@ .sdg-goals-index { - @include grid-column-gutter; .section-header { diff --git a/app/assets/stylesheets/sdg/goals/show.scss b/app/assets/stylesheets/sdg/goals/show.scss index f0ddce8a6..f86539b6a 100644 --- a/app/assets/stylesheets/sdg/goals/show.scss +++ b/app/assets/stylesheets/sdg/goals/show.scss @@ -1,5 +1,4 @@ .sdg-goal-show { - @include grid-column-gutter; .sdg-goal { diff --git a/app/components/sdg/goals/show_component.html.erb b/app/components/sdg/goals/show_component.html.erb index 2cd9176ed..74b2a3a6b 100644 --- a/app/components/sdg/goals/show_component.html.erb +++ b/app/components/sdg/goals/show_component.html.erb @@ -1,6 +1,6 @@ <% provide(:title) { goal.title } %> -
+
<%= back_link_to sdg_goals_path %>
@@ -36,4 +36,4 @@ <% end %> <%= render SDG::Goals::TargetsComponent.new(goal) %> -
+