blob: 523397685f31fdf00968ed93eaebb325400d2326 [file] [log] [blame]
Simon Huntef31fb22014-12-19 13:16:44 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present Open Networking Laboratory
Simon Huntef31fb22014-12-19 13:16:44 -08003 *
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 Hunt58894c82016-05-24 15:09:02 -070018 ONOS GUI -- Topology View (layout) -- CSS file
Simon Huntef31fb22014-12-19 13:16:44 -080019 */
20
Simon Hunt7c8ab8d2015-02-03 15:05:15 -080021/* --- Base SVG Layer --- */
Simon Hunt626d2102015-01-29 11:54:50 -080022
Simon Huntd552ee92015-04-02 17:06:35 -070023#ov-topo svg {
24 /* prevents the little cut/copy/paste square that would appear on iPad */
25 -webkit-user-select: none;
26}
Simon Hunt426bd862015-01-14 16:48:41 -080027
Simon Hunt7c8ab8d2015-02-03 15:05:15 -080028
29/* --- "No Devices" Layer --- */
30
31#ov-topo svg #topo-noDevsLayer {
32 visibility: hidden;
33}
34
Simon Hunt7c8ab8d2015-02-03 15:05:15 -080035#ov-topo svg #topo-noDevsLayer text {
36 font-size: 60pt;
37 font-style: italic;
38}
Simon Hunt626d2102015-01-29 11:54:50 -080039
40
Simon Hunt4b668592015-01-29 17:33:53 -080041/* --- Topo Summary Panel --- */
Simon Hunt626d2102015-01-29 11:54:50 -080042
43#topo-p-summary {
44 /* Base css from panel.css */
Simon Hunt626d2102015-01-29 11:54:50 -080045}
46
Simon Hunt58894c82016-05-24 15:09:02 -070047
Simon Hunt08f841d02015-02-10 14:39:20 -080048/* --- Topo Detail Panel --- */
49
50#topo-p-detail {
51 /* Base css from panel.css */
Thomas Vachuskae50b6212015-12-02 08:00:09 -080052 top: 338px;
Simon Hunt08f841d02015-02-10 14:39:20 -080053}
Bri Prebilic Coled8745462015-06-01 16:08:57 -070054html[data-platform='iPad'] #topo-p-detail {
Thomas Vachuskae50b6212015-12-02 08:00:09 -080055 top: 354px;
Bri Prebilic Coled8745462015-06-01 16:08:57 -070056}
Simon Hunt08f841d02015-02-10 14:39:20 -080057
Bri Prebilic Colef5e48b12015-04-21 14:52:36 -070058#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 Hunt8d558082015-10-29 21:32:50 -070066
Simon Hunt08f841d02015-02-10 14:39:20 -080067/* --- general topo-panel styling --- */
68
Bri Prebilic Cole8d3de3d2015-05-15 16:02:59 -070069.topo-p div.header div.icon {
70 vertical-align: middle;
71 display: inline-block;
72}
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -070073.topo-p div.body {
74 overflow-y: scroll;
75}
76
Bri Prebilic Cole0a6ffb62015-06-04 09:32:12 -070077.topo-p div.body::-webkit-scrollbar {
78 display: none;
79}
80
Simon Hunt08f841d02015-02-10 14:39:20 -080081.topo-p svg {
Simon Hunt626d2102015-01-29 11:54:50 -080082 display: inline-block;
83 width: 42px;
84 height: 42px;
85}
86
Simon Hunt08f841d02015-02-10 14:39:20 -080087
88.topo-p h2 {
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -070089 padding: 0 4px;
90 margin: 0;
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070091 word-wrap: break-word;
Bri Prebilic Cole8d3de3d2015-05-15 16:02:59 -070092 display: inline-block;
93 width: 210px;
94 vertical-align: middle;
Simon Hunt626d2102015-01-29 11:54:50 -080095}
Simon Hunt626d2102015-01-29 11:54:50 -080096
Simon Hunt08f841d02015-02-10 14:39:20 -080097.topo-p h3 {
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -070098 padding: 0 4px;
99 margin: 0;
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -0700100 word-wrap: break-word;
Simon Hunt626d2102015-01-29 11:54:50 -0800101 top: 20px;
102 left: 50px;
103}
Simon Hunt626d2102015-01-29 11:54:50 -0800104
Simon Hunt08f841d02015-02-10 14:39:20 -0800105.topo-p p, table {
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700106 padding: 4px;
107 margin: 0;
Simon Hunt626d2102015-01-29 11:54:50 -0800108}
109
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700110.topo-p td {
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -0700111 word-wrap: break-word;
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700112}
Simon Hunt08f841d02015-02-10 14:39:20 -0800113.topo-p td.label {
Simon Hunt626d2102015-01-29 11:54:50 -0800114 font-style: italic;
115 padding-right: 12px;
Simon Hunt626d2102015-01-29 11:54:50 -0800116}
Simon Hunt08f841d02015-02-10 14:39:20 -0800117.topo-p td.value {
Simon Hunt626d2102015-01-29 11:54:50 -0800118}
119
Simon Hunt08f841d02015-02-10 14:39:20 -0800120.topo-p hr {
Simon Hunt626d2102015-01-29 11:54:50 -0800121 height: 1px;
122 border: 0;
123}
Simon Hunt58894c82016-05-24 15:09:02 -0700124
Simon Hunt4b668592015-01-29 17:33:53 -0800125
Simon Hunt4b668592015-01-29 17:33:53 -0800126/* --- 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 Hunt4b668592015-01-29 17:33:53 -0800139#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 Hunt8d22c4b2015-08-06 16:24:43 -0700148
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 Huntac4c6f72015-02-03 19:50:53 -0800163/* --- Topo Nodes --- */
164
Simon Hunta142dd22015-02-12 22:07:51 -0800165#ov-topo svg .suppressed {
Simon Hunt743a8492015-08-25 16:18:19 -0700166 opacity: 0.5 !important;
167}
168
169#ov-topo svg .suppressedmax {
Simon Hunta142dd22015-02-12 22:07:51 -0800170 opacity: 0.2 !important;
171}
172
Simon Huntac4c6f72015-02-03 19:50:53 -0800173#ov-topo svg .node {
174 cursor: pointer;
175}
176
Simon Huntac4c6f72015-02-03 19:50:53 -0800177#ov-topo svg .node text {
178 pointer-events: none;
179}
180
Simon Hunt58894c82016-05-24 15:09:02 -0700181
Simon Huntac4c6f72015-02-03 19:50:53 -0800182/* Device Nodes */
183
184#ov-topo svg .node.device {
185}
186
Simon Hunt1894d792015-02-04 17:09:20 -0800187
Simon Hunt1a5301e2015-02-25 15:31:25 -0800188/* Link Labels */
189
Simon Hunt1894d792015-02-04 17:09:20 -0800190#ov-topo svg .linkLabel text {
191 text-anchor: middle;
192 stroke-width: 0.1;
193 font-size: 9pt;
194}
Simon Hunt58894c82016-05-24 15:09:02 -0700195
Simon Hunteb0fa052015-02-17 19:20:28 -0800196
Simon Hunt1a5301e2015-02-25 15:31:25 -0800197/* Port Labels */
198
Simon Hunt1a5301e2015-02-25 15:31:25 -0800199#ov-topo svg .portLabel text {
200 text-anchor: middle;
201 stroke-width: 0.1;
Simon Hunt969b3c92015-02-25 18:11:31 -0800202 font-size: 11pt;
Simon Hunt1a5301e2015-02-25 15:31:25 -0800203}
Simon Hunt1a5301e2015-02-25 15:31:25 -0800204
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700205/* 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 Cole80401762015-07-16 11:36:18 -0700212 text-anchor: middle;
213}
214
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700215
Simon Hunt2052e5d2015-04-13 17:40:44 -0700216/* Sprite Layer */
217
Simon Huntabf66d92015-04-15 12:57:31 -0700218#ov-topo svg #topo-sprites use {
Simon Huntb2c4cc82015-04-15 17:16:28 -0700219 stroke-width: 2;
Simon Huntabf66d92015-04-15 12:57:31 -0700220}
Simon Hunt2052e5d2015-04-13 17:40:44 -0700221#ov-topo svg #topo-sprites text {
222 text-anchor: middle;
Simon Huntb2c4cc82015-04-15 17:16:28 -0700223 font-size: 20pt;
Simon Hunt2052e5d2015-04-13 17:40:44 -0700224 font-style: italic;
225}
226
Simon Hunt2052e5d2015-04-13 17:40:44 -0700227
Simon Hunt58894c82016-05-24 15:09:02 -0700228/* -- MISC -- */
Simon Hunt7f62f7c2015-05-11 17:38:02 -0700229
Thomas Vachuskafba7f3d2016-03-23 15:46:25 -0700230.notReady .readyBadge {
231 visibility: hidden;
232}
233
Thomas Vachuska26be4f32016-03-31 01:10:27 -0700234.map-list {
235 padding: 10px;
236}
237
238.map-list select {
239 font-size: 20px;
240}