blob: c313d08e73e465fdc967d258af9cbc030adc5db3 [file] [log] [blame]
Simon Huntef31fb22014-12-19 13:16:44 -08001/*
Simon Hunt8ead3a22015-01-06 11:00:15 -08002 * Copyright 2014,2015 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/*
18 ONOS GUI -- Topology View -- CSS file
Simon Huntef31fb22014-12-19 13:16:44 -080019 */
20
Simon Hunt626d2102015-01-29 11:54:50 -080021/* --- Topo Map --- */
22
Simon Hunt5ee36e02015-01-15 10:33:20 -080023.light #ov-topo svg {
Simon Hunt426bd862015-01-14 16:48:41 -080024 background-color: #fff;
Simon Hunt0541fb82015-01-14 18:59:57 -080025 /* For Debugging the placement of the SVG layer... */
26 /*border: 1px solid red;*/
Simon Hunt6cc53692015-01-07 11:33:45 -080027}
Simon Hunt5ee36e02015-01-15 10:33:20 -080028.dark #ov-topo svg {
29 background-color: #2b2b2b;
30}
Simon Hunt426bd862015-01-14 16:48:41 -080031
32#ov-topo svg #topo-map {
33 stroke-width: 2px;
Simon Hunt426bd862015-01-14 16:48:41 -080034 fill: transparent;
Simon Hunt5ee36e02015-01-15 10:33:20 -080035}
36
37.light #ov-topo svg #topo-map {
Simon Hunt584122a2015-01-21 15:32:40 -080038 /*stroke: #eee;*/
39 stroke: #88b;
Simon Hunt5ee36e02015-01-15 10:33:20 -080040}
41.dark #ov-topo svg #topo-map {
42 stroke: #444;
43}
Simon Hunt626d2102015-01-29 11:54:50 -080044
45
Simon Hunt4b668592015-01-29 17:33:53 -080046/* --- Topo Summary Panel --- */
Simon Hunt626d2102015-01-29 11:54:50 -080047
48#topo-p-summary {
49 /* Base css from panel.css */
50
51}
52
53#topo-p-summary svg {
54 display: inline-block;
55 width: 42px;
56 height: 42px;
57}
58
Simon Hunt626d2102015-01-29 11:54:50 -080059#topo-p-summary h2 {
60 position: absolute;
61 margin: 0 4px;
62 top: 20px;
63 left: 50px;
64}
65.light #topo-p-summary h2 {
66 color: black;
67}
68.dark #topo-p-summary h2 {
69 color: #ddd;
70}
71
72#topo-p-summary h3 {
73 margin: 0 4px;
74 top: 20px;
75 left: 50px;
76}
77.light #topo-p-summary h3 {
78 color: black;
79}
80.dark #topo-p-summary h3 {
81 color: #ddd;
82}
83
84#topo-p-summary p, table {
85 margin: 4px 4px;
86}
87
88#topo-p-summary td.label {
89 font-style: italic;
90 padding-right: 12px;
91 /* works for both light and dark themes ... */
92 color: #777;
93}
94
95#topo-p-summary td.value {
96}
97
98#topo-p-summary hr {
99 height: 1px;
100 border: 0;
101}
102.light #topo-p-summary hr {
103 background-color: #ccc;
104 color: #ccc;
105}
106.dark #topo-p-summary hr {
107 background-color: #888;
108 color: #888;
109}
Simon Hunt4b668592015-01-29 17:33:53 -0800110
111
112/* --- Topo Detail Panel --- */
113
114/* TODO: add CSS rules */
115
116
117/* --- Topo Instance Panel --- */
118
119#topo-p-instance {
120 height: 100px;
121}
122
123#topo-p-instance div.onosInst {
124 display: inline-block;
125 width: 170px;
126 height: 85px;
127 cursor: pointer;
128}
129
130#topo-p-instance svg rect {
131 fill: #ccc;
132 stroke: #aaa;
133 stroke-width: 3.5;
134}
135#topo-p-instance .online svg rect {
136 opacity: 1;
137 fill: #9cf;
138 stroke: #555;
139}
140
141#topo-p-instance svg .glyph {
142 fill: #888;
143 fill-rule: evenodd;
144}
145#topo-p-instance .online svg .glyph {
146 fill: #000;
147}
148
149#topo-p-instance svg .badgeIcon {
150 fill: #777;
151 fill-rule: evenodd;
152}
153
154#topo-p-instance .online svg .badgeIcon {
155 fill: #fff;
156}
157
158#topo-p-instance svg text {
159 text-anchor: middle;
160 fill: #777;
161}
162#topo-p-instance .online svg text {
163 fill: #eee;
164}
165
166#topo-p-instance svg text.instTitle {
167 font-size: 11pt;
168 font-weight: bold;
169}
170#topo-p-instance svg text.instLabel {
171 font-size: 9pt;
172 font-style: italic;
173}
174
175#topo-p-instance .onosInst.mastership {
176 opacity: 0.3;
177}
178#topo-p-instance .onosInst.mastership.affinity {
179 opacity: 1.0;
180}
181#topo-p-instance .onosInst.mastership.affinity svg rect {
182 /* TODO: add blue glow */
183 /*filter: url(#blue-glow);*/
184}