blob: 052ef61f955e8fb6a74eaf9aad5dfaa678226b04 [file] [log] [blame]
Simon Hunt11f662f2016-05-24 15:09:02 -07001/*
2 * Copyright 2016-present 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 (theme) -- CSS file
19 */
20
21/* --- Base SVG Layer --- */
22
23.light #ov-topo svg {
Simon Hunt2d147f62016-06-10 18:02:53 -070024 background-color: #f4f4f4;
Simon Hunt11f662f2016-05-24 15:09:02 -070025}
26
27/* --- "No Devices" Layer --- */
28
29.light #ov-topo svg .noDevsBird {
Simon Hunt2d147f62016-06-10 18:02:53 -070030 fill: #db7773;
Simon Hunt11f662f2016-05-24 15:09:02 -070031}
32
33.light #ov-topo svg #topo-noDevsLayer text {
Simon Hunt2d147f62016-06-10 18:02:53 -070034 fill: #7e9aa8;
Simon Hunt11f662f2016-05-24 15:09:02 -070035}
36
37/* --- Topo Map --- */
38
Simon Hunt11f662f2016-05-24 15:09:02 -070039.light #ov-topo svg #topo-map {
Simon Hunt2d147f62016-06-10 18:02:53 -070040 stroke-width: 2px;
41 stroke: #f4f4f4;
42 fill: #e5e5e6;
Simon Hunt11f662f2016-05-24 15:09:02 -070043}
44
45/* --- general topo-panel styling --- */
46
47.light .topo-p svg .glyph {
48 fill: #222;
49}
Simon Hunt11f662f2016-05-24 15:09:02 -070050
51.light .topo-p svg .glyph.overlay {
52 fill: #fff;
53}
Simon Hunt11f662f2016-05-24 15:09:02 -070054
55.light .topo-p h2 {
56 color: black;
57}
Simon Hunt11f662f2016-05-24 15:09:02 -070058
59.light .topo-p h3 {
60 color: black;
61}
Simon Hunt11f662f2016-05-24 15:09:02 -070062
63.topo-p td.label {
64 /* works for both light and dark themes ... */
65 color: #777;
66}
67.topo-p td.value {
68}
69
70.light .topo-p hr {
71 background-color: #ccc;
72 color: #ccc;
73}
Simon Hunt11f662f2016-05-24 15:09:02 -070074
75/* --- Topo Instance Panel --- */
76
77#topo-p-instance svg rect {
Simon Hunt2d147f62016-06-10 18:02:53 -070078 stroke-width: 0;
Simon Hunt11f662f2016-05-24 15:09:02 -070079}
80#topo-p-instance .online svg rect {
81 opacity: 1;
82}
83.light #topo-p-instance svg rect {
Simon Hunt2d147f62016-06-10 18:02:53 -070084 fill: #fbfbfb;
Simon Hunt11f662f2016-05-24 15:09:02 -070085}
Simon Hunt2d147f62016-06-10 18:02:53 -070086/* body of an instance */
Simon Hunt11f662f2016-05-24 15:09:02 -070087.light #topo-p-instance .online svg rect {
Simon Hunt2d147f62016-06-10 18:02:53 -070088 fill: #fbfbfb;
Simon Hunt11f662f2016-05-24 15:09:02 -070089}
90
91
92#topo-p-instance svg .glyph {
Simon Hunt2d147f62016-06-10 18:02:53 -070093 fill: #fff;
Simon Hunt11f662f2016-05-24 15:09:02 -070094}
95#topo-p-instance .online svg .glyph {
Simon Hunt2d147f62016-06-10 18:02:53 -070096 fill: #fff;
Simon Hunt11f662f2016-05-24 15:09:02 -070097}
98
99
Simon Hunt2d147f62016-06-10 18:02:53 -0700100/* offline */
Simon Hunt11f662f2016-05-24 15:09:02 -0700101#topo-p-instance svg .badgeIcon {
Simon Hunt11f662f2016-05-24 15:09:02 -0700102 opacity: 0.4;
103}
104.light #topo-p-instance svg .badgeIcon {
Simon Hunt2d147f62016-06-10 18:02:53 -0700105 fill: #939598;
Simon Hunt11f662f2016-05-24 15:09:02 -0700106}
107
Simon Hunt2d147f62016-06-10 18:02:53 -0700108/* online */
Simon Hunt11f662f2016-05-24 15:09:02 -0700109#topo-p-instance .online svg .badgeIcon {
110 opacity: 1.0;
111}
112.light #topo-p-instance .online svg .badgeIcon {
Simon Hunt2d147f62016-06-10 18:02:53 -0700113 fill: #939598;
Simon Hunt11f662f2016-05-24 15:09:02 -0700114}
Simon Hunt2d147f62016-06-10 18:02:53 -0700115.light #topo-p-instance .online svg .badgeIcon.bird {
116 fill: #ffffff;
117}
118
119#topo-p-instance svg .readyBadge {
120 visibility: hidden;
121}
122#topo-p-instance .ready svg .readyBadge {
123 visibility: visible;
Simon Hunt11f662f2016-05-24 15:09:02 -0700124}
125
126#topo-p-instance svg text {
Simon Hunt2d147f62016-06-10 18:02:53 -0700127 text-anchor: left;
128 opacity: 0.5;
Simon Hunt11f662f2016-05-24 15:09:02 -0700129}
130#topo-p-instance .online svg text {
131 opacity: 1.0;
132}
133.light #topo-p-instance svg text {
Simon Hunt2d147f62016-06-10 18:02:53 -0700134 fill: #3c3a3a;
Simon Hunt11f662f2016-05-24 15:09:02 -0700135}
136.light #topo-p-instance .online svg text {
Simon Hunt2d147f62016-06-10 18:02:53 -0700137 fill: #3c3a3a;
Simon Hunt11f662f2016-05-24 15:09:02 -0700138}
139
140#topo-p-instance .onosInst.mastership {
141 opacity: 0.3;
142}
143#topo-p-instance .onosInst.mastership.affinity {
144 opacity: 1.0;
145}
146.light #topo-p-instance .onosInst.mastership.affinity svg rect {
147 filter: url(#blue-glow);
148}
Simon Hunt2d147f62016-06-10 18:02:53 -0700149
Simon Hunt11f662f2016-05-24 15:09:02 -0700150.light.firefox #topo-p-instance .onosInst.mastership.affinity svg rect {
151 filter: url("data:image/svg+xml;utf8, <svg xmlns = \'http://www.w3.org/2000/svg\'><filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"blue-glow\"><feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0 0 0 1 0 \"></feColorMatrix><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\"></feGaussianBlur><feMerge><feMergeNode in=\"coloredBlur\"></feMergeNode><feMergeNode in=\"SourceGraphic\"></feMergeNode></feMerge></filter></svg>#blue-glow");
152}
Simon Hunt11f662f2016-05-24 15:09:02 -0700153
154/* --- Topo Nodes --- */
155
156#ov-topo svg .suppressed {
157 opacity: 0.5 !important;
158}
159
160#ov-topo svg .suppressedmax {
161 opacity: 0.2 !important;
162}
163
164.light #ov-topo svg .node.selected rect,
165.light #ov-topo svg .node.selected circle {
166 fill: #f90;
167 filter: url(#blue-glow);
168}
Simon Hunt2d147f62016-06-10 18:02:53 -0700169/*.dark #ov-topo svg .node.selected rect,*/
170/*.dark #ov-topo svg .node.selected circle {*/
171 /*fill: #f90;*/
172 /*filter: url(#yellow-glow);*/
173/*}*/
Simon Hunt11f662f2016-05-24 15:09:02 -0700174.light.firefox #ov-topo svg .node.selected rect,
175.light.firefox #ov-topo svg .node.selected circle {
176 filter: url("data:image/svg+xml;utf8, <svg xmlns = \'http://www.w3.org/2000/svg\'><filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"blue-glow\"><feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0 0 0 1 0 \"></feColorMatrix><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\"></feGaussianBlur><feMerge><feMergeNode in=\"coloredBlur\"></feMergeNode><feMergeNode in=\"SourceGraphic\"></feMergeNode></feMerge></filter></svg>#blue-glow");
177}
Simon Hunt2d147f62016-06-10 18:02:53 -0700178/*.dark.firefox #ov-topo svg .node.selected rect,*/
179/*.dark.firefox #ov-topo svg .node.selected circle {*/
180 /*filter: url("data:image/svg+xml;utf8, <svg xmlns = \'http://www.w3.org/2000/svg\'><filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"yellow-glow\"><feColorMatrix type=\"matrix\" values=\"0 0 0 0 1.0 0 0 0 0 1.0 0 0 0 0 0.3 0 0 0 1 0 \"></feColorMatrix><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\"></feGaussianBlur><feMerge><feMergeNode in=\"coloredBlur\"></feMergeNode><feMergeNode in=\"SourceGraphic\"></feMergeNode></feMerge></filter></svg>#yellow-glow");*/
181/*}*/
Simon Hunt11f662f2016-05-24 15:09:02 -0700182
183/* Device Nodes */
184
185#ov-topo svg .node.device rect {
186 stroke-width: 1.5;
187}
188
189#ov-topo svg .node.device.fixed rect {
190 stroke-width: 1.5;
191}
192.light #ov-topo svg .node.device.fixed rect {
193 stroke: #aaa;
194}
Simon Hunt11f662f2016-05-24 15:09:02 -0700195
196/* note: device is offline without the 'online' class */
197.light #ov-topo svg .node.device {
198 fill: #777;
199}
Simon Hunt11f662f2016-05-24 15:09:02 -0700200
201.light #ov-topo svg .node.device rect {
202 stroke: #666;
203}
204.light #ov-topo svg .node.device rect {
205 stroke: #999;
206}
207
208.light #ov-topo svg .node.device.online {
209 fill: #6e7fa3;
210}
Simon Hunt11f662f2016-05-24 15:09:02 -0700211
212/* note: device is offline without the 'online' class */
213#ov-topo svg .node.device text {
214 fill: #bbb;
Simon Hunt11f662f2016-05-24 15:09:02 -0700215}
216
217#ov-topo svg .node.device.online text {
218 fill: white;
219}
220
221#ov-topo svg .node.device .svgIcon rect {
222 fill: #aaa;
223}
224#ov-topo svg .node.device .svgIcon use {
225 fill: #777;
226}
227#ov-topo svg .node.device.selected .svgIcon rect {
228 fill: #f90;
229}
230#ov-topo svg .node.device.online .svgIcon rect {
231 fill: #ccc;
232}
233#ov-topo svg .node.device.online .svgIcon use {
234 fill: #000;
235}
236#ov-topo svg .node.device.online.selected .svgIcon rect {
237 fill: #f90;
238}
239
240/* Badges */
241/* (... works for both light and dark themes...) */
242#ov-topo svg .node .badge circle {
243 stroke: #aaa;
244}
245
246#ov-topo svg .node .badge.badgeInfo circle {
247 fill: #99d;
248}
249
250#ov-topo svg .node .badge.badgeWarn circle {
251 fill: #da2;
252}
253
254#ov-topo svg .node .badge.badgeError circle {
255 fill: #e44;
256}
257
258#ov-topo svg .node .badge use {
259 fill: white !important;
260}
261
262#ov-topo svg .node .badge.badgeInfo use {
263 fill: #448;
264}
265
266#ov-topo svg .node .badge text {
267 fill: white !important;
268}
269
270#ov-topo svg .node .badge.badgeInfo text {
271 fill: #448;
272}
273
274/* Host Nodes */
275
276#ov-topo svg .node.host {
277}
278
279#ov-topo svg .node.host text {
280 stroke: none;
281 font: 9pt sans-serif;
282}
283.light #ov-topo svg .node.host text {
284 fill: #846;
285}
Simon Hunt11f662f2016-05-24 15:09:02 -0700286
287.light svg .node.host circle {
288 stroke: #000;
289 fill: #edb;
290}
Simon Hunt11f662f2016-05-24 15:09:02 -0700291
292.light svg .node.host .svgIcon {
293 fill: #444;
294}
Simon Hunt11f662f2016-05-24 15:09:02 -0700295
296/* --- Topo Links --- */
297
298#ov-topo svg .link {
299 opacity: .9;
300}
301
302#ov-topo svg .link.selected,
303#ov-topo svg .link.enhanced {
304 stroke-width: 4.5px;
305}
306.light #ov-topo svg .link.selected,
307.light #ov-topo svg .link.enhanced {
308 filter: url(#blue-glow);
309}
Simon Hunt2d147f62016-06-10 18:02:53 -0700310/*.dark #ov-topo svg .link.selected,*/
311/*.dark #ov-topo svg .link.enhanced {*/
312 /*filter: url(#yellow-glow);*/
313/*}*/
Simon Hunt11f662f2016-05-24 15:09:02 -0700314.light.firefox #ov-topo svg .link.selected,
315.light.firefox #ov-topo svg .link.enhanced {
316 filter: url("data:image/svg+xml;utf8, <svg xmlns = \'http://www.w3.org/2000/svg\'><filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"blue-glow\"><feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0 0 0 1 0 \"></feColorMatrix><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\"></feGaussianBlur><feMerge><feMergeNode in=\"coloredBlur\"></feMergeNode><feMergeNode in=\"SourceGraphic\"></feMergeNode></feMerge></filter></svg>#blue-glow");
317}
Simon Hunt2d147f62016-06-10 18:02:53 -0700318/*.dark.firefox #ov-topo svg .link.selected,*/
319/*.dark.firefox #ov-topo svg .link.enhanced {*/
320 /*filter: url("data:image/svg+xml;utf8, <svg xmlns = \'http://www.w3.org/2000/svg\'><filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"yellow-glow\"><feColorMatrix type=\"matrix\" values=\"0 0 0 0 1.0 0 0 0 0 1.0 0 0 0 0 0.3 0 0 0 1 0 \"></feColorMatrix><feGaussianBlur stdDeviation=\"3\" result=\"coloredBlur\"></feGaussianBlur><feMerge><feMergeNode in=\"coloredBlur\"></feMergeNode><feMergeNode in=\"SourceGraphic\"></feMergeNode></feMerge></filter></svg>#yellow-glow");*/
Simon Hunt11f662f2016-05-24 15:09:02 -0700321
Simon Hunt2d147f62016-06-10 18:02:53 -0700322/*}*/
Simon Hunt11f662f2016-05-24 15:09:02 -0700323
324#ov-topo svg .link.inactive {
325 opacity: .5;
326 stroke-dasharray: 8 4;
327}
Simon Hunt2d147f62016-06-10 18:02:53 -0700328/* TODO: Review for not-permitted links */
Simon Hunt11f662f2016-05-24 15:09:02 -0700329#ov-topo svg .link.not-permitted {
330 stroke: rgb(255,0,0);
331 stroke-width: 5.0;
332 stroke-dasharray: 8 4;
333}
334
335#ov-topo svg .link.secondary {
336 stroke-width: 3px;
337}
338.light #ov-topo svg .link.secondary {
339 stroke: rgba(0,153,51,0.5);
340}
Simon Hunt11f662f2016-05-24 15:09:02 -0700341
342/* Port traffic color visualization for Kbps, Mbps, and Gbps */
343
344.light #ov-topo svg .link.secondary.port-traffic-Kbps {
345 stroke: rgb(0,153,51);
346 stroke-width: 5.0;
347}
Simon Hunt11f662f2016-05-24 15:09:02 -0700348
349.light #ov-topo svg .link.secondary.port-traffic-Mbps {
350 stroke: rgb(128,145,27);
351 stroke-width: 6.5;
352}
Simon Hunt11f662f2016-05-24 15:09:02 -0700353
354.light #ov-topo svg .link.secondary.port-traffic-Gbps {
355 stroke: rgb(255, 137, 3);
356 stroke-width: 8.0;
357}
Simon Hunt11f662f2016-05-24 15:09:02 -0700358
359.light #ov-topo svg .link.secondary.port-traffic-Gbps-choked {
360 stroke: rgb(183, 30, 21);
361 stroke-width: 8.0;
362}
Simon Hunt11f662f2016-05-24 15:09:02 -0700363
364
365
366#ov-topo svg .link.animated {
367 stroke-dasharray: 8 5;
368 animation: ants 5s infinite linear;
369 /* below line will be added via Javascript based on path */
370 /*animation-direction: reverse;*/
371}
372@keyframes ants {
373 from {
374 stroke-dashoffset: 0;
375 }
376 to {
377 stroke-dashoffset: 400;
378 }
379}
380
381#ov-topo svg .link.primary {
382 stroke-width: 4px;
383}
384.light #ov-topo svg .link.primary {
385 stroke: #ffA300;
386}
Simon Hunt11f662f2016-05-24 15:09:02 -0700387
388#ov-topo svg .link.secondary.optical {
389 stroke-width: 4px;
390}
391.light #ov-topo svg .link.secondary.optical {
392 stroke: rgba(128,64,255,0.5);
393}
Simon Hunt11f662f2016-05-24 15:09:02 -0700394
395#ov-topo svg .link.primary.optical {
396 stroke-width: 6px;
397}
398.light #ov-topo svg .link.primary.optical {
399 stroke: #74f;
400}
Simon Hunt11f662f2016-05-24 15:09:02 -0700401
402/* Link Labels */
403#ov-topo svg .linkLabel rect {
404 stroke: none;
405}
406.light #ov-topo svg .linkLabel rect {
407 fill: #eee;
408}
Simon Hunt11f662f2016-05-24 15:09:02 -0700409
410.light #ov-topo svg .linkLabel text {
411 fill: #444;
412}
Simon Hunt11f662f2016-05-24 15:09:02 -0700413
414/* Port Labels */
415
416#ov-topo svg .portLabel rect {
417 stroke: none;
418}
419.light #ov-topo svg .portLabel rect {
420 fill: #eee;
421}
Simon Hunt11f662f2016-05-24 15:09:02 -0700422
423.light #ov-topo svg .portLabel text {
424 fill: #444;
425}
Simon Hunt11f662f2016-05-24 15:09:02 -0700426
427/* Number of Links Labels */
428
429
430.light #ov-topo text.numLinkText {
431 fill: #444;
432}
Simon Hunt11f662f2016-05-24 15:09:02 -0700433
434/* ------------------------------------------------- */
435/* Sprite Layer */
436
437.light #ov-topo svg #topo-sprites .gold1 use {
438 stroke: #fda;
439 fill: none;
440}
Simon Hunt11f662f2016-05-24 15:09:02 -0700441.light #ov-topo svg #topo-sprites .gold1 text {
442 fill: #eda;
443}
Simon Hunt11f662f2016-05-24 15:09:02 -0700444
445.light #ov-topo svg #topo-sprites .blue1 use {
446 stroke: #bbd;
447 fill: none;
448}
Simon Hunt11f662f2016-05-24 15:09:02 -0700449.light #ov-topo svg #topo-sprites .blue1 text {
450 fill: #cce;
451}
Simon Hunt11f662f2016-05-24 15:09:02 -0700452
453.light #ov-topo svg #topo-sprites .gray1 use {
454 stroke: #ccc;
455 fill: none;
456}
Simon Hunt11f662f2016-05-24 15:09:02 -0700457.light #ov-topo svg #topo-sprites .gray1 text {
458 fill: #ddd;
459}
Simon Hunt11f662f2016-05-24 15:09:02 -0700460
461/* fills */
462.light #ov-topo svg #topo-sprites use.fill-gray2 {
463 fill: #eee;
464}
Simon Hunt11f662f2016-05-24 15:09:02 -0700465
466.light #ov-topo svg #topo-sprites use.fill-blue2 {
467 fill: #bce;
468}