blob: eb8655655f490c15195c307936e152ece740345a [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 {
Simon Hunt8f907cc2016-06-15 18:04:01 -070044 padding: 16px;
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 {
Simon Hunt8f907cc2016-06-15 18:04:01 -070051 padding: 16px;
52 top: 370px;
Simon Hunt08f841d02015-02-10 14:39:20 -080053}
Bri Prebilic Coled8745462015-06-01 16:08:57 -070054html[data-platform='iPad'] #topo-p-detail {
Simon Hunt8f907cc2016-06-15 18:04:01 -070055 top: 386px;
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 {
Simon Hunt8f907cc2016-06-15 18:04:01 -070062 width: 28px;
63 height: 28px;
Bri Prebilic Colef5e48b12015-04-21 14:52:36 -070064}
65
Simon Hunt8d558082015-10-29 21:32:50 -070066
Simon Hunt08f841d02015-02-10 14:39:20 -080067/* --- general topo-panel styling --- */
68
Simon Hunt8f907cc2016-06-15 18:04:01 -070069.topo-p div.header {
70 margin-bottom: 10px;
71}
72
Bri Prebilic Cole8d3de3d2015-05-15 16:02:59 -070073.topo-p div.header div.icon {
74 vertical-align: middle;
75 display: inline-block;
76}
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -070077.topo-p div.body {
78 overflow-y: scroll;
79}
80
Bri Prebilic Cole0a6ffb62015-06-04 09:32:12 -070081.topo-p div.body::-webkit-scrollbar {
82 display: none;
83}
84
Simon Hunt08f841d02015-02-10 14:39:20 -080085.topo-p svg {
Simon Hunt626d2102015-01-29 11:54:50 -080086 display: inline-block;
Simon Hunt8f907cc2016-06-15 18:04:01 -070087 width: 26px;
88 height: 26px;
Simon Hunt626d2102015-01-29 11:54:50 -080089}
90
Simon Hunt08f841d02015-02-10 14:39:20 -080091
92.topo-p h2 {
Simon Hunt8f907cc2016-06-15 18:04:01 -070093 padding: 0 0 0 10px;
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -070094 margin: 0;
Simon Hunt8f907cc2016-06-15 18:04:01 -070095 font-weight: lighter;
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070096 word-wrap: break-word;
Bri Prebilic Cole8d3de3d2015-05-15 16:02:59 -070097 display: inline-block;
Bri Prebilic Cole8d3de3d2015-05-15 16:02:59 -070098 vertical-align: middle;
Simon Hunt626d2102015-01-29 11:54:50 -080099}
Simon Hunt626d2102015-01-29 11:54:50 -0800100
Simon Hunt08f841d02015-02-10 14:39:20 -0800101.topo-p h3 {
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700102 padding: 0 4px;
103 margin: 0;
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -0700104 word-wrap: break-word;
Simon Hunt626d2102015-01-29 11:54:50 -0800105 top: 20px;
106 left: 50px;
107}
Simon Hunt626d2102015-01-29 11:54:50 -0800108
Simon Hunt047f4052016-06-06 16:51:11 -0700109.topo-p p,
110.topo-p table {
Simon Hunt8f907cc2016-06-15 18:04:01 -0700111 padding: 0;
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700112 margin: 0;
Simon Hunt8f907cc2016-06-15 18:04:01 -0700113 width: 100%;
Simon Hunt626d2102015-01-29 11:54:50 -0800114}
115
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700116.topo-p td {
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -0700117 word-wrap: break-word;
Bri Prebilic Cole684bcb72015-05-11 12:00:24 -0700118}
Simon Hunt08f841d02015-02-10 14:39:20 -0800119.topo-p td.label {
Simon Hunt8f907cc2016-06-15 18:04:01 -0700120 font-weight: bold;
121 padding: 0 10px 0 0;
Simon Hunt626d2102015-01-29 11:54:50 -0800122}
Simon Hunt08f841d02015-02-10 14:39:20 -0800123.topo-p td.value {
Simon Hunt8f907cc2016-06-15 18:04:01 -0700124 padding: 0;
125}
126
127#topo-p-summary td.label {
128 width: 50%;
129}
130
131#topo-p-detail div.actionBtns {
132 padding-top: 6px;
Simon Hunt626d2102015-01-29 11:54:50 -0800133}
134
Simon Hunt08f841d02015-02-10 14:39:20 -0800135.topo-p hr {
Simon Hunt626d2102015-01-29 11:54:50 -0800136 height: 1px;
137 border: 0;
Simon Hunt8f907cc2016-06-15 18:04:01 -0700138 margin: 4px -3px;
Simon Hunt626d2102015-01-29 11:54:50 -0800139}
Simon Hunt58894c82016-05-24 15:09:02 -0700140
Simon Hunt4b668592015-01-29 17:33:53 -0800141
Simon Hunt4b668592015-01-29 17:33:53 -0800142/* --- Topo Instance Panel --- */
143
144#topo-p-instance {
Simon Hunta9761342016-06-10 18:02:53 -0700145 height: 85px;
146 padding: 10px;
Simon Hunt4b668592015-01-29 17:33:53 -0800147}
148
149#topo-p-instance div.onosInst {
150 display: inline-block;
151 width: 170px;
152 height: 85px;
153 cursor: pointer;
154}
155
Simon Hunt4b668592015-01-29 17:33:53 -0800156#topo-p-instance svg text.instTitle {
157 font-size: 11pt;
158 font-weight: bold;
Simon Hunta9761342016-06-10 18:02:53 -0700159 font-variant: small-caps;
160 text-transform: uppercase;
Simon Hunt4b668592015-01-29 17:33:53 -0800161}
162#topo-p-instance svg text.instLabel {
Simon Hunta9761342016-06-10 18:02:53 -0700163 font-size: 10pt;
Simon Hunt4b668592015-01-29 17:33:53 -0800164}
165
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700166
167/* --- Toolbar --- */
168
Simon Hunta9761342016-06-10 18:02:53 -0700169#toolbar-topo-tbar {
170 padding: 6px;
171}
172
Simon Hunt8d22c4b2015-08-06 16:24:43 -0700173#toolbar-topo-tbar .tbar-row.right {
174 width: 100%;
175}
176
177#toolbar-topo-tbar .tbar-row-text {
178 height: 21px;
179 text-align: right;
180 padding: 8px 60px 0 0;
181 font-style: italic;
182}
183
184
Simon Huntac4c6f72015-02-03 19:50:53 -0800185/* --- Topo Nodes --- */
186
Simon Hunta142dd22015-02-12 22:07:51 -0800187#ov-topo svg .suppressed {
Simon Hunt743a8492015-08-25 16:18:19 -0700188 opacity: 0.5 !important;
189}
190
191#ov-topo svg .suppressedmax {
Simon Hunta142dd22015-02-12 22:07:51 -0800192 opacity: 0.2 !important;
193}
194
Simon Huntac4c6f72015-02-03 19:50:53 -0800195#ov-topo svg .node {
196 cursor: pointer;
Simon Huntf44d7262016-06-14 14:46:56 -0700197 fill-rule: evenodd;
Simon Huntac4c6f72015-02-03 19:50:53 -0800198}
199
Simon Huntac4c6f72015-02-03 19:50:53 -0800200#ov-topo svg .node text {
201 pointer-events: none;
202}
203
Simon Hunt58894c82016-05-24 15:09:02 -0700204
Simon Huntac4c6f72015-02-03 19:50:53 -0800205/* Device Nodes */
206
207#ov-topo svg .node.device {
208}
209
Simon Hunt1894d792015-02-04 17:09:20 -0800210
Simon Hunt1a5301e2015-02-25 15:31:25 -0800211/* Link Labels */
212
Simon Hunt1894d792015-02-04 17:09:20 -0800213#ov-topo svg .linkLabel text {
214 text-anchor: middle;
215 stroke-width: 0.1;
216 font-size: 9pt;
217}
Simon Hunt58894c82016-05-24 15:09:02 -0700218
Simon Hunteb0fa052015-02-17 19:20:28 -0800219
Simon Hunt1a5301e2015-02-25 15:31:25 -0800220/* Port Labels */
221
Simon Hunt1a5301e2015-02-25 15:31:25 -0800222#ov-topo svg .portLabel text {
223 text-anchor: middle;
224 stroke-width: 0.1;
Simon Hunt969b3c92015-02-25 18:11:31 -0800225 font-size: 11pt;
Simon Hunt1a5301e2015-02-25 15:31:25 -0800226}
Simon Hunt1a5301e2015-02-25 15:31:25 -0800227
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700228/* Number of Links Labels */
229#ov-topo line.numLinkHash {
230 stroke-width: 3;
231}
232
233#ov-topo text.numLinkText {
234 font-size: 15pt;
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700235 text-anchor: middle;
236}
237
Bri Prebilic Cole80401762015-07-16 11:36:18 -0700238
Simon Hunt2052e5d2015-04-13 17:40:44 -0700239/* Sprite Layer */
240
Simon Huntabf66d92015-04-15 12:57:31 -0700241#ov-topo svg #topo-sprites use {
Simon Huntb2c4cc82015-04-15 17:16:28 -0700242 stroke-width: 2;
Simon Huntabf66d92015-04-15 12:57:31 -0700243}
Simon Hunt2052e5d2015-04-13 17:40:44 -0700244#ov-topo svg #topo-sprites text {
245 text-anchor: middle;
Simon Huntb2c4cc82015-04-15 17:16:28 -0700246 font-size: 20pt;
Simon Hunt2052e5d2015-04-13 17:40:44 -0700247 font-style: italic;
248}
249
Simon Hunt2052e5d2015-04-13 17:40:44 -0700250
Simon Hunt58894c82016-05-24 15:09:02 -0700251/* -- MISC -- */
Simon Hunt7f62f7c2015-05-11 17:38:02 -0700252
Thomas Vachuska26be4f32016-03-31 01:10:27 -0700253.map-list {
254 padding: 10px;
255}
256
257.map-list select {
chengfanfdd497c2016-11-25 22:17:58 +0800258 font-size: 16px;
Thomas Vachuska26be4f32016-03-31 01:10:27 -0700259}