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