blob: 4fd3d71b46a22f5b10c0d62f1c6cd0310adf6543 [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 {
239 width: 80px;
240}
241
242#topo-oibox .onosInst {
Simon Hunt9c15eca2014-11-15 18:37:59 -0800243 position: relative;
Simon Hunta5e89142014-11-14 07:00:33 -0800244 width: 80%;
245 left: 10%;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800246 height: 80px;
247 margin: 4px 0;
Simon Hunta5e89142014-11-14 07:00:33 -0800248 cursor: pointer;
Thomas Vachuska89543292014-11-19 11:28:33 -0800249
250 /* theme-related */
251 color: #444;
252 background-color: #ccc;
253 border: 2px solid #aaa;
254}
255
256#topo-oibox .onosInst.online {
257 /* theme-related */
258 color: #113;
259 background-color: #bbf;
260 border: 2px solid #555;
Simon Hunta5e89142014-11-14 07:00:33 -0800261}
262
Simon Hunt9c15eca2014-11-15 18:37:59 -0800263#topo-oibox .onosInst .onosTitle {
264 text-align: center;
265 font-size: 11pt;
266 margin-top: 6px;
Thomas Vachuska89543292014-11-19 11:28:33 -0800267 color: #888;
268}
269
270#topo-oibox .onosInst.online .onosTitle {
271 color: black;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800272}
273
274#topo-oibox .onosInst img {
275 opacity: 0.5;
Simon Huntfcfb46c2014-11-19 12:53:38 -0800276 padding: 3px;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800277}
278
279#topo-oibox .onosInst.online img {
280 opacity: 1.0;
Simon Huntfcfb46c2014-11-19 12:53:38 -0800281 padding: 3px;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800282}
283
284#topo-oibox .onosInst img.ui {
285 opacity: 1;
286 position: absolute;
287 top: 3px;
288 right: 3px;
289 width: 20px;
290 height: 20px;
291}
292
Simon Hunt9462e8c2014-11-14 17:28:09 -0800293#topo-oibox .onosInst.mastership {
294 opacity: 0.3;
295}
296#topo-oibox .onosInst.mastership.affinity {
297 opacity: 1.0;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800298 box-shadow: 0 2px 8px #33e;
Simon Hunt9462e8c2014-11-14 17:28:09 -0800299}
300
301
302#topo svg .suppressed {
Simon Hunta5e89142014-11-14 07:00:33 -0800303 opacity: 0.2;
304}
305
Simon Hunt0c6d4192014-11-12 12:07:10 -0800306/* Web Socket Closed Mask (starts hidden) */
307
308#topo-mask {
309 display: none;
310 position: absolute;
311 top: 0;
312 left: 0;
313 width: 10000px;
314 height: 8000px;
315 z-index: 5000;
316 background-color: rgba(0,0,0,0.75);
317 padding: 60px;
318}
319
320#topo-mask p {
321 margin: 8px 20px;
322 color: #ddd;
323 font-size: 14pt;
324 font-style: italic;
325}
326