blob: 3c1fb0755b50b2a6013464576057ced4fcd64f33 [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
82
83/*
84 * Network Graph elements ======================================
85 */
86
Simon Hunt2c9e0c22014-10-23 15:12:58 -070087svg .link {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070088 fill: none;
89 stroke: #666;
Simon Huntd35961b2014-10-28 08:49:48 -070090 stroke-width: 2.0px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070091 opacity: .7;
92 /*marker-end: url(#end);*/
93
94 transition: opacity 250ms;
95 -webkit-transition: opacity 250ms;
96 -moz-transition: opacity 250ms;
97}
98
Simon Hunt6f376a32014-10-28 12:38:30 -070099svg .link.host {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700100 stroke: #666;
101 stroke-width: 1px;
102 Xstroke-dasharray: 3,3;
Simon Hunt6f376a32014-10-28 12:38:30 -0700103}
104
105svg .node.device rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700106 stroke-width: 1.5px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700107
108 transition: opacity 250ms;
109 -webkit-transition: opacity 250ms;
110 -moz-transition: opacity 250ms;
111}
112
Simon Huntf967d512014-10-28 20:34:29 -0700113svg .node.device.fixed rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700114 stroke-width: 1.5;
115 stroke: #ccc;
116 Xstroke-dasharray: 4,2;
Simon Huntf967d512014-10-28 20:34:29 -0700117}
118
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700119svg .node.device.roadm rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700120 fill: #03c;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700121}
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700122
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700123svg .node.device.switch rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700124 fill: #06f;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700125}
126
Simon Hunt6f376a32014-10-28 12:38:30 -0700127svg .node.host circle {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700128 fill: #c96;
Simon Hunt6f376a32014-10-28 12:38:30 -0700129 stroke: #000;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700130}
131
132svg .node text {
133 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700134 font: 10px sans-serif;
135 pointer-events: none;
136}
137
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700138/* for debugging */
139svg .node circle.debug {
140 fill: white;
141 stroke: red;
142}
143svg .node rect.debug {
144 fill: yellow;
145 stroke: red;
146 opacity: 0.35;
147}
148
149
Simon Hunt9a16c822014-10-28 16:09:19 -0700150svg .node.selected rect,
151svg .node.selected circle {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700152 filter: url(#blue-glow);
153}
154
Simon Hunt3ab76a82014-10-22 13:07:32 -0700155svg .link.inactive,
156svg .node.inactive rect,
Simon Hunt6f376a32014-10-28 12:38:30 -0700157svg .node.inactive circle,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700158svg .node.inactive text,
159svg .node.inactive image {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700160 opacity: .1;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700161}
162
Simon Hunt3ab76a82014-10-22 13:07:32 -0700163svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700164svg .node.inactive.selected text,
165svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700166 opacity: .6;
167}
168
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700169/*
170 * === currently unused ===============================================
171 */
172
173svg marker#end {
174 fill: #666;
175 stroke: #666;
176 stroke-width: 1.5px;
177}
178
Simon Hunt3ab76a82014-10-22 13:07:32 -0700179svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700180 position: fixed;
181}
182
Simon Hunt3ab76a82014-10-22 13:07:32 -0700183svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700184 stroke-width: 1px;
185}
186
Simon Hunt3ab76a82014-10-22 13:07:32 -0700187svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700188 fill: #000;
189 font: 10px sans-serif;
190 pointer-events: none;
191}
192
193/*
194 * =============================================================
195 */
196
197/*
198 * Specific structural elements
199 */
200
Simon Huntcc267562014-10-29 10:22:17 -0700201/* This is to ensure that the body does not expand to account for the
202 flyout details pane, that is positioned "off screen".
203 */
204body {
205 overflow: hidden;
206}
207
Simon Hunt6f376a32014-10-28 12:38:30 -0700208#mast {
209 height: 36px;
210 padding: 4px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700211 background-color: #bbb;
Simon Hunt6f376a32014-10-28 12:38:30 -0700212 vertical-align: baseline;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700213 box-shadow: 0px 2px 8px #777;
Simon Hunt6f376a32014-10-28 12:38:30 -0700214}
215
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700216#frame {
217 width: 100%;
218 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700219 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700220}
221
Simon Hunt6f376a32014-10-28 12:38:30 -0700222#flyout {
Simon Hunt6f376a32014-10-28 12:38:30 -0700223 position: absolute;
224 z-index: 100;
Simon Huntc586e212014-10-28 21:24:08 -0700225 display: block;
226 top: 10%;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700227 width: 280px;
228 right: -300px;
Simon Huntc586e212014-10-28 21:24:08 -0700229 opacity: 0;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700230 background-color: rgba(255,255,255,0.5);
231
Simon Huntc586e212014-10-28 21:24:08 -0700232 padding: 10px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700233 color: black;
Simon Huntcc267562014-10-29 10:22:17 -0700234 font-size: 10pt;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700235 box-shadow: 2px 2px 16px #777;
Simon Huntc586e212014-10-28 21:24:08 -0700236}
237
238#flyout h2 {
239 margin: 8px 4px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700240 color: black;
241 vertical-align: middle;
242}
243
244#flyout h2 img {
245 height: 32px;
246 padding-right: 8px;
247 vertical-align: middle;
Simon Huntc586e212014-10-28 21:24:08 -0700248}
249
Simon Huntcc267562014-10-29 10:22:17 -0700250#flyout p, table {
Simon Huntc586e212014-10-28 21:24:08 -0700251 margin: 4px 4px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700252}
253
Simon Huntcc267562014-10-29 10:22:17 -0700254#flyout td.label {
255 font-style: italic;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700256 color: #777;
Simon Huntcc267562014-10-29 10:22:17 -0700257 padding-right: 12px;
258}
259
260#flyout td.value {
261
262}
263
Thomas Vachuska1de66012014-10-30 03:03:30 -0700264#flyout hr {
265 height: 1px;
266 color: #ccc;
267 background-color: #ccc;
268 border: 0;
269}
270