-
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 main into i35 #2153
Merge main into i35 #2153
Changes from all commits
6a1e0c5
6f9b88b
0166692
d2649f9
17c9192
929565b
045aa3a
27cb0a9
99a9733
c7bbda6
9cfca93
747601f
821cbf2
66d5292
a559908
f2c6b89
bcf2547
b2334fa
ead1017
962b916
5371470
cd718f7
eb42111
0fbde50
5894b93
a72af34
bc35b89
6b17b5c
ad0d56b
577a49d
6a23643
31fb129
b8d7a2e
b6f85d2
ab3a9b0
a880b50
2879a36
ff3532e
6b7ba4b
1738679
e43ce29
040cba4
703917b
1a02896
b34f43b
cde504f
391a7a3
8fc5dc1
64387fb
ae2674a
193c9f1
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 |
---|---|---|
|
@@ -31,6 +31,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%; | ||
|
@@ -418,12 +420,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, | ||
|
@@ -502,3 +515,119 @@ 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 { | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
|
||
.hyc-banner { | ||
padding: 15px; | ||
.hyc-bugs .hyc-created-by, | ||
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. Rule declaration should be preceded by an empty line |
||
.hyc-bugs .hyc-last-updated, | ||
.hyc-title { | ||
padding: 0; | ||
} | ||
|
||
.hyc-item-count { | ||
background: rgba(255, 255, 255, 0.75); | ||
border-radius: 0.5em; | ||
color: #333; | ||
margin: 0; | ||
padding: 10px; | ||
} | ||
|
||
.hyc-bugs div, | ||
div { | ||
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: 0.5em; | ||
} | ||
|
||
.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-bottom: 0; | ||
padding-top: 0; | ||
} | ||
|
||
.py-4 { | ||
padding-bottom: 2em; | ||
padding-top: 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: #ffff00; | ||
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. Line should be indented 2 spaces, but was indented 4 spaces |
||
font-weight: 700; | ||
} |
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