blob: 8a3f973206865feb06744ac3141a0eb51747ceb4 [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 Huntc72967b2014-11-20 09:21:42 -080035#topo svg .glyphIcon {
36 fill: black;
37 stroke: none;
38 fill-rule: evenodd;
39}
40#topo svg .glyphIcon rect {
41 fill: #ddd;
Simon Hunt7fa116d2014-11-17 14:16:55 -080042 stroke: none;
43}
44
Simon Hunt1a9eff92014-11-07 11:06:34 -080045/* NODES */
46
Simon Huntac9e24f2014-11-12 10:12:21 -080047#topo svg .node {
Simon Hunt99c13842014-11-06 18:23:12 -080048 cursor: pointer;
49}
50
Simon Huntac9e24f2014-11-12 10:12:21 -080051#topo svg .node.selected rect,
52#topo svg .node.selected circle {
Thomas Vachuskaece59ee2014-11-19 19:06:11 -080053 fill: #ffA300;
Simon Huntac9e24f2014-11-12 10:12:21 -080054 filter: url(#blue-glow);
55}
56
57/* for debugging */
58#topo svg .node circle.debug {
59 fill: white;
60 stroke: red;
61}
62
63#topo svg .node text {
64 pointer-events: none;
65}
66
67/* Device Nodes */
68
69#topo svg .node.device {
70}
71
Simon Hunt56d51852014-11-09 13:03:35 -080072#topo svg .node.device rect {
Simon Hunt1a9eff92014-11-07 11:06:34 -080073 stroke-width: 1.5px;
74}
75
Simon Hunt56d51852014-11-09 13:03:35 -080076#topo svg .node.device.fixed rect {
Simon Hunt99c13842014-11-06 18:23:12 -080077 stroke-width: 1.5;
Thomas Vachuska89543292014-11-19 11:28:33 -080078 stroke: #ccc;
Simon Hunt99c13842014-11-06 18:23:12 -080079}
80
Simon Huntbb282f52014-11-10 11:08:19 -080081/* note: device is offline without the 'online' class */
Thomas Vachuska89543292014-11-19 11:28:33 -080082#topo svg .node.device {
83 fill: #777;
84}
85
86#topo svg .node.device.switch.online {
87 fill: #17f;
88}
89
90#topo svg .node.device.roadm.online {
Thomas Vachuskaece59ee2014-11-19 19:06:11 -080091 fill: #335a9a;
Thomas Vachuska89543292014-11-19 11:28:33 -080092}
93
Simon Huntbb282f52014-11-10 11:08:19 -080094/* note: device is offline without the 'online' class */
Simon Hunt7cd48f32014-11-09 23:42:50 -080095#topo svg .node.device text {
Thomas Vachuska89543292014-11-19 11:28:33 -080096 fill: #aaa;
Simon Hunt99c13842014-11-06 18:23:12 -080097 font: 10pt sans-serif;
Simon Hunt99c13842014-11-06 18:23:12 -080098}
99
Thomas Vachuska89543292014-11-19 11:28:33 -0800100#topo svg .node.device.online text {
101 fill: white;
102}
103
104
Simon Huntac9e24f2014-11-12 10:12:21 -0800105/* Host Nodes */
106
Thomas Vachuska89543292014-11-19 11:28:33 -0800107#topo svg .node.host {
108 stroke: #000;
109}
110
Simon Hunt7cd48f32014-11-09 23:42:50 -0800111#topo svg .node.host text {
112 fill: #846;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800113 stroke: none;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800114 font: 9pt sans-serif;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800115}
116
Simon Hunt7fa116d2014-11-17 14:16:55 -0800117svg .node.host circle {
Thomas Vachuska89543292014-11-19 11:28:33 -0800118 stroke: #000;
119 fill: #ddd;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800120}
121
Simon Hunt1a9eff92014-11-07 11:06:34 -0800122/* LINKS */
123
Simon Hunt56d51852014-11-09 13:03:35 -0800124#topo svg .link {
Simon Hunt1a9eff92014-11-07 11:06:34 -0800125 opacity: .7;
Thomas Vachuskaa3148a72014-11-19 21:38:35 -0800126 stroke-width: 1.2px;
Simon Hunt1a9eff92014-11-07 11:06:34 -0800127}
128
Thomas Vachuskae4cebaf2014-11-15 18:49:34 -0800129#topo svg .link.inactive {
130 opacity: .2;
131 stroke-dasharray: 8 4;
132}
133
Simon Hunta255a2c2014-11-13 22:29:35 -0800134#topo svg .link.secondary {
Thomas Vachuskaa3148a72014-11-19 21:38:35 -0800135 stroke: rgba(0,153,51,0.5);
Thomas Vachuskacd2920c2014-11-19 14:49:55 -0800136 stroke-width: 3px;
Simon Hunta255a2c2014-11-13 22:29:35 -0800137}
Thomas Vachuska5fedb7a2014-11-20 00:55:08 -0800138#topo svg .link.primary {
139 stroke: #ffA300;
140 stroke-width: 4px;
141}
Simon Hunta255a2c2014-11-13 22:29:35 -0800142#topo svg .link.animated {
Thomas Vachuskaa3148a72014-11-19 21:38:35 -0800143 stroke: #ffA300;
Simon Hunta255a2c2014-11-13 22:29:35 -0800144}
145
Simon Hunta255a2c2014-11-13 22:29:35 -0800146#topo svg .link.secondary.optical {
Thomas Vachuska89543292014-11-19 11:28:33 -0800147 stroke: rgba(128,64,255,0.5);
Simon Hunta255a2c2014-11-13 22:29:35 -0800148 stroke-width: 4px;
149}
Thomas Vachuska5fedb7a2014-11-20 00:55:08 -0800150#topo svg .link.primary.optical {
151 stroke: #74f;
152 stroke-width: 6px;
153}
Simon Hunta255a2c2014-11-13 22:29:35 -0800154#topo svg .link.animated.optical {
Thomas Vachuska89543292014-11-19 11:28:33 -0800155 stroke: #74f;
Simon Hunta255a2c2014-11-13 22:29:35 -0800156 stroke-width: 10px;
157 stroke-dasharray: 8 8
158}
Thomas Vachuska4830d392014-11-09 17:09:56 -0800159
Simon Hunte2575b62014-11-18 15:25:53 -0800160#topo svg .linkLabel rect {
Thomas Vachuska20322ff2014-11-19 16:22:25 -0800161 fill: #eee;
162 stroke: none;
Simon Hunte2575b62014-11-18 15:25:53 -0800163}
164#topo svg .linkLabel text {
165 text-anchor: middle;
Thomas Vachuska20322ff2014-11-19 16:22:25 -0800166 stroke: #777;
167 stroke-width: 0.1px;
168 font-size: 9pt;
Simon Hunte2575b62014-11-18 15:25:53 -0800169}
Simon Hunt61d04042014-11-11 17:27:16 -0800170
Simon Huntac9e24f2014-11-12 10:12:21 -0800171/* Fly-in details pane */
Simon Hunt61d04042014-11-11 17:27:16 -0800172
173#topo-detail {
174/* gets base CSS from .fpanel in floatPanel.css */
175}
176
Simon Hunt61d04042014-11-11 17:27:16 -0800177#topo-detail h2 {
178 margin: 8px 4px;
179 color: black;
180 vertical-align: middle;
181}
182
183#topo-detail h2 img {
184 height: 32px;
185 padding-right: 8px;
186 vertical-align: middle;
187}
188
189#topo-detail p, table {
190 margin: 4px 4px;
191}
192
193#topo-detail td.label {
194 font-style: italic;
195 color: #777;
196 padding-right: 12px;
197}
198
199#topo-detail td.value {
Simon Hunt61d04042014-11-11 17:27:16 -0800200}
201
Simon Huntb53e0682014-11-12 13:32:01 -0800202
Simon Huntd72bc702014-11-13 18:38:04 -0800203#topo-detail .actionBtn {
204 margin: 6px 12px;
205 padding: 2px 6px;
206 font-size: 9pt;
207 cursor: pointer;
208 width: 50%;
209 text-align: center;
Thomas Vachuska89543292014-11-19 11:28:33 -0800210
211 /* theme specific... */
212 border: 1px solid #ddf;
213 color: #99f;
Simon Huntd72bc702014-11-13 18:38:04 -0800214}
215
216#topo-detail .actionBtn:hover {
Thomas Vachuska89543292014-11-19 11:28:33 -0800217 /* theme specific... */
218 border: 1px solid #ddf;
219 background: #eef;
220 color: #77d;
Simon Huntd72bc702014-11-13 18:38:04 -0800221}
222
Simon Huntb53e0682014-11-12 13:32:01 -0800223
Simon Hunt61d04042014-11-11 17:27:16 -0800224#topo-detail hr {
225 height: 1px;
226 color: #ccc;
227 background-color: #ccc;
228 border: 0;
229}
230
Simon Hunta5e89142014-11-14 07:00:33 -0800231/* ONOS instance stuff */
232
233#topo-oibox {
Simon Hunt9b228cb2014-11-19 13:18:57 -0800234 width: 120px;
Simon Hunta5e89142014-11-14 07:00:33 -0800235}
236
237#topo-oibox .onosInst {
Simon Hunt9c15eca2014-11-15 18:37:59 -0800238 position: relative;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800239 width: 88%;
240 left: 4%;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800241 height: 80px;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800242 margin: 8px 0;
Simon Hunta5e89142014-11-14 07:00:33 -0800243 cursor: pointer;
Thomas Vachuska89543292014-11-19 11:28:33 -0800244
Simon Hunt9b228cb2014-11-19 13:18:57 -0800245 -moz-border-radius: 12px;
246 border-radius: 12px;
247
Thomas Vachuska89543292014-11-19 11:28:33 -0800248 /* theme-related */
249 color: #444;
250 background-color: #ccc;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800251 border: 4px solid #aaa;
Thomas Vachuska89543292014-11-19 11:28:33 -0800252}
253
254#topo-oibox .onosInst.online {
255 /* theme-related */
256 color: #113;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800257 background-color: #9cf;
258 border: 4px solid #357;
Simon Hunta5e89142014-11-14 07:00:33 -0800259}
260
Simon Hunt9c15eca2014-11-15 18:37:59 -0800261#topo-oibox .onosInst .onosTitle {
262 text-align: center;
Simon Hunt9b228cb2014-11-19 13:18:57 -0800263 font-size: 10pt;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800264 margin-top: 6px;
Thomas Vachuska89543292014-11-19 11:28:33 -0800265 color: #888;
266}
267
268#topo-oibox .onosInst.online .onosTitle {
269 color: black;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800270}
271
272#topo-oibox .onosInst img {
273 opacity: 0.5;
Simon Huntfcfb46c2014-11-19 12:53:38 -0800274 padding: 3px;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800275}
276
277#topo-oibox .onosInst.online img {
278 opacity: 1.0;
Simon Huntfcfb46c2014-11-19 12:53:38 -0800279 padding: 3px;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800280}
281
282#topo-oibox .onosInst img.ui {
283 opacity: 1;
284 position: absolute;
285 top: 3px;
286 right: 3px;
287 width: 20px;
288 height: 20px;
289}
290
Simon Hunt9462e8c2014-11-14 17:28:09 -0800291#topo-oibox .onosInst.mastership {
292 opacity: 0.3;
293}
294#topo-oibox .onosInst.mastership.affinity {
295 opacity: 1.0;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800296 box-shadow: 0 2px 8px #33e;
Simon Hunt9462e8c2014-11-14 17:28:09 -0800297}
298
299
300#topo svg .suppressed {
Simon Hunta5e89142014-11-14 07:00:33 -0800301 opacity: 0.2;
302}
303
Simon Hunt0c6d4192014-11-12 12:07:10 -0800304/* Web Socket Closed Mask (starts hidden) */
305
306#topo-mask {
307 display: none;
308 position: absolute;
309 top: 0;
310 left: 0;
311 width: 10000px;
312 height: 8000px;
313 z-index: 5000;
314 background-color: rgba(0,0,0,0.75);
315 padding: 60px;
316}
317
318#topo-mask p {
319 margin: 8px 20px;
320 color: #ddd;
321 font-size: 14pt;
322 font-style: italic;
323}
324