Simon Hunt | 195cb38 | 2014-11-03 17:50:51 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Open Networking Laboratory |
| 3 | * |
| 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 |
| 7 | * |
| 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. |
| 15 | */ |
| 16 | |
| 17 | /* |
| 18 | ONOS GUI -- Base Framework -- CSS file |
| 19 | |
| 20 | @author Simon Hunt |
| 21 | */ |
| 22 | |
| 23 | html, body { |
| 24 | height: 100%; |
| 25 | } |
| 26 | |
Simon Hunt | 2524891 | 2014-11-04 11:25:48 -0800 | [diff] [blame] | 27 | div.onosView { |
| 28 | display: none; |
| 29 | } |
| 30 | |
| 31 | div.onosView.currentView { |
| 32 | display: block; |
| 33 | } |
| 34 | |
| 35 | /* |
| 36 | * ============================================================== |
| 37 | * END OF NEW ONOS.JS file |
| 38 | * ============================================================== |
| 39 | */ |
Simon Hunt | 195cb38 | 2014-11-03 17:50:51 -0800 | [diff] [blame] | 40 | |
| 41 | /* |
| 42 | * === DEBUGGING ====== |
| 43 | */ |
| 44 | svg { |
| 45 | /*border: 1px dashed red;*/ |
| 46 | } |
| 47 | |
| 48 | svg #bg { |
| 49 | opacity: 0.5; |
| 50 | } |
| 51 | |
| 52 | |
| 53 | /* |
| 54 | * Network Graph elements ====================================== |
| 55 | */ |
| 56 | |
| 57 | svg .link { |
| 58 | fill: none; |
| 59 | stroke: #666; |
| 60 | stroke-width: 2.0px; |
| 61 | opacity: .7; |
| 62 | |
| 63 | transition: opacity 250ms; |
| 64 | -webkit-transition: opacity 250ms; |
| 65 | -moz-transition: opacity 250ms; |
| 66 | } |
| 67 | |
| 68 | svg .link.host { |
| 69 | stroke: #666; |
| 70 | stroke-width: 1px; |
| 71 | } |
| 72 | |
| 73 | svg g.portLayer rect.port { |
| 74 | fill: #ccc; |
| 75 | } |
| 76 | |
| 77 | svg g.portLayer text { |
| 78 | font: 8pt sans-serif; |
| 79 | pointer-events: none; |
| 80 | } |
| 81 | |
| 82 | svg .node.device rect { |
| 83 | stroke-width: 1.5px; |
| 84 | |
| 85 | transition: opacity 250ms; |
| 86 | -webkit-transition: opacity 250ms; |
| 87 | -moz-transition: opacity 250ms; |
| 88 | } |
| 89 | |
| 90 | svg .node.device.fixed rect { |
| 91 | stroke-width: 1.5; |
| 92 | stroke: #ccc; |
| 93 | } |
| 94 | |
| 95 | svg .node.device.roadm rect { |
| 96 | fill: #03c; |
| 97 | } |
| 98 | |
| 99 | svg .node.device.switch rect { |
| 100 | fill: #06f; |
| 101 | } |
| 102 | |
| 103 | svg .node.host circle { |
| 104 | fill: #c96; |
| 105 | stroke: #000; |
| 106 | } |
| 107 | |
| 108 | svg .node text { |
| 109 | fill: white; |
| 110 | font: 10pt sans-serif; |
| 111 | pointer-events: none; |
| 112 | } |
| 113 | |
| 114 | /* for debugging */ |
| 115 | svg .node circle.debug { |
| 116 | fill: white; |
| 117 | stroke: red; |
| 118 | } |
| 119 | svg .node rect.debug { |
| 120 | fill: yellow; |
| 121 | stroke: red; |
| 122 | opacity: 0.35; |
| 123 | } |
| 124 | |
| 125 | |
| 126 | svg .node.selected rect, |
| 127 | svg .node.selected circle { |
| 128 | filter: url(#blue-glow); |
| 129 | } |
| 130 | |
| 131 | svg .link.inactive, |
| 132 | svg .port.inactive, |
| 133 | svg .portText.inactive, |
| 134 | svg .node.inactive rect, |
| 135 | svg .node.inactive circle, |
| 136 | svg .node.inactive text, |
| 137 | svg .node.inactive image { |
| 138 | opacity: .1; |
| 139 | } |
| 140 | |
| 141 | svg .node.inactive.selected rect, |
| 142 | svg .node.inactive.selected text, |
| 143 | svg .node.inactive.selected image { |
| 144 | opacity: .6; |
| 145 | } |
| 146 | |
| 147 | /* |
| 148 | * ============================================================= |
| 149 | */ |
| 150 | |
| 151 | /* |
| 152 | * Specific structural elements |
| 153 | */ |
| 154 | |
| 155 | /* This is to ensure that the body does not expand to account for the |
| 156 | flyout details pane, that is positioned "off screen". |
| 157 | */ |
| 158 | body { |
| 159 | overflow: hidden; |
| 160 | } |
| 161 | |
| 162 | |
| 163 | #frame { |
| 164 | width: 100%; |
| 165 | height: 100%; |
| 166 | background-color: #fff; |
| 167 | } |
| 168 | |
| 169 | #flyout { |
| 170 | position: absolute; |
| 171 | z-index: 100; |
| 172 | display: block; |
| 173 | top: 10%; |
| 174 | width: 280px; |
| 175 | right: -300px; |
| 176 | opacity: 0; |
| 177 | background-color: rgba(255,255,255,0.8); |
| 178 | |
| 179 | padding: 10px; |
| 180 | color: black; |
| 181 | font-size: 10pt; |
| 182 | box-shadow: 2px 2px 16px #777; |
| 183 | } |
| 184 | |
| 185 | #flyout h2 { |
| 186 | margin: 8px 4px; |
| 187 | color: black; |
| 188 | vertical-align: middle; |
| 189 | } |
| 190 | |
| 191 | #flyout h2 img { |
| 192 | height: 32px; |
| 193 | padding-right: 8px; |
| 194 | vertical-align: middle; |
| 195 | } |
| 196 | |
| 197 | #flyout p, table { |
| 198 | margin: 4px 4px; |
| 199 | } |
| 200 | |
| 201 | #flyout td.label { |
| 202 | font-style: italic; |
| 203 | color: #777; |
| 204 | padding-right: 12px; |
| 205 | } |
| 206 | |
| 207 | #flyout td.value { |
| 208 | |
| 209 | } |
| 210 | |
| 211 | #flyout hr { |
| 212 | height: 1px; |
| 213 | color: #ccc; |
| 214 | background-color: #ccc; |
| 215 | border: 0; |
| 216 | } |
| 217 | |