Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -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 | 58894c8 | 2016-05-24 15:09:02 -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 | |
| 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 { |
Simon Hunt | a58d894 | 2017-08-11 12:51:14 -0700 | [diff] [blame] | 48 | background: none; |
Simon Hunt | 8f907cc | 2016-06-15 18:04:01 -0700 | [diff] [blame] | 49 | } |
| 50 | |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 51 | .topo-p svg .glyph { |
Simon Hunt | a58d894 | 2017-08-11 12:51:14 -0700 | [diff] [blame] | 52 | fill: #c0242b; |
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 | |
Simon Hunt | 21281fd | 2017-03-30 22:28:28 -0700 | [diff] [blame] | 270 | /* Port traffic color visualization: |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 271 | |
Simon Hunt | 21281fd | 2017-03-30 22:28:28 -0700 | [diff] [blame] | 272 | For bits per second we will use: |
| 273 | - green for Kbps, |
| 274 | - yellow for Mbps, |
| 275 | - orange for Gbps, and |
| 276 | - red for > 10 Gbps |
| 277 | |
| 278 | For packets per second we will use: |
| 279 | - green for > 0 |
| 280 | - yellow for > ? |
| 281 | - orange for > ?? |
| 282 | - red for > ??? |
| 283 | */ |
| 284 | |
| 285 | #ov-topo svg .link.secondary.port-traffic-green { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 286 | stroke: rgb(0,153,51); |
| 287 | stroke-width: 5.0; |
| 288 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 289 | |
Simon Hunt | 21281fd | 2017-03-30 22:28:28 -0700 | [diff] [blame] | 290 | #ov-topo svg .link.secondary.port-traffic-yellow { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 291 | stroke: rgb(128,145,27); |
| 292 | stroke-width: 6.5; |
| 293 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 294 | |
Simon Hunt | 21281fd | 2017-03-30 22:28:28 -0700 | [diff] [blame] | 295 | #ov-topo svg .link.secondary.port-traffic-orange { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 296 | stroke: rgb(255, 137, 3); |
| 297 | stroke-width: 8.0; |
| 298 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 299 | |
Simon Hunt | 21281fd | 2017-03-30 22:28:28 -0700 | [diff] [blame] | 300 | #ov-topo svg .link.secondary.port-traffic-red { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 301 | stroke: rgb(183, 30, 21); |
| 302 | stroke-width: 8.0; |
| 303 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 304 | |
| 305 | |
| 306 | |
| 307 | #ov-topo svg .link.animated { |
| 308 | stroke-dasharray: 8 5; |
| 309 | animation: ants 5s infinite linear; |
Simon Hunt | 4766dfb | 2016-06-14 17:16:22 -0700 | [diff] [blame] | 310 | /* below line could be added via Javascript, based on path, if we cared |
| 311 | * enough about the direction of ant-flow |
| 312 | */ |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 313 | /*animation-direction: reverse;*/ |
| 314 | } |
| 315 | @keyframes ants { |
| 316 | from { |
| 317 | stroke-dashoffset: 0; |
| 318 | } |
| 319 | to { |
| 320 | stroke-dashoffset: 400; |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | #ov-topo svg .link.primary { |
| 325 | stroke-width: 4px; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 326 | stroke: #ffA300; |
| 327 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 328 | |
| 329 | #ov-topo svg .link.secondary.optical { |
| 330 | stroke-width: 4px; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 331 | stroke: rgba(128,64,255,0.5); |
| 332 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 333 | |
| 334 | #ov-topo svg .link.primary.optical { |
| 335 | stroke-width: 6px; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 336 | stroke: #74f; |
| 337 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 338 | |
| 339 | /* Link Labels */ |
| 340 | #ov-topo svg .linkLabel rect { |
| 341 | stroke: none; |
Simon Hunt | 4766dfb | 2016-06-14 17:16:22 -0700 | [diff] [blame] | 342 | fill: #ffffff; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 343 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 344 | |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 345 | #ov-topo svg .linkLabel text { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 346 | fill: #444; |
| 347 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 348 | |
| 349 | /* Port Labels */ |
| 350 | |
| 351 | #ov-topo svg .portLabel rect { |
Simon Hunt | 4766dfb | 2016-06-14 17:16:22 -0700 | [diff] [blame] | 352 | stroke: #a3a596; |
| 353 | fill: #ffffff; |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 354 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 355 | |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 356 | #ov-topo svg .portLabel text { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 357 | fill: #444; |
| 358 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 359 | |
| 360 | /* Number of Links Labels */ |
| 361 | |
| 362 | |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 363 | #ov-topo text.numLinkText { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 364 | fill: #444; |
| 365 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 366 | |
| 367 | /* ------------------------------------------------- */ |
| 368 | /* Sprite Layer */ |
| 369 | |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 370 | #ov-topo svg #topo-sprites .gold1 use { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 371 | stroke: #fda; |
| 372 | fill: none; |
| 373 | } |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 374 | #ov-topo svg #topo-sprites .gold1 text { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 375 | fill: #eda; |
| 376 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 377 | |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 378 | #ov-topo svg #topo-sprites .blue1 use { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 379 | stroke: #bbd; |
| 380 | fill: none; |
| 381 | } |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 382 | #ov-topo svg #topo-sprites .blue1 text { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 383 | fill: #cce; |
| 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 .gray1 use { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 387 | stroke: #ccc; |
| 388 | fill: none; |
| 389 | } |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 390 | #ov-topo svg #topo-sprites .gray1 text { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 391 | fill: #ddd; |
| 392 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 393 | |
| 394 | /* fills */ |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 395 | #ov-topo svg #topo-sprites use.fill-gray2 { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 396 | fill: #eee; |
| 397 | } |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 398 | |
Simon Hunt | f44d726 | 2016-06-14 14:46:56 -0700 | [diff] [blame] | 399 | #ov-topo svg #topo-sprites use.fill-blue2 { |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 400 | fill: #bce; |
| 401 | } |
Simon Hunt | bb0f267 | 2017-03-28 18:52:59 -0700 | [diff] [blame] | 402 | |
| 403 | |
| 404 | /* ==================================================================== */ |
| 405 | /* From here are the DARK theme styles - mirroring the above styles */ |
| 406 | /* ==================================================================== */ |
| 407 | |
| 408 | /* --- Base SVG Layer --- */ |
| 409 | |
| 410 | .dark #ov-topo svg { |
| 411 | background-color: #152439; |
| 412 | } |
| 413 | |
| 414 | |
| 415 | /* --- "No Devices" Layer --- */ |
| 416 | |
| 417 | .dark #ov-topo svg .noDevsBird { |
| 418 | fill: #8f4848; |
| 419 | } |
| 420 | |
| 421 | .dark #ov-topo svg #topo-noDevsLayer text { |
| 422 | fill: #445461; |
| 423 | } |
| 424 | |
| 425 | /* --- Topo Map --- */ |
| 426 | |
| 427 | .dark #ov-topo svg #topo-map { |
| 428 | stroke-width: 2px; |
| 429 | stroke: #37404d; |
| 430 | fill: #212c3a; |
| 431 | } |
| 432 | |
| 433 | /* --- general topo-panel styling --- */ |
| 434 | |
| 435 | .dark .topo-p { |
| 436 | background-color: #2f313c; |
| 437 | color: #c2c2b7; |
| 438 | } |
| 439 | .dark .topo-p svg { |
| 440 | background: #8e1e24; |
| 441 | } |
| 442 | |
| 443 | .dark .topo-p svg .glyph { |
| 444 | fill: #c2c2b7; |
| 445 | } |
| 446 | |
| 447 | .dark .topo-p hr { |
| 448 | background-color: #616876; |
| 449 | } |
| 450 | |
| 451 | .dark .topo-p div.actionBtn svg use.glyph { |
| 452 | fill: #5a7f96; |
| 453 | } |
| 454 | |
| 455 | .dark #topo-p-detail .header svg .glyph { |
| 456 | fill: #91292f; |
| 457 | } |
| 458 | |
| 459 | .dark #toolbar-topo-tbar .tbar-row.right { |
| 460 | color: #666; |
| 461 | } |
| 462 | |
| 463 | /* --- Topo Instance Panel --- */ |
| 464 | |
| 465 | .dark #topo-p-instance { |
| 466 | background-color: #2f313c; |
| 467 | color: #c2c2b7; |
| 468 | border: 1px solid #364144; |
| 469 | |
| 470 | } |
| 471 | |
| 472 | .dark #topo-p-instance svg rect { |
| 473 | stroke-width: 0; |
| 474 | fill: #525660; |
| 475 | } |
| 476 | |
| 477 | /* body of an instance */ |
| 478 | .dark #topo-p-instance .online svg rect { |
| 479 | opacity: 1; |
| 480 | fill: #838992; |
| 481 | } |
| 482 | |
| 483 | .dark #topo-p-instance svg .glyph { |
| 484 | fill: #ddd; |
| 485 | } |
| 486 | .dark #topo-p-instance .online svg .glyph { |
| 487 | fill: #fff; |
| 488 | } |
| 489 | .dark #topo-p-instance .online svg .glyph.overlay { |
| 490 | fill: #c7c7c7; |
| 491 | } |
| 492 | |
| 493 | /* offline */ |
| 494 | .dark #topo-p-instance svg .badgeIcon { |
| 495 | opacity: 0.4; |
| 496 | fill: #939598; |
| 497 | } |
| 498 | |
| 499 | /* online */ |
| 500 | .dark #topo-p-instance .online svg .badgeIcon { |
| 501 | opacity: 1.0; |
| 502 | fill: #939598; |
| 503 | } |
| 504 | .dark #topo-p-instance .online svg .badgeIcon.bird { |
| 505 | fill: #ffffff; |
| 506 | } |
| 507 | |
| 508 | .dark #topo-p-instance svg text { |
| 509 | text-anchor: left; |
| 510 | opacity: 0.5; |
| 511 | fill: #aaa; |
| 512 | } |
| 513 | |
| 514 | .dark #topo-p-instance .online svg text { |
| 515 | opacity: 1.0; |
| 516 | fill: #fff; |
| 517 | } |
| 518 | |
| 519 | .dark #topo-p-instance .onosInst.mastership { |
| 520 | opacity: 0.3; |
| 521 | } |
| 522 | .dark #topo-p-instance .onosInst.mastership.affinity { |
| 523 | opacity: 1.0; |
| 524 | } |
| 525 | .dark #topo-p-instance .onosInst.mastership.affinity svg rect { |
| 526 | filter: url(#blue-glow); |
| 527 | } |
| 528 | |
| 529 | .dark.firefox #topo-p-instance .onosInst.mastership.affinity svg rect { |
| 530 | 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"); |
| 531 | } |
| 532 | |
| 533 | /* --- Topo Nodes --- */ |
| 534 | |
| 535 | /* Device Nodes */ |
| 536 | |
| 537 | /* note: device without the 'online' class is offline */ |
| 538 | .dark #ov-topo svg .node.device rect { |
| 539 | fill: #707070; |
| 540 | } |
| 541 | .dark #ov-topo svg .node.device text { |
| 542 | fill: #444; |
| 543 | } |
| 544 | .dark #ov-topo svg .node.device use { |
| 545 | fill: #eee; |
| 546 | } |
| 547 | |
| 548 | .dark #ov-topo svg .node.device.online rect { |
| 549 | fill: #525660; |
| 550 | } |
| 551 | .dark #ov-topo svg .node.device.online text { |
| 552 | fill: #fff; |
| 553 | } |
| 554 | .dark #ov-topo svg .node.device.online use { |
| 555 | fill: #fff; |
| 556 | } |
| 557 | |
| 558 | .dark #ov-topo svg .node.device.selected rect { |
| 559 | stroke-width: 2.0; |
| 560 | stroke: #009fdb; |
| 561 | } |
| 562 | |
| 563 | |
| 564 | /* Host Nodes */ |
| 565 | |
| 566 | .dark #ov-topo svg .node.host { |
| 567 | } |
| 568 | |
| 569 | .dark #ov-topo svg .node.host text { |
| 570 | stroke: none; |
| 571 | font: 9pt sans-serif; |
| 572 | fill: #ad5781; |
| 573 | } |
| 574 | |
| 575 | .dark #ov-topo svg .node.host circle { |
| 576 | stroke: #a3a596; |
| 577 | fill: #8f8272; |
| 578 | } |
| 579 | .dark #ov-topo svg .node.host.selected .hostIcon > circle { |
| 580 | stroke-width: 2.0; |
| 581 | stroke: #009fdb; |
| 582 | } |
| 583 | |
| 584 | .dark #ov-topo svg .node.host use { |
| 585 | fill: #000; |
| 586 | } |
| 587 | |
| 588 | /* --- Topo Links --- */ |
| 589 | .dark #ov-topo svg .link.not-permitted { |
| 590 | stroke: rgb(255, 60, 60); |
| 591 | } |
| 592 | |
| 593 | /* Port traffic color visualization for Kbps, Mbps, and Gbps */ |
| 594 | /* .. values good for both light and dark themes */ |
| 595 | |
| 596 | /* Primary, Secondary (optical too) colors good for both themes */ |
| 597 | |
| 598 | /* Link Labels */ |
| 599 | .dark #ov-topo svg .linkLabel rect { |
| 600 | fill: #555; |
| 601 | } |
| 602 | |
| 603 | .dark #ov-topo svg .linkLabel text { |
| 604 | fill: #eee; |
| 605 | } |
| 606 | |
| 607 | /* Port Labels */ |
| 608 | |
| 609 | .dark #ov-topo svg .portLabel rect { |
| 610 | fill: #222; |
| 611 | } |
| 612 | |
| 613 | .dark #ov-topo svg .portLabel text { |
| 614 | fill: #eee; |
| 615 | } |
| 616 | |
| 617 | /* Number of Links Labels */ |
| 618 | |
| 619 | .dark #ov-topo text.numLinkText { |
| 620 | fill: #eee; |
| 621 | } |
| 622 | |
| 623 | |
| 624 | /* Sprite Layer */ |
| 625 | |
| 626 | .dark #ov-topo svg #topo-sprites .gold1 use { |
| 627 | stroke: #541; |
| 628 | } |
| 629 | .dark #ov-topo svg #topo-sprites .gold1 text { |
| 630 | fill: #543; |
| 631 | } |
| 632 | |
| 633 | .dark #ov-topo svg #topo-sprites .blue1 use { |
| 634 | stroke: #445; |
| 635 | } |
| 636 | .dark #ov-topo svg #topo-sprites .blue1 text { |
| 637 | fill: #446; |
| 638 | } |
| 639 | |
| 640 | .dark #ov-topo svg #topo-sprites .gray1 use { |
| 641 | stroke: #333; |
| 642 | } |
| 643 | .dark #ov-topo svg #topo-sprites .gray1 text { |
| 644 | fill: #444; |
| 645 | } |
| 646 | |
| 647 | /* fills */ |
| 648 | .dark #ov-topo svg #topo-sprites use.fill-gray2 { |
| 649 | fill: #444; |
| 650 | } |
| 651 | |
| 652 | .dark #ov-topo svg #topo-sprites use.fill-blue2 { |
| 653 | fill: #447; |
| 654 | } |