blob: baa00a34c8c6bde9c1bb9c9fcc484bb4188861ec [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 Hunt3ab76a82014-10-22 13:07:32 -0700135svg .node.selected rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700136 filter: url(#blue-glow);
137}
138
Simon Hunt3ab76a82014-10-22 13:07:32 -0700139svg .link.inactive,
140svg .node.inactive rect,
Simon Hunt6f376a32014-10-28 12:38:30 -0700141svg .node.inactive circle,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700142svg .node.inactive text,
143svg .node.inactive image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700144 opacity: .2;
145}
146
Simon Hunt3ab76a82014-10-22 13:07:32 -0700147svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700148svg .node.inactive.selected text,
149svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700150 opacity: .6;
151}
152
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700153/*
154 * === currently unused ===============================================
155 */
156
157svg marker#end {
158 fill: #666;
159 stroke: #666;
160 stroke-width: 1.5px;
161}
162
Simon Hunt3ab76a82014-10-22 13:07:32 -0700163svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700164 position: fixed;
165}
166
Simon Hunt3ab76a82014-10-22 13:07:32 -0700167svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700168 stroke-width: 1px;
169}
170
Simon Hunt3ab76a82014-10-22 13:07:32 -0700171svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700172 fill: #000;
173 font: 10px sans-serif;
174 pointer-events: none;
175}
176
177/*
178 * =============================================================
179 */
180
181/*
182 * Specific structural elements
183 */
184
Simon Hunt6f376a32014-10-28 12:38:30 -0700185#mast {
186 height: 36px;
187 padding: 4px;
188 background-color: #ccc;
189 vertical-align: baseline;
190}
191
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700192#frame {
193 width: 100%;
194 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700195 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700196}
197
Simon Hunt6f376a32014-10-28 12:38:30 -0700198#flyout {
199 width: 300px;
200 height: 80%;
201 top: 10%;
202 right: 2%;
203 background-color: rgba(0,0,0,0.5);
204
205 position: absolute;
206 z-index: 100;
207 display: none;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700208}
209