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