Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 1 | |
| 2 | // Table Header |
| 3 | .table-header { |
| 4 | width: 100%; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 5 | color: $primary-dark; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 6 | line-height: 30px; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 7 | padding: .8em 0 0; |
| 8 | margin-bottom: .8em; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 9 | border-bottom: 1px solid $border-color-01; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 10 | font-size: 1.25em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 11 | @include mediaQuery(medium) { |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 12 | margin: 1.8em 0; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 13 | } |
| 14 | } |
| 15 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 16 | // Table |
| 17 | .table { |
| 18 | width: 100%; |
| 19 | } |
| 20 | |
Gunnar Mills | 84e114a | 2018-11-14 13:44:41 -0600 | [diff] [blame] | 21 | .table__body { |
| 22 | width: 100%; |
| 23 | } |
| 24 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 25 | .table__row { |
| 26 | display: flex; |
| 27 | width: 100%; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 28 | max-width: calc(100vw - 10px); |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 29 | flex-wrap: wrap; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 30 | font-weight: 400; |
| 31 | position: relative; |
| 32 | &.disabled { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 33 | background-color: $background-03; |
| 34 | color: $text-02; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 35 | } |
| 36 | } |
| 37 | |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 38 | .table__row-save { |
| 39 | position: absolute; |
| 40 | top: 0; |
| 41 | left: 0; |
| 42 | width: 100%; |
| 43 | height:100%; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 44 | background: $background-04; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 45 | z-index:200; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 46 | color: $primary-light; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 47 | padding: .8em 1em; |
| 48 | text-align: center; |
| 49 | font-size: 1.5em; |
| 50 | font-weight: bold; |
| 51 | } |
| 52 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 53 | .table__cell { |
| 54 | flex: 0 0 100%; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 55 | line-height: 2.8em; |
| 56 | padding: .5em 1em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 57 | white-space: nowrap; |
| 58 | overflow: hidden; |
| 59 | text-overflow: ellipsis; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 60 | border-bottom: 1px solid $border-color-01; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 61 | @include mediaQuery(small) { |
| 62 | flex: 1; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 63 | } |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 64 | // |
| 65 | //@include mediaQuery(large) { |
| 66 | // padding: 15px 30px; |
| 67 | //} |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | .table__cell-label { |
| 71 | display: inline-block; |
| 72 | font-weight: 700; |
| 73 | min-width: 50%; |
| 74 | padding-right: 15px; |
| 75 | |
| 76 | @include mediaQuery(small) { |
| 77 | display: none; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // Table Head |
| 82 | .table__head { |
Gunnar Mills | 84e114a | 2018-11-14 13:44:41 -0600 | [diff] [blame] | 83 | width: 100%; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 84 | .table__row { |
| 85 | display: none; |
| 86 | font-weight: 700; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 87 | border-bottom: 1px solid $border-color-01; |
| 88 | background-color: $background-05; |
| 89 | color: $primary-light; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 90 | |
| 91 | @include mediaQuery(small) { |
| 92 | display: flex; |
| 93 | } |
| 94 | |
| 95 | .table__cell { |
| 96 | @include fastTransition-all(); |
| 97 | position: relative; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 98 | border: 0; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 99 | &:last-child { |
| 100 | border: 0; |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 106 | .table__row-uploading { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 107 | color: $text-02; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 108 | font-weight: 700; |
| 109 | @include indeterminate-bar; |
| 110 | } |
| 111 | |
Iftekharul Islam | 97280b3 | 2018-11-16 14:50:22 -0600 | [diff] [blame] | 112 | // sensor fixed table header on scroll |
| 113 | .fixed-table-header{ |
| 114 | position: sticky; |
| 115 | top: 130px; |
| 116 | z-index: 1; |
| 117 | } |
| 118 | |
Michael Davis | e1ae08c | 2017-08-25 10:58:22 -0500 | [diff] [blame] | 119 | //sortable heading |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 120 | .sort-heading { |
Michael Davis | e1ae08c | 2017-08-25 10:58:22 -0500 | [diff] [blame] | 121 | position: relative; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 122 | color: $text-03; |
Michael Davis | e1ae08c | 2017-08-25 10:58:22 -0500 | [diff] [blame] | 123 | &::after { |
| 124 | content: '\025be'; |
| 125 | position: absolute; |
| 126 | right: -20px; |
| 127 | top: -1px; |
| 128 | font-size: 1.3em; |
| 129 | } |
| 130 | &::before { |
| 131 | content: '\025be'; |
| 132 | position: absolute; |
| 133 | right: -20px; |
| 134 | top: -10px; |
| 135 | font-size: 1.3em; |
| 136 | transform: rotate(180deg); |
| 137 | } |
| 138 | &.sort-up { |
| 139 | &::before { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 140 | color: $primary-accent; |
Michael Davis | e1ae08c | 2017-08-25 10:58:22 -0500 | [diff] [blame] | 141 | } |
| 142 | } |
| 143 | &.sort-down { |
| 144 | &::after { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 145 | color: $primary-accent; |
Michael Davis | e1ae08c | 2017-08-25 10:58:22 -0500 | [diff] [blame] | 146 | } |
| 147 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 148 | } |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 149 | |
Yoshie Muranaka | 5b8cef8 | 2019-09-10 08:09:43 -0700 | [diff] [blame^] | 150 | .bmc-table__container { |
| 151 | position: relative; |
| 152 | } |
| 153 | |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 154 | .bmc-table { |
| 155 | width: 100%; |
Yoshie Muranaka | 8c80dbd | 2019-08-08 10:58:04 -0500 | [diff] [blame] | 156 | &.small { |
| 157 | font-size: 90%; |
| 158 | } |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 159 | } |
| 160 | |
Yoshie Muranaka | b1f6424 | 2019-09-04 11:40:51 -0700 | [diff] [blame] | 161 | .bmc-table__head { |
| 162 | .sort-icon { |
| 163 | padding: 0; |
| 164 | position: absolute; |
| 165 | .icon { |
| 166 | margin: 0; |
| 167 | & + .icon { |
| 168 | margin-left: -18px; |
| 169 | } |
| 170 | svg { |
| 171 | height: 1em; |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | .sort-icon--descending { |
| 176 | transform: rotate(180deg); |
| 177 | } |
| 178 | .sort-icon--inactive { |
| 179 | opacity: 0.5; |
| 180 | } |
| 181 | } |
| 182 | |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 183 | .bmc-table__row { |
| 184 | border-bottom: 1px solid $border-color-01; |
Yoshie Muranaka | 1d83af0 | 2019-09-06 08:52:35 -0700 | [diff] [blame] | 185 | .btn { |
| 186 | padding-top: 0; |
| 187 | padding-bottom: 0; |
| 188 | .icon { |
| 189 | margin: 0; |
| 190 | } |
| 191 | } |
| 192 | .btn--expand { |
| 193 | padding: 0; |
| 194 | .icon { |
| 195 | transition: transform $duration--moderate-01; |
| 196 | transform: rotate(90deg); |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | .bmc-table__row--expanded { |
| 202 | border-style: none; |
| 203 | .btn--expand .icon { |
| 204 | transform: rotate(0deg); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | .bmc-table__expansion-row { |
| 209 | border-bottom: 1px solid $border-color-01; |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 210 | } |
| 211 | |
| 212 | .bmc-table__column-header { |
| 213 | padding: 10px 16px; |
| 214 | background-color: $background-03; |
Yoshie Muranaka | b1f6424 | 2019-09-04 11:40:51 -0700 | [diff] [blame] | 215 | position: relative; |
| 216 | } |
| 217 | |
| 218 | .bmc-table__column-header--sortable { |
| 219 | cursor: pointer; |
| 220 | user-select: none; |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 221 | } |
| 222 | |
| 223 | .bmc-table__cell { |
Yoshie Muranaka | bb68879 | 2019-08-12 09:31:52 -0500 | [diff] [blame] | 224 | padding: 10px 16px; |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 225 | background-color: $base-02--07; |
| 226 | } |
| 227 | |
| 228 | .bmc-table__row-actions { |
| 229 | text-align: right; |
Yoshie Muranaka | 5b8cef8 | 2019-09-10 08:09:43 -0700 | [diff] [blame^] | 230 | } |
| 231 | |
| 232 | .bmc-table__checkbox-container { |
| 233 | position: relative; |
| 234 | display: inline-block; |
| 235 | width: 1rem; |
| 236 | height: 1rem; |
| 237 | } |
| 238 | |
| 239 | .bmc-table__checkbox { |
| 240 | margin: 0; |
| 241 | line-height: 1; |
| 242 | position: absolute; |
| 243 | width: 1rem; |
| 244 | height: 1rem; |
| 245 | top: 0; |
| 246 | right: 0; |
| 247 | cursor: pointer; |
| 248 | &::before { |
| 249 | // checkbox border |
| 250 | box-sizing: border-box; |
| 251 | content: ""; |
| 252 | width: 1rem; |
| 253 | height: 1rem; |
| 254 | position: absolute; |
| 255 | left: 0; |
| 256 | top: 0.15rem; |
| 257 | background-color: transparent; |
| 258 | border: 2px solid $border-color-02; |
| 259 | border-radius: 1px; |
| 260 | } |
| 261 | &::after { |
| 262 | // checkbox check mark |
| 263 | content: ""; |
| 264 | position: absolute; |
| 265 | left: 0.2rem; |
| 266 | top: 0.15rem; |
| 267 | width: 0.6rem; |
| 268 | height: 0.3rem; |
| 269 | background: none; |
| 270 | border-left: 2px solid $primary-light; |
| 271 | border-bottom: 2px solid $primary-light; |
| 272 | transform: scale(0) rotate(-45deg); |
| 273 | transform-origin: bottom right; |
| 274 | } |
| 275 | &.checked::before , |
| 276 | &.indeterminate::before { |
| 277 | background: $primary-accent; |
| 278 | border-color: $primary-accent; |
| 279 | } |
| 280 | &.checked::after { |
| 281 | transform: scale(1) rotate(-45deg); |
| 282 | } |
| 283 | &.indeterminate::after { |
| 284 | transform: scale(1) rotate(0deg); |
| 285 | border-left: 0 solid $primary-light; |
| 286 | border-bottom: 2px solid $primary-light; |
| 287 | top: 0.4rem; |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | .bmc-table__checkbox-input { |
| 292 | position: absolute; |
| 293 | opacity: 0; |
| 294 | height: 0; |
| 295 | width: 0; |
| 296 | margin: 0; |
| 297 | } |
| 298 | |
| 299 | .bmc-table__toolbar { |
| 300 | position: absolute; |
| 301 | left: 0; |
| 302 | right: 1px; |
| 303 | display: flex; |
| 304 | flex-direction: row; |
| 305 | justify-content: space-between; |
| 306 | color: $text-03; |
| 307 | background-color: $primary-accent; |
| 308 | max-height: 40px; |
| 309 | padding-left: 1em; |
| 310 | padding-top: 0.5em; |
| 311 | padding-right: 0; |
| 312 | padding-bottom: 0.5em; |
| 313 | transform: translateY(-40px); |
| 314 | &.ng-animate { |
| 315 | transition: transform $duration--moderate-02 $standard-easing--productive; |
| 316 | } |
| 317 | &.ng-enter { |
| 318 | transform: translateY(0); |
| 319 | } |
| 320 | &.ng-enter.ng-enter-active { |
| 321 | transform: translateY(-40px); |
| 322 | } |
| 323 | &.ng-leave { |
| 324 | transform: translateY(-40px); |
| 325 | } |
| 326 | &.ng-leave.ng-leave-active { |
| 327 | transform: translateY(0); |
| 328 | } |
| 329 | .btn-tertiary { |
| 330 | color: $text-03; |
| 331 | padding-top:0; |
| 332 | padding-bottom:0; |
| 333 | position: relative; |
| 334 | .icon { |
| 335 | fill: $text-03; |
| 336 | margin: 0; |
| 337 | } |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | .toolbar__batch-actions { |
| 342 | .btn-close { |
| 343 | border-top: none; |
| 344 | border-bottom: none; |
| 345 | border-left: 2px solid $primary-light; |
| 346 | margin-left: 0.5em; |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | .toolbar__selection-count { |
| 351 | margin: 0; |
Yoshie Muranaka | fa56273 | 2019-07-17 11:23:15 -0500 | [diff] [blame] | 352 | } |