/*-- 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. ++*/ $main_menu_bg_color: #053242 $main_menu_bg_hover_selected_color: #04232F $main_menu_folded_width: 15px @mixin default-transition -webkit-transition: all 500ms ease-in-out 0s -moz-transition: all 500ms ease-in-out 0s -ms-transition: all 500ms ease-in-out 0s -o-transition: all 500ms ease-in-out 0s transition: all 500ms ease-in-out 0s @mixin main-menu-font font-style: normal font-family: 'LatoRegular','Lucida Grande',Helvetica,Arial,sans-serif #main-menu bottom: auto left: 6px width: 270px float: left left: 0 background-color: $main_menu_bg_color ul margin: 0 padding: 0 &.menu_root li float: none list-style-type: none margin: 0px padding: 0px 0px 0px 0px white-space: nowrap position: relative min-height: 23px a display: block text-decoration: none font-weight: normal background: none padding: 0 0 0 20px color: #BBBBBB border-left: 4px solid $main_menu_bg_color @include default-transition &:hover, &.selected text-decoration: none background-color: $main_menu_bg_hover_selected_color border-left: 4px solid #AAAAAA &.selected color: #FFFFFF li border: 0 a span font-weight: normal color: #999 float: right padding-right: 9px li padding: 0 width: 100% border-bottom: 1px solid #DDDDDD border-top: 1px solid #FFFFFF &:first-child border-top: 0 a span padding: 0 ul display: none padding-top: 1px padding-bottom: 1px &.menu-children.unattached border-top: 1px solid #ddd ul position: absolute left: 185px z-index: 20 width: 100% top: 0 border: 1px solid #AFAFAF background: #f3f3f3 ul.menu-children background: #04232F li padding: 0 li a font-size: 13px line-height: 30px height: 30px border: none padding: 0 0 0 61px li a:hover border: none li a.selected border: none !important a text-decoration: none line-height: 40px display: block position: relative height: 40px color: #BBBBBB font-weight: normal font-size: 15px font-style: normal @include main-menu-font .toggler position: absolute right: 0 top: 0 width: 40px height: 25px background: url(image-path('double_arrows_grey_white_sprite.png')) 0px 6px no-repeat li .open background: #04232F !important border-left: 4px solid #AAAAAA !important li .open .toggler background: url(image-path('double_arrows_grey_white_sprite.png')) 0px -18px li .selected.open .toggler, li .open:hover .toggler background: url(image-path('double_arrows_grey_white_sprite.png')) 0px -151px &.hidden width: $main_menu_folded_width #toggle-project-menu height: 40px width: 270px border: none background-color: $main_menu_bg_color &:hover background-color: $main_menu_bg_hover_selected_color &.show width: $main_menu_folded_width a.navigation-toggler width: $main_menu_folded_width height: 100% /* Arrow right */ background: url(image-path('double_arrows_grey_white_sprite.png')) -8px -200px no-repeat &:hover /* Arrow right white */ background-position: -39px -200px background-repeat: no-repeat a.navigation-toggler position: relative float: right width: 100% height: 15px margin: 11px 0 0 0 /* Arrow left */ background-image: url(image-path('double_arrows_grey_white_sprite.png')) background-position: 230px -91px background-repeat: no-repeat &:hover /* Arrow left white */ background-position: 230px -58px background-repeat: no-repeat .toggle-follow position: absolute width: 120px #menu-sidebar.hidden display: none #sidebar margin: 30px 0 0 0 padding: 0px 30px 0 30px width: auto color: #FFFFFF font-size: 12px @include main-menu-font h3 display: block border: none border-top: 1px solid #1f4654 color: #FFFFFF font-weight: normal font-size: 16px margin: 30px 0 8px 0 padding: 30px 0 0 0 text-transform: uppercase > h3:first-child margin-top: 0px a, a:link color: #FFFFFF font-size: 12px display: inline position: static text-decoration: underline a:hover text-decoration: underline input.button-small margin-top: 14px background: #FFFFFF border-radius: 25px -webkit-border-radius: 25px padding: 3px 7px color: #222 border: none cursor: pointer @include main-menu-font ul border: none overflow-x: hidden li border: none li a padding: 0px /* this part is just copied from application.css with needed changes for sass * should be refactored with the rest of the main_menu css*/ #main-menu ul.menu_root li li .toggler display: none #main-menu ul.menu_root li li li a padding: 0 12px #main-menu ul.menu_root li li ul.profile-box li padding: 6px 12px #main-menu ul.menu_root li li ul.profile-box li a display: inline padding: 0 color: #226D81 line-height: 1.5 #main-menu ul.menu_root li li ul.profile-box li a:hover text-decoration: underline /* Mimic ".icon .icon-time" */ #main-menu ul.menu_root li a.time-details, #main-menu ul.menu_root li a.billable-time-details, #main-menu ul.menu_root li a.overhead-time-details background-image: url(image-path('webalys/time.png')) background-position: 30px 40% background-repeat: no-repeat padding-left: 50px #main-menu p.password font-weight: bold margin: 25px 0 #main-menu ul.menu_root li a.time-details, #main-menu ul.menu_root li a.overhead-time-details, #main-menu ul.menu_root li a.billable-time-details padding-left: 40px background-position: 12px 45%