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