AdminDonationFormsPage.module.scss
4 years ago
AdminDonationFormsPage.tsx
4 years ago
DonationFormsTable.module.scss
4 years ago
DonationFormsTable.tsx
4 years ago
DonationFormsTableRows.module.scss
4 years ago
DonationFormsTableRows.tsx
4 years ago
Pagination.js
4 years ago
Pagination.module.scss
4 years ago
DonationFormsTableRows.module.scss
214 lines
| 1 | .deleted { |
| 2 | animation: disappear 400ms ease-in; |
| 3 | animation-fill-mode: forwards; |
| 4 | pointer-events: none; |
| 5 | } |
| 6 | |
| 7 | @keyframes disappear { |
| 8 | 0% { |
| 9 | filter: grayscale(0); |
| 10 | } |
| 11 | 50% { |
| 12 | opacity: 1; |
| 13 | } |
| 14 | 100% { |
| 15 | filter: grayscale(1); |
| 16 | opacity: 0; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | tr.duplicated { |
| 21 | animation: disappear 0.5s ease-in reverse; |
| 22 | } |
| 23 | |
| 24 | .action { |
| 25 | &:is(button) { |
| 26 | appearance: none; |
| 27 | background: none; |
| 28 | border: none; |
| 29 | padding: 0; |
| 30 | font-weight: 400; |
| 31 | cursor: pointer; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | .action.delete { |
| 36 | color: rgba(232, 75, 59); |
| 37 | } |
| 38 | |
| 39 | .tableRowActions { |
| 40 | position: absolute; |
| 41 | inset-block-end: 1rem; |
| 42 | opacity: 0; |
| 43 | transition: opacity 180ms ease-in; |
| 44 | |
| 45 | display: flex; |
| 46 | align-items: center; |
| 47 | column-gap: 2rem; |
| 48 | |
| 49 | > * { |
| 50 | position: relative; |
| 51 | color: #0878b0; |
| 52 | font-weight: 400; |
| 53 | line-height: 1; |
| 54 | } |
| 55 | |
| 56 | > * + ::before { |
| 57 | position: absolute; |
| 58 | content: ""; |
| 59 | inset-block: auto; |
| 60 | inset-inline-start: calc(-1.0625rem); |
| 61 | block-size: 110%; |
| 62 | inline-size: 0.125rem; |
| 63 | background-color: #dedede; |
| 64 | } |
| 65 | |
| 66 | > a { |
| 67 | text-decoration: none; |
| 68 | } |
| 69 | |
| 70 | &:focus-within { |
| 71 | opacity: 1; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | .tableRow { |
| 76 | |
| 77 | &:nth-child(odd) { |
| 78 | background-color: #f6f7f7; |
| 79 | } |
| 80 | |
| 81 | &:nth-child(even) { |
| 82 | background-color: #fff; |
| 83 | } |
| 84 | |
| 85 | &:hover .tableRowActions { |
| 86 | opacity: 1; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | .tableRowHeader { |
| 91 | z-index: 1; |
| 92 | |
| 93 | > a { |
| 94 | font-size: 1.125rem; |
| 95 | font-weight: 700; |
| 96 | text-decoration: none; |
| 97 | } |
| 98 | } |
| 99 | .tableCell { |
| 100 | position: relative; |
| 101 | padding-block-start: 1em; |
| 102 | padding-block-end: 2.5em; |
| 103 | padding-inline: 1em; |
| 104 | text-align: start; |
| 105 | vertical-align: top; |
| 106 | font-size: 0.875em; |
| 107 | font-weight: 600; |
| 108 | color: #333; |
| 109 | |
| 110 | & > a:not([class]) { |
| 111 | text-decoration: none; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | .statusBadge { |
| 116 | background-color: var(--give-primary-color); |
| 117 | border-radius: 0.1875rem; |
| 118 | color: #fff; |
| 119 | font-size: 0.8125rem; |
| 120 | font-weight: 600; |
| 121 | padding-block: 0.5em; |
| 122 | padding-inline: 1rem; |
| 123 | text-align: center; |
| 124 | text-transform: uppercase; |
| 125 | |
| 126 | &.pending { |
| 127 | background-color: rgba(8, 120, 176); |
| 128 | } |
| 129 | |
| 130 | &.draft, &.auto-draft { |
| 131 | background-color: rgba(244, 148, 32); |
| 132 | } |
| 133 | |
| 134 | &.future { |
| 135 | background-color: rgba(164, 99, 191); |
| 136 | } |
| 137 | |
| 138 | &.trash, &.failed { |
| 139 | background-color: rgba(232, 75, 59); |
| 140 | } |
| 141 | |
| 142 | &.private, &.refunded { |
| 143 | background-color: rgba(51, 51, 51, 1); |
| 144 | } |
| 145 | |
| 146 | &.abandoned { |
| 147 | background-color: rgba(244, 197, 32, 1) |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | .idBadge { |
| 152 | display: inline-flex; |
| 153 | align-items: center; |
| 154 | background-color: #f3f2ec; |
| 155 | border: 0.0625rem solid #e0dfd9; |
| 156 | border-radius: 9999px; |
| 157 | color: #5f5f5f; |
| 158 | font-weight: 600; |
| 159 | padding-block: 0.1em; |
| 160 | padding-inline: 0.5em; |
| 161 | text-align: center; |
| 162 | } |
| 163 | |
| 164 | .idBadge::before { |
| 165 | content: '#'; |
| 166 | font-size: 0.615em; |
| 167 | padding-inline-end: 0.25em; |
| 168 | } |
| 169 | |
| 170 | .statusMessage { |
| 171 | font-weight: 600; |
| 172 | font-size: 1.2em; |
| 173 | padding-inline: 2.5em; |
| 174 | padding-block: 2em; |
| 175 | } |
| 176 | |
| 177 | .monetary { |
| 178 | color: var(--give-primary-color); |
| 179 | } |
| 180 | |
| 181 | .goalProgress { |
| 182 | width: 100%; |
| 183 | height: 0.5rem; |
| 184 | position: relative; |
| 185 | background: rgba(238, 238, 238); |
| 186 | border-radius: 1.5625rem; |
| 187 | overflow: hidden; |
| 188 | margin: 0.3125rem 0 0.125rem; |
| 189 | |
| 190 | & > span { |
| 191 | display: block; |
| 192 | height: 100%; |
| 193 | border-radius: 1.25rem 0.5rem 0.5rem 1.25rem; |
| 194 | background-color: rgba(43, 194, 83); |
| 195 | position: relative; |
| 196 | overflow: hidden; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | .unclickable { |
| 201 | pointer-events: none; |
| 202 | } |
| 203 | |
| 204 | .star { |
| 205 | color: #ffba00; |
| 206 | } |
| 207 | |
| 208 | .shortcode { |
| 209 | min-inline-size: 0; |
| 210 | inline-size: 100%; |
| 211 | color: #2c3338; |
| 212 | background-color: #f6f7f7; |
| 213 | } |
| 214 |