blob: aeaad2d99a81a5b57b8b350b8eb44a96f7180c7f [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}
Simon Hunt61d04042014-11-11 17:27:16 -080099
100
101/* detail topo-detail pane */
102
103#topo-detail {
104/* gets base CSS from .fpanel in floatPanel.css */
105}
106
107
108#topo-detail h2 {
109 margin: 8px 4px;
110 color: black;
111 vertical-align: middle;
112}
113
114#topo-detail h2 img {
115 height: 32px;
116 padding-right: 8px;
117 vertical-align: middle;
118}
119
120#topo-detail p, table {
121 margin: 4px 4px;
122}
123
124#topo-detail td.label {
125 font-style: italic;
126 color: #777;
127 padding-right: 12px;
128}
129
130#topo-detail td.value {
131
132}
133
134#topo-detail hr {
135 height: 1px;
136 color: #ccc;
137 background-color: #ccc;
138 border: 0;
139}
140