Rift.IO OSM R1 Initial Submission
[osm/UI.git] / skyquake / plugins / launchpad / src / launchpad_card / launchpad_card.scss
1
2 /*
3  * 
4  *   Copyright 2016 RIFT.IO Inc
5  *
6  *   Licensed under the Apache License, Version 2.0 (the "License");
7  *   you may not use this file except in compliance with the License.
8  *   You may obtain a copy of the License at
9  *
10  *       http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *   Unless required by applicable law or agreed to in writing, software
13  *   distributed under the License is distributed on an "AS IS" BASIS,
14  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *   See the License for the specific language governing permissions and
16  *   limitations under the License.
17  *
18  */
19 @import 'style/_colors.scss';
20 @import '../../node_modules/open-iconic/font/css/open-iconic.css';
21 .launchpadCard {
22   display:flex;
23   margin-top: 0.75rem;
24   &-body{
25     position: relative;
26   }
27   .deletingIndicator {
28     display: flex;
29     flex:1;
30     align-items: center;
31     justify-content: center;
32   }
33   &_launch {
34     display:flex;
35     flex-direction:column;
36     flex: 1;
37     justify-content: center;
38     align-items: center;
39     img {
40       width: 88px;
41       padding:1rem;
42     }
43   }
44   &_header {
45     color:white;
46     padding-right: 1rem;
47     min-width: 693px;
48     max-width: 693px;
49     &-link, a {
50       display:flex;
51       align-items:center;
52       text-decoration: none;
53       color: inherit;
54     }
55     &-link {
56       margin-left:0.5rem;
57       cursor:pointer;
58     }
59     .oi {
60       margin:0 0 -0.25rem 0.5rem;
61     }
62     &-title {
63       display: flex;
64       line-height: 3rem;
65       background-color: $brand-green-light;
66       //background-color: $primary-header;
67       position: relative;
68       flex-direction: row;
69       align-items: center;
70       justify-content: flex-start;
71       padding-right:1rem;
72       &-off {
73         background-color:white;
74         color:black;
75       }
76     }
77         .activeIcon{
78           color: #dadada;
79           position:relative;
80         span:after{
81           content: '\25b2';
82           color:#dadada;
83           width:0.5rem;
84           height:0.5rem;
85           position: absolute;
86           top: 17px;
87           left: 8px;
88         }
89       }
90       .inActiveIcon {
91         color:white;
92         position:relative;
93       }
94     &-actions {
95       flex: 1;
96       display: flex;
97       justify-content: flex-end;
98       padding-right: 1rem;
99       h3{
100         padding-right:0.25rem;
101         text-transform: capitalize;
102       }
103
104     }
105     &-status {
106       background-color: $brand-green;
107       &-current {
108         display:flex;
109         justify-content:space-between;
110         padding: 0.5rem 0;
111         span,a {
112           padding: 0 0.25rem;
113         }
114         a{
115           cursor:pointer;
116           &:hover {
117             text-decoration:underline;
118           }
119         }
120       }
121     }
122     &-operational-status {
123       &_loading {
124         display:flex;
125         flex-direction:column;
126         justify-content: center;
127         justify-content: center;
128         align-items: center;
129         color:$gray-darkest;
130      }
131      &_open {
132         overflow: hidden;
133         background: #ddd;
134         height: 100%;
135         visibility: visible;
136         opacity: 1;
137         position: absolute;
138         width: 100%;
139         z-index: 99;
140         display: flex;
141         flex-direction: column;
142         align-items: center;
143         justify-content: center;
144         align-content: center;
145         color: black;
146         h2{
147               padding: 2rem;
148         }
149         ul,li {
150           margin:0.25rem 1rem 0 0.825rem;
151           list-style-type:disc;
152           color:black;
153         }
154         ul {
155           overflow: auto;
156           padding-left: 0.5rem;
157           padding-right: 1rem;
158           margin-right: 0.5rem;
159           height: inherit;
160
161           ul {
162             li {
163               list-style-type: circle;
164             }
165           }
166         }
167       }
168       &_close {
169         height: 0;
170         visibility:hidden;
171         opacity:0;
172       }
173     }
174     &-vnfr_management-links {
175
176       &_loading {
177         display:flex;
178         flex-direction:column;
179         justify-content: center;
180         align-items: center;
181         color:$gray-darkest;
182      }
183       &_open {
184         overflow:hidden;
185         background: #ddd;
186         height: 100%;
187         visibility:visible;
188         opacity:1;
189         position:absolute;
190         width:100%;
191         z-index: 99;
192         display: flex;
193         flex-direction: column;
194         align-items: center;
195         justify-content: center;
196         align-content: center;
197         color:black;
198         a {
199           cursor: pointer;
200           margin-left: 0.5rem;
201           font-weight: normal;
202           color: black;
203         }
204         h2 {
205           padding:2rem;
206         }
207         ul,li {
208           margin:0.25rem 1rem 0 0.825rem;
209           list-style-type:disc;
210           color:black;
211         }
212         ul {
213           width:90%;
214           overflow: auto;
215           padding-right: 1rem;
216           margin-right: 0.5rem;
217           height: inherit;
218         }
219         li {
220           justify-content: space-between;
221           display: flex;
222         }
223       }
224       &_close {
225         height: 0;
226         visibility:hidden;
227         opacity:0;
228       }
229     }
230     .failed {
231       background-color:white;
232       color:black;
233       a {
234         color:black !important;
235       }
236     }
237   }
238
239   &_content {
240     .launchpadCard_content {
241       overflow-x: hidden;
242       overflow-y: scroll;
243     }
244     .empty {
245       min-height:50px;
246       max-width: 100%;
247       display:flex;
248       justify-content: center;
249       align-items: center;
250     }
251   }
252   &_title {
253       color:$black;
254       background:$secondary-header;
255       padding: 0.5rem;
256       // margin: 0 0 0.5rem 0;
257       // border-top:1px solid #666;
258       // border-bottom:1px solid #666;
259       border-top:1px solid #f1f1f1;
260       border-bottom:1px solid #f1f1f1;
261   }
262
263   &_data-list {
264     ul, dl{
265       display:flex;
266       flex-direction:row;
267       flex-wrap:wrap;
268       align-items:flex-start;
269        font-size: 0.825rem;
270       li{
271         flex:1 1 30%;
272       }
273     }
274     dl {
275       margin: 0.5rem 0 0.5rem 0;
276       dt{
277         margin: 0 0 0 0.5rem;
278         text-transform:uppercase;
279       }
280       dd{
281         margin: 0 0 0 0.5rem;
282       }
283     }
284     &.CONFIG-PRIMITIVES {
285       height: 400px;
286       overflow-y: scroll;
287       h1 {
288         margin: 0 0 0 0.5rem;
289       }
290       > div {
291         overflow: hidden;
292       }
293     }
294   }
295   &_data-list.EPA-PARAMS {
296       // height: 105px;
297       width: 715px;
298       overflow-y: scroll;
299       h1 {
300         margin: 0 0 0 0.5rem;
301       }
302       > div {
303         overflow: hidden;
304       }
305   }
306   &_controls{
307     display:flex;
308     flex-direction:row;
309     .react-tabs {
310       flex: auto;
311     [role=tab][aria-selected=true] {
312       background:none;
313       border:none;
314       color: rgb(85, 26, 139);
315     }
316     [role=tab]{
317       text-decoration:underline;
318       border:none;
319       &:focus{
320         outline:none;
321         box-shadow:none;
322         border:none;
323         &:after {
324            background:none;
325            border:none;
326       }
327     }
328
329   }
330     [role=tablist] {
331       border:none;
332       margin: 0 0 10px;
333       padding: 0;
334       display: flex;
335       justify-content: flex-end;
336
337          [role=tab]:first-child {
338             flex: 1;
339          }
340     }
341
342     }
343
344   }
345   .slick-initialized.slick-slider {
346     // min-height:200px;
347   }
348
349   .close-btn {
350     position: absolute;
351     top: -8px;
352     right: -8px;
353     z-index: 100;
354     cursor: pointer;
355     img {
356       width: 1.25rem;
357       height: 1.25rem;
358       background-color: white;
359       border-radius: 15px;
360     }
361   }
362 }