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 | |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 27 | /* NODES */ |
| 28 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 29 | #topo svg .node.device { |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 30 | stroke: none; |
| 31 | stroke-width: 1.5px; |
| 32 | cursor: pointer; |
| 33 | } |
| 34 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 35 | #topo svg .node.device rect { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 36 | stroke-width: 1.5px; |
| 37 | } |
| 38 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 39 | #topo svg .node.device.fixed rect { |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 40 | stroke-width: 1.5; |
| 41 | stroke: #ccc; |
| 42 | } |
| 43 | |
Simon Hunt | bb282f5 | 2014-11-10 11:08:19 -0800 | [diff] [blame] | 44 | /* note: device is offline without the 'online' class */ |
| 45 | #topo svg .node.device { |
| 46 | fill: #777; |
| 47 | } |
| 48 | |
| 49 | #topo svg .node.device.switch.online { |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 50 | fill: #17f; |
| 51 | } |
| 52 | |
Simon Hunt | bb282f5 | 2014-11-10 11:08:19 -0800 | [diff] [blame] | 53 | #topo svg .node.device.roadm.online { |
Simon Hunt | c7ee066 | 2014-11-05 16:44:37 -0800 | [diff] [blame] | 54 | fill: #03c; |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 55 | } |
| 56 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 57 | #topo svg .node.host { |
| 58 | fill: #846; |
| 59 | } |
| 60 | |
Simon Hunt | bb282f5 | 2014-11-10 11:08:19 -0800 | [diff] [blame] | 61 | /* note: device is offline without the 'online' class */ |
Simon Hunt | 7cd48f3 | 2014-11-09 23:42:50 -0800 | [diff] [blame] | 62 | #topo svg .node.device text { |
Simon Hunt | bb282f5 | 2014-11-10 11:08:19 -0800 | [diff] [blame] | 63 | fill: #aaa; |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 64 | font: 10pt sans-serif; |
| 65 | pointer-events: none; |
| 66 | } |
| 67 | |
Simon Hunt | bb282f5 | 2014-11-10 11:08:19 -0800 | [diff] [blame] | 68 | #topo svg .node.device.online text { |
| 69 | fill: white; |
| 70 | } |
| 71 | |
Simon Hunt | 7cd48f3 | 2014-11-09 23:42:50 -0800 | [diff] [blame] | 72 | #topo svg .node.host text { |
| 73 | fill: #846; |
| 74 | font: 9pt sans-serif; |
| 75 | pointer-events: none; |
| 76 | } |
| 77 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 78 | #topo svg .node.selected rect, |
| 79 | #topo svg .node.selected circle { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 80 | filter: url(#blue-glow); |
| 81 | } |
| 82 | |
| 83 | /* LINKS */ |
| 84 | |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 85 | #topo svg .link { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 86 | opacity: .7; |
| 87 | } |
| 88 | |
Thomas Vachuska | 4830d39 | 2014-11-09 17:09:56 -0800 | [diff] [blame] | 89 | #topo svg .link.showPath { |
| 90 | stroke: #f00; |
Simon Hunt | 7cd48f3 | 2014-11-09 23:42:50 -0800 | [diff] [blame] | 91 | stroke-width: 6px; |
Thomas Vachuska | 4830d39 | 2014-11-09 17:09:56 -0800 | [diff] [blame] | 92 | } |
| 93 | |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 94 | /* for debugging */ |
Simon Hunt | 56d5185 | 2014-11-09 13:03:35 -0800 | [diff] [blame] | 95 | #topo svg .node circle.debug { |
Simon Hunt | 99c1384 | 2014-11-06 18:23:12 -0800 | [diff] [blame] | 96 | fill: white; |
| 97 | stroke: red; |
| 98 | } |
Simon Hunt | 61d0404 | 2014-11-11 17:27:16 -0800 | [diff] [blame] | 99 | |
| 100 | |
| 101 | /* detail topo-detail pane */ |
| 102 | |
| 103 | #topo-detail { |
| 104 | /* gets base CSS from .fpanel in floatPanel.css */ |
| 105 | } |
| 106 | |
| 107 | |
| 108 | #topo-detail h2 { |
| 109 | margin: 8px 4px; |
| 110 | color: black; |
| 111 | vertical-align: middle; |
| 112 | } |
| 113 | |
| 114 | #topo-detail h2 img { |
| 115 | height: 32px; |
| 116 | padding-right: 8px; |
| 117 | vertical-align: middle; |
| 118 | } |
| 119 | |
| 120 | #topo-detail p, table { |
| 121 | margin: 4px 4px; |
| 122 | } |
| 123 | |
| 124 | #topo-detail td.label { |
| 125 | font-style: italic; |
| 126 | color: #777; |
| 127 | padding-right: 12px; |
| 128 | } |
| 129 | |
| 130 | #topo-detail td.value { |
| 131 | |
| 132 | } |
| 133 | |
| 134 | #topo-detail hr { |
| 135 | height: 1px; |
| 136 | color: #ccc; |
| 137 | background-color: #ccc; |
| 138 | border: 0; |
| 139 | } |
| 140 | |