Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2014-present Open Networking Laboratory |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [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 | /* |
Simon Hunt | 58894c8 | 2016-05-24 15:09:02 -0700 | [diff] [blame] | 18 | ONOS GUI -- Masthead (layout) -- CSS file |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #mast { |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 22 | height: 48px; |
| 23 | padding: 0; |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 24 | } |
| 25 | |
Simon Hunt | 5fdba20 | 2016-06-02 20:01:14 -0700 | [diff] [blame] | 26 | #mast a:hover { |
| 27 | text-decoration: none; |
| 28 | } |
| 29 | |
Thomas Vachuska | 83785e2 | 2015-04-01 02:55:02 -0700 | [diff] [blame] | 30 | html[data-platform='iPad'] #mast { |
| 31 | padding-top: 16px; |
| 32 | } |
| 33 | |
Simon Hunt | 4c5c046 | 2015-03-24 11:21:17 -0700 | [diff] [blame] | 34 | #mast .nav-menu-button { |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 35 | width: 26px; |
| 36 | height: 21px; |
| 37 | margin: 14px 18px 14px 14px; |
Simon Hunt | 4c5c046 | 2015-03-24 11:21:17 -0700 | [diff] [blame] | 38 | } |
Simon Hunt | 4c5c046 | 2015-03-24 11:21:17 -0700 | [diff] [blame] | 39 | |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 40 | #mast img.logo { |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 41 | height: 47px; |
Simon Hunt | 1e44e08 | 2016-06-09 16:17:24 -0700 | [diff] [blame] | 42 | width: 511px; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 43 | margin: 0; |
Simon Hunt | 86388b1 | 2015-01-09 14:23:26 -0800 | [diff] [blame] | 44 | } |
| 45 | |
Simon Hunt | eb0fa05 | 2015-02-17 19:20:28 -0800 | [diff] [blame] | 46 | #mast-right { |
| 47 | display: inline-block; |
Simon Hunt | eb0fa05 | 2015-02-17 19:20:28 -0800 | [diff] [blame] | 48 | float: right; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 49 | position: relative; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 50 | top: 0; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 51 | padding-right: 15px; |
| 52 | line-height: 44px; |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 53 | } |
| 54 | |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 55 | /* |
| 56 | MAST HEAD DROPDOWN MENU |
| 57 | */ |
| 58 | |
chengfan | 386620e | 2016-11-09 17:02:40 +0800 | [diff] [blame^] | 59 | #mast-right div.ctrl-btns { |
| 60 | position: relative; |
| 61 | float: right; |
| 62 | } |
| 63 | |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 64 | #mast .dropdown-parent { |
| 65 | position: relative; |
chengfan | 386620e | 2016-11-09 17:02:40 +0800 | [diff] [blame^] | 66 | float: right; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | #mast .dropdown-parent i.dropdown-icon { |
| 70 | display: inline-block; |
| 71 | height: 7px; |
| 72 | width: 9px; |
| 73 | margin-left: 10px; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 74 | background: url('../../../data/img/dropdown-icon.png') no-repeat; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | #mast .dropdown { |
| 78 | position: absolute; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 79 | top: 40px; |
| 80 | right: -8px; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 81 | display: none; |
| 82 | min-width: 100px; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 83 | line-height: 16px; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 84 | font-size: 12pt; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 85 | z-index: 1000; |
| 86 | } |
| 87 | |
| 88 | #mast .dropdown a { |
| 89 | text-decoration: none; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 90 | font-size: 12px; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 91 | display: block; |
| 92 | padding: 8px 16px 6px 12px; |
| 93 | } |
| 94 | |
| 95 | #mast .dropdown-parent:hover .dropdown { |
| 96 | display: block; |
| 97 | } |
| 98 | |
| 99 | #mast .dropdown-parent:hover i.dropdown-icon { |
| 100 | background-position-x: -14px |
| 101 | } |
| 102 | |
| 103 | html[data-platform='iPad'] #mast .dropdown { |
| 104 | top: 57px; |
| 105 | } |