OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/assets/stylesheets/layout/_header.css.scss

336 lines
7.3 KiB

/*-- copyright
* OpenProject is a project management system.
* Copyright (C) 2012-2013 the OpenProject Foundation (OPF)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 3.
*
* OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
* Copyright (C) 2006-2013 Jean-Philippe Lang
* Copyright (C) 2010-2013 the ChiliProject Team
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* See doc/COPYRIGHT.rdoc for more details. ++*/
.account-nav {
display: block;
}
#logo {
float: left;
width: 270px;
height: 55px;
background: url(image-path('logo_openproject_white.png')) no-repeat 19px 8px #06799F;
}
#header {
height: 55px;
font: arial,19px,white;
min-width: 1000px;
}
#header ul {
line-height: 55px;
float: left;
font-size: 13px;
font-family: "Arial", Arial, sans-serif;
font-style: normal;
font-weight: normal;
color: #ffffff;
height: 55px;
border-top: 0;
position: relative;
}
#header ul#account-info {
margin-right: 15px;
}
#header li {
float: left;
position: relative;
z-index: 5;
}
#header li:last-child {
border-right: 0px;
}
#header li > a {
text-decoration: none;
color: #FFFFFF;
height: 43px;
font-weight: normal;
}
#header li.drop-down select {
width: 100%;
}
#header li.drop-down > a {
/* Arrow down white */
background-image: url(image-path('top_menu_arrow_grey_white_sprite.png'));
background-position: right -40px;
background-repeat: no-repeat;
padding-right: 35px;
}
#header li > a:hover {
background-color: #700407;
}
#header li.drop-down > a:hover {
/* Arrow down grey */
background-image: url(image-path('top_menu_arrow_grey_white_sprite.png'));
background-position: right -2px;
background-repeat: no-repeat;
background-color: #700407;
padding-right: 35px;
}
#header li li a:hover {
background-color: #FFFFFF;
color: #222222;
}
#header li.drop-down li > a:hover, #main-menu ul.menu_root li a.selected, #main-menu ul.menu_root li a:hover {
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
background-color: #7F7F7F;
font-weight: bold;
color: #FFFFFF;
}
li a.home {
text-indent: -999em;
width: 20px;
height: 43px;
/* Home Black */
background-image: url(image-path('home_black_white_sprite.png'));
background-position: center -3px;
background-repeat: no-repeat;
}
li a.home:hover {
background-position: center -35px;
}
li a.help {
text-indent: -999em;
width: 20px;
height: 43px;
background-image: url(image-path('question_mark_black_white_sprite.png'));
background-position: center -48px;
background-repeat: no-repeat;
}
li a.help:hover {
background-position: center -13px;
}
#header li.drop-down.open > a {
background: #FFFFFF url(image-path('arrow-down-grey.png')) no-repeat right center;
padding-right: 35px;
color: #000000;
}
.account-nav li{
padding: 0;
}
.account-nav li a {
display: block;
padding: 0px 9px 0px;
}
.account-nav li > ul > li {
max-width: 350px;
}
#header .search_field {
position: relative;
border: 0px;
color: #4b4b4b;
background: none;
top: 6px;
width: 119px;
left: 8px;
outline: 0px;
}
#header #search_wrap {
background: transparent url(image-path('webalys/search.png')) no-repeat;
width: 162px;
height: 30px;
margin-right: 15px;
margin-top: 6px;
margin-bottom: 4px;
}
input::-webkit-input-placeholder {
color: white;
}
input:-moz-placeholder {
color: white;
}
#search {
float: left;
}
#header li.open > a {
position: relative;
top: 0px;
z-index: 21;
}
#header li > ul {
display: none;
position: absolute;
height: auto;
min-width: 270px;
left: -1px;
z-index: 20;
border: 1px solid #b7b7b7;
border-top: 0px;
background-color: #FFFFFF;
}
#header li.last-child > ul {
left: auto;
right: -1px;
}
#header li li {
float: none;
white-space: nowrap;
border-style: solid;
border-width: 1px 0;
}
#header li.drop-down li > a {
padding: 6px;
background: #FFFFFF;
position: static;
color: #222222;
font-size: 13px;
font-family: "Arial", Arial, sans-serif;
font-style: normal;
font-weight: normal;
margin-top: 3px;
margin-bottom: 3px;
margin-left: 6px;
margin-right: 6px;
height: 15px;
line-height: 15px;
}
#nav-login-content {
position: relative;
position-top: 44px;
float: right;
background: white;
border: 0px solid #194E60;
border-top: 0;
padding-left: 5px;
padding-top: 5px;
padding-right: 10px;
padding-bottom: 8px;
color: #333333;
line-height: 19px;
}
#nav-login-content input[type=text], #nav-login-content input[type=password] {
height: 20px;
width: 150px;
}
#nav-login-content div a {
display: inline;
color: #333333;
padding: 0;
}
div#optional_login_fields {
top: 10px;
white-space: nowrap;
margin-left: 2px;
}
.account-nav li > a {
height: 30px;
line-height: 29px;
zoom: 1;
}
.account-nav > li {
margin-left: 3px;
margin-right: 3px;
border-right: 0px solid;
height: 26px;
margin-top: 17px;
zoom: 1;
}
#header li > ul {
top: 29px;
}
li a.home {
background-image: url(image-path('home_black_white_sprite.png'));
background-position: center -43px;
width: 20px;
}
li a.home:hover {
background-position: center -11px;
}
#header li > a {
height: 30px;
color: #222222;
}
#header li.drop-down > a {
padding-right: 35px;
}
#header li > a:hover {
background-color: transparent;
color: white;
}
#header li.drop-down.open {
color: white;
}
.account-nav > li:hover, .account-nav > li.drop-down.open {
background: url(image-path('topmenu_sprite.png')) repeat-x;
background-position: 0px -28px;
}
#header li.drop-down > a:hover, #header li.drop-down > a {
background-image: url(image-path('top_menu_arrow_black_white_sprite.png'));
background-position: right -10px;
background-color: transparent;
}
#header li.drop-down.open > a {
color: white;
background-image: url(image-path('top_menu_arrow_black_white_sprite.png'));
background-color: transparent;
background-position: right -48px;
}
#header li.drop-down li > a:hover, #main-menu ul.menu-root li a.selected, #main-menu ul.menu-root li a:hover, #header .chzn-container .chzn-results .highlighted {
background-color: #24b3e7;
}
#header li.drop-down > ul {
-moz-box-shadow: 1px 1px 2px #aaa;
-webkit-box-shadow: 1px 1px 2px #aaa;
}