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