blob: 3aade2cbafa90db2f7d23886e9dbe0e138f17138 [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 Hunt0b05d4a2014-10-21 21:50:15 -070097 stroke-width: 1.5px;
98
99 transition: opacity 250ms;
100 -webkit-transition: opacity 250ms;
101 -moz-transition: opacity 250ms;
102}
103
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700104svg .node.device.roadm rect {
105 fill: #229;
106}
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700107
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700108svg .node.device.switch rect {
109 fill: #55f;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700110}
111
Simon Hunt6f376a32014-10-28 12:38:30 -0700112svg .node.host circle {
113 fill: #898;
114 stroke: #000;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700115}
116
117svg .node text {
118 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700119 font: 10px sans-serif;
120 pointer-events: none;
121}
122
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700123/* for debugging */
124svg .node circle.debug {
125 fill: white;
126 stroke: red;
127}
128svg .node rect.debug {
129 fill: yellow;
130 stroke: red;
131 opacity: 0.35;
132}
133
134
Simon Hunt9a16c822014-10-28 16:09:19 -0700135svg .node.selected rect,
136svg .node.selected circle {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700137 filter: url(#blue-glow);
138}
139
Simon Hunt3ab76a82014-10-22 13:07:32 -0700140svg .link.inactive,
141svg .node.inactive rect,
Simon Hunt6f376a32014-10-28 12:38:30 -0700142svg .node.inactive circle,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700143svg .node.inactive text,
144svg .node.inactive image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700145 opacity: .2;
146}
147
Simon Hunt3ab76a82014-10-22 13:07:32 -0700148svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700149svg .node.inactive.selected text,
150svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700151 opacity: .6;
152}
153
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700154/*
155 * === currently unused ===============================================
156 */
157
158svg marker#end {
159 fill: #666;
160 stroke: #666;
161 stroke-width: 1.5px;
162}
163
Simon Hunt3ab76a82014-10-22 13:07:32 -0700164svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700165 position: fixed;
166}
167
Simon Hunt3ab76a82014-10-22 13:07:32 -0700168svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700169 stroke-width: 1px;
170}
171
Simon Hunt3ab76a82014-10-22 13:07:32 -0700172svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700173 fill: #000;
174 font: 10px sans-serif;
175 pointer-events: none;
176}
177
178/*
179 * =============================================================
180 */
181
182/*
183 * Specific structural elements
184 */
185
Simon Hunt6f376a32014-10-28 12:38:30 -0700186#mast {
187 height: 36px;
188 padding: 4px;
189 background-color: #ccc;
190 vertical-align: baseline;
191}
192
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700193#frame {
194 width: 100%;
195 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700196 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700197}
198
Simon Hunt6f376a32014-10-28 12:38:30 -0700199#flyout {
200 width: 300px;
201 height: 80%;
202 top: 10%;
203 right: 2%;
204 background-color: rgba(0,0,0,0.5);
205
206 position: absolute;
207 z-index: 100;
208 display: none;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700209}
210