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