blob: 438f265ba9a3a983bb4226b37524ce6efe0ca063 [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 Hunt1a9eff92014-11-07 11:06:34 -080034/* NODES */
35
Simon Huntac9e24f2014-11-12 10:12:21 -080036#topo svg .node {
Simon Hunt99c13842014-11-06 18:23:12 -080037 cursor: pointer;
38}
39
Simon Huntac9e24f2014-11-12 10:12:21 -080040#topo svg .node.selected rect,
41#topo svg .node.selected circle {
42 filter: url(#blue-glow);
43}
44
45/* for debugging */
46#topo svg .node circle.debug {
47 fill: white;
48 stroke: red;
49}
50
51#topo svg .node text {
52 pointer-events: none;
53}
54
55/* Device Nodes */
56
57#topo svg .node.device {
58}
59
Simon Hunt56d51852014-11-09 13:03:35 -080060#topo svg .node.device rect {
Simon Hunt1a9eff92014-11-07 11:06:34 -080061 stroke-width: 1.5px;
62}
63
Simon Hunt56d51852014-11-09 13:03:35 -080064#topo svg .node.device.fixed rect {
Simon Hunt99c13842014-11-06 18:23:12 -080065 stroke-width: 1.5;
66 stroke: #ccc;
67}
68
Simon Huntbb282f52014-11-10 11:08:19 -080069/* note: device is offline without the 'online' class */
70#topo svg .node.device {
71 fill: #777;
72}
73
74#topo svg .node.device.switch.online {
Simon Hunt99c13842014-11-06 18:23:12 -080075 fill: #17f;
76}
77
Simon Huntbb282f52014-11-10 11:08:19 -080078#topo svg .node.device.roadm.online {
Simon Huntc7ee0662014-11-05 16:44:37 -080079 fill: #03c;
Simon Hunt99c13842014-11-06 18:23:12 -080080}
81
Simon Huntbb282f52014-11-10 11:08:19 -080082/* note: device is offline without the 'online' class */
Simon Hunt7cd48f32014-11-09 23:42:50 -080083#topo svg .node.device text {
Simon Huntbb282f52014-11-10 11:08:19 -080084 fill: #aaa;
Simon Hunt99c13842014-11-06 18:23:12 -080085 font: 10pt sans-serif;
Simon Hunt99c13842014-11-06 18:23:12 -080086}
87
Simon Huntbb282f52014-11-10 11:08:19 -080088#topo svg .node.device.online text {
89 fill: white;
90}
91
Simon Huntac9e24f2014-11-12 10:12:21 -080092
93/* Host Nodes */
94
95#topo svg .node.host {
96 fill: #846;
97}
98
Simon Hunt7cd48f32014-11-09 23:42:50 -080099#topo svg .node.host text {
100 fill: #846;
101 font: 9pt sans-serif;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800102}
103
Simon Hunt1a9eff92014-11-07 11:06:34 -0800104
105/* LINKS */
106
Simon Hunt56d51852014-11-09 13:03:35 -0800107#topo svg .link {
Simon Hunt1a9eff92014-11-07 11:06:34 -0800108 opacity: .7;
109}
110
Simon Hunta255a2c2014-11-13 22:29:35 -0800111#topo svg .link.primary {
112 stroke: #f11;
Simon Hunt7cd48f32014-11-09 23:42:50 -0800113 stroke-width: 6px;
Thomas Vachuska4830d392014-11-09 17:09:56 -0800114}
Simon Hunta255a2c2014-11-13 22:29:35 -0800115#topo svg .link.secondary {
116 stroke: rgba(255,100,100,0.5);
117 stroke-width: 4px;
118}
119#topo svg .link.animated {
120 stroke: #f11;
121 stroke-width: 10px;
122 stroke-dasharray: 8 8
123}
124
125#topo svg .link.primary.optical {
126 stroke: #74f;
127 stroke-width: 6px;
128}
129#topo svg .link.secondary.optical {
130 stroke: rgba(128,64,255,0.5);
131 stroke-width: 4px;
132}
133#topo svg .link.animated.optical {
134 stroke: #74f;
135 stroke-width: 10px;
136 stroke-dasharray: 8 8
137}
Thomas Vachuska4830d392014-11-09 17:09:56 -0800138
Simon Hunt61d04042014-11-11 17:27:16 -0800139
Simon Huntac9e24f2014-11-12 10:12:21 -0800140/* Fly-in details pane */
Simon Hunt61d04042014-11-11 17:27:16 -0800141
142#topo-detail {
143/* gets base CSS from .fpanel in floatPanel.css */
144}
145
Simon Hunt61d04042014-11-11 17:27:16 -0800146#topo-detail h2 {
147 margin: 8px 4px;
148 color: black;
149 vertical-align: middle;
150}
151
152#topo-detail h2 img {
153 height: 32px;
154 padding-right: 8px;
155 vertical-align: middle;
156}
157
158#topo-detail p, table {
159 margin: 4px 4px;
160}
161
162#topo-detail td.label {
163 font-style: italic;
164 color: #777;
165 padding-right: 12px;
166}
167
168#topo-detail td.value {
Simon Hunt61d04042014-11-11 17:27:16 -0800169}
170
Simon Huntb53e0682014-11-12 13:32:01 -0800171
Simon Huntd72bc702014-11-13 18:38:04 -0800172#topo-detail .actionBtn {
173 margin: 6px 12px;
174 padding: 2px 6px;
175 font-size: 9pt;
176 cursor: pointer;
177 width: 50%;
178 text-align: center;
179
180 /* theme specific... */
181 border: 1px solid #ddf;
182 color: #99f;
183}
184
185#topo-detail .actionBtn:hover {
186 /* theme specific... */
187 border: 1px solid #ddf;
188 background: #eef;
189 color: #77d;
190}
191
Simon Huntb53e0682014-11-12 13:32:01 -0800192
Simon Hunt61d04042014-11-11 17:27:16 -0800193#topo-detail hr {
194 height: 1px;
195 color: #ccc;
196 background-color: #ccc;
197 border: 0;
198}
199
Simon Hunta5e89142014-11-14 07:00:33 -0800200/* ONOS instance stuff */
201
202#topo-oibox {
203 width: 80px;
204}
205
206#topo-oibox .onosInst {
Simon Hunt9c15eca2014-11-15 18:37:59 -0800207 position: relative;
Simon Hunta5e89142014-11-14 07:00:33 -0800208 width: 80%;
209 left: 10%;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800210 height: 80px;
211 margin: 4px 0;
Simon Hunta5e89142014-11-14 07:00:33 -0800212 cursor: pointer;
213
214 /* theme-related */
215 color: #444;
216 background-color: #ccc;
Simon Hunt9c15eca2014-11-15 18:37:59 -0800217 border: 2px solid #aaa;
Simon Hunta5e89142014-11-14 07:00:33 -0800218}
219
Simon Hunta5e89142014-11-14 07:00:33 -0800220#topo-oibox .onosInst.online {
221 /* theme-related */
222 color: #113;
223 background-color: #bbf;
224 border: 2px solid #555;
225}
226
Simon Hunt9c15eca2014-11-15 18:37:59 -0800227#topo-oibox .onosInst .onosTitle {
228 text-align: center;
229 font-size: 11pt;
230 margin-top: 6px;
231 color: #888;
232}
233
234#topo-oibox .onosInst.online .onosTitle {
235 color: black;
236}
237
238#topo-oibox .onosInst img {
239 opacity: 0.5;
240}
241
242#topo-oibox .onosInst.online img {
243 opacity: 1.0;
244}
245
246#topo-oibox .onosInst img.ui {
247 opacity: 1;
248 position: absolute;
249 top: 3px;
250 right: 3px;
251 width: 20px;
252 height: 20px;
253}
254
Simon Hunt9462e8c2014-11-14 17:28:09 -0800255#topo-oibox .onosInst.mastership {
256 opacity: 0.3;
257}
258#topo-oibox .onosInst.mastership.affinity {
259 opacity: 1.0;
260}
261
262
263#topo svg .suppressed {
Simon Hunta5e89142014-11-14 07:00:33 -0800264 opacity: 0.2;
265}
266
Simon Hunt0c6d4192014-11-12 12:07:10 -0800267/* Web Socket Closed Mask (starts hidden) */
268
269#topo-mask {
270 display: none;
271 position: absolute;
272 top: 0;
273 left: 0;
274 width: 10000px;
275 height: 8000px;
276 z-index: 5000;
277 background-color: rgba(0,0,0,0.75);
278 padding: 60px;
279}
280
281#topo-mask p {
282 margin: 8px 20px;
283 color: #ddd;
284 font-size: 14pt;
285 font-style: italic;
286}
287