blob: 15dd6b4ec01c91147d1951eaee2cc8a7cb15771b [file] [log] [blame]
Simon Hunt0b05d4a2014-10-21 21:50:15 -07001/*
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07002 * Copyright 2014 Open Networking Laboratory
Thomas Vachuska781d18b2014-10-27 10:31:25 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * 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
Thomas Vachuska781d18b2014-10-27 10:31:25 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * 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.
Thomas Vachuska781d18b2014-10-27 10:31:25 -070015 */
16
17/*
Simon Hunt0b05d4a2014-10-21 21:50:15 -070018 ONOS CSS file
19
20 @author Simon Hunt
21 */
22
23body, html {
24 height: 100%;
25}
26
27/*
28 * Classes
29 */
30
Thomas Vachuska1de66012014-10-30 03:03:30 -070031img#logo {
32 height: 38px;
33 padding-left: 8px;
34 padding-right: 8px;
35}
36
Simon Hunt0b05d4a2014-10-21 21:50:15 -070037span.title {
Thomas Vachuska1de66012014-10-30 03:03:30 -070038 color: #369;
Simon Hunt19cb0982014-10-23 16:44:49 -070039 font-size: 14pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070040 font-style: italic;
Thomas Vachuska1de66012014-10-30 03:03:30 -070041 vertical-align: 12px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070042}
43
44span.radio {
45 color: darkslateblue;
Simon Hunt19cb0982014-10-23 16:44:49 -070046 font-size: 10pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070047}
48
49span.right {
Thomas Vachuska1de66012014-10-30 03:03:30 -070050 padding-top: 8px;
51 padding-right: 16px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070052 float: right;
53}
54
55/*
Simon Hunt5cd0e8f2014-10-27 16:18:40 -070056 * Radio Buttons
57 */
58
59span.radio {
60 margin: 4px 0;
61 border: 1px dotted #222;
62 padding: 1px 6px;
63 color: #eee;
64 cursor: pointer;
65}
66
67span.radio.active {
68 background-color: #bbb;
69 border: 1px solid #eee;
70 padding: 1px 6px;
71 color: #666;
72 font-weight: bold;
73}
74
75/*
Simon Hunt0b05d4a2014-10-21 21:50:15 -070076 * === DEBUGGING ======
77 */
78svg {
Simon Hunt3ab76a82014-10-22 13:07:32 -070079 /*border: 1px dashed red;*/
Simon Hunt0b05d4a2014-10-21 21:50:15 -070080}
81
Thomas Vachuska8cd66a52014-10-30 11:53:07 -070082svg #bg {
83 opacity: 0.5;
84}
85
Simon Hunt0b05d4a2014-10-21 21:50:15 -070086
87/*
88 * Network Graph elements ======================================
89 */
90
Simon Hunt2c9e0c22014-10-23 15:12:58 -070091svg .link {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070092 fill: none;
93 stroke: #666;
Simon Huntd35961b2014-10-28 08:49:48 -070094 stroke-width: 2.0px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070095 opacity: .7;
96 /*marker-end: url(#end);*/
97
98 transition: opacity 250ms;
99 -webkit-transition: opacity 250ms;
100 -moz-transition: opacity 250ms;
101}
102
Simon Hunt6f376a32014-10-28 12:38:30 -0700103svg .link.host {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700104 stroke: #666;
105 stroke-width: 1px;
106 Xstroke-dasharray: 3,3;
Simon Hunt6f376a32014-10-28 12:38:30 -0700107}
108
Simon Hunt69a8d212014-10-30 17:57:35 -0700109svg g.portLayer rect.port {
110 stroke-width: 1;
111 stroke: black;
112 fill: white;
113}
114
Simon Hunt6f376a32014-10-28 12:38:30 -0700115svg .node.device rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700116 stroke-width: 1.5px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700117
118 transition: opacity 250ms;
119 -webkit-transition: opacity 250ms;
120 -moz-transition: opacity 250ms;
121}
122
Simon Huntf967d512014-10-28 20:34:29 -0700123svg .node.device.fixed rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700124 stroke-width: 1.5;
125 stroke: #ccc;
126 Xstroke-dasharray: 4,2;
Simon Huntf967d512014-10-28 20:34:29 -0700127}
128
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700129svg .node.device.roadm rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700130 fill: #03c;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700131}
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700132
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700133svg .node.device.switch rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700134 fill: #06f;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700135}
136
Simon Hunt6f376a32014-10-28 12:38:30 -0700137svg .node.host circle {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700138 fill: #c96;
Simon Hunt6f376a32014-10-28 12:38:30 -0700139 stroke: #000;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700140}
141
142svg .node text {
143 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700144 font: 10px sans-serif;
145 pointer-events: none;
146}
147
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700148/* for debugging */
149svg .node circle.debug {
150 fill: white;
151 stroke: red;
152}
153svg .node rect.debug {
154 fill: yellow;
155 stroke: red;
156 opacity: 0.35;
157}
158
159
Simon Hunt9a16c822014-10-28 16:09:19 -0700160svg .node.selected rect,
161svg .node.selected circle {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700162 filter: url(#blue-glow);
163}
164
Simon Hunt3ab76a82014-10-22 13:07:32 -0700165svg .link.inactive,
166svg .node.inactive rect,
Simon Hunt6f376a32014-10-28 12:38:30 -0700167svg .node.inactive circle,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700168svg .node.inactive text,
169svg .node.inactive image {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700170 opacity: .1;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700171}
172
Simon Hunt3ab76a82014-10-22 13:07:32 -0700173svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700174svg .node.inactive.selected text,
175svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700176 opacity: .6;
177}
178
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700179/*
180 * === currently unused ===============================================
181 */
182
183svg marker#end {
184 fill: #666;
185 stroke: #666;
186 stroke-width: 1.5px;
187}
188
Simon Hunt3ab76a82014-10-22 13:07:32 -0700189svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700190 position: fixed;
191}
192
Simon Hunt3ab76a82014-10-22 13:07:32 -0700193svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700194 stroke-width: 1px;
195}
196
Simon Hunt3ab76a82014-10-22 13:07:32 -0700197svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700198 fill: #000;
199 font: 10px sans-serif;
200 pointer-events: none;
201}
202
203/*
204 * =============================================================
205 */
206
207/*
208 * Specific structural elements
209 */
210
Simon Huntcc267562014-10-29 10:22:17 -0700211/* This is to ensure that the body does not expand to account for the
212 flyout details pane, that is positioned "off screen".
213 */
214body {
215 overflow: hidden;
216}
217
Simon Hunt6f376a32014-10-28 12:38:30 -0700218#mast {
219 height: 36px;
220 padding: 4px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700221 background-color: #bbb;
Simon Hunt6f376a32014-10-28 12:38:30 -0700222 vertical-align: baseline;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700223 box-shadow: 0px 2px 8px #777;
Simon Hunt6f376a32014-10-28 12:38:30 -0700224}
225
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700226#frame {
227 width: 100%;
228 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700229 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700230}
231
Simon Hunt6f376a32014-10-28 12:38:30 -0700232#flyout {
Simon Hunt6f376a32014-10-28 12:38:30 -0700233 position: absolute;
234 z-index: 100;
Simon Huntc586e212014-10-28 21:24:08 -0700235 display: block;
236 top: 10%;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700237 width: 280px;
238 right: -300px;
Simon Huntc586e212014-10-28 21:24:08 -0700239 opacity: 0;
Thomas Vachuska8cd66a52014-10-30 11:53:07 -0700240 background-color: rgba(255,255,255,0.8);
Thomas Vachuska1de66012014-10-30 03:03:30 -0700241
Simon Huntc586e212014-10-28 21:24:08 -0700242 padding: 10px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700243 color: black;
Simon Huntcc267562014-10-29 10:22:17 -0700244 font-size: 10pt;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700245 box-shadow: 2px 2px 16px #777;
Simon Huntc586e212014-10-28 21:24:08 -0700246}
247
248#flyout h2 {
249 margin: 8px 4px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700250 color: black;
251 vertical-align: middle;
252}
253
254#flyout h2 img {
255 height: 32px;
256 padding-right: 8px;
257 vertical-align: middle;
Simon Huntc586e212014-10-28 21:24:08 -0700258}
259
Simon Huntcc267562014-10-29 10:22:17 -0700260#flyout p, table {
Simon Huntc586e212014-10-28 21:24:08 -0700261 margin: 4px 4px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700262}
263
Simon Huntcc267562014-10-29 10:22:17 -0700264#flyout td.label {
265 font-style: italic;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700266 color: #777;
Simon Huntcc267562014-10-29 10:22:17 -0700267 padding-right: 12px;
268}
269
270#flyout td.value {
271
272}
273
Thomas Vachuska1de66012014-10-30 03:03:30 -0700274#flyout hr {
275 height: 1px;
276 color: #ccc;
277 background-color: #ccc;
278 border: 0;
279}
280