ListTablePage.module.scss
407 lines
| 1 | :global { |
| 2 | :root { |
| 3 | --give-primary-color: #69b868; |
| 4 | } |
| 5 | |
| 6 | .post-type-give_forms #wpbody { |
| 7 | box-sizing: border-box; |
| 8 | |
| 9 | & > a { |
| 10 | text-decoration: underline; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | .post-type-give_forms #wpbody-content { |
| 15 | box-sizing: border-box; |
| 16 | } |
| 17 | |
| 18 | .post-type-give_forms #wpbody::after { |
| 19 | all: revert; |
| 20 | } |
| 21 | |
| 22 | .give-visually-hidden { |
| 23 | position: absolute; |
| 24 | width: 1px; |
| 25 | height: 1px; |
| 26 | padding: 0; |
| 27 | margin: -1px; |
| 28 | overflow: hidden; |
| 29 | clip: rect(0, 0, 0, 0); |
| 30 | white-space: nowrap; |
| 31 | border-width: 0; |
| 32 | } |
| 33 | |
| 34 | #wpcontent { |
| 35 | padding: 0; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | .page { |
| 40 | box-sizing: border-box; |
| 41 | color: #333; |
| 42 | font-family: Open Sans, system-ui, sans-serif; |
| 43 | font-size: 1rem; |
| 44 | |
| 45 | *, |
| 46 | ::before, |
| 47 | ::after { |
| 48 | box-sizing: inherit; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | .pageHeader { |
| 53 | display: flex; |
| 54 | flex-wrap: wrap; |
| 55 | align-items: center; |
| 56 | justify-content: space-between; |
| 57 | gap: 1rem; |
| 58 | background-color: #fff; |
| 59 | padding-block: 1em; |
| 60 | padding-inline: 1.5em; |
| 61 | border-bottom: 0.0625rem solid #dbdbdb; |
| 62 | |
| 63 | & > * { |
| 64 | flex-shrink: 0; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | .flexRow { |
| 69 | display: flex; |
| 70 | flex-direction: row; |
| 71 | align-items: center; |
| 72 | column-gap: 1rem; |
| 73 | |
| 74 | & > span { |
| 75 | padding-inline: 0.5rem; |
| 76 | padding-block: 0.185rem; |
| 77 | background: #f49420; |
| 78 | border-radius: 5px; |
| 79 | font-size: 0.7rem; |
| 80 | font-weight: 700; |
| 81 | text-transform: uppercase; |
| 82 | letter-spacing: 0.04rem; |
| 83 | transform: translateY(0.075rem); |
| 84 | color: #ffffff; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | .flexRow:not(:first-child) { |
| 89 | flex: 1; |
| 90 | justify-content: flex-end; |
| 91 | } |
| 92 | |
| 93 | .pageTitle { |
| 94 | color: #424242; |
| 95 | margin: 0; |
| 96 | font-size: 1.5rem; |
| 97 | font-weight: 600; |
| 98 | } |
| 99 | |
| 100 | .pageContent { |
| 101 | padding: 0 1.5em 1.5em 1.5em; |
| 102 | } |
| 103 | |
| 104 | .pageActions { |
| 105 | display: flex; |
| 106 | flex-wrap: wrap; |
| 107 | width: 100%; |
| 108 | align-items: center; |
| 109 | justify-content: space-between; |
| 110 | margin-block-end: 0.5rem; |
| 111 | margin-block-start: 0.5rem; |
| 112 | column-gap: 2rem; |
| 113 | |
| 114 | & > * { |
| 115 | flex-shrink: 0; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | .alignEnd { |
| 120 | justify-content: flex-end; |
| 121 | } |
| 122 | |
| 123 | .addFormButton { |
| 124 | $depth: 0px 1px 0px rgba(0, 0, 0, 0.25); |
| 125 | |
| 126 | background-color: #f7f7f7; |
| 127 | border: 1px solid #ddd; |
| 128 | border-radius: 0.1875rem; |
| 129 | box-shadow: $depth; |
| 130 | color: #888; |
| 131 | font-family: inherit; |
| 132 | font-size: 0.875rem; |
| 133 | font-weight: 500; |
| 134 | display: flex; |
| 135 | align-items: center; |
| 136 | block-size: 2.5rem; |
| 137 | padding-inline: 1rem; |
| 138 | transition-property: filter, color, outline; |
| 139 | transition-duration: 180ms; |
| 140 | transition-timing-function: ease-in; |
| 141 | cursor: pointer; |
| 142 | |
| 143 | &:is(a) { |
| 144 | text-decoration: none; |
| 145 | } |
| 146 | |
| 147 | &:is(:hover, :active, :focus) { |
| 148 | color: #777; |
| 149 | } |
| 150 | |
| 151 | &:hover { |
| 152 | filter: contrast(110%); |
| 153 | } |
| 154 | |
| 155 | &:active { |
| 156 | filter: contrast(90%); |
| 157 | } |
| 158 | |
| 159 | &:focus { |
| 160 | box-shadow: $depth; |
| 161 | outline: 0.125rem solid var(--give-primary-color); |
| 162 | outline-offset: 0.25em; |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | .tryNewFormBuilderBtnContainer { |
| 167 | position: absolute; |
| 168 | left: 50%; |
| 169 | transform: translate(-50%, 0); |
| 170 | } |
| 171 | |
| 172 | .migratedForm { |
| 173 | display: flex; |
| 174 | align-items: center; |
| 175 | |
| 176 | .tooltipContainer { |
| 177 | position: relative; |
| 178 | display: flex; |
| 179 | align-items: center; |
| 180 | |
| 181 | svg { |
| 182 | margin-right: 5px; |
| 183 | fill: #3A21D9; |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | .tooltip { |
| 188 | display: none; |
| 189 | width: 230px; |
| 190 | bottom: 25px; |
| 191 | left: -10px; |
| 192 | } |
| 193 | |
| 194 | .tooltip::after { |
| 195 | top: 100%; |
| 196 | left: 14px; |
| 197 | } |
| 198 | |
| 199 | .tooltipContainer:hover .tooltip { |
| 200 | display: unset; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | .upgradedForm { |
| 205 | width: max(7.5rem, 120px); |
| 206 | position: relative; |
| 207 | |
| 208 | .tooltip { |
| 209 | width: 18rem; |
| 210 | bottom: calc(100% + 10px); |
| 211 | right: 0; |
| 212 | } |
| 213 | |
| 214 | .tooltip::after { |
| 215 | top: 100%; |
| 216 | right: 55px; |
| 217 | } |
| 218 | |
| 219 | .tooltipContainer { |
| 220 | position: relative; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | .migratedForm, |
| 225 | .upgradedForm { |
| 226 | .tooltip { |
| 227 | position: absolute; |
| 228 | background-color: #19661c; |
| 229 | color: #fff; |
| 230 | padding: 1rem; |
| 231 | border-radius: 4px; |
| 232 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05); |
| 233 | font-size: 0.75rem; |
| 234 | font-weight: 500; |
| 235 | } |
| 236 | |
| 237 | .tooltip::after { |
| 238 | content: " "; |
| 239 | position: absolute; |
| 240 | border-width: 5px; |
| 241 | border-style: solid; |
| 242 | border-color: #19661c transparent transparent transparent; |
| 243 | } |
| 244 | |
| 245 | .link { |
| 246 | cursor: pointer; |
| 247 | margin-top: 2rem; |
| 248 | margin-bottom: -0.4rem; |
| 249 | font-weight: bold; |
| 250 | float: right; |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | #searchContainer { |
| 255 | display: flex; |
| 256 | flex-wrap: wrap; |
| 257 | gap: 1rem 1.5rem; |
| 258 | align-items: center; |
| 259 | justify-content: flex-start; |
| 260 | background-color: rgba(248, 248, 248); |
| 261 | padding-inline: 1.5em; |
| 262 | padding-block: 1em; |
| 263 | border-bottom: 0.0625rem solid #dbdbdb; |
| 264 | } |
| 265 | |
| 266 | .container, |
| 267 | .overlay { |
| 268 | position: fixed; |
| 269 | top: 0; |
| 270 | right: 0; |
| 271 | bottom: 0; |
| 272 | left: 0; |
| 273 | } |
| 274 | |
| 275 | .container { |
| 276 | z-index: 11; |
| 277 | display: flex; |
| 278 | opacity: 1; |
| 279 | animation: appear 180ms ease-in 0s 1; |
| 280 | font-family: 'Open Sans', sans-serif; |
| 281 | |
| 282 | &[aria-hidden='true']='true'] { |
| 283 | display: none; |
| 284 | opacity: 0; |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | @keyframes appear { |
| 289 | 0% { |
| 290 | opacity: 0; |
| 291 | } |
| 292 | 100% { |
| 293 | opacity: 1; |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | .overlay { |
| 298 | background-color: rgba(43, 46, 56, 0.9); |
| 299 | } |
| 300 | |
| 301 | #modalTitle { |
| 302 | font-size: 1.25rem; |
| 303 | font-weight: 700; |
| 304 | padding-inline: 1rem; |
| 305 | } |
| 306 | |
| 307 | .dialog { |
| 308 | margin: auto; |
| 309 | z-index: 2; |
| 310 | position: relative; |
| 311 | background: #fff; |
| 312 | border: 1px solid #c3c4c7; |
| 313 | border-block-start-color: var(--give-primary-color); |
| 314 | border-block-start-width: 0.25rem; |
| 315 | box-shadow: 0 1px 1px rgb(0 0 0 / 4%); |
| 316 | max-width: 50vw; |
| 317 | min-width: 20rem; |
| 318 | |
| 319 | &.warning { |
| 320 | border-block-start-color: #dba617; |
| 321 | } |
| 322 | |
| 323 | &.danger { |
| 324 | border-block-start-color: #d63638; |
| 325 | } |
| 326 | |
| 327 | & ul { |
| 328 | max-height: 40vh; |
| 329 | overflow-y: auto; |
| 330 | overscroll-behavior-y: contain; |
| 331 | } |
| 332 | |
| 333 | & li { |
| 334 | font-weight: 600; |
| 335 | display: flex; |
| 336 | align-items: center; |
| 337 | gap: 0.5rem; |
| 338 | } |
| 339 | |
| 340 | & li + li { |
| 341 | border-top: 1px solid rgba(196, 196, 196); |
| 342 | padding-top: 0.75rem; |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | .modalContent > * { |
| 347 | padding-inline: 1rem; |
| 348 | margin-block: 1rem; |
| 349 | } |
| 350 | |
| 351 | .gutter { |
| 352 | border-top: 1px solid #dfdfdf; |
| 353 | background: rgba(245 245 245); |
| 354 | width: 100%; |
| 355 | display: flex; |
| 356 | flex-direction: row; |
| 357 | justify-content: flex-end; |
| 358 | column-gap: 1em; |
| 359 | box-sizing: border-box !important; |
| 360 | padding-block: 1em; |
| 361 | padding-inline: 2rem; |
| 362 | overflow: hidden; |
| 363 | } |
| 364 | |
| 365 | $button-blue: rgba(8 120 176); |
| 366 | |
| 367 | #cancel, |
| 368 | #confirm { |
| 369 | border-radius: 3px; |
| 370 | padding-inline: 0.75em; |
| 371 | padding-block: 0.5em; |
| 372 | transition: all 0.15s; |
| 373 | box-shadow: 0px 2px 0px #dddddd; |
| 374 | cursor: pointer; |
| 375 | |
| 376 | &:hover, |
| 377 | &:focus { |
| 378 | border-color: black; |
| 379 | background: white; |
| 380 | color: $button-blue; |
| 381 | box-shadow: none; |
| 382 | } |
| 383 | |
| 384 | &:active { |
| 385 | border-color: rgba(170 170 170); |
| 386 | box-shadow: inset 0px 0px 3px rgba(170 170 170 / 0.8); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | #cancel { |
| 391 | border: 1px solid $button-blue; |
| 392 | color: $button-blue; |
| 393 | background: rgba(247 247 247); |
| 394 | } |
| 395 | |
| 396 | #confirm { |
| 397 | border: 1px solid $button-blue; |
| 398 | background: $button-blue; |
| 399 | color: white; |
| 400 | } |
| 401 | |
| 402 | @media (prefers-reduced-motion: reduce) { |
| 403 | .container { |
| 404 | animation: none; |
| 405 | } |
| 406 | } |
| 407 |