Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014-present Open Networking Foundation |
| 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 -- Masthead (layout) -- CSS file |
| 19 | */ |
| 20 | |
| 21 | #mast { |
| 22 | height: 48px; |
| 23 | padding: 0; |
| 24 | } |
| 25 | |
| 26 | #mast a:hover { |
| 27 | text-decoration: none; |
| 28 | } |
| 29 | |
| 30 | html[data-platform='iPad'] #mast { |
| 31 | padding-top: 16px; |
| 32 | } |
| 33 | |
| 34 | #mast .nav-menu-button { |
| 35 | display: inline-block; |
| 36 | vertical-align: middle; |
| 37 | text-align: center; |
| 38 | line-height: 48px; |
| 39 | padding: 0 12px; |
| 40 | cursor: pointer; cursor: hand; |
| 41 | /* Needed to removed 3px space at the bottom of img tags */ |
| 42 | font-size: 0; |
| 43 | } |
| 44 | |
| 45 | #mast .nav-menu-button img { |
| 46 | width: 25px; |
| 47 | vertical-align: middle; |
| 48 | } |
| 49 | |
| 50 | #mast .logo { |
| 51 | height: 47px; |
| 52 | width: 511px; |
| 53 | vertical-align: bottom; |
| 54 | } |
| 55 | |
| 56 | #mast-right { |
| 57 | display: inline-block; |
| 58 | float: right; |
| 59 | position: relative; |
| 60 | top: 0; |
| 61 | padding-right: 15px; |
| 62 | line-height: 48px; |
| 63 | } |
| 64 | |
| 65 | /* |
| 66 | MAST HEAD DROPDOWN MENU |
| 67 | */ |
| 68 | |
| 69 | #mast-right div.ctrl-btns { |
| 70 | float: right; |
| 71 | } |
| 72 | |
| 73 | #mast-right div.icon { |
| 74 | box-sizing: border-box; |
| 75 | position: relative; |
| 76 | height: 48px; |
| 77 | width: 48px; |
| 78 | padding: 9px; |
| 79 | } |
| 80 | |
| 81 | #mast .dropdown-parent { |
| 82 | position: relative; |
| 83 | float: right; |
| 84 | } |
| 85 | |
| 86 | #mast .dropdown-parent i.dropdown-icon { |
| 87 | display: inline-block; |
| 88 | height: 7px; |
| 89 | width: 9px; |
| 90 | margin-left: 10px; |
| 91 | background: url('/data/img/dropdown-icon.png') no-repeat; |
| 92 | } |
| 93 | |
| 94 | #mast .dropdown { |
| 95 | position: absolute; |
| 96 | top: 40px; |
| 97 | right: -8px; |
| 98 | display: none; |
| 99 | min-width: 100px; |
| 100 | line-height: 16px; |
| 101 | font-size: 12pt; |
| 102 | z-index: 1000; |
| 103 | } |
| 104 | |
| 105 | #mast .dropdown a { |
| 106 | text-decoration: none; |
| 107 | font-size: 12px; |
| 108 | display: block; |
| 109 | padding: 8px 16px 6px 12px; |
| 110 | } |
| 111 | |
| 112 | #mast .dropdown-parent:hover .dropdown { |
| 113 | display: block; |
| 114 | } |
| 115 | |
| 116 | #mast .dropdown-parent:hover i.dropdown-icon { |
| 117 | background-position-x: -14px |
| 118 | } |
| 119 | |
| 120 | html[data-platform='iPad'] #mast .dropdown { |
| 121 | top: 57px; |
| 122 | } |