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 Jan 6, 2025
1 parent 7c80640 commit 3e0ec4e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
34 changes: 34 additions & 0 deletions app/assets/stylesheets/spotlight/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,37 @@
width: 1px;
}
}

#skip-link {
margin-left: 1rem;
padding-top: 0.5rem;
position: absolute;
top: 0;
z-index: 1000;
width: auto;
}

.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 3e0ec4e

Please sign in to comment.