Simon Hunt | 195cb38 | 2014-11-03 17:50:51 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 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 -- CSS file |
| 19 | |
| 20 | @author Simon Hunt |
| 21 | */ |
| 22 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 23 | #topo svg #topo-bg { |
Simon Hunt | 142d003 | 2014-11-04 20:13:09 -0800 | [diff] [blame] | 24 | opacity: 0.5; |
| 25 | } |
| 26 | |
Paul Greyson | 6cb8ca0 | 2014-11-12 18:09:02 -0800 | [diff] [blame] | 27 | #topo #map { |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 28 | stroke-width: 2px; |
Thomas Vachuska | cd2920c | 2014-11-19 14:49:55 -0800 | [diff] [blame] | 29 | stroke: #eee; |
Paul Greyson | 6cb8ca0 | 2014-11-12 18:09:02 -0800 | [diff] [blame] | 30 | fill: transparent; |
| 31 | } |
| 32 | |
Simon Hunt | c72967b | 2014-11-20 09:21:42 -0800 | [diff] [blame^] | 33 | /* TODO: move glyphs into framework */ |
Simon Hunt | ac9e24f | 2014-11-12 10:12:21 -0800 | [diff] [blame] | 34 | |
Simon Hunt | c72967b | 2014-11-20 09:21:42 -0800 | [diff] [blame^] | 35 | #topo svg .glyphIcon { |
| 36 | fill: black; |
| 37 | stroke: none; |
| 38 | fill-rule: evenodd; |
| 39 | } |
| 40 | #topo svg .glyphIcon rect { |
| 41 | fill: #ddd; |
Simon Hunt | 7fa116d | 2014-11-17 14:16:55 -0800 | [diff] [blame] | 42 | stroke: none; |
| 43 | } |
| 44 | |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 45 | /* NODES */ |
| 46 | |
Simon Hunt | ac9e24f | 2014-11-12 10:12:21 -0800 | [diff] [blame] | 47 | #topo svg .node { |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 48 | cursor: pointer; |
| 49 | } |
| 50 | |
Simon Hunt | ac9e24f | 2014-11-12 10:12:21 -0800 | [diff] [blame] | 51 | #topo svg .node.selected rect, |
| 52 | #topo svg .node.selected circle { |
Thomas Vachuska | ece59ee | 2014-11-19 19:06:11 -0800 | [diff] [blame] | 53 | fill: #ffA300; |
Simon Hunt | ac9e24f | 2014-11-12 10:12:21 -0800 | [diff] [blame] | 54 | filter: url(#blue-glow); |
| 55 | } |
| 56 | |
| 57 | /* for debugging */ |
| 58 | #topo svg .node circle.debug { |
| 59 | fill: white; |
| 60 | stroke: red; |
| 61 | } |
| 62 | |
| 63 | #topo svg .node text { |
| 64 | pointer-events: none; |
| 65 | } |
| 66 | |
| 67 | /* Device Nodes */ |
| 68 | |
| 69 | #topo svg .node.device { |
| 70 | } |
| 71 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 72 | #topo svg .node.device rect { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 73 | stroke-width: 1.5px; |
| 74 | } |
| 75 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 76 | #topo svg .node.device.fixed rect { |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 77 | stroke-width: 1.5; |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 78 | stroke: #ccc; |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 79 | } |
| 80 | |
Simon Hunt | bb282f5 | 2014-11-10 11:08:19 -0800 | [diff] [blame] | 81 | /* note: device is offline without the 'online' class */ |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 82 | #topo svg .node.device { |
| 83 | fill: #777; |
| 84 | } |
| 85 | |
| 86 | #topo svg .node.device.switch.online { |
| 87 | fill: #17f; |
| 88 | } |
| 89 | |
| 90 | #topo svg .node.device.roadm.online { |
Thomas Vachuska | ece59ee | 2014-11-19 19:06:11 -0800 | [diff] [blame] | 91 | fill: #335a9a; |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 92 | } |
| 93 | |
Simon Hunt | bb282f5 | 2014-11-10 11:08:19 -0800 | [diff] [blame] | 94 | /* note: device is offline without the 'online' class */ |
Simon Hunt | 7cd48f3 | 2014-11-09 23:42:50 -0800 | [diff] [blame] | 95 | #topo svg .node.device text { |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 96 | fill: #aaa; |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 97 | font: 10pt sans-serif; |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 98 | } |
| 99 | |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 100 | #topo svg .node.device.online text { |
| 101 | fill: white; |
| 102 | } |
| 103 | |
| 104 | |
Simon Hunt | ac9e24f | 2014-11-12 10:12:21 -0800 | [diff] [blame] | 105 | /* Host Nodes */ |
| 106 | |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 107 | #topo svg .node.host { |
| 108 | stroke: #000; |
| 109 | } |
| 110 | |
Simon Hunt | 7cd48f3 | 2014-11-09 23:42:50 -0800 | [diff] [blame] | 111 | #topo svg .node.host text { |
| 112 | fill: #846; |
Simon Hunt | 7fa116d | 2014-11-17 14:16:55 -0800 | [diff] [blame] | 113 | stroke: none; |
Simon Hunt | 7cd48f3 | 2014-11-09 23:42:50 -0800 | [diff] [blame] | 114 | font: 9pt sans-serif; |
Simon Hunt | 7cd48f3 | 2014-11-09 23:42:50 -0800 | [diff] [blame] | 115 | } |
| 116 | |
Simon Hunt | 7fa116d | 2014-11-17 14:16:55 -0800 | [diff] [blame] | 117 | svg .node.host circle { |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 118 | stroke: #000; |
| 119 | fill: #ddd; |
Simon Hunt | 7fa116d | 2014-11-17 14:16:55 -0800 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | #topo svg .node.host.bgpSpeaker circle { |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 123 | stroke: #000; |
| 124 | fill: #ddd; |
| 125 | } |
| 126 | |
| 127 | #topo svg .node.host.router circle { |
| 128 | stroke: #000; |
| 129 | fill: #ddd; |
Simon Hunt | 7fa116d | 2014-11-17 14:16:55 -0800 | [diff] [blame] | 130 | } |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 131 | |
| 132 | /* LINKS */ |
| 133 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 134 | #topo svg .link { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 135 | opacity: .7; |
Thomas Vachuska | a3148a7 | 2014-11-19 21:38:35 -0800 | [diff] [blame] | 136 | stroke-width: 1.2px; |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 137 | } |
| 138 | |
Thomas Vachuska | e4cebaf | 2014-11-15 18:49:34 -0800 | [diff] [blame] | 139 | #topo svg .link.inactive { |
| 140 | opacity: .2; |
| 141 | stroke-dasharray: 8 4; |
| 142 | } |
| 143 | |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 144 | #topo svg .link.secondary { |
Thomas Vachuska | a3148a7 | 2014-11-19 21:38:35 -0800 | [diff] [blame] | 145 | stroke: rgba(0,153,51,0.5); |
Thomas Vachuska | cd2920c | 2014-11-19 14:49:55 -0800 | [diff] [blame] | 146 | stroke-width: 3px; |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 147 | } |
Thomas Vachuska | 5fedb7a | 2014-11-20 00:55:08 -0800 | [diff] [blame] | 148 | #topo svg .link.primary { |
| 149 | stroke: #ffA300; |
| 150 | stroke-width: 4px; |
| 151 | } |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 152 | #topo svg .link.animated { |
Thomas Vachuska | a3148a7 | 2014-11-19 21:38:35 -0800 | [diff] [blame] | 153 | stroke: #ffA300; |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 154 | } |
| 155 | |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 156 | #topo svg .link.secondary.optical { |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 157 | stroke: rgba(128,64,255,0.5); |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 158 | stroke-width: 4px; |
| 159 | } |
Thomas Vachuska | 5fedb7a | 2014-11-20 00:55:08 -0800 | [diff] [blame] | 160 | #topo svg .link.primary.optical { |
| 161 | stroke: #74f; |
| 162 | stroke-width: 6px; |
| 163 | } |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 164 | #topo svg .link.animated.optical { |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 165 | stroke: #74f; |
Simon Hunt | a255a2c | 2014-11-13 22:29:35 -0800 | [diff] [blame] | 166 | stroke-width: 10px; |
| 167 | stroke-dasharray: 8 8 |
| 168 | } |
Thomas Vachuska | 4830d39 | 2014-11-09 17:09:56 -0800 | [diff] [blame] | 169 | |
Simon Hunt | e2575b6 | 2014-11-18 15:25:53 -0800 | [diff] [blame] | 170 | #topo svg .linkLabel rect { |
Thomas Vachuska | 20322ff | 2014-11-19 16:22:25 -0800 | [diff] [blame] | 171 | fill: #eee; |
| 172 | stroke: none; |
Simon Hunt | e2575b6 | 2014-11-18 15:25:53 -0800 | [diff] [blame] | 173 | } |
| 174 | #topo svg .linkLabel text { |
| 175 | text-anchor: middle; |
Thomas Vachuska | 20322ff | 2014-11-19 16:22:25 -0800 | [diff] [blame] | 176 | stroke: #777; |
| 177 | stroke-width: 0.1px; |
| 178 | font-size: 9pt; |
Simon Hunt | e2575b6 | 2014-11-18 15:25:53 -0800 | [diff] [blame] | 179 | } |
Simon Hunt | 61d0404 | 2014-11-11 17:27:16 -0800 | [diff] [blame] | 180 | |
Simon Hunt | ac9e24f | 2014-11-12 10:12:21 -0800 | [diff] [blame] | 181 | /* Fly-in details pane */ |
Simon Hunt | 61d0404 | 2014-11-11 17:27:16 -0800 | [diff] [blame] | 182 | |
| 183 | #topo-detail { |
| 184 | /* gets base CSS from .fpanel in floatPanel.css */ |
| 185 | } |
| 186 | |
Simon Hunt | 61d0404 | 2014-11-11 17:27:16 -0800 | [diff] [blame] | 187 | #topo-detail h2 { |
| 188 | margin: 8px 4px; |
| 189 | color: black; |
| 190 | vertical-align: middle; |
| 191 | } |
| 192 | |
| 193 | #topo-detail h2 img { |
| 194 | height: 32px; |
| 195 | padding-right: 8px; |
| 196 | vertical-align: middle; |
| 197 | } |
| 198 | |
| 199 | #topo-detail p, table { |
| 200 | margin: 4px 4px; |
| 201 | } |
| 202 | |
| 203 | #topo-detail td.label { |
| 204 | font-style: italic; |
| 205 | color: #777; |
| 206 | padding-right: 12px; |
| 207 | } |
| 208 | |
| 209 | #topo-detail td.value { |
Simon Hunt | 61d0404 | 2014-11-11 17:27:16 -0800 | [diff] [blame] | 210 | } |
| 211 | |
Simon Hunt | b53e068 | 2014-11-12 13:32:01 -0800 | [diff] [blame] | 212 | |
Simon Hunt | d72bc70 | 2014-11-13 18:38:04 -0800 | [diff] [blame] | 213 | #topo-detail .actionBtn { |
| 214 | margin: 6px 12px; |
| 215 | padding: 2px 6px; |
| 216 | font-size: 9pt; |
| 217 | cursor: pointer; |
| 218 | width: 50%; |
| 219 | text-align: center; |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 220 | |
| 221 | /* theme specific... */ |
| 222 | border: 1px solid #ddf; |
| 223 | color: #99f; |
Simon Hunt | d72bc70 | 2014-11-13 18:38:04 -0800 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | #topo-detail .actionBtn:hover { |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 227 | /* theme specific... */ |
| 228 | border: 1px solid #ddf; |
| 229 | background: #eef; |
| 230 | color: #77d; |
Simon Hunt | d72bc70 | 2014-11-13 18:38:04 -0800 | [diff] [blame] | 231 | } |
| 232 | |
Simon Hunt | b53e068 | 2014-11-12 13:32:01 -0800 | [diff] [blame] | 233 | |
Simon Hunt | 61d0404 | 2014-11-11 17:27:16 -0800 | [diff] [blame] | 234 | #topo-detail hr { |
| 235 | height: 1px; |
| 236 | color: #ccc; |
| 237 | background-color: #ccc; |
| 238 | border: 0; |
| 239 | } |
| 240 | |
Simon Hunt | a5e8914 | 2014-11-14 07:00:33 -0800 | [diff] [blame] | 241 | /* ONOS instance stuff */ |
| 242 | |
| 243 | #topo-oibox { |
Simon Hunt | 9b228cb | 2014-11-19 13:18:57 -0800 | [diff] [blame] | 244 | width: 120px; |
Simon Hunt | a5e8914 | 2014-11-14 07:00:33 -0800 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | #topo-oibox .onosInst { |
Simon Hunt | 9c15eca | 2014-11-15 18:37:59 -0800 | [diff] [blame] | 248 | position: relative; |
Simon Hunt | 9b228cb | 2014-11-19 13:18:57 -0800 | [diff] [blame] | 249 | width: 88%; |
| 250 | left: 4%; |
Simon Hunt | 9c15eca | 2014-11-15 18:37:59 -0800 | [diff] [blame] | 251 | height: 80px; |
Simon Hunt | 9b228cb | 2014-11-19 13:18:57 -0800 | [diff] [blame] | 252 | margin: 8px 0; |
Simon Hunt | a5e8914 | 2014-11-14 07:00:33 -0800 | [diff] [blame] | 253 | cursor: pointer; |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 254 | |
Simon Hunt | 9b228cb | 2014-11-19 13:18:57 -0800 | [diff] [blame] | 255 | -moz-border-radius: 12px; |
| 256 | border-radius: 12px; |
| 257 | |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 258 | /* theme-related */ |
| 259 | color: #444; |
| 260 | background-color: #ccc; |
Simon Hunt | 9b228cb | 2014-11-19 13:18:57 -0800 | [diff] [blame] | 261 | border: 4px solid #aaa; |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 262 | } |
| 263 | |
| 264 | #topo-oibox .onosInst.online { |
| 265 | /* theme-related */ |
| 266 | color: #113; |
Simon Hunt | 9b228cb | 2014-11-19 13:18:57 -0800 | [diff] [blame] | 267 | background-color: #9cf; |
| 268 | border: 4px solid #357; |
Simon Hunt | a5e8914 | 2014-11-14 07:00:33 -0800 | [diff] [blame] | 269 | } |
| 270 | |
Simon Hunt | 9c15eca | 2014-11-15 18:37:59 -0800 | [diff] [blame] | 271 | #topo-oibox .onosInst .onosTitle { |
| 272 | text-align: center; |
Simon Hunt | 9b228cb | 2014-11-19 13:18:57 -0800 | [diff] [blame] | 273 | font-size: 10pt; |
Simon Hunt | 9c15eca | 2014-11-15 18:37:59 -0800 | [diff] [blame] | 274 | margin-top: 6px; |
Thomas Vachuska | 8954329 | 2014-11-19 11:28:33 -0800 | [diff] [blame] | 275 | color: #888; |
| 276 | } |
| 277 | |
| 278 | #topo-oibox .onosInst.online .onosTitle { |
| 279 | color: black; |
Simon Hunt | 9c15eca | 2014-11-15 18:37:59 -0800 | [diff] [blame] | 280 | } |
| 281 | |
| 282 | #topo-oibox .onosInst img { |
| 283 | opacity: 0.5; |
Simon Hunt | fcfb46c | 2014-11-19 12:53:38 -0800 | [diff] [blame] | 284 | padding: 3px; |
Simon Hunt | 9c15eca | 2014-11-15 18:37:59 -0800 | [diff] [blame] | 285 | } |
| 286 | |
| 287 | #topo-oibox .onosInst.online img { |
| 288 | opacity: 1.0; |
Simon Hunt | fcfb46c | 2014-11-19 12:53:38 -0800 | [diff] [blame] | 289 | padding: 3px; |
Simon Hunt | 9c15eca | 2014-11-15 18:37:59 -0800 | [diff] [blame] | 290 | } |
| 291 | |
| 292 | #topo-oibox .onosInst img.ui { |
| 293 | opacity: 1; |
| 294 | position: absolute; |
| 295 | top: 3px; |
| 296 | right: 3px; |
| 297 | width: 20px; |
| 298 | height: 20px; |
| 299 | } |
| 300 | |
Simon Hunt | 9462e8c | 2014-11-14 17:28:09 -0800 | [diff] [blame] | 301 | #topo-oibox .onosInst.mastership { |
| 302 | opacity: 0.3; |
| 303 | } |
| 304 | #topo-oibox .onosInst.mastership.affinity { |
| 305 | opacity: 1.0; |
Simon Hunt | 7fa116d | 2014-11-17 14:16:55 -0800 | [diff] [blame] | 306 | box-shadow: 0 2px 8px #33e; |
Simon Hunt | 9462e8c | 2014-11-14 17:28:09 -0800 | [diff] [blame] | 307 | } |
| 308 | |
| 309 | |
| 310 | #topo svg .suppressed { |
Simon Hunt | a5e8914 | 2014-11-14 07:00:33 -0800 | [diff] [blame] | 311 | opacity: 0.2; |
| 312 | } |
| 313 | |
Simon Hunt | 0c6d419 | 2014-11-12 12:07:10 -0800 | [diff] [blame] | 314 | /* Web Socket Closed Mask (starts hidden) */ |
| 315 | |
| 316 | #topo-mask { |
| 317 | display: none; |
| 318 | position: absolute; |
| 319 | top: 0; |
| 320 | left: 0; |
| 321 | width: 10000px; |
| 322 | height: 8000px; |
| 323 | z-index: 5000; |
| 324 | background-color: rgba(0,0,0,0.75); |
| 325 | padding: 60px; |
| 326 | } |
| 327 | |
| 328 | #topo-mask p { |
| 329 | margin: 8px 20px; |
| 330 | color: #ddd; |
| 331 | font-size: 14pt; |
| 332 | font-style: italic; |
| 333 | } |
| 334 | |