Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 1 | |
| 2 | // Table Header |
| 3 | .table-header { |
| 4 | width: 100%; |
| 5 | color: $black; |
| 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; |
| 9 | border-bottom: 1px solid $medgrey; |
| 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 { |
| 33 | background-color: $disabled-row; |
| 34 | color: $disabled-row-txt; |
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%; |
| 44 | background: $darkbg__primary; |
| 45 | z-index:200; |
| 46 | color: $white; |
| 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; |
Michael Davis | 9486f54 | 2017-05-30 15:35:31 -0500 | [diff] [blame] | 60 | border-bottom: 1px solid $medgrey; |
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; |
| 87 | border-bottom: 1px solid $medgrey; |
| 88 | background-color: $darkbg__primary; |
| 89 | color: $white; |
| 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 { |
| 107 | color: $darkgrey; |
| 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; |
| 122 | color: $lightblue; |
| 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 { |
| 140 | color: $darkbg__accent; |
| 141 | } |
| 142 | } |
| 143 | &.sort-down { |
| 144 | &::after { |
| 145 | color: $darkbg__accent; |
| 146 | } |
| 147 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 148 | } |