blob: 356ccf7bdb0e59a8c1c78098e720b84f48988898 [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;
Simon Hunt6f376a32014-10-28 12:38:30 -0700106}
107
Simon Hunt69a8d212014-10-30 17:57:35 -0700108svg g.portLayer rect.port {
Thomas Vachuska5f998492014-10-31 00:46:11 -0700109 fill: #ccc;
Simon Hunt69a8d212014-10-30 17:57:35 -0700110}
111
Simon Hunt3c29c142014-10-30 21:31:44 -0700112svg g.portLayer text {
Thomas Vachuska5f998492014-10-31 00:46:11 -0700113 Xstroke: #fff;
114 font: 8pt sans-serif;
Simon Hunt3c29c142014-10-30 21:31:44 -0700115 pointer-events: none;
116}
117
Simon Hunt6f376a32014-10-28 12:38:30 -0700118svg .node.device rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700119 stroke-width: 1.5px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700120
121 transition: opacity 250ms;
122 -webkit-transition: opacity 250ms;
123 -moz-transition: opacity 250ms;
124}
125
Simon Huntf967d512014-10-28 20:34:29 -0700126svg .node.device.fixed rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700127 stroke-width: 1.5;
128 stroke: #ccc;
129 Xstroke-dasharray: 4,2;
Simon Huntf967d512014-10-28 20:34:29 -0700130}
131
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700132svg .node.device.roadm rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700133 fill: #03c;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700134}
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700135
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700136svg .node.device.switch rect {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700137 fill: #06f;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700138}
139
Simon Hunt6f376a32014-10-28 12:38:30 -0700140svg .node.host circle {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700141 fill: #c96;
Simon Hunt6f376a32014-10-28 12:38:30 -0700142 stroke: #000;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700143}
144
145svg .node text {
146 fill: white;
Thomas Vachuska5f998492014-10-31 00:46:11 -0700147 font: 10pt sans-serif;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700148 pointer-events: none;
149}
150
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700151/* for debugging */
152svg .node circle.debug {
153 fill: white;
154 stroke: red;
155}
156svg .node rect.debug {
157 fill: yellow;
158 stroke: red;
159 opacity: 0.35;
160}
161
162
Simon Hunt9a16c822014-10-28 16:09:19 -0700163svg .node.selected rect,
164svg .node.selected circle {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700165 filter: url(#blue-glow);
166}
167
Simon Hunt3ab76a82014-10-22 13:07:32 -0700168svg .link.inactive,
169svg .node.inactive rect,
Simon Hunt6f376a32014-10-28 12:38:30 -0700170svg .node.inactive circle,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700171svg .node.inactive text,
172svg .node.inactive image {
Thomas Vachuska1de66012014-10-30 03:03:30 -0700173 opacity: .1;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700174}
175
Simon Hunt3ab76a82014-10-22 13:07:32 -0700176svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700177svg .node.inactive.selected text,
178svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700179 opacity: .6;
180}
181
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700182/*
183 * === currently unused ===============================================
184 */
185
186svg marker#end {
187 fill: #666;
188 stroke: #666;
189 stroke-width: 1.5px;
190}
191
Simon Hunt3ab76a82014-10-22 13:07:32 -0700192svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700193 position: fixed;
194}
195
Simon Hunt3ab76a82014-10-22 13:07:32 -0700196svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700197 stroke-width: 1px;
198}
199
Simon Hunt3ab76a82014-10-22 13:07:32 -0700200svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700201 fill: #000;
202 font: 10px sans-serif;
203 pointer-events: none;
204}
205
206/*
207 * =============================================================
208 */
209
210/*
211 * Specific structural elements
212 */
213
Simon Huntcc267562014-10-29 10:22:17 -0700214/* This is to ensure that the body does not expand to account for the
215 flyout details pane, that is positioned "off screen".
216 */
217body {
218 overflow: hidden;
219}
220
Simon Hunt6f376a32014-10-28 12:38:30 -0700221#mast {
222 height: 36px;
223 padding: 4px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700224 background-color: #bbb;
Simon Hunt6f376a32014-10-28 12:38:30 -0700225 vertical-align: baseline;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700226 box-shadow: 0px 2px 8px #777;
Simon Hunt6f376a32014-10-28 12:38:30 -0700227}
228
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700229#frame {
230 width: 100%;
231 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700232 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700233}
234
Simon Hunt6f376a32014-10-28 12:38:30 -0700235#flyout {
Simon Hunt6f376a32014-10-28 12:38:30 -0700236 position: absolute;
237 z-index: 100;
Simon Huntc586e212014-10-28 21:24:08 -0700238 display: block;
239 top: 10%;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700240 width: 280px;
241 right: -300px;
Simon Huntc586e212014-10-28 21:24:08 -0700242 opacity: 0;
Thomas Vachuska8cd66a52014-10-30 11:53:07 -0700243 background-color: rgba(255,255,255,0.8);
Thomas Vachuska1de66012014-10-30 03:03:30 -0700244
Simon Huntc586e212014-10-28 21:24:08 -0700245 padding: 10px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700246 color: black;
Simon Huntcc267562014-10-29 10:22:17 -0700247 font-size: 10pt;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700248 box-shadow: 2px 2px 16px #777;
Simon Huntc586e212014-10-28 21:24:08 -0700249}
250
251#flyout h2 {
252 margin: 8px 4px;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700253 color: black;
254 vertical-align: middle;
255}
256
257#flyout h2 img {
258 height: 32px;
259 padding-right: 8px;
260 vertical-align: middle;
Simon Huntc586e212014-10-28 21:24:08 -0700261}
262
Simon Huntcc267562014-10-29 10:22:17 -0700263#flyout p, table {
Simon Huntc586e212014-10-28 21:24:08 -0700264 margin: 4px 4px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700265}
266
Simon Huntcc267562014-10-29 10:22:17 -0700267#flyout td.label {
268 font-style: italic;
Thomas Vachuska1de66012014-10-30 03:03:30 -0700269 color: #777;
Simon Huntcc267562014-10-29 10:22:17 -0700270 padding-right: 12px;
271}
272
273#flyout td.value {
274
275}
276
Thomas Vachuska1de66012014-10-30 03:03:30 -0700277#flyout hr {
278 height: 1px;
279 color: #ccc;
280 background-color: #ccc;
281 border: 0;
282}
283