Skip to content

Commit

Permalink
Move padding from .text-block to individual instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jdudley1123 committed Nov 29, 2024
1 parent d676ab7 commit b6ebef5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/assets/stylesheets/application.tailwind.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@
}

.text-block {
@apply p-4;

h1 {
@apply text-2xl font-bold mt-5 mb-3;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/forecasts/_how_forecasts_made.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="text-block how-forecasts-are-made">
<div class="text-block p-4 how-forecasts-are-made">
<details>
<summary>
<h3>Learn how the forecasts are produced</h3>
Expand Down
2 changes: 1 addition & 1 deletion app/views/forecasts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<meta name="turbo-cache-control" content="no-cache">
<% end %>

<div class="text-block mx-0">
<div class="text-block p-4 mx-0">
<h1>Air quality forecast</h1>
<p>The air quality forecast displays levels of air pollution, ultraviolet rays (UV), pollen, and temperature over the next three days for your area of interest.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/about.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% content_for :title, 'About' %>

<article class="text-block">
<article class="text-block p-4">
<h1>About airTEXT</h1>

<h2>What is airTEXT?</h2>
Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/health_advice.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% content_for :title, 'Health advice' %>

<article class="text-block">
<article class="text-block p-4">
<h1>Health advice</h1>

<h2>Air pollution index</h2>
Expand Down

0 comments on commit b6ebef5

Please sign in to comment.