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 { |
Steven Burrows | 10dd108 | 2017-05-12 12:15:18 -0400 | [diff] [blame] | 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; |
Simon Hunt | 4c5c046 | 2015-03-24 11:21:17 -0700 | [diff] [blame] | 43 | } |
Simon Hunt | 4c5c046 | 2015-03-24 11:21:17 -0700 | [diff] [blame] | 44 | |
Steven Burrows | 10dd108 | 2017-05-12 12:15:18 -0400 | [diff] [blame] | 45 | #mast .nav-menu-button img { |
| 46 | width: 25px; |
| 47 | vertical-align: middle; |
| 48 | } |
| 49 | |
| 50 | #mast .logo { |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 51 | height: 47px; |
Simon Hunt | 1e44e08 | 2016-06-09 16:17:24 -0700 | [diff] [blame] | 52 | width: 511px; |
Steven Burrows | 10dd108 | 2017-05-12 12:15:18 -0400 | [diff] [blame] | 53 | vertical-align: bottom; |
Simon Hunt | 86388b1 | 2015-01-09 14:23:26 -0800 | [diff] [blame] | 54 | } |
| 55 | |
Simon Hunt | eb0fa05 | 2015-02-17 19:20:28 -0800 | [diff] [blame] | 56 | #mast-right { |
| 57 | display: inline-block; |
Simon Hunt | eb0fa05 | 2015-02-17 19:20:28 -0800 | [diff] [blame] | 58 | float: right; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 59 | position: relative; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 60 | top: 0; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 61 | padding-right: 15px; |
Steven Burrows | 10dd108 | 2017-05-12 12:15:18 -0400 | [diff] [blame] | 62 | line-height: 48px; |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 63 | } |
| 64 | |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 65 | /* |
| 66 | MAST HEAD DROPDOWN MENU |
| 67 | */ |
| 68 | |
chengfan | 386620e | 2016-11-09 17:02:40 +0800 | [diff] [blame] | 69 | #mast-right div.ctrl-btns { |
chengfan | 386620e | 2016-11-09 17:02:40 +0800 | [diff] [blame] | 70 | float: right; |
| 71 | } |
| 72 | |
Steven Burrows | 10dd108 | 2017-05-12 12:15:18 -0400 | [diff] [blame] | 73 | #mast-right div.icon { |
| 74 | box-sizing: border-box; |
| 75 | position: relative; |
| 76 | height: 48px; |
| 77 | width: 48px; |
| 78 | padding: 9px; |
| 79 | } |
| 80 | |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 81 | #mast .dropdown-parent { |
| 82 | position: relative; |
chengfan | 386620e | 2016-11-09 17:02:40 +0800 | [diff] [blame] | 83 | float: right; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | #mast .dropdown-parent i.dropdown-icon { |
| 87 | display: inline-block; |
| 88 | height: 7px; |
| 89 | width: 9px; |
| 90 | margin-left: 10px; |
Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame^] | 91 | background: url('/onos/ui/data/img/dropdown-icon.png') no-repeat; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | #mast .dropdown { |
| 95 | position: absolute; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 96 | top: 40px; |
| 97 | right: -8px; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 98 | display: none; |
| 99 | min-width: 100px; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 100 | line-height: 16px; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 101 | font-size: 12pt; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 102 | z-index: 1000; |
| 103 | } |
| 104 | |
| 105 | #mast .dropdown a { |
| 106 | text-decoration: none; |
Simon Hunt | d42e5d1 | 2016-05-25 16:46:52 -0700 | [diff] [blame] | 107 | font-size: 12px; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 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 | } |