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