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 | |
| 31 | span.title { |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 32 | color: #37b; |
| 33 | font-size: 14pt; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 34 | font-style: italic; |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 35 | vertical-align: 10px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | span.radio { |
| 39 | color: darkslateblue; |
Simon Hunt | 19cb098 | 2014-10-23 16:44:49 -0700 | [diff] [blame] | 40 | font-size: 10pt; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | span.right { |
| 44 | float: right; |
| 45 | } |
| 46 | |
| 47 | /* |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 48 | * Radio Buttons |
| 49 | */ |
| 50 | |
| 51 | span.radio { |
| 52 | margin: 4px 0; |
| 53 | border: 1px dotted #222; |
| 54 | padding: 1px 6px; |
| 55 | color: #eee; |
| 56 | cursor: pointer; |
| 57 | } |
| 58 | |
| 59 | span.radio.active { |
| 60 | background-color: #bbb; |
| 61 | border: 1px solid #eee; |
| 62 | padding: 1px 6px; |
| 63 | color: #666; |
| 64 | font-weight: bold; |
| 65 | } |
| 66 | |
| 67 | /* |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 68 | * === DEBUGGING ====== |
| 69 | */ |
| 70 | svg { |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 71 | /*border: 1px dashed red;*/ |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | |
| 75 | /* |
| 76 | * Network Graph elements ====================================== |
| 77 | */ |
| 78 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 79 | svg .link { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 80 | fill: none; |
| 81 | stroke: #666; |
Simon Hunt | d35961b | 2014-10-28 08:49:48 -0700 | [diff] [blame] | 82 | stroke-width: 2.0px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 83 | opacity: .7; |
| 84 | /*marker-end: url(#end);*/ |
| 85 | |
| 86 | transition: opacity 250ms; |
| 87 | -webkit-transition: opacity 250ms; |
| 88 | -moz-transition: opacity 250ms; |
| 89 | } |
| 90 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 91 | svg .link.host { |
| 92 | stroke: #6a6; |
| 93 | stroke-dasharray: 3,3; |
| 94 | } |
| 95 | |
| 96 | svg .node.device rect { |
Simon Hunt | f967d51 | 2014-10-28 20:34:29 -0700 | [diff] [blame] | 97 | stroke-width: 3.0px; |
| 98 | stroke: white; |
| 99 | stroke-dasharray: 2,2; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 100 | |
| 101 | transition: opacity 250ms; |
| 102 | -webkit-transition: opacity 250ms; |
| 103 | -moz-transition: opacity 250ms; |
| 104 | } |
| 105 | |
Simon Hunt | f967d51 | 2014-10-28 20:34:29 -0700 | [diff] [blame] | 106 | svg .node.device.fixed rect { |
| 107 | stroke-width: 0; |
| 108 | } |
| 109 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 110 | svg .node.device.roadm rect { |
| 111 | fill: #229; |
| 112 | } |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 113 | |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 114 | svg .node.device.switch rect { |
| 115 | fill: #55f; |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 116 | } |
| 117 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 118 | svg .node.host circle { |
| 119 | fill: #898; |
| 120 | stroke: #000; |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | svg .node text { |
| 124 | fill: white; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 125 | font: 10px sans-serif; |
| 126 | pointer-events: none; |
| 127 | } |
| 128 | |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 129 | /* for debugging */ |
| 130 | svg .node circle.debug { |
| 131 | fill: white; |
| 132 | stroke: red; |
| 133 | } |
| 134 | svg .node rect.debug { |
| 135 | fill: yellow; |
| 136 | stroke: red; |
| 137 | opacity: 0.35; |
| 138 | } |
| 139 | |
| 140 | |
Simon Hunt | 9a16c82 | 2014-10-28 16:09:19 -0700 | [diff] [blame] | 141 | svg .node.selected rect, |
| 142 | svg .node.selected circle { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 143 | filter: url(#blue-glow); |
| 144 | } |
| 145 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 146 | svg .link.inactive, |
| 147 | svg .node.inactive rect, |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 148 | svg .node.inactive circle, |
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 149 | svg .node.inactive text, |
| 150 | svg .node.inactive image { |
Simon Hunt | f967d51 | 2014-10-28 20:34:29 -0700 | [diff] [blame] | 151 | opacity: .05; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 152 | } |
| 153 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 154 | svg .node.inactive.selected rect, |
Simon Hunt | 1c5f8b6 | 2014-10-22 14:43:01 -0700 | [diff] [blame] | 155 | svg .node.inactive.selected text, |
| 156 | svg .node.inactive.selected image { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 157 | opacity: .6; |
| 158 | } |
| 159 | |
Simon Hunt | 5cd0e8f | 2014-10-27 16:18:40 -0700 | [diff] [blame] | 160 | /* |
| 161 | * === currently unused =============================================== |
| 162 | */ |
| 163 | |
| 164 | svg marker#end { |
| 165 | fill: #666; |
| 166 | stroke: #666; |
| 167 | stroke-width: 1.5px; |
| 168 | } |
| 169 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 170 | svg .legend { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 171 | position: fixed; |
| 172 | } |
| 173 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 174 | svg .legend .category rect { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 175 | stroke-width: 1px; |
| 176 | } |
| 177 | |
Simon Hunt | 3ab76a8 | 2014-10-22 13:07:32 -0700 | [diff] [blame] | 178 | svg .legend .category text { |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 179 | fill: #000; |
| 180 | font: 10px sans-serif; |
| 181 | pointer-events: none; |
| 182 | } |
| 183 | |
| 184 | /* |
| 185 | * ============================================================= |
| 186 | */ |
| 187 | |
| 188 | /* |
| 189 | * Specific structural elements |
| 190 | */ |
| 191 | |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 192 | /* This is to ensure that the body does not expand to account for the |
| 193 | flyout details pane, that is positioned "off screen". |
| 194 | */ |
| 195 | body { |
| 196 | overflow: hidden; |
| 197 | } |
| 198 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 199 | #mast { |
| 200 | height: 36px; |
| 201 | padding: 4px; |
| 202 | background-color: #ccc; |
| 203 | vertical-align: baseline; |
| 204 | } |
| 205 | |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 206 | #frame { |
| 207 | width: 100%; |
| 208 | height: 100%; |
Simon Hunt | 2c9e0c2 | 2014-10-23 15:12:58 -0700 | [diff] [blame] | 209 | background-color: #fff; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 210 | } |
| 211 | |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 212 | #flyout { |
Simon Hunt | 6f376a3 | 2014-10-28 12:38:30 -0700 | [diff] [blame] | 213 | position: absolute; |
| 214 | z-index: 100; |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 215 | display: block; |
| 216 | top: 10%; |
| 217 | width: 300px; |
| 218 | height: 80%; |
| 219 | right: -320px; |
| 220 | opacity: 0; |
| 221 | background-color: rgba(0,0,0,0.5); |
| 222 | padding: 10px; |
| 223 | color: white; |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 224 | font-size: 10pt; |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | #flyout h2 { |
| 228 | margin: 8px 4px; |
| 229 | color: yellow; |
| 230 | } |
| 231 | |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 232 | #flyout p, table { |
Simon Hunt | c586e21 | 2014-10-28 21:24:08 -0700 | [diff] [blame] | 233 | margin: 4px 4px; |
Simon Hunt | 0b05d4a | 2014-10-21 21:50:15 -0700 | [diff] [blame] | 234 | } |
| 235 | |
Simon Hunt | cc26756 | 2014-10-29 10:22:17 -0700 | [diff] [blame] | 236 | #flyout td.label { |
| 237 | font-style: italic; |
| 238 | color: #ccf; |
| 239 | padding-right: 12px; |
| 240 | } |
| 241 | |
| 242 | #flyout td.value { |
| 243 | |
| 244 | } |
| 245 | |