blob: f1dbf5e7c9c28764e244cc87de525432ba2276ae [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 {
28 stroke-width: 2px;
29 stroke: #aaaaaa;
30 fill: transparent;
31}
32
Simon Huntac9e24f2014-11-12 10:12:21 -080033
Simon Hunt7fa116d2014-11-17 14:16:55 -080034#topo svg .glyph {
35 fill: white;
36 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;
71 stroke: #ccc;
72}
73
Simon Huntbb282f52014-11-10 11:08:19 -080074/* note: device is offline without the 'online' class */
75#topo svg .node.device {
76 fill: #777;
77}
78
79#topo svg .node.device.switch.online {
Simon Hunt99c13842014-11-06 18:23:12 -080080 fill: #17f;
81}
82
Simon Huntbb282f52014-11-10 11:08:19 -080083#topo svg .node.device.roadm.online {
Simon Huntc7ee0662014-11-05 16:44:37 -080084 fill: #03c;
Simon Hunt99c13842014-11-06 18:23:12 -080085}
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 {
Simon Huntbb282f52014-11-10 11:08:19 -080089 fill: #aaa;
Simon Hunt99c13842014-11-06 18:23:12 -080090 font: 10pt sans-serif;
Simon Hunt99c13842014-11-06 18:23:12 -080091}
92
Simon Huntbb282f52014-11-10 11:08:19 -080093#topo svg .node.device.online text {
94 fill: white;
95}
96
Simon Huntac9e24f2014-11-12 10:12:21 -080097
98/* Host Nodes */
99
100#topo svg .node.host {
Simon Hunt7fa116d2014-11-17 14:16:55 -0800101 stroke: #000;
Simon Huntac9e24f2014-11-12 10:12:21 -0800102}
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 {
111 fill: #c96;
112}
113
114#topo svg .node.host.bgpSpeaker circle {
115 fill: #853;
116}
Simon Hunt1a9eff92014-11-07 11:06:34 -0800117
118/* LINKS */
119
Simon Hunt56d51852014-11-09 13:03:35 -0800120#topo svg .link {
Simon Hunt1a9eff92014-11-07 11:06:34 -0800121 opacity: .7;
122}
123
Thomas Vachuskae4cebaf2014-11-15 18:49:34 -0800124#topo svg .link.inactive {
125 opacity: .2;
126 stroke-dasharray: 8 4;
127}
128
Simon Hunta255a2c2014-11-13 22:29:35 -0800129#topo svg .link.primary {
130 stroke: #f11;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800131 stroke-width: 6px;
Thomas Vachuska4830d392014-11-09 17:09:56 -0800132}
Simon Hunta255a2c2014-11-13 22:29:35 -0800133#topo svg .link.secondary {
134 stroke: rgba(255,100,100,0.5);
135 stroke-width: 4px;
136}
137#topo svg .link.animated {
138 stroke: #f11;
139 stroke-width: 10px;
140 stroke-dasharray: 8 8
141}
142
143#topo svg .link.primary.optical {
144 stroke: #74f;
145 stroke-width: 6px;
146}
147#topo svg .link.secondary.optical {
148 stroke: rgba(128,64,255,0.5);
149 stroke-width: 4px;
150}
151#topo svg .link.animated.optical {
152 stroke: #74f;
153 stroke-width: 10px;
154 stroke-dasharray: 8 8
155}
Thomas Vachuska4830d392014-11-09 17:09:56 -0800156
Simon Hunt61d04042014-11-11 17:27:16 -0800157
Simon Huntac9e24f2014-11-12 10:12:21 -0800158/* Fly-in details pane */
Simon Hunt61d04042014-11-11 17:27:16 -0800159
160#topo-detail {
161/* gets base CSS from .fpanel in floatPanel.css */
162}
163
Simon Hunt61d04042014-11-11 17:27:16 -0800164#topo-detail h2 {
165 margin: 8px 4px;
166 color: black;
167 vertical-align: middle;
168}
169
170#topo-detail h2 img {
171 height: 32px;
172 padding-right: 8px;
173 vertical-align: middle;
174}
175
176#topo-detail p, table {
177 margin: 4px 4px;
178}
179
180#topo-detail td.label {
181 font-style: italic;
182 color: #777;
183 padding-right: 12px;
184}
185
186#topo-detail td.value {
Simon Hunt61d04042014-11-11 17:27:16 -0800187}
188
Simon Huntb53e0682014-11-12 13:32:01 -0800189
Simon Huntd72bc702014-11-13 18:38:04 -0800190#topo-detail .actionBtn {
191 margin: 6px 12px;
192 padding: 2px 6px;
193 font-size: 9pt;
194 cursor: pointer;
195 width: 50%;
196 text-align: center;
197
198 /* theme specific... */
199 border: 1px solid #ddf;
200 color: #99f;
201}
202
203#topo-detail .actionBtn:hover {
204 /* theme specific... */
205 border: 1px solid #ddf;
206 background: #eef;
207 color: #77d;
208}
209
Simon Huntb53e0682014-11-12 13:32:01 -0800210
Simon Hunt61d04042014-11-11 17:27:16 -0800211#topo-detail hr {
212 height: 1px;
213 color: #ccc;
214 background-color: #ccc;
215 border: 0;
216}
217
Simon Hunta5e89142014-11-14 07:00:33 -0800218/* ONOS instance stuff */
219
220#topo-oibox {
221 width: 80px;
222}
223
224#topo-oibox .onosInst {
Simon Hunt9c15eca2014-11-15 18:37:59 -0800225 position: relative;
Simon Hunta5e89142014-11-14 07:00:33 -0800226 width: 80%;
227 left: 10%;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800228 height: 80px;
229 margin: 4px 0;
Simon Hunta5e89142014-11-14 07:00:33 -0800230 cursor: pointer;
231
232 /* theme-related */
233 color: #444;
234 background-color: #ccc;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800235 border: 2px solid #aaa;
Simon Hunta5e89142014-11-14 07:00:33 -0800236}
237
Simon Hunta5e89142014-11-14 07:00:33 -0800238#topo-oibox .onosInst.online {
239 /* theme-related */
240 color: #113;
241 background-color: #bbf;
242 border: 2px solid #555;
243}
244
Simon Hunt9c15eca2014-11-15 18:37:59 -0800245#topo-oibox .onosInst .onosTitle {
246 text-align: center;
247 font-size: 11pt;
248 margin-top: 6px;
249 color: #888;
250}
251
252#topo-oibox .onosInst.online .onosTitle {
253 color: black;
254}
255
256#topo-oibox .onosInst img {
257 opacity: 0.5;
258}
259
260#topo-oibox .onosInst.online img {
261 opacity: 1.0;
262}
263
264#topo-oibox .onosInst img.ui {
265 opacity: 1;
266 position: absolute;
267 top: 3px;
268 right: 3px;
269 width: 20px;
270 height: 20px;
271}
272
Simon Hunt9462e8c2014-11-14 17:28:09 -0800273#topo-oibox .onosInst.mastership {
274 opacity: 0.3;
275}
276#topo-oibox .onosInst.mastership.affinity {
277 opacity: 1.0;
Simon Hunt7fa116d2014-11-17 14:16:55 -0800278 box-shadow: 0 2px 8px #33e;
Simon Hunt9462e8c2014-11-14 17:28:09 -0800279}
280
281
282#topo svg .suppressed {
Simon Hunta5e89142014-11-14 07:00:33 -0800283 opacity: 0.2;
284}
285
Simon Hunt0c6d4192014-11-12 12:07:10 -0800286/* Web Socket Closed Mask (starts hidden) */
287
288#topo-mask {
289 display: none;
290 position: absolute;
291 top: 0;
292 left: 0;
293 width: 10000px;
294 height: 8000px;
295 z-index: 5000;
296 background-color: rgba(0,0,0,0.75);
297 padding: 60px;
298}
299
300#topo-mask p {
301 margin: 8px 20px;
302 color: #ddd;
303 font-size: 14pt;
304 font-style: italic;
305}
306