blob: 06e5b6339a6b696493212c4f2850051bcce33730 [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
31span.title {
Simon Hunt19cb0982014-10-23 16:44:49 -070032 color: #37b;
33 font-size: 14pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070034 font-style: italic;
Simon Hunt19cb0982014-10-23 16:44:49 -070035 vertical-align: 10px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070036}
37
38span.radio {
39 color: darkslateblue;
Simon Hunt19cb0982014-10-23 16:44:49 -070040 font-size: 10pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070041}
42
43span.right {
44 float: right;
45}
46
47/*
Simon Hunt5cd0e8f2014-10-27 16:18:40 -070048 * Radio Buttons
49 */
50
51span.radio {
52 margin: 4px 0;
53 border: 1px dotted #222;
54 padding: 1px 6px;
55 color: #eee;
56 cursor: pointer;
57}
58
59span.radio.active {
60 background-color: #bbb;
61 border: 1px solid #eee;
62 padding: 1px 6px;
63 color: #666;
64 font-weight: bold;
65}
66
67/*
Simon Hunt0b05d4a2014-10-21 21:50:15 -070068 * === DEBUGGING ======
69 */
70svg {
Simon Hunt3ab76a82014-10-22 13:07:32 -070071 /*border: 1px dashed red;*/
Simon Hunt0b05d4a2014-10-21 21:50:15 -070072}
73
74
75/*
76 * Network Graph elements ======================================
77 */
78
Simon Hunt2c9e0c22014-10-23 15:12:58 -070079svg .link {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070080 fill: none;
81 stroke: #666;
Simon Huntd35961b2014-10-28 08:49:48 -070082 stroke-width: 2.0px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070083 opacity: .7;
84 /*marker-end: url(#end);*/
85
86 transition: opacity 250ms;
87 -webkit-transition: opacity 250ms;
88 -moz-transition: opacity 250ms;
89}
90
Simon Hunt6f376a32014-10-28 12:38:30 -070091svg .link.host {
92 stroke: #6a6;
93 stroke-dasharray: 3,3;
94}
95
96svg .node.device rect {
Simon Huntf967d512014-10-28 20:34:29 -070097 stroke-width: 3.0px;
98 stroke: white;
99 stroke-dasharray: 2,2;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700100
101 transition: opacity 250ms;
102 -webkit-transition: opacity 250ms;
103 -moz-transition: opacity 250ms;
104}
105
Simon Huntf967d512014-10-28 20:34:29 -0700106svg .node.device.fixed rect {
107 stroke-width: 0;
108}
109
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700110svg .node.device.roadm rect {
111 fill: #229;
112}
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700113
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700114svg .node.device.switch rect {
115 fill: #55f;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700116}
117
Simon Hunt6f376a32014-10-28 12:38:30 -0700118svg .node.host circle {
119 fill: #898;
120 stroke: #000;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700121}
122
123svg .node text {
124 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700125 font: 10px sans-serif;
126 pointer-events: none;
127}
128
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700129/* for debugging */
130svg .node circle.debug {
131 fill: white;
132 stroke: red;
133}
134svg .node rect.debug {
135 fill: yellow;
136 stroke: red;
137 opacity: 0.35;
138}
139
140
Simon Hunt9a16c822014-10-28 16:09:19 -0700141svg .node.selected rect,
142svg .node.selected circle {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700143 filter: url(#blue-glow);
144}
145
Simon Hunt3ab76a82014-10-22 13:07:32 -0700146svg .link.inactive,
147svg .node.inactive rect,
Simon Hunt6f376a32014-10-28 12:38:30 -0700148svg .node.inactive circle,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700149svg .node.inactive text,
150svg .node.inactive image {
Simon Huntf967d512014-10-28 20:34:29 -0700151 opacity: .05;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700152}
153
Simon Hunt3ab76a82014-10-22 13:07:32 -0700154svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700155svg .node.inactive.selected text,
156svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700157 opacity: .6;
158}
159
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700160/*
161 * === currently unused ===============================================
162 */
163
164svg marker#end {
165 fill: #666;
166 stroke: #666;
167 stroke-width: 1.5px;
168}
169
Simon Hunt3ab76a82014-10-22 13:07:32 -0700170svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700171 position: fixed;
172}
173
Simon Hunt3ab76a82014-10-22 13:07:32 -0700174svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700175 stroke-width: 1px;
176}
177
Simon Hunt3ab76a82014-10-22 13:07:32 -0700178svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700179 fill: #000;
180 font: 10px sans-serif;
181 pointer-events: none;
182}
183
184/*
185 * =============================================================
186 */
187
188/*
189 * Specific structural elements
190 */
191
Simon Huntcc267562014-10-29 10:22:17 -0700192/* This is to ensure that the body does not expand to account for the
193 flyout details pane, that is positioned "off screen".
194 */
195body {
196 overflow: hidden;
197}
198
Simon Hunt6f376a32014-10-28 12:38:30 -0700199#mast {
200 height: 36px;
201 padding: 4px;
202 background-color: #ccc;
203 vertical-align: baseline;
204}
205
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700206#frame {
207 width: 100%;
208 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700209 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700210}
211
Simon Hunt6f376a32014-10-28 12:38:30 -0700212#flyout {
Simon Hunt6f376a32014-10-28 12:38:30 -0700213 position: absolute;
214 z-index: 100;
Simon Huntc586e212014-10-28 21:24:08 -0700215 display: block;
216 top: 10%;
217 width: 300px;
218 height: 80%;
219 right: -320px;
220 opacity: 0;
221 background-color: rgba(0,0,0,0.5);
222 padding: 10px;
223 color: white;
Simon Huntcc267562014-10-29 10:22:17 -0700224 font-size: 10pt;
Simon Huntc586e212014-10-28 21:24:08 -0700225}
226
227#flyout h2 {
228 margin: 8px 4px;
229 color: yellow;
230}
231
Simon Huntcc267562014-10-29 10:22:17 -0700232#flyout p, table {
Simon Huntc586e212014-10-28 21:24:08 -0700233 margin: 4px 4px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700234}
235
Simon Huntcc267562014-10-29 10:22:17 -0700236#flyout td.label {
237 font-style: italic;
238 color: #ccf;
239 padding-right: 12px;
240}
241
242#flyout td.value {
243
244}
245