Skip to content

Commit

Permalink
add su-underline to metadata links and update hover behaivor
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Sep 5, 2024
1 parent e7ebfe7 commit a3a1aae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/earthworks.css
Original file line number Diff line number Diff line change
Expand Up @@ -340,3 +340,8 @@ label.toggle-bookmark {
color: var(--stanford-digital-blue);
--bs-navbar-toggler-padding-y: .5rem;
}

.document-metadata.su-underline {
--bs-link-hover-decoration: underline;
--bs-link-hover-color-rgb: var(--stanford-digital-blue-dark-rgb);
}
2 changes: 1 addition & 1 deletion app/components/document_metadata_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class DocumentMetadataComponent < Blacklight::DocumentMetadataComponent
# Overriding to remove dl-invert as a default class
def initialize(fields: [], classes: %w[document-metadata row], **)
def initialize(fields: [], classes: %w[document-metadata row su-underline], **)
super
end
end

0 comments on commit a3a1aae

Please sign in to comment.