blob: 7f387eb498d51896fb2954f6a7eb60e412e04725 [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 Hunt19cb0982014-10-23 16:44:49 -070016 color: #37b;
17 font-size: 14pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070018 font-style: italic;
Simon Hunt19cb0982014-10-23 16:44:49 -070019 vertical-align: 10px;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070020}
21
22span.radio {
23 color: darkslateblue;
Simon Hunt19cb0982014-10-23 16:44:49 -070024 font-size: 10pt;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070025}
26
27span.right {
28 float: right;
29}
30
31/*
32 * === DEBUGGING ======
33 */
34svg {
Simon Hunt3ab76a82014-10-22 13:07:32 -070035 /*border: 1px dashed red;*/
Simon Hunt0b05d4a2014-10-21 21:50:15 -070036}
37
38
39/*
40 * Network Graph elements ======================================
41 */
42
Simon Hunt2c9e0c22014-10-23 15:12:58 -070043svg .link {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070044 fill: none;
45 stroke: #666;
46 stroke-width: 1.5px;
47 opacity: .7;
48 /*marker-end: url(#end);*/
49
50 transition: opacity 250ms;
51 -webkit-transition: opacity 250ms;
52 -moz-transition: opacity 250ms;
53}
54
55marker#end {
56 fill: #666;
57 stroke: #666;
58 stroke-width: 1.5px;
59}
60
Simon Hunt2c9e0c22014-10-23 15:12:58 -070061svg .node rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070062 stroke-width: 1.5px;
63
64 transition: opacity 250ms;
65 -webkit-transition: opacity 250ms;
66 -moz-transition: opacity 250ms;
67}
68
Simon Hunt2c9e0c22014-10-23 15:12:58 -070069svg .node.device.roadm rect {
70 fill: #229;
71}
72svg .node.device.switch rect {
73 fill: #55f;
Simon Hunt3ab76a82014-10-22 13:07:32 -070074}
75
Simon Hunt2c9e0c22014-10-23 15:12:58 -070076svg .node.host rect {
77 fill: #787;
Simon Hunt3ab76a82014-10-22 13:07:32 -070078}
79
80svg .node text {
81 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070082 font: 10px sans-serif;
83 pointer-events: none;
84}
85
Simon Hunt3ab76a82014-10-22 13:07:32 -070086svg .node.selected rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070087 filter: url(#blue-glow);
88}
89
Simon Hunt3ab76a82014-10-22 13:07:32 -070090svg .link.inactive,
91svg .node.inactive rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -070092svg .node.inactive text,
93svg .node.inactive image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070094 opacity: .2;
95}
96
Simon Hunt3ab76a82014-10-22 13:07:32 -070097svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -070098svg .node.inactive.selected text,
99svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700100 opacity: .6;
101}
102
Simon Hunt3ab76a82014-10-22 13:07:32 -0700103svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700104 position: fixed;
105}
106
Simon Hunt3ab76a82014-10-22 13:07:32 -0700107svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700108 stroke-width: 1px;
109}
110
Simon Hunt3ab76a82014-10-22 13:07:32 -0700111svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700112 fill: #000;
113 font: 10px sans-serif;
114 pointer-events: none;
115}
116
117/*
118 * =============================================================
119 */
120
121/*
122 * Specific structural elements
123 */
124
125#frame {
126 width: 100%;
127 height: 100%;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700128 background-color: #fff;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700129}
130
131#mast {
Simon Hunt19cb0982014-10-23 16:44:49 -0700132 height: 36px;
133 padding: 4px;
Simon Hunt2c9e0c22014-10-23 15:12:58 -0700134 background-color: #ccc;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700135 vertical-align: baseline;
136}
137