blob: 5cd75e6ff2783bee3f39fe7e2f505838f8297cfc [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 Hunt2c9e0c22014-10-23 15:12:58 -070091svg .node rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070092 stroke-width: 1.5px;
93
94 transition: opacity 250ms;
95 -webkit-transition: opacity 250ms;
96 -moz-transition: opacity 250ms;
97}
98
Simon Hunt2c9e0c22014-10-23 15:12:58 -070099svg .node.device.roadm rect {
100 fill: #229;
101}
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700102
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700103svg .node.device.switch rect {
104 fill: #55f;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700105}
106
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700107svg .node.host rect {
108 fill: #787;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700109}
110
111svg .node text {
112 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700113 font: 10px sans-serif;
114 pointer-events: none;
115}
116
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700117/* for debugging */
118svg .node circle.debug {
119 fill: white;
120 stroke: red;
121}
122svg .node rect.debug {
123 fill: yellow;
124 stroke: red;
125 opacity: 0.35;
126}
127
128
Simon Hunt3ab76a82014-10-22 13:07:32 -0700129svg .node.selected rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700130 filter: url(#blue-glow);
131}
132
Simon Hunt3ab76a82014-10-22 13:07:32 -0700133svg .link.inactive,
134svg .node.inactive rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700135svg .node.inactive text,
136svg .node.inactive image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700137 opacity: .2;
138}
139
Simon Hunt3ab76a82014-10-22 13:07:32 -0700140svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700141svg .node.inactive.selected text,
142svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700143 opacity: .6;
144}
145
Simon Hunt5cd0e8f2014-10-27 16:18:40 -0700146/*
147 * === currently unused ===============================================
148 */
149
150svg marker#end {
151 fill: #666;
152 stroke: #666;
153 stroke-width: 1.5px;
154}
155
Simon Hunt3ab76a82014-10-22 13:07:32 -0700156svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700157 position: fixed;
158}
159
Simon Hunt3ab76a82014-10-22 13:07:32 -0700160svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700161 stroke-width: 1px;
162}
163
Simon Hunt3ab76a82014-10-22 13:07:32 -0700164svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700165 fill: #000;
166 font: 10px sans-serif;
167 pointer-events: none;
168}
169
170/*
171 * =============================================================
172 */
173
174/*
175 * Specific structural elements
176 */
177
178#frame {
179 width: 100%;
180 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700181 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700182}
183
184#mast {
Simon Hunt19cb0982014-10-23 16:44:49 -0700185 height: 36px;
186 padding: 4px;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700187 background-color: #ccc;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700188 vertical-align: baseline;
189}
190