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 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 23 | #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 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 29 | #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 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 33 | #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 | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 39 | #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 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 47 | .topo-p svg .glyph { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 48 | fill: #222; |
| 49 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 50 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 51 | .topo-p svg .glyph.overlay { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 52 | fill: #fff; |
| 53 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 54 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 55 | .topo-p h2 { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 56 | color: black; |
| 57 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 58 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 59 | .topo-p h3 { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 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 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 70 | .topo-p hr { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 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 | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 79 | fill: #fbfbfb; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 80 | } |
| 81 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 82 | /* body of an instance */ |
| 83 | #topo-p-instance .online svg rect { |
| 84 | opacity: 1; |
| 85 | fill: #fbfbfb; |
| 86 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 87 | |
| 88 | #topo-p-instance svg .glyph { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 89 | fill: #fff; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 90 | } |
| 91 | #topo-p-instance .online svg .glyph { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 92 | fill: #fff; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 96 | /* offline */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 97 | #topo-p-instance svg .badgeIcon { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 98 | opacity: 0.4; |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 99 | fill: #939598; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 100 | } |
| 101 | |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 102 | /* online */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 103 | #topo-p-instance .online svg .badgeIcon { |
| 104 | opacity: 1.0; |
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 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 107 | #topo-p-instance .online svg .badgeIcon.bird { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 108 | fill: #ffffff; |
| 109 | } |
| 110 | |
| 111 | #topo-p-instance svg .readyBadge { |
| 112 | visibility: hidden; |
| 113 | } |
| 114 | #topo-p-instance .ready svg .readyBadge { |
| 115 | visibility: visible; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 116 | } |
| 117 | |
| 118 | #topo-p-instance svg text { |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 119 | text-anchor: left; |
| 120 | opacity: 0.5; |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 121 | fill: #3c3a3a; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 122 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 123 | |
| 124 | #topo-p-instance .online svg text { |
| 125 | opacity: 1.0; |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 126 | fill: #3c3a3a; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 127 | } |
| 128 | |
| 129 | #topo-p-instance .onosInst.mastership { |
| 130 | opacity: 0.3; |
| 131 | } |
| 132 | #topo-p-instance .onosInst.mastership.affinity { |
| 133 | opacity: 1.0; |
| 134 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 135 | #topo-p-instance .onosInst.mastership.affinity svg rect { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 136 | filter: url(#blue-glow); |
| 137 | } |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 138 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 139 | .firefox #topo-p-instance .onosInst.mastership.affinity svg rect { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 140 | 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"); |
| 141 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 142 | |
| 143 | /* --- Topo Nodes --- */ |
| 144 | |
| 145 | #ov-topo svg .suppressed { |
| 146 | opacity: 0.5 !important; |
| 147 | } |
| 148 | |
| 149 | #ov-topo svg .suppressedmax { |
| 150 | opacity: 0.2 !important; |
| 151 | } |
| 152 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 153 | #ov-topo svg .node.selected rect, |
| 154 | #ov-topo svg .node.selected circle { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 155 | fill: #f90; |
| 156 | filter: url(#blue-glow); |
| 157 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 158 | .firefox #ov-topo svg .node.selected rect, |
| 159 | .firefox #ov-topo svg .node.selected circle { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 160 | 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"); |
| 161 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 162 | |
| 163 | /* Device Nodes */ |
| 164 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 165 | /* note: device without the 'online' class is offline */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 166 | #ov-topo svg .node.device rect { |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 167 | /* TODO: theme */ |
| 168 | fill: #f0f0f0; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 169 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 170 | #ov-topo svg .node.device text { |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 171 | /*TODO: theme*/ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 172 | fill: #bbb; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 173 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 174 | #ov-topo svg .node.device use { |
| 175 | /*TODO: theme*/ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 176 | fill: #777; |
| 177 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 178 | |
| 179 | |
| 180 | #ov-topo svg .node.device.online rect { |
| 181 | fill: #ffffff; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 182 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 183 | #ov-topo svg .node.device.online text { |
| 184 | fill: #3c3a3a; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 185 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 186 | #ov-topo svg .node.device.online use { |
| 187 | /* NOTE: this gets overridden programatically */ |
| 188 | fill: #454545; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 189 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 190 | |
| 191 | |
| 192 | #ov-topo svg .node.device.selected rect { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 193 | fill: #f90; |
| 194 | } |
| 195 | |
| 196 | /* Badges */ |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 197 | /* (... works for bothand dark themes...) */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 198 | #ov-topo svg .node .badge circle { |
| 199 | stroke: #aaa; |
| 200 | } |
| 201 | |
| 202 | #ov-topo svg .node .badge.badgeInfo circle { |
| 203 | fill: #99d; |
| 204 | } |
| 205 | |
| 206 | #ov-topo svg .node .badge.badgeWarn circle { |
| 207 | fill: #da2; |
| 208 | } |
| 209 | |
| 210 | #ov-topo svg .node .badge.badgeError circle { |
| 211 | fill: #e44; |
| 212 | } |
| 213 | |
| 214 | #ov-topo svg .node .badge use { |
| 215 | fill: white !important; |
| 216 | } |
| 217 | |
| 218 | #ov-topo svg .node .badge.badgeInfo use { |
| 219 | fill: #448; |
| 220 | } |
| 221 | |
| 222 | #ov-topo svg .node .badge text { |
| 223 | fill: white !important; |
| 224 | } |
| 225 | |
| 226 | #ov-topo svg .node .badge.badgeInfo text { |
| 227 | fill: #448; |
| 228 | } |
| 229 | |
| 230 | /* Host Nodes */ |
| 231 | |
| 232 | #ov-topo svg .node.host { |
| 233 | } |
| 234 | |
| 235 | #ov-topo svg .node.host text { |
| 236 | stroke: none; |
| 237 | font: 9pt sans-serif; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 238 | fill: #846; |
| 239 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 240 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 241 | svg .node.host circle { |
| 242 | stroke: #a3a596; |
| 243 | fill: #e0dfd6; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 244 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 245 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 246 | svg .node.host .svgIcon { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 247 | fill: #444; |
| 248 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 249 | |
| 250 | /* --- Topo Links --- */ |
| 251 | |
| 252 | #ov-topo svg .link { |
| 253 | opacity: .9; |
| 254 | } |
| 255 | |
| 256 | #ov-topo svg .link.selected, |
| 257 | #ov-topo svg .link.enhanced { |
| 258 | stroke-width: 4.5px; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 259 | filter: url(#blue-glow); |
| 260 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 261 | .firefox #ov-topo svg .link.selected, |
| 262 | .firefox #ov-topo svg .link.enhanced { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 263 | 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"); |
| 264 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 265 | |
| 266 | #ov-topo svg .link.inactive { |
| 267 | opacity: .5; |
| 268 | stroke-dasharray: 8 4; |
| 269 | } |
Simon Hunt | 2d147f6 | 2016-06-10 18:02:53 -0700 | [diff] [blame] | 270 | /* TODO: Review for not-permitted links */ |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 271 | #ov-topo svg .link.not-permitted { |
| 272 | stroke: rgb(255,0,0); |
| 273 | stroke-width: 5.0; |
| 274 | stroke-dasharray: 8 4; |
| 275 | } |
| 276 | |
| 277 | #ov-topo svg .link.secondary { |
| 278 | stroke-width: 3px; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 279 | stroke: rgba(0,153,51,0.5); |
| 280 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 281 | |
| 282 | /* Port traffic color visualization for Kbps, Mbps, and Gbps */ |
| 283 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 284 | #ov-topo svg .link.secondary.port-traffic-Kbps { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 285 | stroke: rgb(0,153,51); |
| 286 | stroke-width: 5.0; |
| 287 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 288 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 289 | #ov-topo svg .link.secondary.port-traffic-Mbps { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 290 | stroke: rgb(128,145,27); |
| 291 | stroke-width: 6.5; |
| 292 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 293 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 294 | #ov-topo svg .link.secondary.port-traffic-Gbps { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 295 | stroke: rgb(255, 137, 3); |
| 296 | stroke-width: 8.0; |
| 297 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 298 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 299 | #ov-topo svg .link.secondary.port-traffic-Gbps-choked { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 300 | stroke: rgb(183, 30, 21); |
| 301 | stroke-width: 8.0; |
| 302 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 303 | |
| 304 | |
| 305 | |
| 306 | #ov-topo svg .link.animated { |
| 307 | stroke-dasharray: 8 5; |
| 308 | animation: ants 5s infinite linear; |
| 309 | /* below line will be added via Javascript based on path */ |
| 310 | /*animation-direction: reverse;*/ |
| 311 | } |
| 312 | @keyframes ants { |
| 313 | from { |
| 314 | stroke-dashoffset: 0; |
| 315 | } |
| 316 | to { |
| 317 | stroke-dashoffset: 400; |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | #ov-topo svg .link.primary { |
| 322 | stroke-width: 4px; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 323 | stroke: #ffA300; |
| 324 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 325 | |
| 326 | #ov-topo svg .link.secondary.optical { |
| 327 | stroke-width: 4px; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 328 | stroke: rgba(128,64,255,0.5); |
| 329 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 330 | |
| 331 | #ov-topo svg .link.primary.optical { |
| 332 | stroke-width: 6px; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 333 | stroke: #74f; |
| 334 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 335 | |
| 336 | /* Link Labels */ |
| 337 | #ov-topo svg .linkLabel rect { |
| 338 | stroke: none; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 339 | fill: #eee; |
| 340 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 341 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 342 | #ov-topo svg .linkLabel text { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 343 | fill: #444; |
| 344 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 345 | |
| 346 | /* Port Labels */ |
| 347 | |
| 348 | #ov-topo svg .portLabel rect { |
| 349 | stroke: none; |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 350 | fill: #eee; |
| 351 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 352 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 353 | #ov-topo svg .portLabel text { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 354 | fill: #444; |
| 355 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 356 | |
| 357 | /* Number of Links Labels */ |
| 358 | |
| 359 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 360 | #ov-topo text.numLinkText { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 361 | fill: #444; |
| 362 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 363 | |
| 364 | /* ------------------------------------------------- */ |
| 365 | /* Sprite Layer */ |
| 366 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 367 | #ov-topo svg #topo-sprites .gold1 use { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 368 | stroke: #fda; |
| 369 | fill: none; |
| 370 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 371 | #ov-topo svg #topo-sprites .gold1 text { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 372 | fill: #eda; |
| 373 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 374 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 375 | #ov-topo svg #topo-sprites .blue1 use { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 376 | stroke: #bbd; |
| 377 | fill: none; |
| 378 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 379 | #ov-topo svg #topo-sprites .blue1 text { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 380 | fill: #cce; |
| 381 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 382 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 383 | #ov-topo svg #topo-sprites .gray1 use { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 384 | stroke: #ccc; |
| 385 | fill: none; |
| 386 | } |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 387 | #ov-topo svg #topo-sprites .gray1 text { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 388 | fill: #ddd; |
| 389 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 390 | |
| 391 | /* fills */ |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 392 | #ov-topo svg #topo-sprites use.fill-gray2 { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 393 | fill: #eee; |
| 394 | } |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 395 | |
Simon Hunt | 92eaf44 | 2016-06-14 14:46:56 -0700 | [diff] [blame^] | 396 | #ov-topo svg #topo-sprites use.fill-blue2 { |
Simon Hunt | 11f662f | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 397 | fill: #bce; |
| 398 | } |