Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 1 | @mixin col-label { |
| 2 | text-transform: uppercase; |
| 3 | font-weight: 700; |
| 4 | font-size: .8em; |
| 5 | } |
| 6 | |
| 7 | $title-minWidth: 210px; |
| 8 | |
| 9 | .inventory__heading { |
| 10 | font-weight: 700; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 11 | padding: 1em 0; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 12 | } |
| 13 | |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 14 | // Inventory Overview |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 15 | .inventory-overview { |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 16 | .inventory__group { |
| 17 | position: relative; |
| 18 | display: block; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 19 | margin: 0; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 20 | font-weight: 700; |
| 21 | background: $white; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 22 | padding: 1em 1em 0 1.5em; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 23 | text-decoration: none; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 24 | border-left: 1px solid $medgrey; |
| 25 | border-right: 1px solid $medgrey; |
| 26 | border-bottom: 0; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 27 | vertical-align: middle; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 28 | @include fastTransition-all; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 29 | &:hover { |
| 30 | background: $lightblue; |
| 31 | color: $black; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 32 | cursor: pointer; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 33 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 34 | &.active { |
| 35 | background: darken($lightgrey, 3%); |
| 36 | &:last-child { |
| 37 | border-bottom: 1px solid $medgrey; |
| 38 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 39 | } |
| 40 | .inv-active { |
| 41 | color: darken($active, 20%); |
| 42 | } |
| 43 | .inv-present { |
| 44 | color: darken($present, 20%); |
| 45 | } |
| 46 | &.inv-disabled { |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 47 | background: $medgrey; |
| 48 | .inventory__device-col, |
| 49 | .inventory__function-col { |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 50 | color: lighten($darkgrey, 20%); |
| 51 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 52 | .accord-trigger { |
| 53 | display: none; |
| 54 | } |
| 55 | &:hover, |
| 56 | .accord-trigger:hover { |
| 57 | cursor: default; |
| 58 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 59 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 60 | .accord-trigger { |
| 61 | margin-top: -8px; |
| 62 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | // Header row |
| 66 | .header__actions-bar { |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 67 | padding: 0 1em 0 1.5em; |
| 68 | .inventory__assoc-event { |
| 69 | padding-right: 1em; |
| 70 | &:hover { |
| 71 | cursor: pointer; |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | //sortable heading |
| 77 | .sort-heading { |
| 78 | position: relative; |
| 79 | color: $lightblue; |
| 80 | &::before { |
| 81 | content: '\025be'; |
| 82 | position: absolute; |
| 83 | right: 0; |
| 84 | top: 8px; |
| 85 | transform: rotate(180deg); |
| 86 | font-size: 1.3em; |
| 87 | } |
| 88 | &::after { |
| 89 | content: '\025be'; |
| 90 | position: absolute; |
| 91 | right: -1px; |
| 92 | bottom: 8px; |
| 93 | font-size: 1.3em; |
| 94 | } |
| 95 | &.sort-up { |
| 96 | &::before { |
| 97 | color: $darkbg__accent; |
| 98 | } |
| 99 | } |
| 100 | &.sort-down { |
| 101 | &::after { |
| 102 | color: $darkbg__accent; |
| 103 | } |
| 104 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 105 | } |
| 106 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 107 | // Inventory items |
| 108 | .inventory-overview { |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 109 | .inventory__device-col { |
| 110 | margin-right: 6px; |
| 111 | width: 50%; |
| 112 | @include mediaQuery(medium){ |
| 113 | width: auto; |
| 114 | } |
| 115 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 116 | |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 117 | .inventory__function-col { |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 118 | @include col-label; |
| 119 | color: $severity-medium-lightbg; |
| 120 | display: none; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 121 | } |
| 122 | .inventory__device-col, |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 123 | .inventory__function-col { |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 124 | @media (min-width: 1025px){ |
| 125 | display: inline-block; |
| 126 | @include calcColumn-4(5px); |
| 127 | } |
| 128 | } |
| 129 | |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 130 | .inventory__metadata { |
| 131 | height: 0; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 132 | max-height: 0; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 133 | margin: 0 -1em 0 -1.5em; |
| 134 | border-top: 1px solid $medgrey; |
| 135 | position: relative; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 136 | overflow: hidden; |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 137 | @include fastTransition-all; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 138 | &.active { |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 139 | height: 100%; |
| 140 | max-height: 1000px; |
| 141 | border-bottom: 1px solid $medgrey; |
| 142 | background: $lightgrey; |
| 143 | padding-bottom: 1em; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 144 | @include fastTransition-all; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 145 | } |
| 146 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 147 | |
| 148 | .inventory__metadata-block { |
| 149 | min-width: 100%; |
| 150 | padding: .5em 1em .5em 1.5em; |
| 151 | @include mediaQuery(small) { |
| 152 | @include calcColumn-3; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 153 | } |
Michael Davis | fa278fb | 2017-07-10 11:28:55 -0500 | [diff] [blame^] | 154 | .content-label { |
| 155 | color:lighten($darkgrey, 10%); |
| 156 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 157 | } |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 158 | |
| 159 | .inventory__metadata-scroll { |
| 160 | position: relative; |
| 161 | height: 100%; |
| 162 | max-height: 200px; |
| 163 | overflow-y: scroll; |
| 164 | bottom: 0; |
| 165 | right:0; |
| 166 | width: 100%; |
| 167 | padding-top: 1em; |
| 168 | padding-left: 1.5em; |
| 169 | border-top: 1px solid $medgrey; |
| 170 | .inventory__metadata-block { |
| 171 | @include calcSplitColumn; |
| 172 | margin-bottom: .5em; |
| 173 | padding: 0; |
| 174 | } |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 175 | @include mediaQuery(medium) { |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 176 | position: absolute; |
| 177 | border-left: 1px solid $medgrey; |
| 178 | border-top: 0; |
| 179 | max-height: 500px; |
| 180 | padding: .5em 1em; |
| 181 | width: 23%; |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 182 | } |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | //end inventory details |
| 187 | |
| 188 | |