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, | ||||
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 88 | svg .node.inactive text, |
89 | svg .node.inactive image { | ||||
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 90 | opacity: .2; |
91 | } | ||||
92 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 93 | svg .node.inactive.selected rect, |
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 94 | svg .node.inactive.selected text, |
95 | svg .node.inactive.selected image { | ||||
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 96 | opacity: .6; |
97 | } | ||||
98 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 99 | svg .legend { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 100 | position: fixed; |
101 | } | ||||
102 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 103 | svg .legend .category rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 104 | stroke-width: 1px; |
105 | } | ||||
106 | |||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 107 | svg .legend .category text { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 108 | 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 Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 124 | background-color: #cdf; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 125 | } |
126 | |||||
127 | #mast { | ||||
128 | height: 32px; | ||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 129 | background-color: #abe; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 130 | vertical-align: baseline; |
131 | } | ||||
132 | |||||
133 | #main { | ||||
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 134 | background-color: #99c; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 135 | } |