Skip to content
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

Center CDL checkout text, button in embed player #4861

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions app/assets/stylesheets/avalon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1219,11 +1219,14 @@ td {
p {
position: relative;
text-align: center;
@include media-breakpoint-down(md) {
margin-bottom: 0;
}
}

form {
position: relative;
left: 25%;
width: fit-content;
margin: 0 auto;
}

.centered {
Expand All @@ -1234,15 +1237,10 @@ td {
}

.centered.video {
top: -50%;
left: 0;
right: 0;
bottom: 0;
height: 4rem;

@include media-breakpoint-down(sm) {
top: -25%;
}
top: 50%;
position: absolute;
margin: 0;
transform: translateY(-50%);
}
}

Expand All @@ -1254,5 +1252,6 @@ td {
.checkout.video {
padding: 3rem;
height: 50%;
position: relative;
}
/* End of CDL controls on view page styles */
2 changes: 1 addition & 1 deletion app/views/media_objects/_checkout.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Unless required by applicable law or agreed to in writing, software distributed
--- END LICENSE_HEADER BLOCK ---
%>
<% media_object_id=@media_object.id %>
<%= form_for(Checkout.new, html: { style: "display: inline;" }) do |f| %>
<%= form_for(Checkout.new) do |f| %>
<%= hidden_field_tag "authenticity_token", form_authenticity_token %>
<%= hidden_field_tag "checkout[media_object_id]", media_object_id %>
<%= f.submit "Check Out", class: "btn btn-info check-out-btn",
Expand Down