Skip to content

Commit

Permalink
Add classes to the markup
Browse files Browse the repository at this point in the history
This allows the user to customize the markup without having to override css
  • Loading branch information
jcoyne authored and dnoneill committed Dec 18, 2024
1 parent a3bf7b3 commit 2482865
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions app/assets/stylesheets/spotlight/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
padding: 0;
position: relative;


.site-title {
margin-bottom: 0;
}
Expand All @@ -30,14 +29,6 @@
white-space: nowrap;
}

small {
@extend .d-none;
@extend .d-md-block;
@extend .py-2;

font-size: $h4-font-size;
}

.navbar {
&:last-child {
margin-bottom: 0;
Expand Down Expand Up @@ -128,12 +119,11 @@
// especially on light background images.
.background-container-gradient {
@include masthead-background-containers();
background:
linear-gradient(
rgba(0, 0, 0, 0.0),
rgba(0, 0, 0, 0.4),
rgba(0, 0, 0, 0.5)
);
background: linear-gradient(
rgba(0, 0, 0, 0),
rgba(0, 0, 0, 0.4),
rgba(0, 0, 0, 0.5)
);

height: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_masthead.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<%= masthead_heading_content %>
</h1>
<% if masthead_subheading_content %>
<small><%= masthead_subheading_content %></small>
<small class="d-none d-md-block py-2 fs-4"><%= masthead_subheading_content %></small>
<% end %>
<% end %>
</div>
Expand Down

0 comments on commit 2482865

Please sign in to comment.