give
/
src
/
Subscriptions
/
resources
/
admin
/
components
/
SubscriptionDetailsPage
/
Tabs
/
Donations
/
AddRenewalModal
/
styles.module.scss
give
/
src
/
Subscriptions
/
resources
/
admin
/
components
/
SubscriptionDetailsPage
/
Tabs
/
Donations
/
AddRenewalModal
Last commit date
index.tsx
9 months ago
styles.module.scss
11 months ago
styles.module.scss
190 lines
| 1 | // Add Renewal Dialog Styles |
| 2 | .addRenewalDialog { |
| 3 | .content { |
| 4 | display: flex; |
| 5 | flex-direction: column; |
| 6 | gap: var(--givewp-spacing-6); |
| 7 | |
| 8 | .text { |
| 9 | font-size: 16px; |
| 10 | font-weight: 500; |
| 11 | line-height: 1.5; |
| 12 | color: var(--givewp-neutral-700); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | .formRow { |
| 17 | display: grid; |
| 18 | grid-template-columns: 1fr 1fr; |
| 19 | gap: var(--givewp-spacing-4); |
| 20 | } |
| 21 | |
| 22 | .label { |
| 23 | font-size: 1rem; |
| 24 | font-weight: 500; |
| 25 | line-height: 1.5; |
| 26 | color: var(--givewp-neutral-700); |
| 27 | } |
| 28 | |
| 29 | .optional { |
| 30 | color: var(--givewp-neutral-500); |
| 31 | } |
| 32 | |
| 33 | .checkboxLabel { |
| 34 | align-items: center; |
| 35 | color: var(--givewp-neutral-700); |
| 36 | display: flex; |
| 37 | font-size: 1rem; |
| 38 | font-weight: 500; |
| 39 | gap: var(--givewp-spacing-2); |
| 40 | line-height: 1.5; |
| 41 | } |
| 42 | |
| 43 | .formField { |
| 44 | display: flex; |
| 45 | flex-direction: column; |
| 46 | gap: var(--givewp-spacing-1); |
| 47 | |
| 48 | .input { |
| 49 | border-radius: var(--givewp-rounded-4); |
| 50 | border: 1px solid var(--givewp-neutral-300); |
| 51 | color: var(--givewp-neutral-900); |
| 52 | font-size: 1rem; |
| 53 | font-weight: 500; |
| 54 | line-height: 1.5; |
| 55 | margin-top: var(--givewp-spacing-1); |
| 56 | padding: var(--givewp-spacing-3) var(--givewp-spacing-4); |
| 57 | transition: all 0.2s ease; |
| 58 | width: 100%; |
| 59 | |
| 60 | &.inputError { |
| 61 | border-color: var(--givewp-red-400); |
| 62 | } |
| 63 | |
| 64 | &:focus { |
| 65 | border-color: rgb(34, 113, 177); |
| 66 | box-shadow: rgb(34, 113, 177) 0px 0px 0px 1px; |
| 67 | outline: none; |
| 68 | } |
| 69 | |
| 70 | &.inputError:focus { |
| 71 | border-color: var(--givewp-red-400); |
| 72 | box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | .select { |
| 77 | appearance: none; |
| 78 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); |
| 79 | background-position: right 0.75rem center; |
| 80 | background-repeat: no-repeat; |
| 81 | background-size: 1rem; |
| 82 | cursor: pointer; |
| 83 | max-width: none; |
| 84 | width: 100%; |
| 85 | } |
| 86 | |
| 87 | .errorMessage { |
| 88 | color: var(--givewp-red-500); |
| 89 | font-size: 0.875rem; |
| 90 | font-weight: 400; |
| 91 | line-height: 1.43; |
| 92 | margin-top: var(--givewp-spacing-1); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | .checkboxField { |
| 97 | .checkbox { |
| 98 | --transition: 0.2s ease; |
| 99 | |
| 100 | appearance: none; |
| 101 | background-color: transparent; |
| 102 | border-radius: var(--givewp-rounded-1, 0.25rem); |
| 103 | border: solid 1px var(--givewp-grey-400); |
| 104 | color: #2271b1; |
| 105 | cursor: pointer; |
| 106 | flex-shrink: 0; |
| 107 | font-size: inherit; |
| 108 | height: 1.25rem; |
| 109 | margin: 0; |
| 110 | transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition); |
| 111 | vertical-align: middle; |
| 112 | width: 1.25rem; |
| 113 | |
| 114 | &::before { |
| 115 | content: none; |
| 116 | } |
| 117 | |
| 118 | &:focus { |
| 119 | border-color: transparent; |
| 120 | box-shadow: #2271b1 0px 0px 0px 0.125rem; |
| 121 | outline: none; |
| 122 | } |
| 123 | |
| 124 | &:checked, |
| 125 | &:checked:active, |
| 126 | &:checked:focus { |
| 127 | background-color: #2271b1; |
| 128 | background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27rgb%28255, 255, 255%29%27 stroke-width=%274%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%2720 6 9 17 4 12%27%3E%3C/polyline%3E%3C/svg%3E"); |
| 129 | background-position: center; |
| 130 | background-size: 0.75em auto; |
| 131 | background-repeat: no-repeat; |
| 132 | border-color: #2271b1; |
| 133 | } |
| 134 | |
| 135 | &[aria-invalid="false"]="false""] { |
| 136 | border-color: var(--givewp-green-500); |
| 137 | } |
| 138 | |
| 139 | &[aria-invalid="true"]="true""] { |
| 140 | border-color: var(--givewp-red-400); |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | .buttons { |
| 146 | display: flex; |
| 147 | flex-direction: row; |
| 148 | justify-content: space-between; |
| 149 | gap: var(--givewp-spacing-2); |
| 150 | margin-top: var(--givewp-spacing-10); |
| 151 | |
| 152 | button { |
| 153 | cursor: pointer; |
| 154 | display: flex; |
| 155 | flex: 1; |
| 156 | justify-content: center; |
| 157 | border-radius: 8px; |
| 158 | font-size: 1rem; |
| 159 | font-weight: 500; |
| 160 | line-height: 1.5; |
| 161 | padding: var(--givewp-spacing-3) var(--givewp-spacing-6); |
| 162 | border: none; |
| 163 | } |
| 164 | |
| 165 | .addButton { |
| 166 | padding: var(--givewp-spacing-4) var(--givewp-spacing-8); |
| 167 | } |
| 168 | |
| 169 | &.loading { |
| 170 | pointer-events: none; |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | .note { |
| 175 | background-color: var(--givewp-blue-25); |
| 176 | border-color: var(--givewp-blue-400); |
| 177 | border-radius: var(--givewp-rounded-4); |
| 178 | border-style: solid; |
| 179 | border-width: 1px 1px 1px 4px; |
| 180 | color: var(--givewp-blue-900); |
| 181 | display: flex; |
| 182 | gap: var(--givewp-spacing-2); |
| 183 | font-size: 0.875rem; |
| 184 | font-weight: 500; |
| 185 | line-height: 1.43; |
| 186 | margin-top: var(--givewp-spacing-2); |
| 187 | padding: var(--givewp-spacing-3) var(--givewp-spacing-4); |
| 188 | } |
| 189 | } |
| 190 |