Skip to content

Commit

Permalink
Add padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Sep 18, 2019
1 parent ccd4190 commit ac9e6e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,7 @@ header.lux {
}
}
}

.site-subtitle {
min-height: 35px;
}
6 changes: 5 additions & 1 deletion app/views/shared/_masthead.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@
<% elsif current_exhibit %>
<%= current_exhibit.title %>
<% @subtitle ||= current_exhibit.subtitle %>
<div class="site-subtitle">
<% if @subtitle.present? %>
<small dir='<%= @subtitle.dir %>'><%= @subtitle %></small>
<small dir='<%= @subtitle.dir %>'><%= @subtitle %></small>
<% end %>
</div>
<% elsif @masthead_title %>
<%= @masthead_title %>
<% @subtitle ||= current_site.subtitle %>
<div class="site-subtitle">
<% if @subtitle.present? %>
<small dir='<%= @subtitle.dir %>'><%= @subtitle %></small>
<% end %>
</div>
<% end %>
</div>
</div>
Expand Down

0 comments on commit ac9e6e1

Please sign in to comment.