_fields.scss
1 year ago
_form.scss
2 years ago
_groups.scss
2 years ago
_header.scss
2 years ago
_icons.scss
2 years ago
_iframe.scss
2 years ago
_multi-step-form.scss
1 year ago
_sections.scss
2 years ago
_multi-step-form.scss
191 lines
| 1 | .givewp-donation-form { |
| 2 | &__steps { |
| 3 | display: flex; |
| 4 | flex-direction: column; |
| 5 | max-width: 35rem; |
| 6 | width: 100%; |
| 7 | overflow: hidden; |
| 8 | position: relative; |
| 9 | padding: 0; |
| 10 | margin: 0 auto; |
| 11 | border-radius: var(--givewp-rounded-8); |
| 12 | color: var(--givewp-grey-700); |
| 13 | background-color: var(--givewp-shades-white); |
| 14 | box-shadow: var(--givewp-shadow-xs); |
| 15 | border: solid 1px var(--givewp-grey-25); |
| 16 | |
| 17 | &-header { |
| 18 | position: relative; |
| 19 | display: grid; |
| 20 | align-items: center; |
| 21 | grid-template-columns: 10% 1fr 10%; |
| 22 | width: 100%; |
| 23 | background: #fbfbfb; |
| 24 | border-bottom: 1px solid #f2f2f2; |
| 25 | z-index: 99; |
| 26 | min-height: 50px; |
| 27 | |
| 28 | button, |
| 29 | p { |
| 30 | margin-bottom: 0; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | &-header-title { |
| 35 | position: absolute; |
| 36 | width: 80%; |
| 37 | text-align: center; |
| 38 | z-index: -1; |
| 39 | text-overflow: ellipsis; |
| 40 | margin-left: 10%; |
| 41 | padding-left: 0.5rem; |
| 42 | padding-right: 0.5rem; |
| 43 | } |
| 44 | |
| 45 | &-header-title-text { |
| 46 | white-space: nowrap; |
| 47 | overflow: hidden; |
| 48 | text-overflow: ellipsis; |
| 49 | color: var(--givewp-grey-900); |
| 50 | font-weight: 600; |
| 51 | } |
| 52 | |
| 53 | &-header-previous-button { |
| 54 | padding: 0 20px; |
| 55 | height: 50px; |
| 56 | background-image: var(--givewp-icon-arrow-left); |
| 57 | background-color: transparent; |
| 58 | background-position: center; |
| 59 | border: none; |
| 60 | color: transparent; |
| 61 | font-size: 12px; |
| 62 | border-radius: 6px 0 0 0; |
| 63 | overflow: hidden; |
| 64 | cursor: pointer; |
| 65 | |
| 66 | &:focus { |
| 67 | box-shadow: none; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | &-progress { |
| 72 | border-radius: 0; |
| 73 | height: 0.5rem; |
| 74 | } |
| 75 | |
| 76 | &-body { |
| 77 | padding: 2rem 2rem 0 2rem; |
| 78 | } |
| 79 | |
| 80 | &-footer { |
| 81 | padding-bottom: var(--givewp-spacing-4); |
| 82 | } |
| 83 | |
| 84 | &-footer-secure { |
| 85 | display: flex; |
| 86 | column-gap: 1rem; |
| 87 | width: 100%; |
| 88 | margin-top: var(--givewp-spacing-4); |
| 89 | padding: var(--givewp-spacing-4); |
| 90 | font-size: var(--givewp-font-size-paragraph-md); |
| 91 | color: var(--givewp-grey-900); |
| 92 | align-items: center; |
| 93 | justify-content: center; |
| 94 | } |
| 95 | |
| 96 | &-footer-secure-icon { |
| 97 | color: var(--givewp-secondary-color); |
| 98 | translate: 0 -1px; |
| 99 | } |
| 100 | |
| 101 | &-footer-secure-text { |
| 102 | font-weight: 500; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | button[type="submit"]="submit""], |
| 107 | &__steps-button-next { |
| 108 | display: flex; |
| 109 | justify-content: center; |
| 110 | gap: var(--givewp-spacing-4); |
| 111 | background-color: var(--givewp-primary-color); |
| 112 | color: var(--givewp-grey-5); |
| 113 | line-height: 1.5; |
| 114 | font-weight: 600; |
| 115 | margin: 0; |
| 116 | |
| 117 | @supports (background-color: color-mix(in lab, var(--givewp-primary-color) 90%, black)) { |
| 118 | &:hover { |
| 119 | background-color: color-mix(in lab, var(--givewp-primary-color) 90%, black); |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | &__steps-button-next { |
| 125 | &:after { |
| 126 | content: ""; |
| 127 | display: inline-block; |
| 128 | width: 1.5rem; |
| 129 | height: 1.5rem; |
| 130 | background-color: inherit; |
| 131 | background-image: var(--givewp-icon-arrow-right); |
| 132 | background-position: center; |
| 133 | background-repeat: no-repeat; |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | &__step { |
| 138 | @keyframes fadeInRight { |
| 139 | from { |
| 140 | opacity: 0.25; |
| 141 | transform: translate3d(2rem, 0, 0); |
| 142 | } |
| 143 | |
| 144 | to { |
| 145 | opacity: 1; |
| 146 | transform: translate3d(0, 0, 0); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | @keyframes fadeInLeft { |
| 151 | from { |
| 152 | opacity: 0.25; |
| 153 | transform: translate3d(-2rem, 0, 0); |
| 154 | } |
| 155 | |
| 156 | to { |
| 157 | opacity: 1; |
| 158 | transform: translate3d(0, 0, 0); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | &--hidden { |
| 163 | display: none; |
| 164 | } |
| 165 | |
| 166 | &--visible { |
| 167 | visibility: visible; |
| 168 | } |
| 169 | |
| 170 | &--ascending { |
| 171 | animation: forwards 0.3s fadeInRight; |
| 172 | } |
| 173 | |
| 174 | &--descending { |
| 175 | animation: forwards 0.3s fadeInLeft; |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | .givewp-layouts-multiStepForm { |
| 181 | display: flex; |
| 182 | flex-direction: column; |
| 183 | gap: var(--givewp-spacing-10); |
| 184 | |
| 185 | &__form { |
| 186 | display: flex; |
| 187 | flex-direction: column; |
| 188 | gap: var(--givewp-spacing-10); |
| 189 | } |
| 190 | } |
| 191 |