blob: b2df75cfc4cfd33b8b1517b5dc2442740fed8a3d [file] [log] [blame]
Simon Hunt0b05d4a2014-10-21 21:50:15 -07001/*
2 ONOS CSS file
3
4 @author Simon Hunt
5 */
6
7body, html {
8 height: 100%;
9}
10
11/*
12 * Classes
13 */
14
15span.title {
Simon Hunt3ab76a82014-10-22 13:07:32 -070016 color: darkblue;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070017 font-size: 16pt;
18 font-style: italic;
19}
20
21span.radio {
22 color: darkslateblue;
23}
24
25span.right {
26 float: right;
27}
28
29/*
30 * === DEBUGGING ======
31 */
32svg {
Simon Hunt3ab76a82014-10-22 13:07:32 -070033 /*border: 1px dashed red;*/
Simon Hunt0b05d4a2014-10-21 21:50:15 -070034}
35
36
37/*
38 * Network Graph elements ======================================
39 */
40
Simon Hunt2c9e0c22014-10-23 15:12:58 -070041svg .link {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070042 fill: none;
43 stroke: #666;
44 stroke-width: 1.5px;
45 opacity: .7;
46 /*marker-end: url(#end);*/
47
48 transition: opacity 250ms;
49 -webkit-transition: opacity 250ms;
50 -moz-transition: opacity 250ms;
51}
52
53marker#end {
54 fill: #666;
55 stroke: #666;
56 stroke-width: 1.5px;
57}
58
Simon Hunt2c9e0c22014-10-23 15:12:58 -070059svg .node rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070060 stroke-width: 1.5px;
61
62 transition: opacity 250ms;
63 -webkit-transition: opacity 250ms;
64 -moz-transition: opacity 250ms;
65}
66
Simon Hunt2c9e0c22014-10-23 15:12:58 -070067svg .node.device.roadm rect {
68 fill: #229;
69}
70svg .node.device.switch rect {
71 fill: #55f;
Simon Hunt3ab76a82014-10-22 13:07:32 -070072}
73
Simon Hunt2c9e0c22014-10-23 15:12:58 -070074svg .node.host rect {
75 fill: #787;
Simon Hunt3ab76a82014-10-22 13:07:32 -070076}
77
78svg .node text {
79 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070080 font: 10px sans-serif;
81 pointer-events: none;
82}
83
Simon Hunt3ab76a82014-10-22 13:07:32 -070084svg .node.selected rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070085 filter: url(#blue-glow);
86}
87
Simon Hunt3ab76a82014-10-22 13:07:32 -070088svg .link.inactive,
89svg .node.inactive rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -070090svg .node.inactive text,
91svg .node.inactive image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070092 opacity: .2;
93}
94
Simon Hunt3ab76a82014-10-22 13:07:32 -070095svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -070096svg .node.inactive.selected text,
97svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070098 opacity: .6;
99}
100
Simon Hunt3ab76a82014-10-22 13:07:32 -0700101svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700102 position: fixed;
103}
104
Simon Hunt3ab76a82014-10-22 13:07:32 -0700105svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700106 stroke-width: 1px;
107}
108
Simon Hunt3ab76a82014-10-22 13:07:32 -0700109svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700110 fill: #000;
111 font: 10px sans-serif;
112 pointer-events: none;
113}
114
115/*
116 * =============================================================
117 */
118
119/*
120 * Specific structural elements
121 */
122
123#frame {
124 width: 100%;
125 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700126 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700127}
128
129#mast {
130 height: 32px;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700131 padding: 6px;
132 background-color: #ccc;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700133 vertical-align: baseline;
134}
135