Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Refactor: update base styles to support custom fields #187

Merged
merged 1 commit into from
Jun 1, 2023
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.givewp-layouts-section {
padding-block: clamp(1.75rem, -0.916667rem + 8.33333vw, 3.375rem);
padding-block: clamp(1.75rem, -0.916667rem + 8.33333vw, 2.375rem);
padding-inline: clamp(1rem, -4.53846rem + 17.3077vw, 4.375rem);
margin-bottom: 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default function NextButton() {
!isLastStep && (
<div>
<button
className="givewp-donation-form__steps-button-next"
type="button"
disabled={isValidating}
aria-busy={isValidating}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ input[aria-invalid="false"] {
}
}

input, select, textarea {
margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
--typography-spacing-vertical: 1rem;
}
Expand Down
1 change: 1 addition & 0 deletions src/NextGen/DonationForm/resources/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@import "elements/header";
@import "elements/form";
@import "elements/sections";
@import "elements/groups";
@import "elements/multi-step-form";
}

Expand Down
2 changes: 2 additions & 0 deletions src/NextGen/DonationForm/resources/styles/elements/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

form {
margin: 0;
display: grid;
gap: 1rem;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.givewp-groups {
display: grid;
gap: 1rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@
button:focus {
box-shadow: none;
}
}

.givewp-section-nodes {
display: grid;
gap: 1rem;
}