TableCell.module.scss
140 lines
| 1 | .tableCell { |
| 2 | color: var(--givewp-neutral-700); |
| 3 | font-size: 1rem; |
| 4 | font-weight: 500; |
| 5 | line-height: 1.5; |
| 6 | padding: var(--givewp-spacing-6) var(--givewp-spacing-2) calc(var(--givewp-spacing-6) + var(--givewp-spacing-5)); |
| 7 | position: relative; |
| 8 | vertical-align: middle; |
| 9 | |
| 10 | & a { |
| 11 | text-decoration: none; |
| 12 | |
| 13 | &:focus, &:hover, &:active { |
| 14 | text-decoration: underline; |
| 15 | transition: all 0.05s ease-in-out; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | &:first-child { |
| 20 | padding-inline-start: var(--givewp-spacing-6); |
| 21 | } |
| 22 | |
| 23 | &:last-child { |
| 24 | padding-inline-end: var(--givewp-spacing-6); |
| 25 | } |
| 26 | |
| 27 | input[type="checkbox"]="checkbox""] { |
| 28 | --transition: 0.2s ease; |
| 29 | |
| 30 | appearance: none; |
| 31 | background-color: transparent; |
| 32 | border-radius: 0.225rem; |
| 33 | border: solid 1px var(--givewp-neutral-200); |
| 34 | color: #2271b1; |
| 35 | cursor: pointer; |
| 36 | flex-shrink: 0; |
| 37 | font-size: inherit; |
| 38 | height: 1.333rem; |
| 39 | margin: 0; |
| 40 | margin: 0; |
| 41 | padding: 0; |
| 42 | transform: translateY(-1px); |
| 43 | transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition); |
| 44 | vertical-align: middle; |
| 45 | width: 1.333rem; |
| 46 | |
| 47 | &::before { |
| 48 | content: none; |
| 49 | } |
| 50 | |
| 51 | &:focus { |
| 52 | border-color: transparent; |
| 53 | box-shadow: #2271b1 0px 0px 0px 0.125rem; |
| 54 | outline: none; |
| 55 | } |
| 56 | |
| 57 | &:checked, |
| 58 | &:checked:active, |
| 59 | &:checked:focus { |
| 60 | background-color: #2271b1; |
| 61 | 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"); |
| 62 | background-position: center; |
| 63 | background-size: 0.75em auto; |
| 64 | background-repeat: no-repeat; |
| 65 | border-color: #2271b1; |
| 66 | } |
| 67 | |
| 68 | &[aria-invalid="false"]="false""] { |
| 69 | border-color: var(--givewp-green-500); |
| 70 | } |
| 71 | |
| 72 | &[aria-invalid="true"]="true""] { |
| 73 | border-color: var(--givewp-red-400); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | :root { |
| 78 | tr:first-child { |
| 79 | .tableCell { |
| 80 | padding-block-start: var(--givewp-spacing-6); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | tr:last-child { |
| 85 | .tableCell { |
| 86 | padding-block-end: var(--givewp-spacing-12); |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | .tableRowHeader { |
| 93 | z-index: 1; |
| 94 | text-align: start; |
| 95 | |
| 96 | > a { |
| 97 | font-size: 1.125rem; |
| 98 | font-weight: 700; |
| 99 | text-decoration: none; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | .statusBadge { |
| 104 | display: flex; |
| 105 | justify-content: center; |
| 106 | align-items: center; |
| 107 | width: 7rem; |
| 108 | height: 2rem; |
| 109 | background-color: var(--give-primary-color); |
| 110 | border-radius: 0.1875rem; |
| 111 | color: #fff; |
| 112 | font-size: 0.8125rem; |
| 113 | font-weight: 600; |
| 114 | column-gap: 1rem; |
| 115 | text-transform: uppercase; |
| 116 | } |
| 117 | |
| 118 | .idBadge { |
| 119 | display: inline-flex; |
| 120 | flex-shrink: 0; |
| 121 | flex-grow: 0; |
| 122 | align-items: center; |
| 123 | background-color: #f3f2ec; |
| 124 | border: 0.0625rem solid #e0dfd9; |
| 125 | border-radius: 9999px; |
| 126 | color: #5f5f5f; |
| 127 | padding-block: 0.1em; |
| 128 | padding-inline: 0.5em; |
| 129 | text-align: center; |
| 130 | width: -webkit-fit-content; |
| 131 | width: -moz-fit-content; |
| 132 | width: fit-content; |
| 133 | } |
| 134 | |
| 135 | .idBadge::before { |
| 136 | content: '#'; |
| 137 | font-size: 0.615em; |
| 138 | padding-inline-end: 0.25em; |
| 139 | } |
| 140 |