Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2014-present Open Networking Laboratory |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 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 | /* | ||||
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame^] | 18 | ONOS GUI -- Topology View (layout) -- CSS file |
Simon Hunt | ef31fb2 | 2014-12-19 13:16:44 -0800 | [diff] [blame] | 19 | */ |
20 | |||||
Simon Hunt | 7c8ab8d | 2015-02-03 15:05:15 -0800 | [diff] [blame] | 21 | /* --- Base SVG Layer --- */ |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 22 | |
Simon Hunt | d552ee9 | 2015-04-02 17:06:35 -0700 | [diff] [blame] | 23 | #ov-topo svg { |
24 | /* prevents the little cut/copy/paste square that would appear on iPad */ | ||||
25 | -webkit-user-select: none; | ||||
26 | } | ||||
Simon Hunt | 426bd86 | 2015-01-14 16:48:41 -0800 | [diff] [blame] | 27 | |
Simon Hunt | 7c8ab8d | 2015-02-03 15:05:15 -0800 | [diff] [blame] | 28 | |
29 | /* --- "No Devices" Layer --- */ | ||||
30 | |||||
31 | #ov-topo svg #topo-noDevsLayer { | ||||
32 | visibility: hidden; | ||||
33 | } | ||||
34 | |||||
Simon Hunt | 7c8ab8d | 2015-02-03 15:05:15 -0800 | [diff] [blame] | 35 | #ov-topo svg #topo-noDevsLayer text { |
36 | font-size: 60pt; | ||||
37 | font-style: italic; | ||||
38 | } | ||||
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 39 | |
40 | |||||
Simon Hunt | 4b66859 | 2015-01-29 17:33:53 -0800 | [diff] [blame] | 41 | /* --- Topo Summary Panel --- */ |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 42 | |
43 | #topo-p-summary { | ||||
44 | /* Base css from panel.css */ | ||||
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 45 | } |
46 | |||||
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame^] | 47 | |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 48 | /* --- Topo Detail Panel --- */ |
49 | |||||
50 | #topo-p-detail { | ||||
51 | /* Base css from panel.css */ | ||||
Thomas Vachuska | e50b621 | 2015-12-02 08:00:09 -0800 | [diff] [blame] | 52 | top: 338px; |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 53 | } |
Bri Prebilic Cole | d874546 | 2015-06-01 16:08:57 -0700 | [diff] [blame] | 54 | html[data-platform='iPad'] #topo-p-detail { |
Thomas Vachuska | e50b621 | 2015-12-02 08:00:09 -0800 | [diff] [blame] | 55 | top: 354px; |
Bri Prebilic Cole | d874546 | 2015-06-01 16:08:57 -0700 | [diff] [blame] | 56 | } |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 57 | |
Bri Prebilic Cole | f5e48b1 | 2015-04-21 14:52:36 -0700 | [diff] [blame] | 58 | #topo-p-detail .actionBtns .actionBtn { |
59 | display: inline-block; | ||||
60 | } | ||||
61 | #topo-p-detail .actionBtns .actionBtn svg { | ||||
62 | width: 30px; | ||||
63 | height: 30px; | ||||
64 | } | ||||
65 | |||||
Simon Hunt | 8d55808 | 2015-10-29 21:32:50 -0700 | [diff] [blame] | 66 | |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 67 | /* --- general topo-panel styling --- */ |
68 | |||||
Bri Prebilic Cole | 8d3de3d | 2015-05-15 16:02:59 -0700 | [diff] [blame] | 69 | .topo-p div.header div.icon { |
70 | vertical-align: middle; | ||||
71 | display: inline-block; | ||||
72 | } | ||||
Bri Prebilic Cole | 684bcb7 | 2015-05-11 12:00:24 -0700 | [diff] [blame] | 73 | .topo-p div.body { |
74 | overflow-y: scroll; | ||||
75 | } | ||||
76 | |||||
Bri Prebilic Cole | 0a6ffb6 | 2015-06-04 09:32:12 -0700 | [diff] [blame] | 77 | .topo-p div.body::-webkit-scrollbar { |
78 | display: none; | ||||
79 | } | ||||
80 | |||||
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 81 | .topo-p svg { |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 82 | display: inline-block; |
83 | width: 42px; | ||||
84 | height: 42px; | ||||
85 | } | ||||
86 | |||||
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 87 | |
88 | .topo-p h2 { | ||||
Bri Prebilic Cole | 684bcb7 | 2015-05-11 12:00:24 -0700 | [diff] [blame] | 89 | padding: 0 4px; |
90 | margin: 0; | ||||
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 91 | word-wrap: break-word; |
Bri Prebilic Cole | 8d3de3d | 2015-05-15 16:02:59 -0700 | [diff] [blame] | 92 | display: inline-block; |
93 | width: 210px; | ||||
94 | vertical-align: middle; | ||||
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 95 | } |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 96 | |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 97 | .topo-p h3 { |
Bri Prebilic Cole | 684bcb7 | 2015-05-11 12:00:24 -0700 | [diff] [blame] | 98 | padding: 0 4px; |
99 | margin: 0; | ||||
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 100 | word-wrap: break-word; |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 101 | top: 20px; |
102 | left: 50px; | ||||
103 | } | ||||
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 104 | |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 105 | .topo-p p, table { |
Bri Prebilic Cole | 684bcb7 | 2015-05-11 12:00:24 -0700 | [diff] [blame] | 106 | padding: 4px; |
107 | margin: 0; | ||||
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 108 | } |
109 | |||||
Bri Prebilic Cole | 684bcb7 | 2015-05-11 12:00:24 -0700 | [diff] [blame] | 110 | .topo-p td { |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 111 | word-wrap: break-word; |
Bri Prebilic Cole | 684bcb7 | 2015-05-11 12:00:24 -0700 | [diff] [blame] | 112 | } |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 113 | .topo-p td.label { |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 114 | font-style: italic; |
115 | padding-right: 12px; | ||||
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 116 | } |
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 117 | .topo-p td.value { |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 118 | } |
119 | |||||
Simon Hunt | 08f841d0 | 2015-02-10 14:39:20 -0800 | [diff] [blame] | 120 | .topo-p hr { |
Simon Hunt | 626d210 | 2015-01-29 11:54:50 -0800 | [diff] [blame] | 121 | height: 1px; |
122 | border: 0; | ||||
123 | } | ||||
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame^] | 124 | |
Simon Hunt | 4b66859 | 2015-01-29 17:33:53 -0800 | [diff] [blame] | 125 | |
Simon Hunt | 4b66859 | 2015-01-29 17:33:53 -0800 | [diff] [blame] | 126 | /* --- Topo Instance Panel --- */ |
127 | |||||
128 | #topo-p-instance { | ||||
129 | height: 100px; | ||||
130 | } | ||||
131 | |||||
132 | #topo-p-instance div.onosInst { | ||||
133 | display: inline-block; | ||||
134 | width: 170px; | ||||
135 | height: 85px; | ||||
136 | cursor: pointer; | ||||
137 | } | ||||
138 | |||||
Simon Hunt | 4b66859 | 2015-01-29 17:33:53 -0800 | [diff] [blame] | 139 | #topo-p-instance svg text.instTitle { |
140 | font-size: 11pt; | ||||
141 | font-weight: bold; | ||||
142 | } | ||||
143 | #topo-p-instance svg text.instLabel { | ||||
144 | font-size: 9pt; | ||||
145 | font-style: italic; | ||||
146 | } | ||||
147 | |||||
Simon Hunt | 8d22c4b | 2015-08-06 16:24:43 -0700 | [diff] [blame] | 148 | |
149 | /* --- Toolbar --- */ | ||||
150 | |||||
151 | #toolbar-topo-tbar .tbar-row.right { | ||||
152 | width: 100%; | ||||
153 | } | ||||
154 | |||||
155 | #toolbar-topo-tbar .tbar-row-text { | ||||
156 | height: 21px; | ||||
157 | text-align: right; | ||||
158 | padding: 8px 60px 0 0; | ||||
159 | font-style: italic; | ||||
160 | } | ||||
161 | |||||
162 | |||||
Simon Hunt | ac4c6f7 | 2015-02-03 19:50:53 -0800 | [diff] [blame] | 163 | /* --- Topo Nodes --- */ |
164 | |||||
Simon Hunt | a142dd2 | 2015-02-12 22:07:51 -0800 | [diff] [blame] | 165 | #ov-topo svg .suppressed { |
Simon Hunt | 743a849 | 2015-08-25 16:18:19 -0700 | [diff] [blame] | 166 | opacity: 0.5 !important; |
167 | } | ||||
168 | |||||
169 | #ov-topo svg .suppressedmax { | ||||
Simon Hunt | a142dd2 | 2015-02-12 22:07:51 -0800 | [diff] [blame] | 170 | opacity: 0.2 !important; |
171 | } | ||||
172 | |||||
Simon Hunt | ac4c6f7 | 2015-02-03 19:50:53 -0800 | [diff] [blame] | 173 | #ov-topo svg .node { |
174 | cursor: pointer; | ||||
175 | } | ||||
176 | |||||
Simon Hunt | ac4c6f7 | 2015-02-03 19:50:53 -0800 | [diff] [blame] | 177 | #ov-topo svg .node text { |
178 | pointer-events: none; | ||||
179 | } | ||||
180 | |||||
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame^] | 181 | |
Simon Hunt | ac4c6f7 | 2015-02-03 19:50:53 -0800 | [diff] [blame] | 182 | /* Device Nodes */ |
183 | |||||
184 | #ov-topo svg .node.device { | ||||
185 | } | ||||
186 | |||||
Simon Hunt | 1894d79 | 2015-02-04 17:09:20 -0800 | [diff] [blame] | 187 | |
Simon Hunt | 1a5301e | 2015-02-25 15:31:25 -0800 | [diff] [blame] | 188 | /* Link Labels */ |
189 | |||||
Simon Hunt | 1894d79 | 2015-02-04 17:09:20 -0800 | [diff] [blame] | 190 | #ov-topo svg .linkLabel text { |
191 | text-anchor: middle; | ||||
192 | stroke-width: 0.1; | ||||
193 | font-size: 9pt; | ||||
194 | } | ||||
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame^] | 195 | |
Simon Hunt | eb0fa05 | 2015-02-17 19:20:28 -0800 | [diff] [blame] | 196 | |
Simon Hunt | 1a5301e | 2015-02-25 15:31:25 -0800 | [diff] [blame] | 197 | /* Port Labels */ |
198 | |||||
Simon Hunt | 1a5301e | 2015-02-25 15:31:25 -0800 | [diff] [blame] | 199 | #ov-topo svg .portLabel text { |
200 | text-anchor: middle; | ||||
201 | stroke-width: 0.1; | ||||
Simon Hunt | 969b3c9 | 2015-02-25 18:11:31 -0800 | [diff] [blame] | 202 | font-size: 11pt; |
Simon Hunt | 1a5301e | 2015-02-25 15:31:25 -0800 | [diff] [blame] | 203 | } |
Simon Hunt | 1a5301e | 2015-02-25 15:31:25 -0800 | [diff] [blame] | 204 | |
Bri Prebilic Cole | 8040176 | 2015-07-16 11:36:18 -0700 | [diff] [blame] | 205 | /* Number of Links Labels */ |
206 | #ov-topo line.numLinkHash { | ||||
207 | stroke-width: 3; | ||||
208 | } | ||||
209 | |||||
210 | #ov-topo text.numLinkText { | ||||
211 | font-size: 15pt; | ||||
Bri Prebilic Cole | 8040176 | 2015-07-16 11:36:18 -0700 | [diff] [blame] | 212 | text-anchor: middle; |
213 | } | ||||
214 | |||||
Bri Prebilic Cole | 8040176 | 2015-07-16 11:36:18 -0700 | [diff] [blame] | 215 | |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 216 | /* Sprite Layer */ |
217 | |||||
Simon Hunt | abf66d9 | 2015-04-15 12:57:31 -0700 | [diff] [blame] | 218 | #ov-topo svg #topo-sprites use { |
Simon Hunt | b2c4cc8 | 2015-04-15 17:16:28 -0700 | [diff] [blame] | 219 | stroke-width: 2; |
Simon Hunt | abf66d9 | 2015-04-15 12:57:31 -0700 | [diff] [blame] | 220 | } |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 221 | #ov-topo svg #topo-sprites text { |
222 | text-anchor: middle; | ||||
Simon Hunt | b2c4cc8 | 2015-04-15 17:16:28 -0700 | [diff] [blame] | 223 | font-size: 20pt; |
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 224 | font-style: italic; |
225 | } | ||||
226 | |||||
Simon Hunt | 2052e5d | 2015-04-13 17:40:44 -0700 | [diff] [blame] | 227 | |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame^] | 228 | /* -- MISC -- */ |
Simon Hunt | 7f62f7c | 2015-05-11 17:38:02 -0700 | [diff] [blame] | 229 | |
Thomas Vachuska | fba7f3d | 2016-03-23 15:46:25 -0700 | [diff] [blame] | 230 | .notReady .readyBadge { |
231 | visibility: hidden; | ||||
232 | } | ||||
233 | |||||
Thomas Vachuska | 26be4f3 | 2016-03-31 01:10:27 -0700 | [diff] [blame] | 234 | .map-list { |
235 | padding: 10px; | ||||
236 | } | ||||
237 | |||||
238 | .map-list select { | ||||
239 | font-size: 20px; | ||||
240 | } |