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

Commit

Permalink
refactor: update base styles with css grid and gaps and remove defaul…
Browse files Browse the repository at this point in the history
…t margin to make room for custom fields (#187)

Co-authored-by: Jon Waldstein <[email protected]>
  • Loading branch information
jonwaldstein and Jon Waldstein authored Jun 1, 2023
1 parent ba4d9fd commit 6b33761
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1 deletion.
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;
}

0 comments on commit 6b33761

Please sign in to comment.