Skip to content

Commit

Permalink
have header title/subtitle link to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Dec 21, 2024
1 parent e52cea0 commit 0325032
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
26 changes: 26 additions & 0 deletions app/assets/stylesheets/spotlight/_spotlight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,30 @@ body {

.btn .blacklight-icons svg {
fill: var(--bs-btn-color);
}


.link-unstyled {
&,
&:visited,
&:hover,
&:active,
&:focus,
&:active:hover {
font-style: inherit;
color: inherit;
background-color: transparent;
font-size: inherit;
text-decoration: none;
font-variant: inherit;
font-weight: inherit;
line-height: inherit;
font-family: inherit;
border-radius: inherit;
border: inherit;
outline: inherit;
box-shadow: inherit;
padding: inherit;
vertical-align: inherit;
}
}
6 changes: 4 additions & 2 deletions app/components/spotlight/title_component.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<div class="container site-title-container">
<div class="site-title-wrapper">
<%= title %>
<%= subtitle %>
<a href="<%= helpers.current_exhibit ? helpers.spotlight.exhibit_path(helpers.current_exhibit) : helpers.spotlight.exhibits_path %>" class="link-unstyled">
<%= title %>
<%= subtitle %>
</a>
</div>
</div>

0 comments on commit 0325032

Please sign in to comment.