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 |
Simon Hunt | 195cb38 | 2014-11-03 17:50:51 -0800 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | html, body { |
| 22 | height: 100%; |
| 23 | } |
| 24 | |
Simon Hunt | a3dd957 | 2014-11-20 15:22:41 -0800 | [diff] [blame] | 25 | /* This is to ensure that the body does not expand to account for the |
| 26 | flyout details pane, that is positioned "off screen". |
| 27 | */ |
| 28 | body { |
| 29 | overflow: hidden; |
| 30 | } |
| 31 | |
| 32 | #frame { |
| 33 | width: 100%; |
| 34 | height: 100%; |
| 35 | background-color: #fff; |
| 36 | } |
| 37 | |
Simon Hunt | 2524891 | 2014-11-04 11:25:48 -0800 | [diff] [blame] | 38 | div.onosView { |
| 39 | display: none; |
| 40 | } |
| 41 | |
| 42 | div.onosView.currentView { |
| 43 | display: block; |
| 44 | } |
| 45 | |
Simon Hunt | a3dd957 | 2014-11-20 15:22:41 -0800 | [diff] [blame] | 46 | |
Thomas Vachuska | 65368e3 | 2014-11-08 16:10:20 -0800 | [diff] [blame] | 47 | #alerts { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 48 | display: none; |
| 49 | position: absolute; |
Simon Hunt | 7b403bc | 2014-11-22 19:01:00 -0800 | [diff] [blame] | 50 | z-index: 1200; |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 51 | opacity: 0.65; |
| 52 | background-color: #006; |
| 53 | color: white; |
| 54 | top: 80px; |
| 55 | left: 40px; |
| 56 | padding: 3px 6px; |
Simon Hunt | a3dd957 | 2014-11-20 15:22:41 -0800 | [diff] [blame] | 57 | -moz-border-radius: 6px; |
| 58 | border-radius: 6px; |
Simon Hunt | 2f9fb70 | 2014-11-23 17:33:32 -0800 | [diff] [blame] | 59 | box-shadow: 0px 2px 12px #777; |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 60 | } |
| 61 | |
Thomas Vachuska | 65368e3 | 2014-11-08 16:10:20 -0800 | [diff] [blame] | 62 | #alerts pre { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 63 | margin: 0.2em 6px; |
| 64 | } |
| 65 | |
Thomas Vachuska | 65368e3 | 2014-11-08 16:10:20 -0800 | [diff] [blame] | 66 | #alerts span.close { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 67 | color: #6af; |
| 68 | float: right; |
| 69 | right: 2px; |
| 70 | cursor: pointer; |
| 71 | } |
| 72 | |
Thomas Vachuska | 65368e3 | 2014-11-08 16:10:20 -0800 | [diff] [blame] | 73 | #alerts span.close:hover { |
Simon Hunt | 1a9eff9 | 2014-11-07 11:06:34 -0800 | [diff] [blame] | 74 | color: #fff; |
| 75 | } |
| 76 | |
Thomas Vachuska | 65368e3 | 2014-11-08 16:10:20 -0800 | [diff] [blame] | 77 | #alerts p.footnote { |
| 78 | text-align: right; |
| 79 | font-size: 8pt; |
| 80 | margin: 8px 0 0 0; |
| 81 | color: #66d; |
| 82 | } |
| 83 | |
Simon Hunt | 7b403bc | 2014-11-22 19:01:00 -0800 | [diff] [blame] | 84 | #floatPanels { |
| 85 | z-index: 1100; |
| 86 | } |
Simon Hunt | 195cb38 | 2014-11-03 17:50:51 -0800 | [diff] [blame] | 87 | |
| 88 | #flyout { |
| 89 | position: absolute; |
Simon Hunt | 195cb38 | 2014-11-03 17:50:51 -0800 | [diff] [blame] | 90 | display: block; |
| 91 | top: 10%; |
| 92 | width: 280px; |
| 93 | right: -300px; |
| 94 | opacity: 0; |
| 95 | background-color: rgba(255,255,255,0.8); |
| 96 | |
| 97 | padding: 10px; |
| 98 | color: black; |
| 99 | font-size: 10pt; |
| 100 | box-shadow: 2px 2px 16px #777; |
| 101 | } |
| 102 | |
| 103 | #flyout h2 { |
| 104 | margin: 8px 4px; |
| 105 | color: black; |
| 106 | vertical-align: middle; |
| 107 | } |
| 108 | |
| 109 | #flyout h2 img { |
| 110 | height: 32px; |
| 111 | padding-right: 8px; |
| 112 | vertical-align: middle; |
| 113 | } |
| 114 | |
| 115 | #flyout p, table { |
| 116 | margin: 4px 4px; |
| 117 | } |
| 118 | |
| 119 | #flyout td.label { |
| 120 | font-style: italic; |
| 121 | color: #777; |
| 122 | padding-right: 12px; |
| 123 | } |
| 124 | |
| 125 | #flyout td.value { |
| 126 | |
| 127 | } |
| 128 | |
| 129 | #flyout hr { |
| 130 | height: 1px; |
| 131 | color: #ccc; |
| 132 | background-color: #ccc; |
| 133 | border: 0; |
| 134 | } |