ListTablePage.module.scss
314 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 | .pageTitle { |
| 89 | color: #424242; |
| 90 | margin: 0; |
| 91 | font-size: 1.5rem; |
| 92 | font-weight: 600; |
| 93 | } |
| 94 | |
| 95 | .pageContent { |
| 96 | padding: 0 1.5em 1.5em 1.5em; |
| 97 | } |
| 98 | |
| 99 | .pageActions { |
| 100 | display: flex; |
| 101 | flex-wrap: wrap; |
| 102 | width: 100%; |
| 103 | align-items: center; |
| 104 | justify-content: space-between; |
| 105 | margin-block-end: 0.5rem; |
| 106 | margin-block-start: 0.5rem; |
| 107 | column-gap: 2rem; |
| 108 | |
| 109 | & > * { |
| 110 | flex-shrink: 0; |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | .alignEnd { |
| 115 | justify-content: flex-end; |
| 116 | } |
| 117 | |
| 118 | .addFormButton { |
| 119 | $depth: 0px 1px 0px rgba(0, 0, 0, 0.25); |
| 120 | |
| 121 | background-color: #f7f7f7; |
| 122 | border: 1px solid #ddd; |
| 123 | border-radius: 0.1875rem; |
| 124 | box-shadow: $depth; |
| 125 | color: #888; |
| 126 | font-family: inherit; |
| 127 | font-size: 0.875rem; |
| 128 | font-weight: 500; |
| 129 | display: flex; |
| 130 | align-items: center; |
| 131 | block-size: 2.5rem; |
| 132 | padding-inline: 1rem; |
| 133 | transition-property: filter, color, outline; |
| 134 | transition-duration: 180ms; |
| 135 | transition-timing-function: ease-in; |
| 136 | cursor: pointer; |
| 137 | |
| 138 | &:is(a) { |
| 139 | text-decoration: none; |
| 140 | } |
| 141 | |
| 142 | &:is(:hover, :active, :focus) { |
| 143 | color: #777; |
| 144 | } |
| 145 | |
| 146 | &:hover { |
| 147 | filter: contrast(110%); |
| 148 | } |
| 149 | |
| 150 | &:active { |
| 151 | filter: contrast(90%); |
| 152 | } |
| 153 | |
| 154 | &:focus { |
| 155 | box-shadow: $depth; |
| 156 | outline: 0.125rem solid var(--give-primary-color); |
| 157 | outline-offset: 0.25em; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | #searchContainer { |
| 162 | display: flex; |
| 163 | flex-wrap: wrap; |
| 164 | gap: 1rem 1.5rem; |
| 165 | align-items: center; |
| 166 | justify-content: flex-start; |
| 167 | background-color: rgba(248, 248, 248); |
| 168 | padding-inline: 1.5em; |
| 169 | padding-block: 1em; |
| 170 | border-bottom: 0.0625rem solid #dbdbdb; |
| 171 | } |
| 172 | |
| 173 | .container, |
| 174 | .overlay { |
| 175 | position: fixed; |
| 176 | top: 0; |
| 177 | right: 0; |
| 178 | bottom: 0; |
| 179 | left: 0; |
| 180 | } |
| 181 | |
| 182 | .container { |
| 183 | z-index: 11; |
| 184 | display: flex; |
| 185 | opacity: 1; |
| 186 | animation: appear 180ms ease-in 0s 1; |
| 187 | font-family: 'Open Sans', sans-serif; |
| 188 | |
| 189 | &[aria-hidden='true']='true'] { |
| 190 | display: none; |
| 191 | opacity: 0; |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | @keyframes appear { |
| 196 | 0% { |
| 197 | opacity: 0; |
| 198 | } |
| 199 | 100% { |
| 200 | opacity: 1; |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | .overlay { |
| 205 | background-color: rgba(43, 46, 56, 0.9); |
| 206 | } |
| 207 | |
| 208 | #modalTitle { |
| 209 | font-size: 1.25rem; |
| 210 | font-weight: 700; |
| 211 | padding-inline: 1rem; |
| 212 | } |
| 213 | |
| 214 | .dialog { |
| 215 | margin: auto; |
| 216 | z-index: 2; |
| 217 | position: relative; |
| 218 | background: #fff; |
| 219 | border: 1px solid #c3c4c7; |
| 220 | border-block-start-color: var(--give-primary-color); |
| 221 | border-block-start-width: 0.25rem; |
| 222 | box-shadow: 0 1px 1px rgb(0 0 0 / 4%); |
| 223 | max-width: 50vw; |
| 224 | min-width: 20rem; |
| 225 | |
| 226 | &.warning { |
| 227 | border-block-start-color: #dba617; |
| 228 | } |
| 229 | |
| 230 | &.danger { |
| 231 | border-block-start-color: #d63638; |
| 232 | } |
| 233 | |
| 234 | & ul { |
| 235 | max-height: 40vh; |
| 236 | overflow-y: auto; |
| 237 | overscroll-behavior-y: contain; |
| 238 | } |
| 239 | |
| 240 | & li { |
| 241 | font-weight: 600; |
| 242 | display: flex; |
| 243 | align-items: center; |
| 244 | gap: 0.5rem; |
| 245 | } |
| 246 | |
| 247 | & li + li { |
| 248 | border-top: 1px solid rgba(196, 196, 196); |
| 249 | padding-top: 0.75rem; |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | .modalContent > * { |
| 254 | padding-inline: 1rem; |
| 255 | margin-block: 1rem; |
| 256 | } |
| 257 | |
| 258 | .gutter { |
| 259 | border-top: 1px solid #dfdfdf; |
| 260 | background: rgba(245 245 245); |
| 261 | width: 100%; |
| 262 | display: flex; |
| 263 | flex-direction: row; |
| 264 | justify-content: flex-end; |
| 265 | column-gap: 1em; |
| 266 | box-sizing: border-box !important; |
| 267 | padding-block: 1em; |
| 268 | padding-inline: 2rem; |
| 269 | overflow: hidden; |
| 270 | } |
| 271 | |
| 272 | $button-blue: rgba(8 120 176); |
| 273 | |
| 274 | #cancel, |
| 275 | #confirm { |
| 276 | border-radius: 3px; |
| 277 | padding-inline: 0.75em; |
| 278 | padding-block: 0.5em; |
| 279 | transition: all 0.15s; |
| 280 | box-shadow: 0px 2px 0px #dddddd; |
| 281 | cursor: pointer; |
| 282 | |
| 283 | &:hover, |
| 284 | &:focus { |
| 285 | border-color: black; |
| 286 | background: white; |
| 287 | color: $button-blue; |
| 288 | box-shadow: none; |
| 289 | } |
| 290 | |
| 291 | &:active { |
| 292 | border-color: rgba(170 170 170); |
| 293 | box-shadow: inset 0px 0px 3px rgba(170 170 170 / 0.8); |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | #cancel { |
| 298 | border: 1px solid $button-blue; |
| 299 | color: $button-blue; |
| 300 | background: rgba(247 247 247); |
| 301 | } |
| 302 | |
| 303 | #confirm { |
| 304 | border: 1px solid $button-blue; |
| 305 | background: $button-blue; |
| 306 | color: white; |
| 307 | } |
| 308 | |
| 309 | @media (prefers-reduced-motion: reduce) { |
| 310 | .container { |
| 311 | animation: none; |
| 312 | } |
| 313 | } |
| 314 |