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