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