Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 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 | |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 17 | /* |
| 18 | ONOS GUI -- Topology View (theme) -- CSS file |
| 19 | */ |
| 20 | |
| 21 | /* --- Base SVG Layer --- */ |
| 22 | |
| 23 | #ov-topo2 svg { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 24 | background-color: #f4f4f4; |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | /* --- "No Devices" Layer --- */ |
| 28 | |
| 29 | #ov-topo2 svg .noDevsBird { |
| 30 | fill: #db7773; |
| 31 | } |
| 32 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 33 | #ov-topo2 svg #topo2-noDevsLayer text { |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 34 | fill: #7e9aa8; |
| 35 | } |
| 36 | |
Simon Hunt | 6e6e80b | 2017-04-03 12:03:41 -0700 | [diff] [blame] | 37 | /* --- Breadcrumbs --- */ |
| 38 | |
| 39 | .light #breadcrumbs { |
| 40 | background: #f5f5f5; |
| 41 | border-bottom: 1px solid #c7c7c0; |
| 42 | } |
| 43 | |
| 44 | .light #breadcrumbs .breadcrumb:after { |
| 45 | color: #353535; |
| 46 | } |
| 47 | |
| 48 | .light #breadcrumbs .breadcrumb:last-child a { |
| 49 | color: #757575; |
| 50 | } |
| 51 | |
| 52 | |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 53 | /* --- Topo Map --- */ |
| 54 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 55 | #ov-topo2 svg #topo2-map { |
Simon Hunt | d5b9673 | 2016-07-08 13:22:27 -0700 | [diff] [blame] | 56 | stroke-width: 2px; |
| 57 | stroke: #f4f4f4; |
| 58 | fill: #e5e5e6; |
| 59 | } |
| 60 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 61 | /* --- general topo2-panel styling --- */ |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 62 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 63 | .topo2-p h2 { |
| 64 | display: inline-block; |
| 65 | padding: 6px; |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 66 | } |
| 67 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 68 | .topo2-p svg { |
| 69 | background: #c0242b; |
| 70 | width: 28px; |
| 71 | height: 28px; |
| 72 | } |
| 73 | |
| 74 | .topo2-p svg .glyph { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 75 | fill: #ffffff; |
| 76 | } |
| 77 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 78 | .topo2-p hr { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 79 | background-color: #cccccc; |
| 80 | } |
| 81 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 82 | #topo2-p-detail svg { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 83 | background: none; |
| 84 | } |
| 85 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 86 | #topo2-p-detail .header svg .glyph { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 87 | fill: #c0242b; |
| 88 | } |
| 89 | |
| 90 | |
| 91 | /* --- Topo Instance Panel --- */ |
| 92 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 93 | #topo2-p-instance svg rect { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 94 | stroke-width: 0; |
| 95 | fill: #fbfbfb; |
| 96 | } |
| 97 | |
| 98 | /* body of an instance */ |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 99 | #topo2-p-instance .online svg rect { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 100 | opacity: 1; |
| 101 | fill: #fbfbfb; |
| 102 | } |
| 103 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 104 | #topo2-p-instance svg .glyph { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 105 | fill: #fff; |
| 106 | } |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 107 | #topo2-p-instance .online svg .glyph { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 108 | fill: #fff; |
| 109 | } |
| 110 | |
| 111 | |
| 112 | /* offline */ |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 113 | #topo2-p-instance svg .badgeIcon { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 114 | opacity: 0.4; |
| 115 | fill: #939598; |
| 116 | } |
| 117 | |
| 118 | /* online */ |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 119 | #topo2-p-instance .online svg .badgeIcon { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 120 | opacity: 1.0; |
| 121 | fill: #939598; |
| 122 | } |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 123 | #topo2-p-instance .online svg .badgeIcon.bird { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 124 | fill: #ffffff; |
| 125 | } |
| 126 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 127 | #topo2-p-instance svg .readyBadge { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 128 | visibility: hidden; |
| 129 | } |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 130 | #topo2-p-instance .ready svg .readyBadge { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 131 | visibility: visible; |
| 132 | } |
| 133 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 134 | #topo2-p-instance svg text { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 135 | text-anchor: left; |
| 136 | opacity: 0.5; |
| 137 | fill: #3c3a3a; |
| 138 | } |
| 139 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 140 | #topo2-p-instance .online svg text { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 141 | opacity: 1.0; |
| 142 | fill: #3c3a3a; |
| 143 | } |
| 144 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 145 | #topo2-p-instance .onosInst.mastership { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 146 | opacity: 0.3; |
| 147 | } |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 148 | #topo2-p-instance .onosInst.mastership.affinity { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 149 | opacity: 1.0; |
| 150 | } |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 151 | #topo2-p-instance .onosInst.mastership.affinity svg rect { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 152 | filter: url(#blue-glow); |
| 153 | } |
| 154 | |
Steven Burrows | 7a9d04e | 2016-09-26 17:05:37 -0700 | [diff] [blame] | 155 | .firefox #topo2-p-instance .onosInst.mastership.affinity svg rect { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 156 | 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"); |
| 157 | } |
| 158 | |
| 159 | /* --- Topo Nodes --- */ |
| 160 | |
| 161 | #ov-topo2 svg .suppressed { |
| 162 | opacity: 0.5 !important; |
| 163 | } |
| 164 | |
| 165 | #ov-topo2 svg .suppressedmax { |
| 166 | opacity: 0.2 !important; |
| 167 | } |
| 168 | |
| 169 | /* Device Nodes */ |
| 170 | |
| 171 | /* note: device without the 'online' class is offline */ |
| 172 | #ov-topo2 svg .node.device rect { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 173 | fill: #f0f0f0; |
| 174 | } |
| 175 | #ov-topo2 svg .node.device text { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 176 | fill: #bbb; |
| 177 | } |
| 178 | #ov-topo2 svg .node.device use { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 179 | fill: #777; |
| 180 | } |
| 181 | |
| 182 | |
| 183 | #ov-topo2 svg .node.device.online rect { |
| 184 | fill: #ffffff; |
| 185 | } |
| 186 | #ov-topo2 svg .node.device.online text { |
| 187 | fill: #3c3a3a; |
| 188 | } |
| 189 | #ov-topo2 svg .node.device.online use { |
| 190 | /* NOTE: this gets overridden programatically */ |
| 191 | fill: #454545; |
| 192 | } |
| 193 | |
Steven Burrows | 6deb4ce | 2016-08-26 16:06:23 +0100 | [diff] [blame] | 194 | #ov-topo2 svg .node.sub-region rect { |
| 195 | fill: #ffffff; |
| 196 | } |
| 197 | |
Simon Hunt | b3656d4 | 2017-04-07 18:15:35 -0700 | [diff] [blame] | 198 | #ov-topo2 svg .node.sub-region text { |
Simon Hunt | b3656d4 | 2017-04-07 18:15:35 -0700 | [diff] [blame] | 199 | } |
| 200 | |
Steven Burrows | 6deb4ce | 2016-08-26 16:06:23 +0100 | [diff] [blame] | 201 | #ov-topo2 svg .node.sub-region use { |
| 202 | /* NOTE: this gets overridden programatically */ |
| 203 | fill: #454545; |
| 204 | } |
| 205 | |
Steven Burrows | 68d6f95 | 2017-03-10 13:53:35 +0000 | [diff] [blame] | 206 | #ov-topo2 svg .node.peer-region rect { |
| 207 | fill: #ffffff; |
| 208 | } |
| 209 | |
Steven Burrows | 86af435 | 2016-11-16 18:19:12 -0600 | [diff] [blame] | 210 | #ov-topo2 svg .node.selected .node-container { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 211 | stroke-width: 2.0; |
| 212 | stroke: #009fdb; |
| 213 | } |
| 214 | |
Steven Burrows | b11a8b8 | 2017-03-10 16:00:31 +0000 | [diff] [blame] | 215 | #ov-topo2 svg .node.hovered .node-container { |
| 216 | stroke-width: 2.0; |
| 217 | stroke: #454545; |
| 218 | } |
| 219 | |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 220 | /* Badges */ |
| 221 | /* (... works for bothand dark themes...) */ |
| 222 | #ov-topo2 svg .node .badge circle { |
| 223 | stroke: #aaa; |
| 224 | } |
| 225 | |
| 226 | #ov-topo2 svg .node .badge.badgeInfo circle { |
| 227 | fill: #99d; |
| 228 | } |
| 229 | |
| 230 | #ov-topo2 svg .node .badge.badgeWarn circle { |
| 231 | fill: #da2; |
| 232 | } |
| 233 | |
| 234 | #ov-topo2 svg .node .badge.badgeError circle { |
| 235 | fill: #e44; |
| 236 | } |
| 237 | |
| 238 | #ov-topo2 svg .node .badge use { |
| 239 | fill: white !important; |
| 240 | } |
| 241 | |
| 242 | #ov-topo2 svg .node .badge.badgeInfo use { |
| 243 | fill: #448; |
| 244 | } |
| 245 | |
| 246 | #ov-topo2 svg .node .badge text { |
| 247 | fill: white !important; |
| 248 | } |
| 249 | |
| 250 | #ov-topo2 svg .node .badge.badgeInfo text { |
| 251 | fill: #448; |
| 252 | } |
| 253 | |
| 254 | /* Host Nodes */ |
| 255 | |
| 256 | #ov-topo2 svg .node.host { |
| 257 | } |
| 258 | |
| 259 | #ov-topo2 svg .node.host text { |
| 260 | stroke: none; |
Steven Burrows | 1270c18 | 2017-09-14 10:14:58 +0100 | [diff] [blame] | 261 | font-size: 13px; |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 262 | fill: #846; |
| 263 | } |
| 264 | |
| 265 | #ov-topo2 svg .node.host circle { |
| 266 | stroke: #a3a596; |
| 267 | fill: #e0dfd6; |
| 268 | } |
Steven Burrows | 1270c18 | 2017-09-14 10:14:58 +0100 | [diff] [blame] | 269 | |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 270 | #ov-topo2 svg .node.host.selected .hostIcon > circle { |
| 271 | stroke-width: 2.0; |
| 272 | stroke: #009fdb; |
| 273 | } |
| 274 | |
| 275 | #ov-topo2 svg .node.host use { |
| 276 | fill: #3c3a3a; |
| 277 | } |
| 278 | |
Steven Burrows | 1270c18 | 2017-09-14 10:14:58 +0100 | [diff] [blame] | 279 | #ov-topo2 svg .node.host rect { |
| 280 | fill: #ffffff; |
| 281 | } |
| 282 | |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 283 | /* --- Topo Links --- */ |
| 284 | |
| 285 | #ov-topo2 svg .link { |
| 286 | opacity: .9; |
| 287 | } |
| 288 | |
| 289 | #ov-topo2 svg .link.selected, |
| 290 | #ov-topo2 svg .link.enhanced { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 291 | stroke: #009fdb; |
| 292 | } |
| 293 | |
| 294 | #ov-topo2 svg .link.inactive { |
| 295 | opacity: .5; |
Steven Burrows | 583f4be | 2016-11-04 14:06:50 +0100 | [diff] [blame] | 296 | stroke-dasharray: 4 2; |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 297 | } |
| 298 | /* TODO: Review for not-permitted links */ |
| 299 | #ov-topo2 svg .link.not-permitted { |
| 300 | stroke: rgb(255,0,0); |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 301 | stroke-dasharray: 8 4; |
| 302 | } |
| 303 | |
| 304 | #ov-topo2 svg .link.secondary { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 305 | stroke: rgba(0,153,51,0.5); |
| 306 | } |
| 307 | |
Steven Burrows | ca1a39c | 2017-05-08 17:31:08 -0400 | [diff] [blame] | 308 | #ov-topo2 svg .link.secondary.port-traffic-green { |
| 309 | stroke: rgb(0,153,51); |
| 310 | } |
| 311 | |
| 312 | #ov-topo2 svg .link.secondary.port-traffic-yellow { |
| 313 | stroke: rgb(128,145,27); |
| 314 | } |
| 315 | |
| 316 | #ov-topo2 svg .link.secondary.port-traffic-orange { |
| 317 | stroke: rgb(255, 137, 3); |
| 318 | } |
| 319 | |
| 320 | #ov-topo2 svg .link.secondary.port-traffic-red { |
| 321 | stroke: rgb(183, 30, 21); |
| 322 | } |
| 323 | |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 324 | /* Port traffic color visualization for Kbps, Mbps, and Gbps */ |
| 325 | |
| 326 | #ov-topo2 svg .link.secondary.port-traffic-Kbps { |
| 327 | stroke: rgb(0,153,51); |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 328 | } |
| 329 | |
| 330 | #ov-topo2 svg .link.secondary.port-traffic-Mbps { |
| 331 | stroke: rgb(128,145,27); |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 332 | } |
| 333 | |
| 334 | #ov-topo2 svg .link.secondary.port-traffic-Gbps { |
| 335 | stroke: rgb(255, 137, 3); |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 336 | } |
| 337 | |
| 338 | #ov-topo2 svg .link.secondary.port-traffic-Gbps-choked { |
| 339 | stroke: rgb(183, 30, 21); |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 340 | } |
| 341 | |
| 342 | |
| 343 | |
| 344 | #ov-topo2 svg .link.animated { |
| 345 | stroke-dasharray: 8 5; |
| 346 | animation: ants 5s infinite linear; |
| 347 | /* below line could be added via Javascript, based on path, if we cared |
| 348 | * enough about the direction of ant-flow |
| 349 | */ |
| 350 | /*animation-direction: reverse;*/ |
| 351 | } |
| 352 | @keyframes ants { |
| 353 | from { |
| 354 | stroke-dashoffset: 0; |
| 355 | } |
| 356 | to { |
| 357 | stroke-dashoffset: 400; |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | #ov-topo2 svg .link.primary { |
| 362 | stroke-width: 4px; |
| 363 | stroke: #ffA300; |
| 364 | } |
| 365 | |
| 366 | #ov-topo2 svg .link.secondary.optical { |
| 367 | stroke-width: 4px; |
| 368 | stroke: rgba(128,64,255,0.5); |
| 369 | } |
| 370 | |
| 371 | #ov-topo2 svg .link.primary.optical { |
| 372 | stroke-width: 6px; |
| 373 | stroke: #74f; |
| 374 | } |
| 375 | |
| 376 | /* Link Labels */ |
| 377 | #ov-topo2 svg .linkLabel rect { |
| 378 | stroke: none; |
| 379 | fill: #ffffff; |
| 380 | } |
| 381 | |
| 382 | #ov-topo2 svg .linkLabel text { |
| 383 | fill: #444; |
| 384 | } |
| 385 | |
| 386 | /* Port Labels */ |
| 387 | |
| 388 | #ov-topo2 svg .portLabel rect { |
| 389 | stroke: #a3a596; |
| 390 | fill: #ffffff; |
| 391 | } |
| 392 | |
| 393 | #ov-topo2 svg .portLabel text { |
| 394 | fill: #444; |
| 395 | } |
| 396 | |
| 397 | /* Number of Links Labels */ |
| 398 | |
| 399 | |
| 400 | #ov-topo2 text.numLinkText { |
| 401 | fill: #444; |
| 402 | } |
| 403 | |
| 404 | /* ------------------------------------------------- */ |
| 405 | /* Sprite Layer */ |
| 406 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 407 | #ov-topo2 svg #topo2-sprites .gold1 use { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 408 | stroke: #fda; |
| 409 | fill: none; |
| 410 | } |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 411 | #ov-topo2 svg #topo2-sprites .gold1 text { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 412 | fill: #eda; |
| 413 | } |
| 414 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 415 | #ov-topo2 svg #topo2-sprites .blue1 use { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 416 | stroke: #bbd; |
| 417 | fill: none; |
| 418 | } |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 419 | #ov-topo2 svg #topo2-sprites .blue1 text { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 420 | fill: #cce; |
| 421 | } |
| 422 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 423 | #ov-topo2 svg #topo2-sprites .gray1 use { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 424 | stroke: #ccc; |
| 425 | fill: none; |
| 426 | } |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 427 | #ov-topo2 svg #topo2-sprites .gray1 text { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 428 | fill: #ddd; |
| 429 | } |
| 430 | |
| 431 | /* fills */ |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 432 | #ov-topo2 svg #topo2-sprites use.fill-gray2 { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 433 | fill: #eee; |
| 434 | } |
| 435 | |
Simon Hunt | 95f4b42 | 2017-03-03 13:49:05 -0800 | [diff] [blame] | 436 | #ov-topo2 svg #topo2-sprites use.fill-blue2 { |
Steven Burrows | ec1f45c | 2016-08-08 16:14:41 +0100 | [diff] [blame] | 437 | fill: #bce; |
| 438 | } |
Simon Hunt | 6e6e80b | 2017-04-03 12:03:41 -0700 | [diff] [blame] | 439 | |
| 440 | |
| 441 | /* ==================================================================== */ |
| 442 | /* From here are the DARK theme styles - mirroring the above styles */ |
| 443 | /* ==================================================================== */ |
| 444 | |
| 445 | /* --- Base SVG Layer --- */ |
| 446 | |
| 447 | .dark #ov-topo2 svg { |
| 448 | background-color: #152439; |
| 449 | } |
| 450 | |
| 451 | /* --- "No Devices" Layer --- */ |
| 452 | |
| 453 | .dark #ov-topo2 svg .noDevsBird { |
| 454 | fill: #8f4848; |
| 455 | } |
| 456 | |
| 457 | .dark #ov-topo2 svg #topo-noDevsLayer text { |
| 458 | fill: #445461; |
| 459 | } |
| 460 | |
| 461 | /* --- Breadcrumbs --- */ |
| 462 | |
| 463 | .dark #breadcrumbs { |
| 464 | background: #142235; |
| 465 | border-bottom: 1px solid #111111; |
| 466 | } |
| 467 | |
| 468 | .dark #breadcrumbs span { |
| 469 | color: #777778; |
| 470 | } |
| 471 | |
| 472 | .dark #breadcrumbs .breadcrumb:after { |
| 473 | color: #555555; |
| 474 | } |
| 475 | |
| 476 | .dark #breadcrumbs .breadcrumb:last-child a { |
| 477 | color: #d0d0d0; |
| 478 | } |
| 479 | |
| 480 | /* --- Topo Map --- */ |
| 481 | |
| 482 | .dark #ov-topo2 svg #topo2-map { |
| 483 | stroke-width: 2px; |
| 484 | stroke: #37404d; |
| 485 | fill: #212c3a; |
| 486 | } |
| 487 | |
| 488 | /* --- general topo-panel styling --- */ |
| 489 | |
| 490 | .dark .topo2-p { |
| 491 | background-color: #2f313c; |
| 492 | color: #c2c2b7; |
| 493 | } |
| 494 | .dark .topo2-p svg { |
| 495 | background: #8e1e24; |
| 496 | } |
| 497 | |
| 498 | .dark .topo2-p svg .glyph { |
| 499 | fill: #c2c2b7; |
| 500 | } |
| 501 | |
| 502 | .dark .topo2-p hr { |
| 503 | background-color: #616876; |
| 504 | } |
| 505 | |
| 506 | .dark .topo2-p div.actionBtn svg use.glyph { |
| 507 | fill: #5a7f96; |
| 508 | } |
| 509 | |
| 510 | .dark #topo2-p-detail .header svg .glyph { |
| 511 | fill: #91292f; |
| 512 | } |
| 513 | |
| 514 | .dark #toolbar-topo2-toolbar .tbar-row.right { |
| 515 | color: #666; |
| 516 | } |
| 517 | |
| 518 | /* --- Topo Instance Panel --- */ |
| 519 | |
| 520 | .dark #topo2-p-instance { |
| 521 | background-color: #2f313c; |
| 522 | color: #c2c2b7; |
| 523 | border: 1px solid #364144; |
| 524 | |
| 525 | } |
| 526 | |
| 527 | .dark #topo2-p-instance svg rect { |
| 528 | stroke-width: 0; |
| 529 | fill: #525660; |
| 530 | } |
| 531 | |
| 532 | /* body of an instance */ |
| 533 | .dark #topo2-p-instance .online svg rect { |
| 534 | opacity: 1; |
| 535 | fill: #838992; |
| 536 | } |
| 537 | |
| 538 | .dark #topo2-p-instance svg .glyph { |
| 539 | fill: #ddd; |
| 540 | } |
| 541 | .dark #topo2-p-instance .online svg .glyph { |
| 542 | fill: #fff; |
| 543 | } |
| 544 | .dark #topo2-p-instance .online svg .glyph.overlay { |
| 545 | fill: #c7c7c7; |
| 546 | } |
| 547 | |
| 548 | /* offline */ |
| 549 | .dark #topo2-p-instance svg .badgeIcon { |
| 550 | opacity: 0.4; |
| 551 | fill: #939598; |
| 552 | } |
| 553 | |
| 554 | /* online */ |
| 555 | .dark #topo2-p-instance .online svg .badgeIcon { |
| 556 | opacity: 1.0; |
| 557 | fill: #939598; |
| 558 | } |
| 559 | .dark #topo2-p-instance .online svg .badgeIcon.bird { |
| 560 | fill: #ffffff; |
| 561 | } |
| 562 | |
| 563 | .dark #topo2-p-instance svg text { |
| 564 | text-anchor: left; |
| 565 | opacity: 0.5; |
| 566 | fill: #aaa; |
| 567 | } |
| 568 | |
| 569 | .dark #topo2-p-instance .online svg text { |
| 570 | opacity: 1.0; |
| 571 | fill: #fff; |
| 572 | } |
| 573 | |
| 574 | .dark #topo2-p-instance .onosInst.mastership { |
| 575 | opacity: 0.3; |
| 576 | } |
| 577 | .dark #topo2-p-instance .onosInst.mastership.affinity { |
| 578 | opacity: 1.0; |
| 579 | } |
| 580 | .dark #topo2-p-instance .onosInst.mastership.affinity svg rect { |
| 581 | filter: url(#blue-glow); |
| 582 | } |
| 583 | |
| 584 | .dark.firefox #topo2-p-instance .onosInst.mastership.affinity svg rect { |
| 585 | 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"); |
| 586 | } |
| 587 | |
| 588 | /* --- Topo Nodes --- */ |
| 589 | |
| 590 | /* Device Nodes */ |
| 591 | |
| 592 | /* note: device without the 'online' class is offline */ |
| 593 | .dark #ov-topo2 svg .node.device rect { |
| 594 | fill: #707070; |
| 595 | } |
| 596 | .dark #ov-topo2 svg .node.device text { |
| 597 | fill: #444; |
| 598 | } |
| 599 | .dark #ov-topo2 svg .node.device use { |
| 600 | fill: #eee; |
| 601 | } |
| 602 | |
| 603 | .dark #ov-topo2 svg .node.device.online rect { |
| 604 | fill: #525660; |
| 605 | } |
| 606 | .dark #ov-topo2 svg .node.device.online text { |
| 607 | fill: #fff; |
| 608 | } |
| 609 | .dark #ov-topo2 svg .node.device.online use { |
| 610 | fill: #fff; |
| 611 | } |
| 612 | |
| 613 | .dark #ov-topo2 svg .node.device.selected rect { |
| 614 | stroke-width: 2.0; |
| 615 | stroke: #009fdb; |
| 616 | } |
| 617 | |
| 618 | .dark #ov-topo2 svg .node.sub-region rect { |
| 619 | fill: #525660; |
| 620 | } |
| 621 | |
Simon Hunt | b3656d4 | 2017-04-07 18:15:35 -0700 | [diff] [blame] | 622 | .dark #ov-topo2 svg .node.sub-region text { |
Simon Hunt | b3656d4 | 2017-04-07 18:15:35 -0700 | [diff] [blame] | 623 | } |
| 624 | |
Simon Hunt | 6e6e80b | 2017-04-03 12:03:41 -0700 | [diff] [blame] | 625 | .dark #ov-topo2 svg .node.sub-region use { |
| 626 | /* NOTE: this gets overridden programatically */ |
| 627 | fill: #eeeeee; |
| 628 | } |
| 629 | |
| 630 | .dark #ov-topo2 svg .node.peer-region rect { |
| 631 | fill: #525660; |
| 632 | } |
| 633 | |
| 634 | /* Host Nodes */ |
| 635 | |
| 636 | .dark #ov-topo2 svg .node.host { |
| 637 | } |
| 638 | |
| 639 | .dark #ov-topo2 svg .node.host text { |
| 640 | stroke: none; |
Steven Burrows | 1270c18 | 2017-09-14 10:14:58 +0100 | [diff] [blame] | 641 | font-size: 13px; |
Simon Hunt | 6e6e80b | 2017-04-03 12:03:41 -0700 | [diff] [blame] | 642 | fill: #ad5781; |
| 643 | } |
| 644 | |
| 645 | .dark #ov-topo2 svg .node.host circle { |
| 646 | stroke: #a3a596; |
| 647 | fill: #8f8272; |
| 648 | } |
Steven Burrows | 1270c18 | 2017-09-14 10:14:58 +0100 | [diff] [blame] | 649 | |
| 650 | .dark #ov-topo2 svg .node.host rect { |
| 651 | fill: #525660; |
| 652 | } |
| 653 | |
Simon Hunt | 6e6e80b | 2017-04-03 12:03:41 -0700 | [diff] [blame] | 654 | .dark #ov-topo2 svg .node.host.selected .hostIcon > circle { |
| 655 | stroke-width: 2.0; |
| 656 | stroke: #009fdb; |
| 657 | } |
| 658 | |
| 659 | .dark #ov-topo2 svg .node.host use { |
| 660 | fill: #000; |
| 661 | } |
| 662 | |
| 663 | |
| 664 | /* --- Topo Links --- */ |
| 665 | .dark #ov-topo2 svg .link.not-permitted { |
| 666 | stroke: rgb(255, 60, 60); |
| 667 | } |
| 668 | |
| 669 | /* Port traffic color visualization for Kbps, Mbps, and Gbps */ |
| 670 | /* .. values good for both light and dark themes */ |
| 671 | |
| 672 | /* Primary, Secondary (optical too) colors good for both themes */ |
| 673 | |
| 674 | /* Link Labels */ |
| 675 | .dark #ov-topo svg .linkLabel rect { |
| 676 | fill: #555; |
| 677 | } |
| 678 | |
| 679 | .dark #ov-topo svg .linkLabel text { |
| 680 | fill: #eee; |
| 681 | } |
| 682 | |
| 683 | /* Port Labels */ |
| 684 | |
| 685 | .dark #ov-topo svg .portLabel rect { |
| 686 | fill: #222; |
| 687 | } |
| 688 | |
| 689 | .dark #ov-topo svg .portLabel text { |
| 690 | fill: #eee; |
| 691 | } |
| 692 | |
| 693 | /* Number of Links Labels */ |
| 694 | |
| 695 | .dark #ov-topo text.numLinkText { |
| 696 | fill: #eee; |
| 697 | } |
| 698 | |
| 699 | |
| 700 | /* Sprite Layer */ |
| 701 | |
| 702 | .dark #ov-topo2 svg #topo2-sprites .gold1 use { |
| 703 | stroke: #541; |
| 704 | } |
| 705 | .dark #ov-topo2 svg #topo2-sprites .gold1 text { |
| 706 | fill: #543; |
| 707 | } |
| 708 | |
| 709 | .dark #ov-topo2 svg #topo2-sprites .blue1 use { |
| 710 | stroke: #445; |
| 711 | } |
| 712 | .dark #ov-topo2 svg #topo2-sprites .blue1 text { |
| 713 | fill: #446; |
| 714 | } |
| 715 | |
| 716 | .dark #ov-topo2 svg #topo2-sprites .gray1 use { |
| 717 | stroke: #333; |
| 718 | } |
| 719 | .dark #ov-topo2 svg #topo2-sprites .gray1 text { |
| 720 | fill: #444; |
| 721 | } |
| 722 | |
| 723 | /* fills */ |
| 724 | .dark #ov-topo2 svg #topo2-sprites use.fill-gray2 { |
| 725 | fill: #444; |
| 726 | } |
| 727 | |
| 728 | .dark #ov-topo2 svg #topo2-sprites use.fill-blue2 { |
| 729 | fill: #447; |
| 730 | } |