blob: 5db427181d852874d7a09c663ff033109c10bda3 [file] [log] [blame]
Simon Hunt0b05d4a2014-10-21 21:50:15 -07001/*
Thomas Vachuska781d18b2014-10-27 10:31:25 -07002 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20/*
Simon Hunt0b05d4a2014-10-21 21:50:15 -070021 ONOS CSS file
22
23 @author Simon Hunt
24 */
25
26body, html {
27 height: 100%;
28}
29
30/*
31 * Classes
32 */
33
34span.title {
Simon Hunt19cb0982014-10-23 16:44:49 -070035 color: #37b;
36 font-size: 14pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070037 font-style: italic;
Simon Hunt19cb0982014-10-23 16:44:49 -070038 vertical-align: 10px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070039}
40
41span.radio {
42 color: darkslateblue;
Simon Hunt19cb0982014-10-23 16:44:49 -070043 font-size: 10pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070044}
45
46span.right {
47 float: right;
48}
49
50/*
51 * === DEBUGGING ======
52 */
53svg {
Simon Hunt3ab76a82014-10-22 13:07:32 -070054 /*border: 1px dashed red;*/
Simon Hunt0b05d4a2014-10-21 21:50:15 -070055}
56
57
58/*
59 * Network Graph elements ======================================
60 */
61
Simon Hunt2c9e0c22014-10-23 15:12:58 -070062svg .link {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070063 fill: none;
64 stroke: #666;
65 stroke-width: 1.5px;
66 opacity: .7;
67 /*marker-end: url(#end);*/
68
69 transition: opacity 250ms;
70 -webkit-transition: opacity 250ms;
71 -moz-transition: opacity 250ms;
72}
73
74marker#end {
75 fill: #666;
76 stroke: #666;
77 stroke-width: 1.5px;
78}
79
Simon Hunt2c9e0c22014-10-23 15:12:58 -070080svg .node rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070081 stroke-width: 1.5px;
82
83 transition: opacity 250ms;
84 -webkit-transition: opacity 250ms;
85 -moz-transition: opacity 250ms;
86}
87
Simon Hunt2c9e0c22014-10-23 15:12:58 -070088svg .node.device.roadm rect {
89 fill: #229;
90}
91svg .node.device.switch rect {
92 fill: #55f;
Simon Hunt3ab76a82014-10-22 13:07:32 -070093}
94
Simon Hunt2c9e0c22014-10-23 15:12:58 -070095svg .node.host rect {
96 fill: #787;
Simon Hunt3ab76a82014-10-22 13:07:32 -070097}
98
99svg .node text {
100 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700101 font: 10px sans-serif;
102 pointer-events: none;
103}
104
Simon Hunt3ab76a82014-10-22 13:07:32 -0700105svg .node.selected rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700106 filter: url(#blue-glow);
107}
108
Simon Hunt3ab76a82014-10-22 13:07:32 -0700109svg .link.inactive,
110svg .node.inactive rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700111svg .node.inactive text,
112svg .node.inactive image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700113 opacity: .2;
114}
115
Simon Hunt3ab76a82014-10-22 13:07:32 -0700116svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -0700117svg .node.inactive.selected text,
118svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700119 opacity: .6;
120}
121
Simon Hunt3ab76a82014-10-22 13:07:32 -0700122svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700123 position: fixed;
124}
125
Simon Hunt3ab76a82014-10-22 13:07:32 -0700126svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700127 stroke-width: 1px;
128}
129
Simon Hunt3ab76a82014-10-22 13:07:32 -0700130svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700131 fill: #000;
132 font: 10px sans-serif;
133 pointer-events: none;
134}
135
136/*
137 * =============================================================
138 */
139
140/*
141 * Specific structural elements
142 */
143
144#frame {
145 width: 100%;
146 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700147 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700148}
149
150#mast {
Simon Hunt19cb0982014-10-23 16:44:49 -0700151 height: 36px;
152 padding: 4px;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700153 background-color: #ccc;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700154 vertical-align: baseline;
155}
156