give
/
src
/
EventTickets
/
resources
/
admin
/
components
/
EventDetailsPage
/
SectionTable
/
SectionTable.module.scss
give
/
src
/
EventTickets
/
resources
/
admin
/
components
/
EventDetailsPage
/
SectionTable
Last commit date
SectionTable.module.scss
2 years ago
index.tsx
2 years ago
SectionTable.module.scss
144 lines
| 1 | .tableGroup { |
| 2 | background-color: #fff; |
| 3 | border: 0.0625em solid #ddd; |
| 4 | border-radius: 0.3125em; |
| 5 | overflow: auto; |
| 6 | position: relative; |
| 7 | max-inline-size: 100%; |
| 8 | box-shadow: 0 0 0.5625em rgb(68 68 68 / 0.05); |
| 9 | } |
| 10 | |
| 11 | .table { |
| 12 | border-radius: inherit; |
| 13 | border-spacing: 0; |
| 14 | inline-size: 100%; |
| 15 | table-layout: fixed; |
| 16 | } |
| 17 | |
| 18 | .tableColumnHeader { |
| 19 | border-bottom: 0.0625em solid #ddd; |
| 20 | color: var(--givewp-grey-700); |
| 21 | font-size: 1rem; |
| 22 | padding: var(--givewp-spacing-5) var(--givewp-spacing-9); |
| 23 | text-align: start; |
| 24 | vertical-align: middle; |
| 25 | |
| 26 | &.idColumn { |
| 27 | width: 12rem; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | .tableContent { |
| 32 | overflow: auto; |
| 33 | } |
| 34 | |
| 35 | .tableRow { |
| 36 | &:nth-child(odd) { |
| 37 | background-color: #f6f7f7; |
| 38 | } |
| 39 | |
| 40 | &:nth-child(even) { |
| 41 | background-color: #fff; |
| 42 | } |
| 43 | |
| 44 | &:hover .tableRowActions { |
| 45 | opacity: 1; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | .tableRowActions { |
| 50 | position: absolute; |
| 51 | inset-block-end: 1rem; |
| 52 | |
| 53 | display: flex; |
| 54 | align-items: center; |
| 55 | column-gap: 1.25rem; |
| 56 | word-break: keep-all; |
| 57 | transition: opacity 150ms ease-in-out; |
| 58 | |
| 59 | > * { |
| 60 | position: relative; |
| 61 | color: #0878b0; |
| 62 | font-weight: 400; |
| 63 | line-height: 1; |
| 64 | flex-shrink: 0; |
| 65 | } |
| 66 | |
| 67 | > * + ::before { |
| 68 | position: absolute; |
| 69 | content: ""; |
| 70 | inset-block: auto; |
| 71 | inset-inline-start: calc(-.6725rem); |
| 72 | block-size: 110%; |
| 73 | inline-size: 0.125rem; |
| 74 | background-color: #dedede; |
| 75 | } |
| 76 | |
| 77 | > a { |
| 78 | text-decoration: none; |
| 79 | } |
| 80 | |
| 81 | &:focus-within { |
| 82 | opacity: 1; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | .tableCell { |
| 87 | color: var(--givewp-grey-700); |
| 88 | font-size: 0.875em; |
| 89 | font-weight: 600; |
| 90 | padding: var(--givewp-spacing-4) var(--givewp-spacing-9) var(--givewp-spacing-10); |
| 91 | position: relative; |
| 92 | vertical-align: middle; |
| 93 | |
| 94 | & a { |
| 95 | text-decoration: none; |
| 96 | |
| 97 | &:focus, &:hover, &:active { |
| 98 | text-decoration: underline; |
| 99 | transition: all 0.05s ease-in-out; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | &.description { |
| 104 | font-weight: 400; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | .idBadge { |
| 109 | display: inline-flex; |
| 110 | flex-shrink: 0; |
| 111 | flex-grow: 0; |
| 112 | align-items: center; |
| 113 | background-color: #f3f2ec; |
| 114 | border: 0.0625rem solid #e0dfd9; |
| 115 | border-radius: 9999px; |
| 116 | color: #5f5f5f; |
| 117 | padding-block: 0.1em; |
| 118 | padding-inline: 0.5em; |
| 119 | text-align: center; |
| 120 | width: fit-content; |
| 121 | } |
| 122 | |
| 123 | .idBadge::before { |
| 124 | content: '#'; |
| 125 | font-size: 0.615em; |
| 126 | padding-inline-end: 0.25em; |
| 127 | } |
| 128 | |
| 129 | .statusMessage { |
| 130 | display: flex; |
| 131 | justify-content: center; |
| 132 | align-content: center; |
| 133 | font-weight: 600; |
| 134 | font-size: 1.2em; |
| 135 | padding-inline: 2.5em; |
| 136 | padding-block: 2em; |
| 137 | } |
| 138 | |
| 139 | @media (hover: hover) and (pointer: fine) { |
| 140 | .tableRowActions { |
| 141 | opacity: 0; |
| 142 | } |
| 143 | } |
| 144 |