blob: 20ed2fd8f0b42a701c455850c247bd010b2795bc [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;
29 stroke: #aaaaaa;
Paul Greyson6cb8ca02014-11-12 18:09:02 -080030 fill: transparent;
31}
32
Simon Huntac9e24f2014-11-12 10:12:21 -080033
Simon Hunt7fa116d2014-11-17 14:16:55 -080034#topo svg .glyph {
Thomas Vachuska89543292014-11-19 11:28:33 -080035 fill: white;
Simon Hunt7fa116d2014-11-17 14:16:55 -080036 stroke: none;
37}
38
Simon Hunt1a9eff92014-11-07 11:06:34 -080039/* NODES */
40
Simon Huntac9e24f2014-11-12 10:12:21 -080041#topo svg .node {
Simon Hunt99c13842014-11-06 18:23:12 -080042 cursor: pointer;
43}
44
Simon Huntac9e24f2014-11-12 10:12:21 -080045#topo svg .node.selected rect,
46#topo svg .node.selected circle {
47 filter: url(#blue-glow);
48}
49
50/* for debugging */
51#topo svg .node circle.debug {
52 fill: white;
53 stroke: red;
54}
55
56#topo svg .node text {
57 pointer-events: none;
58}
59
60/* Device Nodes */
61
62#topo svg .node.device {
63}
64
Simon Hunt56d51852014-11-09 13:03:35 -080065#topo svg .node.device rect {
Simon Hunt1a9eff92014-11-07 11:06:34 -080066 stroke-width: 1.5px;
67}
68
Simon Hunt56d51852014-11-09 13:03:35 -080069#topo svg .node.device.fixed rect {
Simon Hunt99c13842014-11-06 18:23:12 -080070 stroke-width: 1.5;
Thomas Vachuska89543292014-11-19 11:28:33 -080071 stroke: #ccc;
Simon Hunt99c13842014-11-06 18:23:12 -080072}
73
Simon Huntbb282f52014-11-10 11:08:19 -080074/* note: device is offline without the 'online' class */
Thomas Vachuska89543292014-11-19 11:28:33 -080075#topo svg .node.device {
76 fill: #777;
77}
78
79#topo svg .node.device.switch.online {
80 fill: #17f;
81}
82
83#topo svg .node.device.roadm.online {
84 fill: #03c;
85}
86
Simon Huntbb282f52014-11-10 11:08:19 -080087/* note: device is offline without the 'online' class */
Simon Hunt7cd48f32014-11-09 23:42:50 -080088#topo svg .node.device text {
Thomas Vachuska89543292014-11-19 11:28:33 -080089 fill: #aaa;
Simon Hunt99c13842014-11-06 18:23:12 -080090 font: 10pt sans-serif;
Simon Hunt99c13842014-11-06 18:23:12 -080091}
92
Thomas Vachuska89543292014-11-19 11:28:33 -080093#topo svg .node.device.online text {
94 fill: white;
95}
96
97
Simon Huntac9e24f2014-11-12 10:12:21 -080098/* Host Nodes */
99
Thomas Vachuska89543292014-11-19 11:28:33 -0800100#topo svg .node.host {
101 stroke: #000;
102}
103
Simon Hunt7cd48f32014-11-09 23:42:50 -0800104#topo svg .node.host text {
105 fill: #846;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800106 stroke: none;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800107 font: 9pt sans-serif;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800108}
109
Simon Hunt7fa116d2014-11-17 14:16:55 -0800110svg .node.host circle {
Thomas Vachuska89543292014-11-19 11:28:33 -0800111 stroke: #000;
112 fill: #ddd;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800113}
114
115#topo svg .node.host.bgpSpeaker circle {
Thomas Vachuska89543292014-11-19 11:28:33 -0800116 stroke: #000;
117 fill: #ddd;
118}
119
120#topo svg .node.host.router circle {
121 stroke: #000;
122 fill: #ddd;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800123}
Simon Hunt1a9eff92014-11-07 11:06:34 -0800124
125/* LINKS */
126
Simon Hunt56d51852014-11-09 13:03:35 -0800127#topo svg .link {
Simon Hunt1a9eff92014-11-07 11:06:34 -0800128 opacity: .7;
129}
130
Thomas Vachuskae4cebaf2014-11-15 18:49:34 -0800131#topo svg .link.inactive {
132 opacity: .2;
133 stroke-dasharray: 8 4;
134}
135
Simon Hunta255a2c2014-11-13 22:29:35 -0800136#topo svg .link.primary {
Thomas Vachuska89543292014-11-19 11:28:33 -0800137 stroke: #f11;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800138 stroke-width: 6px;
Thomas Vachuska4830d392014-11-09 17:09:56 -0800139}
Simon Hunta255a2c2014-11-13 22:29:35 -0800140#topo svg .link.secondary {
Thomas Vachuska89543292014-11-19 11:28:33 -0800141 stroke: rgba(255,100,100,0.5);
Simon Hunta255a2c2014-11-13 22:29:35 -0800142 stroke-width: 4px;
143}
144#topo svg .link.animated {
Thomas Vachuska89543292014-11-19 11:28:33 -0800145 stroke: #f11;
Simon Hunta255a2c2014-11-13 22:29:35 -0800146 stroke-width: 10px;
147 stroke-dasharray: 8 8
148}
149
150#topo svg .link.primary.optical {
Thomas Vachuska89543292014-11-19 11:28:33 -0800151 stroke: #74f;
Simon Hunta255a2c2014-11-13 22:29:35 -0800152 stroke-width: 6px;
153}
154#topo svg .link.secondary.optical {
Thomas Vachuska89543292014-11-19 11:28:33 -0800155 stroke: rgba(128,64,255,0.5);
Simon Hunta255a2c2014-11-13 22:29:35 -0800156 stroke-width: 4px;
157}
158#topo svg .link.animated.optical {
Thomas Vachuska89543292014-11-19 11:28:33 -0800159 stroke: #74f;
Simon Hunta255a2c2014-11-13 22:29:35 -0800160 stroke-width: 10px;
161 stroke-dasharray: 8 8
162}
Thomas Vachuska4830d392014-11-09 17:09:56 -0800163
Simon Hunte2575b62014-11-18 15:25:53 -0800164#topo svg .linkLabel rect {
165 fill: #eef;
166 stroke: blue;
167 stroke-width: 0.3;
168}
169#topo svg .linkLabel text {
170 text-anchor: middle;
171 fill: #a13d11;
172 stroke: none;
173 font-size: 8pt;
174}
Simon Hunt61d04042014-11-11 17:27:16 -0800175
Simon Huntac9e24f2014-11-12 10:12:21 -0800176/* Fly-in details pane */
Simon Hunt61d04042014-11-11 17:27:16 -0800177
178#topo-detail {
179/* gets base CSS from .fpanel in floatPanel.css */
180}
181
Simon Hunt61d04042014-11-11 17:27:16 -0800182#topo-detail h2 {
183 margin: 8px 4px;
184 color: black;
185 vertical-align: middle;
186}
187
188#topo-detail h2 img {
189 height: 32px;
190 padding-right: 8px;
191 vertical-align: middle;
192}
193
194#topo-detail p, table {
195 margin: 4px 4px;
196}
197
198#topo-detail td.label {
199 font-style: italic;
200 color: #777;
201 padding-right: 12px;
202}
203
204#topo-detail td.value {
Simon Hunt61d04042014-11-11 17:27:16 -0800205}
206
Simon Huntb53e0682014-11-12 13:32:01 -0800207
Simon Huntd72bc702014-11-13 18:38:04 -0800208#topo-detail .actionBtn {
209 margin: 6px 12px;
210 padding: 2px 6px;
211 font-size: 9pt;
212 cursor: pointer;
213 width: 50%;
214 text-align: center;
Thomas Vachuska89543292014-11-19 11:28:33 -0800215
216 /* theme specific... */
217 border: 1px solid #ddf;
218 color: #99f;
Simon Huntd72bc702014-11-13 18:38:04 -0800219}
220
221#topo-detail .actionBtn:hover {
Thomas Vachuska89543292014-11-19 11:28:33 -0800222 /* theme specific... */
223 border: 1px solid #ddf;
224 background: #eef;
225 color: #77d;
Simon Huntd72bc702014-11-13 18:38:04 -0800226}
227
Simon Huntb53e0682014-11-12 13:32:01 -0800228
Simon Hunt61d04042014-11-11 17:27:16 -0800229#topo-detail hr {
230 height: 1px;
231 color: #ccc;
232 background-color: #ccc;
233 border: 0;
234}
235
Simon Hunta5e89142014-11-14 07:00:33 -0800236/* ONOS instance stuff */
237
238#topo-oibox {
Simon Hunt9b228cb2014-11-19 13:18:57 -0800239 width: 120px;
Simon Hunta5e89142014-11-14 07:00:33 -0800240}
241
242#topo-oibox .onosInst {
Simon Hunt9c15eca2014-11-15 18:37:59 -0800243 position: relative;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800244 width: 88%;
245 left: 4%;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800246 height: 80px;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800247 margin: 8px 0;
Simon Hunta5e89142014-11-14 07:00:33 -0800248 cursor: pointer;
Thomas Vachuska89543292014-11-19 11:28:33 -0800249
Simon Hunt9b228cb2014-11-19 13:18:57 -0800250 -moz-border-radius: 12px;
251 border-radius: 12px;
252
Thomas Vachuska89543292014-11-19 11:28:33 -0800253 /* theme-related */
254 color: #444;
255 background-color: #ccc;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800256 border: 4px solid #aaa;
Thomas Vachuska89543292014-11-19 11:28:33 -0800257}
258
259#topo-oibox .onosInst.online {
260 /* theme-related */
261 color: #113;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800262 background-color: #9cf;
263 border: 4px solid #357;
Simon Hunta5e89142014-11-14 07:00:33 -0800264}
265
Simon Hunt9c15eca2014-11-15 18:37:59 -0800266#topo-oibox .onosInst .onosTitle {
267 text-align: center;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800268 font-size: 10pt;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800269 margin-top: 6px;
Thomas Vachuska89543292014-11-19 11:28:33 -0800270 color: #888;
271}
272
273#topo-oibox .onosInst.online .onosTitle {
274 color: black;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800275}
276
277#topo-oibox .onosInst img {
278 opacity: 0.5;
Simon Huntfcfb46c2014-11-19 12:53:38 -0800279 padding: 3px;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800280}
281
282#topo-oibox .onosInst.online img {
283 opacity: 1.0;
Simon Huntfcfb46c2014-11-19 12:53:38 -0800284 padding: 3px;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800285}
286
287#topo-oibox .onosInst img.ui {
288 opacity: 1;
289 position: absolute;
290 top: 3px;
291 right: 3px;
292 width: 20px;
293 height: 20px;
294}
295
Simon Hunt9462e8c2014-11-14 17:28:09 -0800296#topo-oibox .onosInst.mastership {
297 opacity: 0.3;
298}
299#topo-oibox .onosInst.mastership.affinity {
300 opacity: 1.0;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800301 box-shadow: 0 2px 8px #33e;
Simon Hunt9462e8c2014-11-14 17:28:09 -0800302}
303
304
305#topo svg .suppressed {
Simon Hunta5e89142014-11-14 07:00:33 -0800306 opacity: 0.2;
307}
308
Simon Hunt0c6d4192014-11-12 12:07:10 -0800309/* Web Socket Closed Mask (starts hidden) */
310
311#topo-mask {
312 display: none;
313 position: absolute;
314 top: 0;
315 left: 0;
316 width: 10000px;
317 height: 8000px;
318 z-index: 5000;
319 background-color: rgba(0,0,0,0.75);
320 padding: 60px;
321}
322
323#topo-mask p {
324 margin: 8px 20px;
325 color: #ddd;
326 font-size: 14pt;
327 font-style: italic;
328}
329