Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 1 | /* |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 2 | * Copyright 2014 Open Networking Laboratory |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 3 | * |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 7 | * |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | /* |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 18 | ONOS CSS file |
| 19 | |
| 20 | @author Simon Hunt |
| 21 | */ |
| 22 | |
| 23 | body, html { |
| 24 | height: 100%; |
| 25 | } |
| 26 | |
| 27 | /* |
| 28 | * Classes |
| 29 | */ |
| 30 | |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 31 | img#logo { |
| 32 | height: 38px; |
| 33 | padding-left: 8px; |
| 34 | padding-right: 8px; |
| 35 | } |
| 36 | |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 37 | span.title { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 38 | color: #369; |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 39 | font-size: 14pt; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 40 | font-style: italic; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 41 | vertical-align: 12px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | span.radio { |
| 45 | color: darkslateblue; |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 46 | font-size: 10pt; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | span.right { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 50 | padding-top: 8px; |
| 51 | padding-right: 16px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 52 | float: right; |
| 53 | } |
| 54 | |
| 55 | /* |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 56 | * Radio Buttons |
| 57 | */ |
| 58 | |
| 59 | span.radio { |
| 60 | margin: 4px 0; |
| 61 | border: 1px dotted #222; |
| 62 | padding: 1px 6px; |
| 63 | color: #eee; |
| 64 | cursor: pointer; |
| 65 | } |
| 66 | |
| 67 | span.radio.active { |
| 68 | background-color: #bbb; |
| 69 | border: 1px solid #eee; |
| 70 | padding: 1px 6px; |
| 71 | color: #666; |
| 72 | font-weight: bold; |
| 73 | } |
| 74 | |
| 75 | /* |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 76 | * === DEBUGGING ====== |
| 77 | */ |
| 78 | svg { |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 79 | /*border: 1px dashed red;*/ |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 80 | } |
| 81 | |
Thomas Vachuska | 8cd66a5 | 2014-10-30 11:53:07 -0700 | [diff] [blame] | 82 | svg #bg { |
| 83 | opacity: 0.5; |
| 84 | } |
| 85 | |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 86 | |
| 87 | /* |
| 88 | * Network Graph elements ====================================== |
| 89 | */ |
| 90 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 91 | svg .link { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 92 | fill: none; |
| 93 | stroke: #666; |
Simon Hunt | d35961b | 2014-10-28 08:49:48 -0700 | [diff] [blame] | 94 | stroke-width: 2.0px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 95 | opacity: .7; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 96 | |
| 97 | transition: opacity 250ms; |
| 98 | -webkit-transition: opacity 250ms; |
| 99 | -moz-transition: opacity 250ms; |
| 100 | } |
| 101 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 102 | svg .link.host { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 103 | stroke: #666; |
| 104 | stroke-width: 1px; |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 105 | } |
| 106 | |
Simon Hunt | 69a8d21 | 2014-10-30 17:57:35 -0700 | [diff] [blame] | 107 | svg g.portLayer rect.port { |
Thomas Vachuska | 5f99849 | 2014-10-31 00:46:11 -0700 | [diff] [blame] | 108 | fill: #ccc; |
Simon Hunt | 69a8d21 | 2014-10-30 17:57:35 -0700 | [diff] [blame] | 109 | } |
| 110 | |
Simon Hunt | 3c29c14 | 2014-10-30 21:31:44 -0700 | [diff] [blame] | 111 | svg g.portLayer text { |
Thomas Vachuska | 5f99849 | 2014-10-31 00:46:11 -0700 | [diff] [blame] | 112 | font: 8pt sans-serif; |
Simon Hunt | 3c29c14 | 2014-10-30 21:31:44 -0700 | [diff] [blame] | 113 | pointer-events: none; |
| 114 | } |
| 115 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 116 | svg .node.device rect { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 117 | stroke-width: 1.5px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 118 | |
| 119 | transition: opacity 250ms; |
| 120 | -webkit-transition: opacity 250ms; |
| 121 | -moz-transition: opacity 250ms; |
| 122 | } |
| 123 | |
Simon Hunt | f967d51 | 2014-10-28 20:34:29 -0700 | [diff] [blame] | 124 | svg .node.device.fixed rect { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 125 | stroke-width: 1.5; |
| 126 | stroke: #ccc; |
Simon Hunt | f967d51 | 2014-10-28 20:34:29 -0700 | [diff] [blame] | 127 | } |
| 128 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 129 | svg .node.device.roadm rect { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 130 | fill: #03c; |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 131 | } |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 132 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 133 | svg .node.device.switch rect { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 134 | fill: #06f; |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 135 | } |
| 136 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 137 | svg .node.host circle { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 138 | fill: #c96; |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 139 | stroke: #000; |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | svg .node text { |
| 143 | fill: white; |
Thomas Vachuska | 5f99849 | 2014-10-31 00:46:11 -0700 | [diff] [blame] | 144 | font: 10pt sans-serif; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 145 | pointer-events: none; |
| 146 | } |
| 147 | |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 148 | /* for debugging */ |
| 149 | svg .node circle.debug { |
| 150 | fill: white; |
| 151 | stroke: red; |
| 152 | } |
| 153 | svg .node rect.debug { |
| 154 | fill: yellow; |
| 155 | stroke: red; |
| 156 | opacity: 0.35; |
| 157 | } |
| 158 | |
| 159 | |
Simon Hunt | 9a16c82 | 2014-10-28 16:09:19 -0700 | [diff] [blame] | 160 | svg .node.selected rect, |
| 161 | svg .node.selected circle { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 162 | filter: url(#blue-glow); |
| 163 | } |
| 164 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 165 | svg .link.inactive, |
Simon Hunt | ac52575 | 2014-10-31 08:38:21 -0700 | [diff] [blame] | 166 | svg .port.inactive, |
| 167 | svg .portText.inactive, |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 168 | svg .node.inactive rect, |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 169 | svg .node.inactive circle, |
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 170 | svg .node.inactive text, |
| 171 | svg .node.inactive image { |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 172 | opacity: .1; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 173 | } |
| 174 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 175 | svg .node.inactive.selected rect, |
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 176 | svg .node.inactive.selected text, |
| 177 | svg .node.inactive.selected image { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 178 | opacity: .6; |
| 179 | } |
| 180 | |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 181 | /* |
| 182 | * === currently unused =============================================== |
| 183 | */ |
| 184 | |
| 185 | svg marker#end { |
| 186 | fill: #666; |
| 187 | stroke: #666; |
| 188 | stroke-width: 1.5px; |
| 189 | } |
| 190 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 191 | svg .legend { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 192 | position: fixed; |
| 193 | } |
| 194 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 195 | svg .legend .category rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 196 | stroke-width: 1px; |
| 197 | } |
| 198 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 199 | svg .legend .category text { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 200 | fill: #000; |
| 201 | font: 10px sans-serif; |
| 202 | pointer-events: none; |
| 203 | } |
| 204 | |
| 205 | /* |
| 206 | * ============================================================= |
| 207 | */ |
| 208 | |
| 209 | /* |
| 210 | * Specific structural elements |
| 211 | */ |
| 212 | |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 213 | /* This is to ensure that the body does not expand to account for the |
| 214 | flyout details pane, that is positioned "off screen". |
| 215 | */ |
| 216 | body { |
| 217 | overflow: hidden; |
| 218 | } |
| 219 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 220 | #mast { |
| 221 | height: 36px; |
| 222 | padding: 4px; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 223 | background-color: #bbb; |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 224 | vertical-align: baseline; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 225 | box-shadow: 0px 2px 8px #777; |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 226 | } |
| 227 | |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 228 | #frame { |
| 229 | width: 100%; |
| 230 | height: 100%; |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 231 | background-color: #fff; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 232 | } |
| 233 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 234 | #flyout { |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 235 | position: absolute; |
| 236 | z-index: 100; |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 237 | display: block; |
| 238 | top: 10%; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 239 | width: 280px; |
| 240 | right: -300px; |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 241 | opacity: 0; |
Thomas Vachuska | 8cd66a5 | 2014-10-30 11:53:07 -0700 | [diff] [blame] | 242 | background-color: rgba(255,255,255,0.8); |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 243 | |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 244 | padding: 10px; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 245 | color: black; |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 246 | font-size: 10pt; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 247 | box-shadow: 2px 2px 16px #777; |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 248 | } |
| 249 | |
| 250 | #flyout h2 { |
| 251 | margin: 8px 4px; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 252 | color: black; |
| 253 | vertical-align: middle; |
| 254 | } |
| 255 | |
| 256 | #flyout h2 img { |
| 257 | height: 32px; |
| 258 | padding-right: 8px; |
| 259 | vertical-align: middle; |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 260 | } |
| 261 | |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 262 | #flyout p, table { |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 263 | margin: 4px 4px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 264 | } |
| 265 | |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 266 | #flyout td.label { |
| 267 | font-style: italic; |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 268 | color: #777; |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 269 | padding-right: 12px; |
| 270 | } |
| 271 | |
| 272 | #flyout td.value { |
| 273 | |
| 274 | } |
| 275 | |
Thomas Vachuska | 1de6601 | 2014-10-30 03:03:30 -0700 | [diff] [blame] | 276 | #flyout hr { |
| 277 | height: 1px; |
| 278 | color: #ccc; |
| 279 | background-color: #ccc; |
| 280 | border: 0; |
| 281 | } |
| 282 | |