Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 1 | /* |
2 | ONOS CSS file | ||||
3 | |||||
4 | @author Simon Hunt | ||||
5 | */ | ||||
6 | |||||
7 | body, html { | ||||
8 | height: 100%; | ||||
9 | } | ||||
10 | |||||
11 | /* | ||||
12 | * Classes | ||||
13 | */ | ||||
14 | |||||
15 | span.title { | ||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 16 | color: darkblue; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 17 | font-size: 16pt; |
18 | font-style: italic; | ||||
19 | } | ||||
20 | |||||
21 | span.radio { | ||||
22 | color: darkslateblue; | ||||
23 | } | ||||
24 | |||||
25 | span.right { | ||||
26 | float: right; | ||||
27 | } | ||||
28 | |||||
29 | /* | ||||
30 | * === DEBUGGING ====== | ||||
31 | */ | ||||
32 | svg { | ||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 33 | /*border: 1px dashed red;*/ |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 34 | } |
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 | |||||
53 | marker#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 Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 67 | /*differentiate between packet and optical nodes*/ |
68 | svg .node.pkt rect { | ||||
69 | fill: #77a; | ||||
70 | } | ||||
71 | |||||
72 | svg .node.opt rect { | ||||
73 | fill: #7a7; | ||||
74 | } | ||||
75 | |||||
76 | svg .node text { | ||||
77 | fill: white; | ||||
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 78 | font: 10px sans-serif; |
79 | pointer-events: none; | ||||
80 | } | ||||
81 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 82 | svg .node.selected rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 83 | filter: url(#blue-glow); |
84 | } | ||||
85 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 86 | svg .link.inactive, |
87 | svg .node.inactive rect, | ||||
88 | svg .node.inactive text { | ||||
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 89 | opacity: .2; |
90 | } | ||||
91 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 92 | svg .node.inactive.selected rect, |
93 | svg .node.inactive.selected text { | ||||
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 94 | opacity: .6; |
95 | } | ||||
96 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 97 | svg .legend { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 98 | position: fixed; |
99 | } | ||||
100 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 101 | svg .legend .category rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 102 | stroke-width: 1px; |
103 | } | ||||
104 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 105 | svg .legend .category text { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 106 | fill: #000; |
107 | font: 10px sans-serif; | ||||
108 | pointer-events: none; | ||||
109 | } | ||||
110 | |||||
111 | /* | ||||
112 | * ============================================================= | ||||
113 | */ | ||||
114 | |||||
115 | /* | ||||
116 | * Specific structural elements | ||||
117 | */ | ||||
118 | |||||
119 | #frame { | ||||
120 | width: 100%; | ||||
121 | height: 100%; | ||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 122 | background-color: #cdf; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 123 | } |
124 | |||||
125 | #mast { | ||||
126 | height: 32px; | ||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 127 | background-color: #abe; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 128 | vertical-align: baseline; |
129 | } | ||||
130 | |||||
131 | #main { | ||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 132 | background-color: #99c; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 133 | } |