blob: 55244eb4dd399ee711ba3d07ed9a7175b7b1b37d [file] [log] [blame]
Michael Davis994a93b2017-04-18 10:01:04 -05001@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 Davis6dc5f182017-06-26 13:07:27 -050011 padding: 1em 0;
Michael Davis994a93b2017-04-18 10:01:04 -050012}
13
Michael Davis994a93b2017-04-18 10:01:04 -050014// Inventory Overview
Michael Davis6dc5f182017-06-26 13:07:27 -050015.inventory-overview {
Michael Davis994a93b2017-04-18 10:01:04 -050016 .inventory__group {
17 position: relative;
18 display: block;
Michael Davis6dc5f182017-06-26 13:07:27 -050019 margin: 0;
Michael Davis994a93b2017-04-18 10:01:04 -050020 font-weight: 700;
21 background: $white;
Michael Davis6dc5f182017-06-26 13:07:27 -050022 padding: 1em 1em 0 1.5em;
Michael Davis994a93b2017-04-18 10:01:04 -050023 text-decoration: none;
Michael Davis6dc5f182017-06-26 13:07:27 -050024 border-left: 1px solid $medgrey;
25 border-right: 1px solid $medgrey;
26 border-bottom: 0;
Michael Davis994a93b2017-04-18 10:01:04 -050027 vertical-align: middle;
Michael Davis6dc5f182017-06-26 13:07:27 -050028 @include fastTransition-all;
Michael Davis994a93b2017-04-18 10:01:04 -050029 &:hover {
30 background: $lightblue;
31 color: $black;
Michael Davis6dc5f182017-06-26 13:07:27 -050032 cursor: pointer;
Michael Davis994a93b2017-04-18 10:01:04 -050033 }
Michael Davis6dc5f182017-06-26 13:07:27 -050034 &.active {
35 background: darken($lightgrey, 3%);
36 &:last-child {
37 border-bottom: 1px solid $medgrey;
38 }
Michael Davis994a93b2017-04-18 10:01:04 -050039 }
40 .inv-active {
41 color: darken($active, 20%);
42 }
Michael Davis994a93b2017-04-18 10:01:04 -050043 &.inv-disabled {
Michael Davis6dc5f182017-06-26 13:07:27 -050044 background: $medgrey;
45 .inventory__device-col,
46 .inventory__function-col {
Michael Davis994a93b2017-04-18 10:01:04 -050047 color: lighten($darkgrey, 20%);
48 }
Michael Davis6dc5f182017-06-26 13:07:27 -050049 .accord-trigger {
50 display: none;
51 }
52 &:hover,
53 .accord-trigger:hover {
54 cursor: default;
55 }
Michael Davis994a93b2017-04-18 10:01:04 -050056 }
Michael Davis994a93b2017-04-18 10:01:04 -050057 }
58
59 // Header row
60 .header__actions-bar {
Michael Davis6dc5f182017-06-26 13:07:27 -050061 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 Davis994a93b2017-04-18 10:01:04 -050099 }
100}
Michael Davis6dc5f182017-06-26 13:07:27 -0500101// Inventory items
102.inventory-overview {
Michael Davis994a93b2017-04-18 10:01:04 -0500103 .inventory__device-col {
104 margin-right: 6px;
105 width: 50%;
106 @include mediaQuery(medium){
107 width: auto;
108 }
109 }
Michael Davis6dc5f182017-06-26 13:07:27 -0500110
Michael Davis994a93b2017-04-18 10:01:04 -0500111 .inventory__function-col {
Michael Davis6dc5f182017-06-26 13:07:27 -0500112 @include col-label;
113 color: $severity-medium-lightbg;
114 display: none;
Michael Davis994a93b2017-04-18 10:01:04 -0500115 }
116 .inventory__device-col,
Michael Davis6dc5f182017-06-26 13:07:27 -0500117 .inventory__function-col {
Michael Davis994a93b2017-04-18 10:01:04 -0500118 @media (min-width: 1025px){
119 display: inline-block;
120 @include calcColumn-4(5px);
121 }
122 }
123
Michael Davis6dc5f182017-06-26 13:07:27 -0500124 .inventory__metadata {
125 height: 0;
Michael Davis994a93b2017-04-18 10:01:04 -0500126 max-height: 0;
Michael Davis6dc5f182017-06-26 13:07:27 -0500127 margin: 0 -1em 0 -1.5em;
128 border-top: 1px solid $medgrey;
129 position: relative;
Michael Davis994a93b2017-04-18 10:01:04 -0500130 overflow: hidden;
Michael Davis6dc5f182017-06-26 13:07:27 -0500131 @include fastTransition-all;
Michael Davis994a93b2017-04-18 10:01:04 -0500132 &.active {
Michael Davis6dc5f182017-06-26 13:07:27 -0500133 height: 100%;
134 max-height: 1000px;
135 border-bottom: 1px solid $medgrey;
136 background: $lightgrey;
137 padding-bottom: 1em;
Michael Davis994a93b2017-04-18 10:01:04 -0500138 @include fastTransition-all;
Michael Davis994a93b2017-04-18 10:01:04 -0500139 }
Michael Davis27a22732017-07-20 15:19:30 -0500140 &:hover {
141 cursor: default;
142 }
Michael Davis994a93b2017-04-18 10:01:04 -0500143 }
Michael Davis6dc5f182017-06-26 13:07:27 -0500144
145 .inventory__metadata-block {
146 min-width: 100%;
147 padding: .5em 1em .5em 1.5em;
148 @include mediaQuery(small) {
149 @include calcColumn-3;
Michael Davis994a93b2017-04-18 10:01:04 -0500150 }
Michael Davisfa278fb2017-07-10 11:28:55 -0500151 .content-label {
Michael Davis27a22732017-07-20 15:19:30 -0500152 color: $darkgrey;
Michael Davisfa278fb2017-07-10 11:28:55 -0500153 }
Michael Davis994a93b2017-04-18 10:01:04 -0500154 }
Michael Davis6dc5f182017-06-26 13:07:27 -0500155
156 .inventory__metadata-scroll {
157 position: relative;
158 height: 100%;
159 max-height: 200px;
160 overflow-y: scroll;
161 bottom: 0;
162 right:0;
163 width: 100%;
164 padding-top: 1em;
165 padding-left: 1.5em;
166 border-top: 1px solid $medgrey;
167 .inventory__metadata-block {
168 @include calcSplitColumn;
169 margin-bottom: .5em;
170 padding: 0;
171 }
Michael Davis994a93b2017-04-18 10:01:04 -0500172 @include mediaQuery(medium) {
Michael Davis6dc5f182017-06-26 13:07:27 -0500173 position: absolute;
174 border-left: 1px solid $medgrey;
175 border-top: 0;
176 max-height: 500px;
177 padding: .5em 1em;
Michael Davis27a22732017-07-20 15:19:30 -0500178 width: 30%;
179 }
180 .icon__warning {
181 margin-top: -10px;
Michael Davis994a93b2017-04-18 10:01:04 -0500182 }
183 }
184}
185
186//end inventory details
187
188