blob: acd0bc9beeb180b61488ca0bbac9a6cec57c7d64 [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 Hunt56d51852014-11-09 13:03:35 -080044#topo svg .node.device.switch {
Simon Hunt99c13842014-11-06 18:23:12 -080045 fill: #17f;
46}
47
Simon Hunt56d51852014-11-09 13:03:35 -080048#topo svg .node.device.roadm {
Simon Huntc7ee0662014-11-05 16:44:37 -080049 fill: #03c;
Simon Hunt99c13842014-11-06 18:23:12 -080050}
51
Simon Hunt56d51852014-11-09 13:03:35 -080052#topo svg .node.host {
53 fill: #846;
54}
55
Simon Hunt7cd48f32014-11-09 23:42:50 -080056#topo svg .node.device text {
Simon Hunt99c13842014-11-06 18:23:12 -080057 fill: white;
58 font: 10pt sans-serif;
59 pointer-events: none;
60}
61
Simon Hunt7cd48f32014-11-09 23:42:50 -080062#topo svg .node.host text {
63 fill: #846;
64 font: 9pt sans-serif;
65 pointer-events: none;
66}
67
Simon Hunt56d51852014-11-09 13:03:35 -080068#topo svg .node.selected rect,
69#topo svg .node.selected circle {
Simon Hunt1a9eff92014-11-07 11:06:34 -080070 filter: url(#blue-glow);
71}
72
73/* LINKS */
74
Simon Hunt56d51852014-11-09 13:03:35 -080075#topo svg .link {
Simon Hunt1a9eff92014-11-07 11:06:34 -080076 opacity: .7;
77}
78
Thomas Vachuska4830d392014-11-09 17:09:56 -080079#topo svg .link.showPath {
80 stroke: #f00;
Simon Hunt7cd48f32014-11-09 23:42:50 -080081 stroke-width: 6px;
Thomas Vachuska4830d392014-11-09 17:09:56 -080082}
83
Simon Hunt99c13842014-11-06 18:23:12 -080084/* for debugging */
Simon Hunt56d51852014-11-09 13:03:35 -080085#topo svg .node circle.debug {
Simon Hunt99c13842014-11-06 18:23:12 -080086 fill: white;
87 stroke: red;
88}