blob: 809458d75c032ef872670d1cf14cc2fe8960baba [file] [log] [blame]
Simon Hunt195cb382014-11-03 17:50:51 -08001/*
2 * Copyright 2014 Open Networking Laboratory
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 ONOS GUI -- Topology view -- CSS file
19
20 @author Simon Hunt
21 */
22
Simon Hunt56d51852014-11-09 13:03:35 -080023#topo svg #topo-bg {
Simon Hunt142d0032014-11-04 20:13:09 -080024 opacity: 0.5;
25}
26
Paul Greyson6cb8ca02014-11-12 18:09:02 -080027#topo #map {
Thomas Vachuska89543292014-11-19 11:28:33 -080028 stroke-width: 2px;
Thomas Vachuskacd2920c2014-11-19 14:49:55 -080029 stroke: #eee;
Paul Greyson6cb8ca02014-11-12 18:09:02 -080030 fill: transparent;
31}
32
Simon Huntc72967b2014-11-20 09:21:42 -080033/* TODO: move glyphs into framework */
Simon Huntac9e24f2014-11-12 10:12:21 -080034
Simon Hunt95908012014-11-20 10:20:26 -080035#topo-oibox svg .glyphIcon,
Simon Huntc72967b2014-11-20 09:21:42 -080036#topo svg .glyphIcon {
37 fill: black;
38 stroke: none;
39 fill-rule: evenodd;
40}
41#topo svg .glyphIcon rect {
42 fill: #ddd;
Simon Hunt7fa116d2014-11-17 14:16:55 -080043 stroke: none;
44}
45
Simon Hunt1a9eff92014-11-07 11:06:34 -080046/* NODES */
47
Simon Huntac9e24f2014-11-12 10:12:21 -080048#topo svg .node {
Simon Hunt99c13842014-11-06 18:23:12 -080049 cursor: pointer;
50}
51
Simon Huntac9e24f2014-11-12 10:12:21 -080052#topo svg .node.selected rect,
53#topo svg .node.selected circle {
Simon Hunt8dde2322014-11-21 11:42:10 -080054 fill: #f90;
Simon Huntac9e24f2014-11-12 10:12:21 -080055 filter: url(#blue-glow);
56}
57
Simon Huntac9e24f2014-11-12 10:12:21 -080058#topo svg .node text {
59 pointer-events: none;
60}
61
62/* Device Nodes */
63
64#topo svg .node.device {
65}
66
Simon Hunt56d51852014-11-09 13:03:35 -080067#topo svg .node.device rect {
Simon Hunt1a9eff92014-11-07 11:06:34 -080068 stroke-width: 1.5px;
69}
70
Simon Hunt56d51852014-11-09 13:03:35 -080071#topo svg .node.device.fixed rect {
Simon Hunt99c13842014-11-06 18:23:12 -080072 stroke-width: 1.5;
Thomas Vachuska89543292014-11-19 11:28:33 -080073 stroke: #ccc;
Simon Hunt99c13842014-11-06 18:23:12 -080074}
75
Simon Huntbb282f52014-11-10 11:08:19 -080076/* note: device is offline without the 'online' class */
Thomas Vachuska89543292014-11-19 11:28:33 -080077#topo svg .node.device {
78 fill: #777;
79}
80
Simon Hunt8dde2322014-11-21 11:42:10 -080081#topo svg .node.device.online {
Thomas Vachuska89543292014-11-19 11:28:33 -080082 fill: #17f;
83}
84
Simon Huntbb282f52014-11-10 11:08:19 -080085/* note: device is offline without the 'online' class */
Simon Hunt7cd48f32014-11-09 23:42:50 -080086#topo svg .node.device text {
Thomas Vachuska89543292014-11-19 11:28:33 -080087 fill: #aaa;
Simon Hunt99c13842014-11-06 18:23:12 -080088 font: 10pt sans-serif;
Simon Hunt99c13842014-11-06 18:23:12 -080089}
90
Thomas Vachuska89543292014-11-19 11:28:33 -080091#topo svg .node.device.online text {
92 fill: white;
93}
94
Simon Hunt8dde2322014-11-21 11:42:10 -080095#topo svg .node.device .glyphIcon rect {
96 fill: #aaa;
97}
98#topo svg .node.device .glyphIcon use {
99 fill: #777;
100}
101#topo svg .node.device.selected .glyphIcon rect {
102 fill: #f90;
103}
104#topo svg .node.device.online .glyphIcon rect {
105 fill: #8ab;
106}
107#topo svg .node.device.online .glyphIcon use {
108 fill: #000;
109}
110#topo svg .node.device.online.selected .glyphIcon rect {
111 fill: #f90;
112}
113
Thomas Vachuska89543292014-11-19 11:28:33 -0800114
Simon Huntac9e24f2014-11-12 10:12:21 -0800115/* Host Nodes */
116
Thomas Vachuska89543292014-11-19 11:28:33 -0800117#topo svg .node.host {
118 stroke: #000;
119}
120
Simon Hunt7cd48f32014-11-09 23:42:50 -0800121#topo svg .node.host text {
122 fill: #846;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800123 stroke: none;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800124 font: 9pt sans-serif;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800125}
126
Simon Hunt7fa116d2014-11-17 14:16:55 -0800127svg .node.host circle {
Thomas Vachuska89543292014-11-19 11:28:33 -0800128 stroke: #000;
Simon Hunt8dde2322014-11-21 11:42:10 -0800129 fill: #edb;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800130}
131
Simon Hunt1a9eff92014-11-07 11:06:34 -0800132/* LINKS */
133
Simon Hunt56d51852014-11-09 13:03:35 -0800134#topo svg .link {
Simon Hunt1a9eff92014-11-07 11:06:34 -0800135 opacity: .7;
136}
137
Thomas Vachuskae4cebaf2014-11-15 18:49:34 -0800138#topo svg .link.inactive {
139 opacity: .2;
140 stroke-dasharray: 8 4;
141}
142
Simon Hunta255a2c2014-11-13 22:29:35 -0800143#topo svg .link.secondary {
Thomas Vachuskaa3148a72014-11-19 21:38:35 -0800144 stroke: rgba(0,153,51,0.5);
Thomas Vachuskacd2920c2014-11-19 14:49:55 -0800145 stroke-width: 3px;
Simon Hunta255a2c2014-11-13 22:29:35 -0800146}
Thomas Vachuska5fedb7a2014-11-20 00:55:08 -0800147#topo svg .link.primary {
148 stroke: #ffA300;
149 stroke-width: 4px;
150}
Simon Hunta255a2c2014-11-13 22:29:35 -0800151#topo svg .link.animated {
Thomas Vachuskaa3148a72014-11-19 21:38:35 -0800152 stroke: #ffA300;
Simon Hunta255a2c2014-11-13 22:29:35 -0800153}
154
Simon Hunta255a2c2014-11-13 22:29:35 -0800155#topo svg .link.secondary.optical {
Thomas Vachuska89543292014-11-19 11:28:33 -0800156 stroke: rgba(128,64,255,0.5);
Simon Hunta255a2c2014-11-13 22:29:35 -0800157 stroke-width: 4px;
158}
Thomas Vachuska5fedb7a2014-11-20 00:55:08 -0800159#topo svg .link.primary.optical {
160 stroke: #74f;
161 stroke-width: 6px;
162}
Simon Hunta255a2c2014-11-13 22:29:35 -0800163#topo svg .link.animated.optical {
Thomas Vachuska89543292014-11-19 11:28:33 -0800164 stroke: #74f;
Simon Hunta255a2c2014-11-13 22:29:35 -0800165 stroke-width: 10px;
166 stroke-dasharray: 8 8
167}
Thomas Vachuska4830d392014-11-09 17:09:56 -0800168
Simon Hunte2575b62014-11-18 15:25:53 -0800169#topo svg .linkLabel rect {
Thomas Vachuska20322ff2014-11-19 16:22:25 -0800170 fill: #eee;
171 stroke: none;
Simon Hunte2575b62014-11-18 15:25:53 -0800172}
173#topo svg .linkLabel text {
174 text-anchor: middle;
Thomas Vachuska20322ff2014-11-19 16:22:25 -0800175 stroke: #777;
176 stroke-width: 0.1px;
177 font-size: 9pt;
Simon Hunte2575b62014-11-18 15:25:53 -0800178}
Simon Hunt61d04042014-11-11 17:27:16 -0800179
Simon Huntac9e24f2014-11-12 10:12:21 -0800180/* Fly-in details pane */
Simon Hunt61d04042014-11-11 17:27:16 -0800181
182#topo-detail {
183/* gets base CSS from .fpanel in floatPanel.css */
184}
185
Simon Hunta6a9fe72014-11-20 11:17:12 -0800186#topo-detail svg {
187 display: inline-block;
188 width: 42px;
189 height: 42px;
Simon Hunt61d04042014-11-11 17:27:16 -0800190}
191
Simon Hunta6a9fe72014-11-20 11:17:12 -0800192#topo-detail svg .glyphIcon {
193 fill: black;
194 stroke: none;
195 fill-rule: evenodd;
196}
197
198#topo-detail h2 {
199 position: absolute;
Simon Hunta3dd9572014-11-20 15:22:41 -0800200 margin: 0px 4px;
201 top: 20px;
202 left: 50px;
203 color: black;
204}
205
206#topo-detail h3 {
Simon Hunta6a9fe72014-11-20 11:17:12 -0800207 margin: 0px 4px;
208 top: 20px;
209 left: 50px;
210 color: black;
Simon Hunt61d04042014-11-11 17:27:16 -0800211}
212
213#topo-detail p, table {
214 margin: 4px 4px;
215}
216
217#topo-detail td.label {
218 font-style: italic;
219 color: #777;
220 padding-right: 12px;
221}
222
223#topo-detail td.value {
Simon Hunt61d04042014-11-11 17:27:16 -0800224}
225
Simon Huntb53e0682014-11-12 13:32:01 -0800226
Simon Huntd72bc702014-11-13 18:38:04 -0800227#topo-detail .actionBtn {
228 margin: 6px 12px;
229 padding: 2px 6px;
230 font-size: 9pt;
231 cursor: pointer;
232 width: 50%;
233 text-align: center;
Thomas Vachuska89543292014-11-19 11:28:33 -0800234
235 /* theme specific... */
Thomas Vachuska4731f122014-11-20 04:56:19 -0800236 border: 2px solid #ddd;
237 border-radius: 4px;
238 color: #eee;
239 background: #888;
Simon Huntd72bc702014-11-13 18:38:04 -0800240}
241
242#topo-detail .actionBtn:hover {
Thomas Vachuska89543292014-11-19 11:28:33 -0800243 /* theme specific... */
Thomas Vachuska4731f122014-11-20 04:56:19 -0800244 border: 2px solid #ddd;
245 color: #eee;
246 background: #444;
Simon Huntd72bc702014-11-13 18:38:04 -0800247}
248
Simon Huntb53e0682014-11-12 13:32:01 -0800249
Simon Hunt61d04042014-11-11 17:27:16 -0800250#topo-detail hr {
251 height: 1px;
252 color: #ccc;
253 background-color: #ccc;
254 border: 0;
255}
256
Simon Hunta5e89142014-11-14 07:00:33 -0800257/* ONOS instance stuff */
258
259#topo-oibox {
Simon Hunt9b228cb2014-11-19 13:18:57 -0800260 width: 120px;
Simon Hunta5e89142014-11-14 07:00:33 -0800261}
262
263#topo-oibox .onosInst {
Simon Hunt9c15eca2014-11-15 18:37:59 -0800264 position: relative;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800265 width: 88%;
266 left: 4%;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800267 height: 80px;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800268 margin: 8px 0;
Simon Hunta5e89142014-11-14 07:00:33 -0800269 cursor: pointer;
Thomas Vachuska89543292014-11-19 11:28:33 -0800270
Simon Hunt9b228cb2014-11-19 13:18:57 -0800271 -moz-border-radius: 12px;
272 border-radius: 12px;
273
Thomas Vachuska89543292014-11-19 11:28:33 -0800274 /* theme-related */
275 color: #444;
276 background-color: #ccc;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800277 border: 4px solid #aaa;
Thomas Vachuska89543292014-11-19 11:28:33 -0800278}
279
280#topo-oibox .onosInst.online {
281 /* theme-related */
282 color: #113;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800283 background-color: #9cf;
284 border: 4px solid #357;
Simon Hunta5e89142014-11-14 07:00:33 -0800285}
286
Simon Hunt9c15eca2014-11-15 18:37:59 -0800287#topo-oibox .onosInst .onosTitle {
288 text-align: center;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800289 font-size: 10pt;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800290 margin-top: 6px;
Thomas Vachuska89543292014-11-19 11:28:33 -0800291 color: #888;
292}
293
294#topo-oibox .onosInst.online .onosTitle {
295 color: black;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800296}
297
Simon Hunt95908012014-11-20 10:20:26 -0800298#topo-oibox .onosInst svg .glyphIcon {
Simon Hunt9c15eca2014-11-15 18:37:59 -0800299 opacity: 0.5;
Simon Hunt95908012014-11-20 10:20:26 -0800300 fill: black;
301 stroke: none;
302 fill-rule: evenodd;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800303}
Simon Hunt95908012014-11-20 10:20:26 -0800304#topo-oibox .onosInst.online svg .glyphIcon {
305 opacity: 1;
306 fill: black;
307 stroke: none;
308 fill-rule: evenodd;
309}
310
Simon Hunt9c15eca2014-11-15 18:37:59 -0800311
312#topo-oibox .onosInst.online img {
313 opacity: 1.0;
Simon Huntfcfb46c2014-11-19 12:53:38 -0800314 padding: 3px;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800315}
316
317#topo-oibox .onosInst img.ui {
318 opacity: 1;
319 position: absolute;
320 top: 3px;
321 right: 3px;
322 width: 20px;
323 height: 20px;
324}
325
Simon Hunt9462e8c2014-11-14 17:28:09 -0800326#topo-oibox .onosInst.mastership {
327 opacity: 0.3;
328}
329#topo-oibox .onosInst.mastership.affinity {
330 opacity: 1.0;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800331 box-shadow: 0 2px 8px #33e;
Simon Hunt9462e8c2014-11-14 17:28:09 -0800332}
333
334
335#topo svg .suppressed {
Simon Hunta5e89142014-11-14 07:00:33 -0800336 opacity: 0.2;
337}
338
Simon Hunta6a9fe72014-11-20 11:17:12 -0800339/* Death Mask (starts hidden) */
Simon Hunt0c6d4192014-11-12 12:07:10 -0800340
341#topo-mask {
342 display: none;
343 position: absolute;
344 top: 0;
345 left: 0;
346 width: 10000px;
347 height: 8000px;
348 z-index: 5000;
349 background-color: rgba(0,0,0,0.75);
350 padding: 60px;
351}
352
353#topo-mask p {
354 margin: 8px 20px;
355 color: #ddd;
356 font-size: 14pt;
357 font-style: italic;
358}
359