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