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 | 142d003 | 2014-11-04 20:13:09 -0800 | [diff] [blame] | 23 | svg #topo-bg { |
| 24 | opacity: 0.5; |
| 25 | } |
| 26 | |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 27 | /* NODES */ |
| 28 | |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 29 | svg .node.device { |
| 30 | stroke: none; |
| 31 | stroke-width: 1.5px; |
| 32 | cursor: pointer; |
| 33 | } |
| 34 | |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 35 | svg .node.device rect { |
| 36 | stroke-width: 1.5px; |
| 37 | } |
| 38 | |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 39 | svg .node.device.fixed rect { |
| 40 | stroke-width: 1.5; |
| 41 | stroke: #ccc; |
| 42 | } |
| 43 | |
| 44 | svg .node.device.switch { |
| 45 | fill: #17f; |
| 46 | } |
| 47 | |
| 48 | svg .node.device.roadm { |
Simon Hunt | c7ee066 | 2014-11-05 16:44:37 -0800 | [diff] [blame] | 49 | fill: #03c; |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | svg .node text { |
| 53 | stroke: none; |
| 54 | fill: white; |
| 55 | font: 10pt sans-serif; |
| 56 | pointer-events: none; |
| 57 | } |
| 58 | |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 59 | svg .node.selected rect, |
| 60 | svg .node.selected circle { |
| 61 | filter: url(#blue-glow); |
| 62 | } |
| 63 | |
| 64 | /* LINKS */ |
| 65 | |
| 66 | svg .link { |
| 67 | opacity: .7; |
| 68 | } |
| 69 | |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 70 | /* for debugging */ |
| 71 | svg .node circle.debug { |
| 72 | fill: white; |
| 73 | stroke: red; |
| 74 | } |