Rift.IO OSM R1 Initial Submission
[osm/UI.git] / skyquake / plugins / launchpad / src / launchpad.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 "style/layout.scss";
21 @import '../node_modules/open-iconic/font/css/open-iconic.css';
22
23 .app-body {
24     display:flex;
25     flex-direction:column;
26     display: flex;
27     flex-direction: column;
28     align-items: stretch;
29     height: 100%;
30 }
31
32 .name-input {
33   color: $gray-darkest;
34 }
35 .lpReactDashboard {
36   display:flex;
37   height:100%;
38   .app-body {
39     > header {
40       flex: 0 1 auto;
41       flex-shrink: 0;
42     }
43   }
44 }
45 .lp-react-launch {
46   display: flex;
47 }
48 .app-body.create-fleet {
49   height: 100%;
50 }
51 .name-input input {
52   background:white !important;
53   box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.39), 0 -1px 1px #ffffff, 0 1px 0 #ffffff;
54   display: block;
55   font-size: 120%;
56   height: 35px;
57   margin: 0;
58   margin-top: 0.25rem;
59   width: 350px;
60 }
61
62 .baseGridCell {
63   align-items: center;
64   display: flex;
65   flex: 0 0 auto;
66   min-height: 30px;
67   overflow: hidden;
68   padding-left: 2px;
69   padding-right: 2px;
70   text-overflow: ellipsis;
71   white-space: nowrap;
72 }
73
74 .lp_dashboard {
75   display: flex;
76   flex: 1;
77   flex-direction: row;
78   height: 100%;
79
80   /* Network service list styles */
81
82   .leftMinimizedNsListPanel {
83     display: flex;
84     flex: 1 100%;
85     height: auto;
86     max-width: 30px;
87     min-width: 30px;
88     header {
89       background-color: white;
90       display:block;
91       h3 {
92         // vertical | horizontal
93         // top | horizonal | bottom
94         // top right bottom left
95         padding: 1.5rem 0;
96         color: white;
97
98       }
99     }
100   }
101
102   .nsListPanel {
103     display: flex;
104     flex: 1 100%;
105     height: auto;
106     max-width: 500px;
107     min-width: 500px;
108
109     header {
110       background-color: white;
111       display:block;
112     }
113
114     &-body {
115       flex-flow: col wrap;
116     }
117   }
118
119   .nsListPanelToggle {
120     position:absolute;
121     top:1.5rem;
122     right:0.5rem;
123     cursor:pointer;
124     display:flex;
125     &:before {
126     }
127     &.on:before{
128     }
129   }
130
131   .nsListPanelToolbar {
132     background-color: $gray;
133     display: flex;
134     flex: 0 0 auto;
135     flex-direction: row;
136     padding-left: 1rem;
137     .button {
138       cursor: pointer;
139       display: flex;
140       //flex: 0;
141       margin: 4px;
142       margin: 0.5rem;
143       img {
144         height: 1.5rem;
145         margin-right: 0.85rem;
146       }
147       span {
148         padding-top: 0.2rem;
149       }
150     }
151   }
152   .nsList {
153     display: flex;
154     flex: 1;
155     flex-direction: column;
156     overflow: auto;
157     padding-left: 0;
158     padding-right: 0;
159     &-body {
160       overflow-y: scroll;
161     }
162   }
163   .nsListItemRow {
164     display: flex;
165     flex-direction: row;
166   }
167   .cellValue {
168     overflow: hidden;
169     text-overflow: ellipsis;
170   }
171   .nsList-body .nsListItemRow:nth-child(odd):not(.openedCard) {
172     background-color: $gray-lighter;
173   }
174   .nsList-body .nsListItemRow:nth-child(even):not(.openedCard) {
175     background-color: $gray-lightest;
176   }
177   .nsListItemRow.openedCard {
178     background-color: $lighter-blue;
179   }
180   .nsListHeaderRow {
181     background-color: $gray;
182     border-top: 1px solid $gray-lightest;
183     border-bottom: 1px solid $gray-lightest;
184     display: flex;
185     flex: 0 0 auto;
186     flex-direction: row;
187   }
188   .nsListItemField {
189     @extend .baseGridCell;
190     span {
191       text-overflow: ellipsis;
192     }
193
194   }
195   .nsListHeaderField {
196     @extend .baseGridCell;
197     text-transform: uppercase;
198   }
199   .nsListHeaderField.nsColAction {
200   }
201   .nsListItemField.nsColAction {
202       padding-left: 0.2rem;
203   }
204
205   .colBorderRight {
206     border-right: 1px solid $gray-lightest;
207   }
208
209   .nsColNsName {
210     @extend .colBorderRight;
211     width: 130px;
212   }
213   .nsColNsdName {
214     @extend .colBorderRight;
215     width: 130px;
216   }
217   .nsColStatus {
218     @extend .colBorderRight;
219     width: 85px;
220   }
221   .nsColUptime {
222     @extend .colBorderRight;
223     width: 110px;
224   }
225   .nsColAction {
226     width: 20px;
227     text-overflow: clip;
228   }
229
230   .actionButton {
231     cursor: pointer;
232     // margin-top is a hack to fix the top of the glyph from
233     // being chopped off
234     margin-top: 5px;
235   }
236
237   .nsViewportLink {
238     text-decoration: none;
239     color: black;
240   }
241
242   /* Network service detail card styles */
243
244   .nsCardPanel {
245     //border: 1px solid black;
246     display: flex;
247     flex: 1 1 auto;
248     flex-wrap: nowrap;
249     height: auto;
250     header {
251       background-color: white;
252     }
253     &_content {
254     }
255     &-body {
256       background-color: $gray;
257       display: flex;
258       flex: 1;
259       flex-direction: row;
260       min-width: 0;
261       min-height: 0;
262       overflow-y: auto;
263       overflow-x: auto;
264     }
265   }
266
267   /* Angular wrapping */
268   lp-react-dashboard {
269     display:flex;
270   }
271 }
272
273
274