8b692eee269e288ddd9ce1a2db4c2504c3b26717
[osm/riftware.git] /
1 /*
2  *    Copyright 2016 RIFT.IO Inc
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16
17
18 /*
19  * 
20  *
21  */
22 //This needs to be refactored. There are cross styles between managementDomainCard and LP card. The header needs to be refactored into a common set of styles and markup
23
24 @import '../../../styles/_colors.scss';
25
26 .managementDomainCard {
27   width:400px;
28   height:300px;
29
30   &_create {
31     display:flex;
32     flex-direction:column;
33     flex: 1;
34     justify-content: center;
35     align-items: center;
36     img {
37       width: 88px;
38       padding:1rem;
39     }
40   }
41   &_content {
42     height:300px;
43     overflow:hidden;
44
45     .content {
46       width:400px;
47       padding:0rem;
48       overflow-y:scroll;
49
50       ul, dl{
51         display:flex;
52         flex-direction:row;
53         flex-wrap:wrap;
54         align-items:flex-start;
55          font-size: 0.825rem;
56         li{
57           flex:1 1 30%;
58         }
59       }
60       dl {
61         margin: 0.5rem 0 0.5rem 0;
62         dt{
63           width:100%;
64           margin: 1.2rem 0 0 0;
65           padding:0rem;
66           text-align:center;
67           text-transform:uppercase;
68           font-size:1.0rem;
69           font-weight:bold;
70         }
71         dd{
72           width:100%;
73           margin: 0 0 0 0;
74           padding:0rem;
75           border:none;
76           text-align:center;
77           font-size:1.6rem;
78           font-weigth:100;
79         }
80       }
81     }
82   }
83   &_header {
84     color:white;
85     &-link, a {
86       display:flex;
87       align-items:center;
88     }
89     &-link {
90       margin-left:0.5rem;
91       cursor:pointer;
92     }
93     .fleet-card-pwr-btn {
94       padding:5px;
95     }
96     .oi {
97       margin: -0.25rem 0.5rem -0.25rem 0.725rem;
98     }
99     &-title {
100       display: flex;
101       line-height: 3rem;
102       background-color: $brand-green-light;
103       //background-color: $primary-header;
104       position: relative;
105       flex-direction: row;
106       align-items: center;
107       justify-content: flex-start;
108       padding-right:1rem;
109       &-off {
110         background-color:white;
111         color:black;
112       }
113     }
114
115     &-actions {
116       flex: 1;
117       display: flex;
118       justify-content: flex-end;
119       h3{
120         padding-right:0.25rem;
121       }
122       .activeIcon{
123           color: #dadada;
124           position:relative;
125         span:after{
126           content: '\25b2';
127           color:#dadada;
128           width:0.5rem;
129           height:0.5rem;
130           position: absolute;
131           top: 17px;
132           left: 8px;
133         }
134       }
135       .inActiveIcon {
136         color:white;
137         position:relative;
138       }
139     }
140     &-status {
141       background-color: $brand-green;
142       &-current {
143         display:flex;
144         justify-content:space-between;
145         padding: 0.5rem 0;
146         span,a {
147           padding: 0 0.25rem;
148         }
149         a{
150           cursor:pointer;
151           &:hover {
152             text-decoration:underline;
153           }
154         }
155       }
156     }
157     &-operational-status {
158       &_loading {
159         display:flex;
160         flex-direction:column;
161         justify-content: center;
162         justify-content: center;
163         align-items: center;
164         color:$gray-darkest;
165      }
166       &_open {
167         overflow:hidden;
168         background: #ddd;
169         height: 693px;
170         visibility:visible;
171         opacity:1;
172         position:absolute;
173         width:100%;
174             z-index: 99;
175            display: flex;
176     align-items: center;
177     justify-content: center;
178     align-content: center;
179         ul,li {
180           margin:0.25rem 1rem 0 0.825rem;
181           list-style-type:disc;
182           color:black;
183         }
184         ul {
185           width:100%;
186           overflow: auto;
187           padding-right: 1rem;
188           margin-right: 0.5rem;
189           height: inherit;
190         }
191       }
192       &_close {
193         height: 0;
194         visibility:hidden;
195         opacity:0;
196       }
197     }
198     &-vnfr_management-links {
199       &_loading {
200         display:flex;
201         flex-direction:column;
202         justify-content: center;
203         justify-content: center;
204         align-items: center;
205         color:$gray-darkest;
206      }
207       &_open {
208         overflow:hidden;
209         background: #ddd;
210         height: 693px;
211         visibility:visible;
212         opacity:1;
213         position:absolute;
214         width:100%;
215         z-index: 99;
216         display: flex;
217         flex-direction: column;
218         align-items: center;
219         justify-content: center;
220         align-content: center;
221         color:black;
222         h2 {
223           padding:2rem;
224         }
225         ul,li {
226           margin:0.25rem 1rem 0 0.825rem;
227           list-style-type:disc;
228           color:black;
229         }
230         ul {
231           width:100%;
232           overflow: auto;
233           padding-right: 1rem;
234           margin-right: 0.5rem;
235           height: inherit;
236         }
237         li {
238           justify-content: space-around;
239           display: flex;
240         }
241       }
242       &_close {
243         height: 0;
244         visibility:hidden;
245         opacity:0;
246       }
247     }
248     .failed {
249       background-color:white;
250       color:black;
251       a {
252         color:black !important;
253       }
254     }
255   }
256 }