-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge pals features in to main #2138
Changes from 18 commits
6a1e0c5
6f9b88b
0166692
d2649f9
045aa3a
27cb0a9
99a9733
c7bbda6
747601f
821cbf2
a559908
f2c6b89
b2334fa
0fbde50
5894b93
6b17b5c
ad0d56b
577a49d
b8d7a2e
b6f85d2
a880b50
2879a36
6b7ba4b
1a02896
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ | |
// allows full width if tabs are turned off with feature flipper | ||
.home-content { | ||
display: flex; | ||
justify-content: normal; | ||
padding: 0 20px; | ||
} | ||
.home-tabs-left { | ||
min-width: 50%; | ||
|
@@ -414,12 +416,23 @@ a.btn.btn-default.restore-default-color.with-color-hint { | |
nav.navbar.navbar-default.navbar-static-top .container-fluid .row { | ||
margin-left: 0; | ||
margin-right: 0; | ||
|
||
nav.navbar-nav.col-sm-5 { | ||
padding-right: 0; | ||
} | ||
} | ||
|
||
//these styles modify the theming for the citations section | ||
div#collapse-citations { | ||
text-align: left; | ||
word-wrap: break-word; | ||
} | ||
|
||
@media (min-width: 576px) { | ||
.citations-button .download-pdf-button { | ||
max-width: 300px; | ||
} | ||
} | ||
|
||
body.public-facing { | ||
.btn { | ||
&.btn-primary, | ||
|
@@ -498,3 +511,115 @@ body.public-facing { | |
vertical-align: middle; | ||
width: 1.5em; | ||
} | ||
|
||
// make sure constraints are on only one line, even with markdown | ||
span.constraint-value p, .facet-values p { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid qualifying class selectors with an element. |
||
display: inline-block; | ||
margin-bottom: 0; | ||
} | ||
|
||
// make the facet counts appear at the end of the facet panel | ||
.facet-content .panel-body .facet-values p { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
// button to remove a filter should be red instead of white | ||
.remove.dropdown-toggle .glyphicon.glyphicon-remove { | ||
color: #c4302b; | ||
} | ||
|
||
// style the analytics button to match citations button | ||
#stats { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using id selectors |
||
margin-top: 10px; | ||
@media (min-width: 576px) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @media declaration should be preceded by an empty line |
||
max-width: 300px; | ||
} | ||
} | ||
|
||
#download-pdf-button { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using id selectors |
||
margin: 10px 0 10px 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shorthand form for property |
||
} | ||
|
||
.catalog_startOverLink { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Selector |
||
font-size: 1.15em; | ||
font-weight: bold; | ||
} | ||
|
||
// collection show page styles | ||
|
||
.space-between { | ||
justify-content: space-between; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered align-items, justify-content |
||
align-items: center; | ||
} | ||
|
||
.hyc-banner { | ||
padding: 15px; | ||
.hyc-bugs .hyc-created-by, .hyc-bugs .hyc-last-updated, .hyc-title { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Each selector in a comma sequence should be on its own single line |
||
padding: 0; | ||
} | ||
|
||
.hyc-item-count { | ||
margin: 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered background, border-radius, color, margin, padding |
||
background: rgba(255, 255, 255, 0.75); | ||
padding: 10px; | ||
border-radius: 0.5em; | ||
color: #333; | ||
} | ||
|
||
.hyc-bugs div, div { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Each selector in a comma sequence should be on its own single line |
||
position: relative; | ||
} | ||
} | ||
|
||
// these margin classes can be removed when Hyku is eventually updated to Bootstrap 4 upon upgrading to Hyrax 4. | ||
// These correspond directly to bootstrap 4 classes. | ||
|
||
.mb-0 { | ||
margin-bottom: 0; | ||
} | ||
|
||
.mt-5 { | ||
margin-top: 3em; | ||
} | ||
|
||
.mt-2 { | ||
margin-top: 0.5em; | ||
} | ||
|
||
.mb-2 { | ||
margin-bottom: .5em; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
|
||
.mb-5 { | ||
margin-bottom: 3em; | ||
} | ||
|
||
.mx-3 { | ||
margin-right: 1em; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered margin-left, margin-right |
||
margin-left: 1em; | ||
} | ||
|
||
.ml-auto { | ||
margin-left: auto; | ||
} | ||
|
||
.py-0 { | ||
padding-top: 0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered padding-bottom, padding-top |
||
padding-bottom: 0; | ||
} | ||
|
||
.py-4 { | ||
padding-top: 2em; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered padding-bottom, padding-top |
||
padding-bottom: 2em; | ||
} | ||
|
||
.d-block { | ||
display: block; | ||
} | ||
|
||
// hide iiif-print feature flipper | ||
|
||
tr[data-feature="use-iiif-print"] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid qualifying attribute selectors with an element. |
||
display: none; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,9 @@ | |
@import "viewer"; | ||
|
||
@import "themes/*"; | ||
|
||
// for catalog search result snippets | ||
.highlight { | ||
background: yellow; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Color |
||
font-weight: 700; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files should end with a trailing newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,6 @@ | |
.viewer { | ||
height: 100%; | ||
padding: 10px; | ||
iframe { | ||
// position: absolute; | ||
} | ||
} | ||
|
||
#viewer-modal { | ||
|
@@ -21,3 +18,8 @@ | |
margin-bottom: 10px; | ||
} | ||
} | ||
|
||
.video-embed-viewer { | ||
aspect-ratio: 16 / 9; | ||
width: 100%; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files should end with a trailing newline |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
module Admin | ||
class RolesServiceController < ApplicationController | ||
layout 'hyrax/dashboard' | ||
|
||
def index | ||
authorize! :update, RolesService | ||
add_breadcrumb t(:'hyrax.controls.home'), root_path | ||
add_breadcrumb t(:'hyrax.dashboard.breadcrumbs.admin'), hyrax.dashboard_path | ||
add_breadcrumb t(:'hyrax.admin.sidebar.roles_service_jobs'), main_app.admin_roles_service_jobs_path | ||
end | ||
|
||
# post "admin/roles_service/:job_name_key | ||
def update_roles | ||
authorize! :update, RolesService | ||
job = RolesService.valid_jobs.fetch(params[:job_name_key]) | ||
|
||
job.perform_later | ||
|
||
respond_to do |wants| | ||
wants.html { redirect_to main_app.admin_roles_service_jobs_path, notice: "#{job} has been submitted." } | ||
wants.json { render json: { notice: "#{job} has been submitted." }, status: :ok } | ||
end | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# OVERRIDE Flipflop v2.7.1 to allow for custom `Action` labels | ||
|
||
module Flipflop | ||
module StrategiesControllerDecorator | ||
def enable? | ||
values = StrategiesController::ENABLE_VALUES | ADDITIONAL_ENABLE_VALUES | ||
values.include?(params[:commit]) | ||
end | ||
|
||
ADDITIONAL_ENABLE_VALUES = FeaturesHelper::FEATURE_ACTION_LABELS.map { |_, v| v[:on] }.to_set.freeze | ||
end | ||
end | ||
|
||
Flipflop::StrategiesController.prepend(Flipflop::StrategiesControllerDecorator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid qualifying id selectors with an element.
Avoid using id selectors