Skip to content

Commit 059132e

Browse files
authored
Merge pull request #3374 from projectblacklight/backport-markup
[Backport 4.x] Add classes to the markup
2 parents a3bf7b3 + 7f71d0a commit 059132e

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

app/assets/stylesheets/spotlight/_header.scss

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
padding: 0;
1919
position: relative;
2020

21-
2221
.site-title {
2322
margin-bottom: 0;
2423
}
@@ -30,14 +29,6 @@
3029
white-space: nowrap;
3130
}
3231

33-
small {
34-
@extend .d-none;
35-
@extend .d-md-block;
36-
@extend .py-2;
37-
38-
font-size: $h4-font-size;
39-
}
40-
4132
.navbar {
4233
&:last-child {
4334
margin-bottom: 0;
@@ -128,12 +119,11 @@
128119
// especially on light background images.
129120
.background-container-gradient {
130121
@include masthead-background-containers();
131-
background:
132-
linear-gradient(
133-
rgba(0, 0, 0, 0.0),
134-
rgba(0, 0, 0, 0.4),
135-
rgba(0, 0, 0, 0.5)
136-
);
122+
background: linear-gradient(
123+
rgba(0, 0, 0, 0),
124+
rgba(0, 0, 0, 0.4),
125+
rgba(0, 0, 0, 0.5)
126+
);
137127

138128
height: 100%;
139129
}

app/views/shared/_masthead.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<%= masthead_heading_content %>
3434
</h1>
3535
<% if masthead_subheading_content %>
36-
<small><%= masthead_subheading_content %></small>
36+
<small class="d-none d-md-block py-2 fs-4"><%= masthead_subheading_content %></small>
3737
<% end %>
3838
<% end %>
3939
</div>

0 commit comments

Comments
 (0)