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