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/main_menu.css.sass

229 lines
5.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. ++*/
@import "variables"
@import "mixins"
#main-menu
bottom: auto
width: $main_menu_width
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 7px
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 #F8F8F8
&.selected
color: #FFFFFF
li
border: 0
a span
font-weight: normal
color: #999
float: right
padding-right: 9px
ul
display: none
padding-top: 1px
padding-bottom: 1px
&.menu-children.unattached
border-top: 1px solid #ddd
ul.menu-children
background: #f8f8f8
border-right: 1px solid #E7E7E7
padding: 10px 0
li
padding: 0 15px 0 0
a
font-size: 13px
line-height: 25px
height: 25px
border: none
padding: 0 0 0 10px
color: #04232F
&:hover
border: none
background: none
&.selected
border: none !important
background: none
color: #04232F
font-family: 'LatoBold','Lucida Grande',Helvetica,Arial,sans-serif
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: 50px
height: 40px
text-align: center
li
.open, .selected.open
.toggler:before
content: "\e0cc"
#toggle-project-menu
height: 40px
width: $main_menu_width
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%
-moz-transform: rotate(180deg)
-webkit-transform: rotate(180deg)
-o-transform: rotate(180deg)
-ms-transform: rotate(180deg)
transform: rotate(180deg)
text-align: left
padding: 0 0px 0 16px
&:hover
color: #FFFFFF
a.navigation-toggler
position: relative
float: right
width: 100%
height: 40px
text-align: right
padding: 0 12px 0 0
&:hover
color: #FFFFFF
.toggle-follow
position: absolute
width: 120px
.icon-time
background: none
padding: 0 0 0 0
.hidden-navigation
#main-menu
width: $main_menu_folded_width
.ellipsis
text-overflow: clip
-o-text-overflow: clip
-ms-text-overflow: clip
.toggler
display: none
#sidebar
display: none
#sidebar
margin: 30px 0 0 0
padding: 0px 17px 0 17px
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