give
/
src
/
Promotions
/
InPluginUpsells
/
resources
/
js
/
components
/
RecurringDonationsTab.module.scss
AdditionalAddonCard.js
4 years ago
AdditionalAddonCard.module.css
4 years ago
AdditionalAddons.js
4 years ago
AdditionalAddons.module.css
4 years ago
AddonsAdminPage.js
4 years ago
AddonsAdminPage.module.css
4 years ago
Button.js
4 years ago
Button.module.css
4 years ago
Card.js
4 years ago
Card.module.css
4 years ago
FreeAddOnTab.js
4 years ago
FreeAddOnTab.module.css
4 years ago
Hero.js
4 years ago
Hero.module.css
4 years ago
MustHaveAddonCard.js
4 years ago
MustHaveAddonCard.module.css
4 years ago
MustHaveAddons.js
4 years ago
MustHaveAddons.module.css
4 years ago
PricingPlanCard.js
4 years ago
PricingPlanCard.module.css
4 years ago
PricingPlans.js
4 years ago
PricingPlans.module.css
4 years ago
RecurringDonationsTab.js
4 years ago
RecurringDonationsTab.module.scss
4 years ago
RecurringDonationsTab.module.scss
113 lines
| 1 | @use 'sass:string'; |
| 2 | |
| 3 | :global(#give-in-plugin-upsells) { |
| 4 | display: flex; |
| 5 | justify-content: center; |
| 6 | padding: 2rem 1rem; |
| 7 | color: #333; |
| 8 | font-family: Open Sans, sans-serif; |
| 9 | |
| 10 | @media screen and (min-width: 64rem) { |
| 11 | padding: 4.625rem 2rem; |
| 12 | } |
| 13 | |
| 14 | *, |
| 15 | ::before, |
| 16 | ::after { |
| 17 | box-sizing: border-box; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | .card { |
| 22 | display: grid; |
| 23 | justify-items: center; |
| 24 | padding: 2rem; |
| 25 | width: min(57rem, 100%); |
| 26 | |
| 27 | @media screen and (min-width: 64rem) { |
| 28 | padding: 2.5rem 4.75rem; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | .title { |
| 33 | margin: 0; |
| 34 | font-size: 1.875rem; |
| 35 | line-height: 1.2; |
| 36 | font-weight: 600; |
| 37 | text-align: center; |
| 38 | } |
| 39 | |
| 40 | .description { |
| 41 | margin: 0; |
| 42 | font-size: 1.25rem; |
| 43 | line-height: 1.5; |
| 44 | text-align: center; |
| 45 | } |
| 46 | |
| 47 | .image { |
| 48 | display: block; |
| 49 | width: min(37.5rem, 100%); |
| 50 | } |
| 51 | |
| 52 | .features { |
| 53 | margin: 0; |
| 54 | padding: 0; |
| 55 | /* Sass does not like that max-content isn’t a number */ |
| 56 | width: string.unquote('max(max-content, 100%)'); |
| 57 | display: grid; |
| 58 | row-gap: 0.5rem; |
| 59 | list-style: none; |
| 60 | |
| 61 | @media screen and (min-width: 64rem) { |
| 62 | grid-auto-flow: column; |
| 63 | column-gap: 3.25rem; |
| 64 | grid-template-columns: repeat(2, 1fr); |
| 65 | grid-template-rows: repeat(3, 1fr); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | .feature { |
| 70 | display: flex; |
| 71 | column-gap: 0.5em; |
| 72 | font-size: 1.25rem; |
| 73 | line-height: 1.65; |
| 74 | } |
| 75 | |
| 76 | .featureIcon { |
| 77 | flex-shrink: 0; |
| 78 | |
| 79 | display: inline; |
| 80 | |
| 81 | /* Make it square */ |
| 82 | width: 1.2em; |
| 83 | height: 1.2em; |
| 84 | |
| 85 | /* Offset the top half-leading of line-height to (almost) align with the top of the text. */ |
| 86 | position: relative; |
| 87 | top: 0.0625em; |
| 88 | |
| 89 | color: #66bb6a; |
| 90 | } |
| 91 | |
| 92 | /* Spacing between grid-items in the card */ |
| 93 | |
| 94 | .learnMoreButton { |
| 95 | width: min(15rem, 100%); |
| 96 | } |
| 97 | |
| 98 | .title + .description { |
| 99 | margin-top: 1rem; |
| 100 | } |
| 101 | |
| 102 | .description + .learnMoreButton { |
| 103 | margin-top: 2.875rem; |
| 104 | } |
| 105 | |
| 106 | .learnMoreButton + .image { |
| 107 | margin-top: 3rem; |
| 108 | } |
| 109 | |
| 110 | .image + .features { |
| 111 | margin-top: 2.25rem; |
| 112 | } |
| 113 |