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 | /* |
| 18 | ONOS GUI -- Masthead -- CSS file |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #mast { |
| 22 | height: 36px; |
| 23 | padding: 4px; |
| 24 | vertical-align: baseline; |
| 25 | } |
| 26 | |
Thomas Vachuska | 83785e2 | 2015-04-01 02:55:02 -0700 | [diff] [blame] | 27 | html[data-platform='iPad'] #mast { |
| 28 | padding-top: 16px; |
| 29 | } |
| 30 | |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 31 | .light #mast { |
| 32 | background-color: #bbb; |
| 33 | box-shadow: 0 2px 8px #777; |
| 34 | } |
| 35 | .dark #mast { |
| 36 | background-color: #444; |
Simon Hunt | 5ee36e0 | 2015-01-15 10:33:20 -0800 | [diff] [blame] | 37 | box-shadow: 0 2px 8px #222; |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 38 | } |
| 39 | |
Simon Hunt | 4c5c046 | 2015-03-24 11:21:17 -0700 | [diff] [blame] | 40 | #mast .nav-menu-button { |
| 41 | width: 30px; |
| 42 | height: 30px; |
| 43 | margin-left: 8px; |
| 44 | margin-bottom: 4px; |
| 45 | cursor: pointer; |
| 46 | } |
| 47 | .light #mast .nav-menu-button:hover { |
| 48 | background-color: #ddd; |
| 49 | } |
| 50 | .dark #mast .nav-menu-button:hover { |
| 51 | background-color: #777; |
| 52 | } |
| 53 | |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 54 | #mast img.logo { |
| 55 | height: 38px; |
| 56 | padding-left: 8px; |
| 57 | padding-right: 8px; |
Simon Hunt | 86388b1 | 2015-01-09 14:23:26 -0800 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | #mast img.logo:hover { |
| 61 | /* need something better */ |
| 62 | /*background-color: #888;*/ |
Simon Hunt | c2202d5 | 2014-12-16 13:30:15 -0800 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | #mast .title { |
| 66 | font-size: 14pt; |
| 67 | font-style: italic; |
| 68 | vertical-align: 12px; |
| 69 | } |
| 70 | |
| 71 | .light #mast .title { |
| 72 | color: #369; |
| 73 | } |
| 74 | .dark #mast .title { |
| 75 | color: #eee; |
| 76 | } |
Simon Hunt | eb0fa05 | 2015-02-17 19:20:28 -0800 | [diff] [blame] | 77 | |
| 78 | #mast-right { |
| 79 | display: inline-block; |
Simon Hunt | eb0fa05 | 2015-02-17 19:20:28 -0800 | [diff] [blame] | 80 | float: right; |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 81 | position: relative; |
| 82 | top: -4px; |
| 83 | padding-right: 15px; |
| 84 | line-height: 44px; |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | .light #mast-right a { |
| 88 | color: #369; |
| 89 | } |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 90 | |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 91 | .dark #mast-right a { |
| 92 | color: #eee; |
| 93 | } |
| 94 | |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 95 | .light #mast nav { |
| 96 | color: #369; |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 97 | } |
Steven Burrows | 530cf46 | 2016-04-12 16:04:37 +0100 | [diff] [blame] | 98 | |
| 99 | .dark #mast nav { |
| 100 | color: #eee; |
| 101 | } |
| 102 | |
| 103 | /* |
| 104 | MAST HEAD DROPDOWN MENU |
| 105 | */ |
| 106 | |
| 107 | #mast .dropdown-parent { |
| 108 | position: relative; |
| 109 | } |
| 110 | |
| 111 | #mast .dropdown-parent i.dropdown-icon { |
| 112 | display: inline-block; |
| 113 | height: 7px; |
| 114 | width: 9px; |
| 115 | margin-left: 10px; |
| 116 | background: url('/onos/ui/data/img/dropdown-icon.png') no-repeat; |
| 117 | } |
| 118 | |
| 119 | #mast .dropdown { |
| 120 | position: absolute; |
| 121 | top: 44px; |
| 122 | right: 0; |
| 123 | display: none; |
| 124 | min-width: 100px; |
| 125 | border-top: 1px solid #999; |
| 126 | line-height: 16px; |
| 127 | z-index: 1000; |
| 128 | } |
| 129 | |
| 130 | #mast .dropdown a { |
| 131 | text-decoration: none; |
| 132 | font-size: 14px; |
| 133 | display: block; |
| 134 | padding: 8px 16px 6px 12px; |
| 135 | } |
| 136 | |
| 137 | #mast .dropdown-parent:hover .dropdown { |
| 138 | display: block; |
| 139 | } |
| 140 | |
| 141 | #mast .dropdown-parent:hover i.dropdown-icon { |
| 142 | background-position-x: -14px |
| 143 | } |
| 144 | |
| 145 | html[data-platform='iPad'] #mast .dropdown { |
| 146 | top: 57px; |
| 147 | } |
| 148 | |
| 149 | /* Theme styles for drop down menu */ |
| 150 | |
| 151 | .light #mast .dropdown { |
| 152 | background-color: #bbb; |
| 153 | box-shadow: 0 2px 8px #777; |
| 154 | } |
| 155 | |
| 156 | .dark #mast .dropdown { |
| 157 | background-color: #444; |
| 158 | box-shadow: 0 2px 8px #111; |
| 159 | } |
| 160 | |
| 161 | .light #mast .dropdown a { |
| 162 | color: #369; |
| 163 | border-bottom: solid #ccc 1px; |
| 164 | } |
| 165 | |
| 166 | .dark #mast .dropdown a { |
| 167 | color: #eee; |
| 168 | border-bottom: solid #333 1px; |
| 169 | } |
| 170 | |
| 171 | .light #mast .dropdown a:hover { |
| 172 | background-color: #ddd; |
| 173 | } |
| 174 | |
| 175 | .dark #mast .dropdown a:hover { |
| 176 | background-color: #777; |
| 177 | } |