blob: 0f016b64e6ed7ac12bd6540ccd4dbce15c7a8e30 [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 Hunt047f4052016-06-06 16:51:11 -0700105.topo-p p,
106.topo-p table {
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700107 padding: 4px;
108 margin: 0;
Simon Hunt626d2102015-01-29 11:54:50 -0800109}
110
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700111.topo-p td {
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -0700112 word-wrap: break-word;
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700113}
Simon Hunt08f841d02015-02-10 14:39:20 -0800114.topo-p td.label {
Simon Hunt626d2102015-01-29 11:54:50 -0800115 font-style: italic;
116 padding-right: 12px;
Simon Hunt626d2102015-01-29 11:54:50 -0800117}
Simon Hunt08f841d02015-02-10 14:39:20 -0800118.topo-p td.value {
Simon Hunt626d2102015-01-29 11:54:50 -0800119}
120
Simon Hunt08f841d02015-02-10 14:39:20 -0800121.topo-p hr {
Simon Hunt626d2102015-01-29 11:54:50 -0800122 height: 1px;
123 border: 0;
124}
Simon Hunt58894c82016-05-24 15:09:02 -0700125
Simon Hunt4b668592015-01-29 17:33:53 -0800126
Simon Hunt4b668592015-01-29 17:33:53 -0800127/* --- Topo Instance Panel --- */
128
129#topo-p-instance {
Simon Hunta9761342016-06-10 18:02:53 -0700130 height: 85px;
131 padding: 10px;
Simon Hunt4b668592015-01-29 17:33:53 -0800132}
133
134#topo-p-instance div.onosInst {
135 display: inline-block;
136 width: 170px;
137 height: 85px;
138 cursor: pointer;
139}
140
Simon Hunt4b668592015-01-29 17:33:53 -0800141#topo-p-instance svg text.instTitle {
142 font-size: 11pt;
143 font-weight: bold;
Simon Hunta9761342016-06-10 18:02:53 -0700144 font-variant: small-caps;
145 text-transform: uppercase;
Simon Hunt4b668592015-01-29 17:33:53 -0800146}
147#topo-p-instance svg text.instLabel {
Simon Hunta9761342016-06-10 18:02:53 -0700148 font-size: 10pt;
Simon Hunt4b668592015-01-29 17:33:53 -0800149}
150
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700151
152/* --- Toolbar --- */
153
Simon Hunta9761342016-06-10 18:02:53 -0700154#toolbar-topo-tbar {
155 padding: 6px;
156}
157
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700158#toolbar-topo-tbar .tbar-row.right {
159 width: 100%;
160}
161
162#toolbar-topo-tbar .tbar-row-text {
163 height: 21px;
164 text-align: right;
165 padding: 8px 60px 0 0;
166 font-style: italic;
167}
168
169
Simon Huntac4c6f72015-02-03 19:50:53 -0800170/* --- Topo Nodes --- */
171
Simon Hunta142dd22015-02-12 22:07:51 -0800172#ov-topo svg .suppressed {
Simon Hunt743a8492015-08-25 16:18:19 -0700173 opacity: 0.5 !important;
174}
175
176#ov-topo svg .suppressedmax {
Simon Hunta142dd22015-02-12 22:07:51 -0800177 opacity: 0.2 !important;
178}
179
Simon Huntac4c6f72015-02-03 19:50:53 -0800180#ov-topo svg .node {
181 cursor: pointer;
Simon Huntf44d7262016-06-14 14:46:56 -0700182 fill-rule: evenodd;
Simon Huntac4c6f72015-02-03 19:50:53 -0800183}
184
Simon Huntac4c6f72015-02-03 19:50:53 -0800185#ov-topo svg .node text {
186 pointer-events: none;
187}
188
Simon Hunt58894c82016-05-24 15:09:02 -0700189
Simon Huntac4c6f72015-02-03 19:50:53 -0800190/* Device Nodes */
191
192#ov-topo svg .node.device {
193}
194
Simon Hunt1894d792015-02-04 17:09:20 -0800195
Simon Hunt1a5301e2015-02-25 15:31:25 -0800196/* Link Labels */
197
Simon Hunt1894d792015-02-04 17:09:20 -0800198#ov-topo svg .linkLabel text {
199 text-anchor: middle;
200 stroke-width: 0.1;
201 font-size: 9pt;
202}
Simon Hunt58894c82016-05-24 15:09:02 -0700203
Simon Hunteb0fa052015-02-17 19:20:28 -0800204
Simon Hunt1a5301e2015-02-25 15:31:25 -0800205/* Port Labels */
206
Simon Hunt1a5301e2015-02-25 15:31:25 -0800207#ov-topo svg .portLabel text {
208 text-anchor: middle;
209 stroke-width: 0.1;
Simon Hunt969b3c92015-02-25 18:11:31 -0800210 font-size: 11pt;
Simon Hunt1a5301e2015-02-25 15:31:25 -0800211}
Simon Hunt1a5301e2015-02-25 15:31:25 -0800212
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700213/* Number of Links Labels */
214#ov-topo line.numLinkHash {
215 stroke-width: 3;
216}
217
218#ov-topo text.numLinkText {
219 font-size: 15pt;
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700220 text-anchor: middle;
221}
222
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700223
Simon Hunt2052e5d2015-04-13 17:40:44 -0700224/* Sprite Layer */
225
Simon Huntabf66d92015-04-15 12:57:31 -0700226#ov-topo svg #topo-sprites use {
Simon Huntb2c4cc82015-04-15 17:16:28 -0700227 stroke-width: 2;
Simon Huntabf66d92015-04-15 12:57:31 -0700228}
Simon Hunt2052e5d2015-04-13 17:40:44 -0700229#ov-topo svg #topo-sprites text {
230 text-anchor: middle;
Simon Huntb2c4cc82015-04-15 17:16:28 -0700231 font-size: 20pt;
Simon Hunt2052e5d2015-04-13 17:40:44 -0700232 font-style: italic;
233}
234
Simon Hunt2052e5d2015-04-13 17:40:44 -0700235
Simon Hunt58894c82016-05-24 15:09:02 -0700236/* -- MISC -- */
Simon Hunt7f62f7c2015-05-11 17:38:02 -0700237
Thomas Vachuska26be4f32016-03-31 01:10:27 -0700238.map-list {
239 padding: 10px;
240}
241
242.map-list select {
243 font-size: 20px;
244}