blob: a8df379c52a1ee545a58229a2df775019889dc21 [file] [log] [blame]
Simon Huntc2202d52014-12-16 13:30:15 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present Open Networking Laboratory
Simon Huntc2202d52014-12-16 13:30:15 -08003 *
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 Huntc2202d52014-12-16 13:30:15 -080019 */
20
21#mast {
22 height: 36px;
23 padding: 4px;
24 vertical-align: baseline;
25}
26
Thomas Vachuska83785e22015-04-01 02:55:02 -070027html[data-platform='iPad'] #mast {
28 padding-top: 16px;
29}
30
Simon Huntc2202d52014-12-16 13:30:15 -080031.light #mast {
32 background-color: #bbb;
33 box-shadow: 0 2px 8px #777;
34}
35.dark #mast {
36 background-color: #444;
Simon Hunt5ee36e02015-01-15 10:33:20 -080037 box-shadow: 0 2px 8px #222;
Simon Huntc2202d52014-12-16 13:30:15 -080038}
39
Simon Hunt4c5c0462015-03-24 11:21:17 -070040#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 Huntc2202d52014-12-16 13:30:15 -080054#mast img.logo {
55 height: 38px;
56 padding-left: 8px;
57 padding-right: 8px;
Simon Hunt86388b12015-01-09 14:23:26 -080058}
59
60#mast img.logo:hover {
61 /* need something better */
62 /*background-color: #888;*/
Simon Huntc2202d52014-12-16 13:30:15 -080063}
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 Hunteb0fa052015-02-17 19:20:28 -080077
78#mast-right {
79 display: inline-block;
Simon Hunteb0fa052015-02-17 19:20:28 -080080 float: right;
Steven Burrows530cf462016-04-12 16:04:37 +010081 position: relative;
82 top: -4px;
83 padding-right: 15px;
84 line-height: 44px;
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070085}
86
87.light #mast-right a {
88 color: #369;
89}
Steven Burrows530cf462016-04-12 16:04:37 +010090
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070091.dark #mast-right a {
92 color: #eee;
93}
94
Steven Burrows530cf462016-04-12 16:04:37 +010095.light #mast nav {
96 color: #369;
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070097}
Steven Burrows530cf462016-04-12 16:04:37 +010098
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
145html[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}