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