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

fix (ras-acc): add styles for terms and conditions #1880

Merged
merged 2 commits into from
Sep 13, 2024
Merged
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
26 changes: 26 additions & 0 deletions src/modal-checkout/checkout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,32 @@
color: var(--newspack-ui-color-neutral-60, colors.$newspack-ui-color-neutral-60);
}

// Terms and Conditions section
.woocommerce-terms-and-conditions {
background: var(--newspack-ui-color-neutral-5, #f7f7f7);
border-color: var(--newspack-ui-color-border, #ddd);
box-shadow: none;
margin-top: var(--newspack-ui-spacer-5, 24px);
padding: var(--newspack-ui-spacer-5, 24px);

+ p.form-row {
margin-top: var(--newspack-ui-spacer-5, 24px);

label {
display: block;
margin: 0;
padding: 0 0 0 calc(var(--newspack-ui-spacer-4, 20px) + var(--newspack-ui-spacer-base, 8px)); // This is hacky but lets us pair the checkbox width + gap of normal checkboxes.
position: relative;
}

input {
inset: 0 auto auto 0;
margin: 2px var(--newspack-ui-spacer-base, 8px) 0 0;
position: absolute;
}
}
}

// Buttons - adjust spacing
#place-order {
margin-bottom: 0;
Expand Down