blob: 6c0c313513797d51fe824f245e2ddb1d80174b0e [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
Simon Hunt1a9eff92014-11-07 11:06:34 -080027/* NODES */
28
Simon Hunt56d51852014-11-09 13:03:35 -080029#topo svg .node.device {
Simon Hunt99c13842014-11-06 18:23:12 -080030 stroke: none;
31 stroke-width: 1.5px;
32 cursor: pointer;
33}
34
Simon Hunt56d51852014-11-09 13:03:35 -080035#topo svg .node.device rect {
Simon Hunt1a9eff92014-11-07 11:06:34 -080036 stroke-width: 1.5px;
37}
38
Simon Hunt56d51852014-11-09 13:03:35 -080039#topo svg .node.device.fixed rect {
Simon Hunt99c13842014-11-06 18:23:12 -080040 stroke-width: 1.5;
41 stroke: #ccc;
42}
43
Simon Huntbb282f52014-11-10 11:08:19 -080044/* note: device is offline without the 'online' class */
45#topo svg .node.device {
46 fill: #777;
47}
48
49#topo svg .node.device.switch.online {
Simon Hunt99c13842014-11-06 18:23:12 -080050 fill: #17f;
51}
52
Simon Huntbb282f52014-11-10 11:08:19 -080053#topo svg .node.device.roadm.online {
Simon Huntc7ee0662014-11-05 16:44:37 -080054 fill: #03c;
Simon Hunt99c13842014-11-06 18:23:12 -080055}
56
Simon Hunt56d51852014-11-09 13:03:35 -080057#topo svg .node.host {
58 fill: #846;
59}
60
Simon Huntbb282f52014-11-10 11:08:19 -080061/* note: device is offline without the 'online' class */
Simon Hunt7cd48f32014-11-09 23:42:50 -080062#topo svg .node.device text {
Simon Huntbb282f52014-11-10 11:08:19 -080063 fill: #aaa;
Simon Hunt99c13842014-11-06 18:23:12 -080064 font: 10pt sans-serif;
65 pointer-events: none;
66}
67
Simon Huntbb282f52014-11-10 11:08:19 -080068#topo svg .node.device.online text {
69 fill: white;
70}
71
Simon Hunt7cd48f32014-11-09 23:42:50 -080072#topo svg .node.host text {
73 fill: #846;
74 font: 9pt sans-serif;
75 pointer-events: none;
76}
77
Simon Hunt56d51852014-11-09 13:03:35 -080078#topo svg .node.selected rect,
79#topo svg .node.selected circle {
Simon Hunt1a9eff92014-11-07 11:06:34 -080080 filter: url(#blue-glow);
81}
82
83/* LINKS */
84
Simon Hunt56d51852014-11-09 13:03:35 -080085#topo svg .link {
Simon Hunt1a9eff92014-11-07 11:06:34 -080086 opacity: .7;
87}
88
Thomas Vachuska4830d392014-11-09 17:09:56 -080089#topo svg .link.showPath {
90 stroke: #f00;
Simon Hunt7cd48f32014-11-09 23:42:50 -080091 stroke-width: 6px;
Thomas Vachuska4830d392014-11-09 17:09:56 -080092}
93
Simon Hunt99c13842014-11-06 18:23:12 -080094/* for debugging */
Simon Hunt56d51852014-11-09 13:03:35 -080095#topo svg .node circle.debug {
Simon Hunt99c13842014-11-06 18:23:12 -080096 fill: white;
97 stroke: red;
98}