blob: 340ae79f030a7fe2e00a10eb5983773a38d7e704 [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
41.link {
42 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
59.node rect {
60 stroke-width: 1.5px;
61
62 transition: opacity 250ms;
63 -webkit-transition: opacity 250ms;
64 -moz-transition: opacity 250ms;
65}
66
Simon Hunt3ab76a82014-10-22 13:07:32 -070067/*differentiate between packet and optical nodes*/
68svg .node.pkt rect {
69 fill: #77a;
70}
71
72svg .node.opt rect {
73 fill: #7a7;
74}
75
76svg .node text {
77 fill: white;
Simon Hunt0b05d4a2014-10-21 21:50:15 -070078 font: 10px sans-serif;
79 pointer-events: none;
80}
81
Simon Hunt3ab76a82014-10-22 13:07:32 -070082svg .node.selected rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070083 filter: url(#blue-glow);
84}
85
Simon Hunt3ab76a82014-10-22 13:07:32 -070086svg .link.inactive,
87svg .node.inactive rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -070088svg .node.inactive text,
89svg .node.inactive image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070090 opacity: .2;
91}
92
Simon Hunt3ab76a82014-10-22 13:07:32 -070093svg .node.inactive.selected rect,
Simon Hunt1c5f8b62014-10-22 14:43:01 -070094svg .node.inactive.selected text,
95svg .node.inactive.selected image {
Simon Hunt0b05d4a2014-10-21 21:50:15 -070096 opacity: .6;
97}
98
Simon Hunt3ab76a82014-10-22 13:07:32 -070099svg .legend {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700100 position: fixed;
101}
102
Simon Hunt3ab76a82014-10-22 13:07:32 -0700103svg .legend .category rect {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700104 stroke-width: 1px;
105}
106
Simon Hunt3ab76a82014-10-22 13:07:32 -0700107svg .legend .category text {
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700108 fill: #000;
109 font: 10px sans-serif;
110 pointer-events: none;
111}
112
113/*
114 * =============================================================
115 */
116
117/*
118 * Specific structural elements
119 */
120
121#frame {
122 width: 100%;
123 height: 100%;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700124 background-color: #cdf;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700125}
126
127#mast {
128 height: 32px;
Simon Hunt3ab76a82014-10-22 13:07:32 -0700129 background-color: #abe;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700130 vertical-align: baseline;
131}
132
133#main {
Simon Hunt3ab76a82014-10-22 13:07:32 -0700134 background-color: #99c;
Simon Hunt0b05d4a2014-10-21 21:50:15 -0700135}