Skip to content

Commit

Permalink
Merge pull request #41 from scientist-softserv/revert-to-arclight-bre…
Browse files Browse the repository at this point in the history
…adcrumbs-styling

💄 Revert breadcrumbs styling to default ArcLight
  • Loading branch information
kirkkwang authored Aug 27, 2024
2 parents ace487a + 577ae31 commit 9056cc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 deletions.
25 changes: 1 addition & 24 deletions app/assets/stylesheets/breadcrumbs.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Override breadcrumb heirarchy styles from arclight
// Add breadcrumb heirarchy styles to arclight

.al-show-breadcrumb {
.breadcrumb {
Expand All @@ -8,29 +8,6 @@
fill: #6E757C;
}

.breadcrumb-item:first-of-type::before,
.breadcrumb-item + .breadcrumb-item::before {
content: '';
}

.breadcrumb-item {
display: block;
}

.breadcrumb-item-1 {
padding-left: 1rem;
}

.breadcrumb-item-2 {
.breadcrumb {
padding-left: 1rem;

li:last-child:not(:first-child) {
padding-left: 1rem;
}
}
}

.breadcrumb-campus-link {
flex: 1 0 100%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,36 @@
<li class="breadcrumb-home-link">
<%= link_to t('arclight.routes.home'), root_path %>
</li>
<%# OVERRIDE begin %>
<li class="breadcrumb-campus-link">
<span aria-hidden="true"><%= blacklight_icon :campus, classes: 'al-collection-content-icon' %></span>
<span class="breadcrumb-text"><%= @campus %></span>
</li>
<%# OVERRIDE end %>
<li class="breadcrumb-item breadcrumb-item-1">
<span aria-hidden="true"><%= blacklight_icon :repository, classes: 'al-repository-content-icon' %></span>
<span class="breadcrumb-text"><%= repository %></span>
<ol class="breadcrumb">
<% if collection %>
<li class="breadcrumb-item breadcrumb-item-2">
<span aria-hidden="true"><%= blacklight_icon 'arrow-return-right', classes: 'al-collection-content-icon' %></span>
<span aria-hidden="true"><%= blacklight_icon :collection, classes: 'al-collection-content-icon' %></span>
<span class="breadcrumb-text"><%= link_to collection.label, solr_document_path(collection.id) %></span>

<ol class="breadcrumb">
<% parents_under_collection.each do |parent| %>
<li class="breadcrumb-item breadcrumb-item-3">
<span aria-hidden="true"><%= blacklight_icon 'arrow-return-right', classes: 'al-collection-content-icon' %></span>
<span class="breadcrumb-text"><%= link_to parent.label, solr_document_path(parent.id) %></span>
</li>
<% end %>

<li class="breadcrumb-item breadcrumb-item-4">
<span aria-hidden="true"><%= blacklight_icon 'arrow-return-right', classes: 'al-collection-content-icon' %></span>
<span class="breadcrumb-text"><%= @presenter.heading %></span>
<span class="breadcrumb-text"><%= @presenter.heading %></span>
</li>
</ol>
</li>
<% else # this is a collection %>
<li class="breadcrumb-item breadcrumb-item-4">
<span aria-hidden="true"><%= blacklight_icon 'arrow-return-right', classes: 'al-collection-content-icon' %></span>
<span aria-hidden="true"><%= blacklight_icon :collection, classes: 'al-collection-content-icon' %></span>
<span class="breadcrumb-text"><%= @presenter.heading %></span>
</li>
<% end %>
Expand Down

0 comments on commit 9056cc8

Please sign in to comment.