Skip to content

Commit

Permalink
Fix from Roger for the sneaky div
Browse files Browse the repository at this point in the history
  • Loading branch information
bridgetburke authored and gkostin1966 committed Aug 9, 2024
1 parent fa6cf5a commit 26a4fca
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 9 additions & 3 deletions app/assets/stylesheets/umich-arclight/_results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@

/* Request/clear show actions toolbar */

/* Show actions toolbar buttons for Request and Clear*/

#context .actions-wrapper .al-show-actions {
background-color: var(--color-blue-100);
}
Expand All @@ -97,15 +95,22 @@
display: flex;
flex-flow: row wrap;
justify-content: flex-end;
position: relative;
margin-bottom: .5rem;
border-bottom: solid 1px var(--color-teal-300);
background-image: linear-gradient(to bottom, #f7f8f9, #f9fafb, #fbfbfc, #fdfdfd, #ffffff);
box-shadow: 0px 3px 3px -3px rgba(23, 130, 166, 0.58);
background-image: linear-gradient(to top, #f7f8f9, #f9fafb, #fbfbfc, #fdfdfd, #ffffff);
}

.al-show-actions-box-request > button {
margin-right: .25rem;
}

.al-show-actions-box-request > button:hover {
box-shadow: 0 0 0 2px var(--color-maize-400), 0 0 0 3px var(--color-neutral-400);
border-radius: 2px !important;
}

.al-show-actions-toolbar > .request-checkbox {
display: flex;
align-items: center;
Expand All @@ -124,4 +129,5 @@
.badge-request {
background-color: var(--color-pink-500);
color: #fff;
font-size: 85%;
}
8 changes: 8 additions & 0 deletions app/models/solr_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ def is_checkbox_requestable? # rubocop:disable Naming/PredicateName
config_present && !container_types.empty? && container_requestable
end

def is_aeon_requestable?
repository_config.request_config_present_for_type?('aeon_web_ead')
end

def is_possibly_requestable?
is_aeon_requestable? or collection_has_requestable_components?
end

def is_linkable?
(online_content? || number_of_children > 0 || restricted_component?)
end
Expand Down
4 changes: 2 additions & 2 deletions app/views/catalog/_show_default.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
<% end %>
<% end %>

<% if request_button_flag %>
<div class="sticky-toolbar-top">
<% if request_button_flag and document.is_possibly_requestable? %>
<div class="sticky-toolbar-top">
<nav class="al-show-actions-toolbar" aria-label="Actions">
<div class="d-flex mt-3 mb-3">
<div class="flex-fill">
Expand Down

0 comments on commit 26a4fca

Please sign in to comment.