Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 1 | /* |
| 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 Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 24 | background-color: #f4f4f4; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | /* --- "No Devices" Layer --- */ |
| 28 | |
| 29 | .light #ov-topo svg .noDevsBird { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 30 | fill: #db7773; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | .light #ov-topo svg #topo-noDevsLayer text { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 34 | fill: #7e9aa8; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | /* --- Topo Map --- */ |
| 38 | |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 39 | .light #ov-topo svg #topo-map { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 40 | stroke-width: 2px; |
| 41 | stroke: #f4f4f4; |
| 42 | fill: #e5e5e6; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | /* --- general topo-panel styling --- */ |
| 46 | |
| 47 | .light .topo-p svg .glyph { |
| 48 | fill: #222; |
| 49 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 50 | |
| 51 | .light .topo-p svg .glyph.overlay { |
| 52 | fill: #fff; |
| 53 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 54 | |
| 55 | .light .topo-p h2 { |
| 56 | color: black; |
| 57 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 58 | |
| 59 | .light .topo-p h3 { |
| 60 | color: black; |
| 61 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 62 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 74 | |
| 75 | /* --- Topo Instance Panel --- */ |
| 76 | |
| 77 | #topo-p-instance svg rect { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 78 | stroke-width: 0; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 79 | } |
| 80 | #topo-p-instance .online svg rect { |
| 81 | opacity: 1; |
| 82 | } |
| 83 | .light #topo-p-instance svg rect { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 84 | fill: #fbfbfb; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 85 | } |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 86 | /* body of an instance */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 87 | .light #topo-p-instance .online svg rect { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 88 | fill: #fbfbfb; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 89 | } |
| 90 | |
| 91 | |
| 92 | #topo-p-instance svg .glyph { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 93 | fill: #fff; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 94 | } |
| 95 | #topo-p-instance .online svg .glyph { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 96 | fill: #fff; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 97 | } |
| 98 | |
| 99 | |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 100 | /* offline */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 101 | #topo-p-instance svg .badgeIcon { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 102 | opacity: 0.4; |
| 103 | } |
| 104 | .light #topo-p-instance svg .badgeIcon { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 105 | fill: #939598; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 106 | } |
| 107 | |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 108 | /* online */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 109 | #topo-p-instance .online svg .badgeIcon { |
| 110 | opacity: 1.0; |
| 111 | } |
| 112 | .light #topo-p-instance .online svg .badgeIcon { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 113 | fill: #939598; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 114 | } |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 115 | .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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 124 | } |
| 125 | |
| 126 | #topo-p-instance svg text { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 127 | text-anchor: left; |
| 128 | opacity: 0.5; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 129 | } |
| 130 | #topo-p-instance .online svg text { |
| 131 | opacity: 1.0; |
| 132 | } |
| 133 | .light #topo-p-instance svg text { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 134 | fill: #3c3a3a; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 135 | } |
| 136 | .light #topo-p-instance .online svg text { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 137 | fill: #3c3a3a; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 138 | } |
| 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 Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 149 | |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 150 | .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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 153 | |
| 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 Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 169 | /*.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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 174 | .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 Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 178 | /*.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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 182 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 195 | |
| 196 | /* note: device is offline without the 'online' class */ |
| 197 | .light #ov-topo svg .node.device { |
| 198 | fill: #777; |
| 199 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 200 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 211 | |
| 212 | /* note: device is offline without the 'online' class */ |
| 213 | #ov-topo svg .node.device text { |
| 214 | fill: #bbb; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 215 | } |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 286 | |
| 287 | .light svg .node.host circle { |
| 288 | stroke: #000; |
| 289 | fill: #edb; |
| 290 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 291 | |
| 292 | .light svg .node.host .svgIcon { |
| 293 | fill: #444; |
| 294 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 295 | |
| 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 Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 310 | /*.dark #ov-topo svg .link.selected,*/ |
| 311 | /*.dark #ov-topo svg .link.enhanced {*/ |
| 312 | /*filter: url(#yellow-glow);*/ |
| 313 | /*}*/ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 314 | .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 Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 318 | /*.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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 321 | |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 322 | /*}*/ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 323 | |
| 324 | #ov-topo svg .link.inactive { |
| 325 | opacity: .5; |
| 326 | stroke-dasharray: 8 4; |
| 327 | } |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame^] | 328 | /* TODO: Review for not-permitted links */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 329 | #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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 341 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 348 | |
| 349 | .light #ov-topo svg .link.secondary.port-traffic-Mbps { |
| 350 | stroke: rgb(128,145,27); |
| 351 | stroke-width: 6.5; |
| 352 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 353 | |
| 354 | .light #ov-topo svg .link.secondary.port-traffic-Gbps { |
| 355 | stroke: rgb(255, 137, 3); |
| 356 | stroke-width: 8.0; |
| 357 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 358 | |
| 359 | .light #ov-topo svg .link.secondary.port-traffic-Gbps-choked { |
| 360 | stroke: rgb(183, 30, 21); |
| 361 | stroke-width: 8.0; |
| 362 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 363 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 387 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 394 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 401 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 409 | |
| 410 | .light #ov-topo svg .linkLabel text { |
| 411 | fill: #444; |
| 412 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 413 | |
| 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 Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 422 | |
| 423 | .light #ov-topo svg .portLabel text { |
| 424 | fill: #444; |
| 425 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 426 | |
| 427 | /* Number of Links Labels */ |
| 428 | |
| 429 | |
| 430 | .light #ov-topo text.numLinkText { |
| 431 | fill: #444; |
| 432 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 433 | |
| 434 | /* ------------------------------------------------- */ |
| 435 | /* Sprite Layer */ |
| 436 | |
| 437 | .light #ov-topo svg #topo-sprites .gold1 use { |
| 438 | stroke: #fda; |
| 439 | fill: none; |
| 440 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 441 | .light #ov-topo svg #topo-sprites .gold1 text { |
| 442 | fill: #eda; |
| 443 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 444 | |
| 445 | .light #ov-topo svg #topo-sprites .blue1 use { |
| 446 | stroke: #bbd; |
| 447 | fill: none; |
| 448 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 449 | .light #ov-topo svg #topo-sprites .blue1 text { |
| 450 | fill: #cce; |
| 451 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 452 | |
| 453 | .light #ov-topo svg #topo-sprites .gray1 use { |
| 454 | stroke: #ccc; |
| 455 | fill: none; |
| 456 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 457 | .light #ov-topo svg #topo-sprites .gray1 text { |
| 458 | fill: #ddd; |
| 459 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 460 | |
| 461 | /* fills */ |
| 462 | .light #ov-topo svg #topo-sprites use.fill-gray2 { |
| 463 | fill: #eee; |
| 464 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 465 | |
| 466 | .light #ov-topo svg #topo-sprites use.fill-blue2 { |
| 467 | fill: #bce; |
| 468 | } |