topo2-theme.css
7.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
/*
* Copyright 2016-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
ONOS GUI -- Topology View (theme) -- CSS file
*/
/* --- Base SVG Layer --- */
#ov-topo2 svg {
background-color: #f4f4f4;
}
/* --- "No Devices" Layer --- */
#ov-topo2 svg .noDevsBird {
fill: #db7773;
}
#ov-topo2 svg #topo-noDevsLayer text {
fill: #7e9aa8;
}
/* --- Topo Map --- */
#ov-topo2 svg #topo-map {
stroke-width: 2px;
stroke: #f4f4f4;
fill: #e5e5e6;
}
/* --- general topo-panel styling --- */
.topo-p svg {
background: #c0242b;
}
.topo-p svg .glyph {
fill: #ffffff;
}
.topo-p hr {
background-color: #cccccc;
}
#topo-p-detail svg {
background: none;
}
#topo-p-detail .header svg .glyph {
fill: #c0242b;
}
/* --- Topo Instance Panel --- */
#topo-p-instance svg rect {
stroke-width: 0;
fill: #fbfbfb;
}
/* body of an instance */
#topo-p-instance .online svg rect {
opacity: 1;
fill: #fbfbfb;
}
#topo-p-instance svg .glyph {
fill: #fff;
}
#topo-p-instance .online svg .glyph {
fill: #fff;
}
/* offline */
#topo-p-instance svg .badgeIcon {
opacity: 0.4;
fill: #939598;
}
/* online */
#topo-p-instance .online svg .badgeIcon {
opacity: 1.0;
fill: #939598;
}
#topo-p-instance .online svg .badgeIcon.bird {
fill: #ffffff;
}
#topo-p-instance svg .readyBadge {
visibility: hidden;
}
#topo-p-instance .ready svg .readyBadge {
visibility: visible;
}
#topo-p-instance svg text {
text-anchor: left;
opacity: 0.5;
fill: #3c3a3a;
}
#topo-p-instance .online svg text {
opacity: 1.0;
fill: #3c3a3a;
}
#topo-p-instance .onosInst.mastership {
opacity: 0.3;
}
#topo-p-instance .onosInst.mastership.affinity {
opacity: 1.0;
}
#topo-p-instance .onosInst.mastership.affinity svg rect {
filter: url(#blue-glow);
}
.firefox #topo-p-instance .onosInst.mastership.affinity svg rect {
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");
}
/* --- Topo Nodes --- */
#ov-topo2 svg .suppressed {
opacity: 0.5 !important;
}
#ov-topo2 svg .suppressedmax {
opacity: 0.2 !important;
}
/* Device Nodes */
/* note: device without the 'online' class is offline */
#ov-topo2 svg .node.device rect {
/* TODO: theme */
fill: #f0f0f0;
}
#ov-topo2 svg .node.device text {
/*TODO: theme*/
fill: #bbb;
}
#ov-topo2 svg .node.device use {
/*TODO: theme*/
fill: #777;
}
#ov-topo2 svg .node.device.online rect {
fill: #ffffff;
}
#ov-topo2 svg .node.device.online text {
fill: #3c3a3a;
}
#ov-topo2 svg .node.device.online use {
/* NOTE: this gets overridden programatically */
fill: #454545;
}
#ov-topo2 svg .node.sub-region rect {
fill: #ffffff;
}
#ov-topo2 svg .node.sub-region use {
/* NOTE: this gets overridden programatically */
fill: #454545;
}
#ov-topo2 svg .node.device.selected rect {
stroke-width: 2.0;
stroke: #009fdb;
}
/* Badges */
/* (... works for bothand dark themes...) */
#ov-topo2 svg .node .badge circle {
stroke: #aaa;
}
#ov-topo2 svg .node .badge.badgeInfo circle {
fill: #99d;
}
#ov-topo2 svg .node .badge.badgeWarn circle {
fill: #da2;
}
#ov-topo2 svg .node .badge.badgeError circle {
fill: #e44;
}
#ov-topo2 svg .node .badge use {
fill: white !important;
}
#ov-topo2 svg .node .badge.badgeInfo use {
fill: #448;
}
#ov-topo2 svg .node .badge text {
fill: white !important;
}
#ov-topo2 svg .node .badge.badgeInfo text {
fill: #448;
}
/* Host Nodes */
#ov-topo2 svg .node.host {
}
#ov-topo2 svg .node.host text {
stroke: none;
font: 9pt sans-serif;
fill: #846;
}
#ov-topo2 svg .node.host circle {
stroke: #a3a596;
fill: #e0dfd6;
}
#ov-topo2 svg .node.host.selected .hostIcon > circle {
stroke-width: 2.0;
stroke: #009fdb;
}
#ov-topo2 svg .node.host use {
fill: #3c3a3a;
}
/* --- Topo Links --- */
#ov-topo2 svg .link {
opacity: .9;
}
#ov-topo2 svg .link.selected,
#ov-topo2 svg .link.enhanced {
stroke-width: 3.5;
stroke: #009fdb;
}
#ov-topo2 svg .link.inactive {
opacity: .5;
stroke-dasharray: 8 4;
}
/* TODO: Review for not-permitted links */
#ov-topo2 svg .link.not-permitted {
stroke: rgb(255,0,0);
stroke-width: 5.0;
stroke-dasharray: 8 4;
}
#ov-topo2 svg .link.secondary {
stroke-width: 3px;
stroke: rgba(0,153,51,0.5);
}
/* Port traffic color visualization for Kbps, Mbps, and Gbps */
#ov-topo2 svg .link.secondary.port-traffic-Kbps {
stroke: rgb(0,153,51);
stroke-width: 5.0;
}
#ov-topo2 svg .link.secondary.port-traffic-Mbps {
stroke: rgb(128,145,27);
stroke-width: 6.5;
}
#ov-topo2 svg .link.secondary.port-traffic-Gbps {
stroke: rgb(255, 137, 3);
stroke-width: 8.0;
}
#ov-topo2 svg .link.secondary.port-traffic-Gbps-choked {
stroke: rgb(183, 30, 21);
stroke-width: 8.0;
}
#ov-topo2 svg .link.animated {
stroke-dasharray: 8 5;
animation: ants 5s infinite linear;
/* below line could be added via Javascript, based on path, if we cared
* enough about the direction of ant-flow
*/
/*animation-direction: reverse;*/
}
@keyframes ants {
from {
stroke-dashoffset: 0;
}
to {
stroke-dashoffset: 400;
}
}
#ov-topo2 svg .link.primary {
stroke-width: 4px;
stroke: #ffA300;
}
#ov-topo2 svg .link.secondary.optical {
stroke-width: 4px;
stroke: rgba(128,64,255,0.5);
}
#ov-topo2 svg .link.primary.optical {
stroke-width: 6px;
stroke: #74f;
}
/* Link Labels */
#ov-topo2 svg .linkLabel rect {
stroke: none;
fill: #ffffff;
}
#ov-topo2 svg .linkLabel text {
fill: #444;
}
/* Port Labels */
#ov-topo2 svg .portLabel rect {
stroke: #a3a596;
fill: #ffffff;
}
#ov-topo2 svg .portLabel text {
fill: #444;
}
/* Number of Links Labels */
#ov-topo2 text.numLinkText {
fill: #444;
}
/* ------------------------------------------------- */
/* Sprite Layer */
#ov-topo2 svg #topo-sprites .gold1 use {
stroke: #fda;
fill: none;
}
#ov-topo2 svg #topo-sprites .gold1 text {
fill: #eda;
}
#ov-topo2 svg #topo-sprites .blue1 use {
stroke: #bbd;
fill: none;
}
#ov-topo2 svg #topo-sprites .blue1 text {
fill: #cce;
}
#ov-topo2 svg #topo-sprites .gray1 use {
stroke: #ccc;
fill: none;
}
#ov-topo2 svg #topo-sprites .gray1 text {
fill: #ddd;
}
/* fills */
#ov-topo2 svg #topo-sprites use.fill-gray2 {
fill: #eee;
}
#ov-topo2 svg #topo-sprites use.fill-blue2 {
fill: #bce;
}