toggle menu at left border

pull/6232/head
Wieland Lindenthal 7 years ago
parent a4de8e6c1d
commit cd744f3b13
  1. 42
      app/assets/stylesheets/layout/_main_menu.sass
  2. 2
      app/views/layouts/base.html.erb

@ -35,7 +35,6 @@ $toggler-width: 40px
float: left float: left
left: 0 left: 0
border-right: $main-menu-border-width solid $main-menu-border-color border-right: $main-menu-border-width solid $main-menu-border-color
position: relative
// min-height is full height minus header and footer. // min-height is full height minus header and footer.
min-height: calc(100vh - 55px) min-height: calc(100vh - 55px)
@ -44,9 +43,10 @@ $toggler-width: 40px
@include default-transition @include default-transition
#menu-sidebar #menu-sidebar
// 40px is the height of the toggler height: 100%
height: calc(100% - 40px)
%absolute-layout-mode & %absolute-layout-mode &
position: relative position: relative
#menu-sidebar #menu-sidebar
@ -194,32 +194,34 @@ $toggler-width: 40px
float: left float: left
#toggle-project-menu #toggle-project-menu
border-width: $main-menu-item-border-width 0 $main-menu-item-border-width $main-menu-item-border-width border: none
border-style: solid background: none
border-color: $main-menu-item-border-color height: 100vh
height: $main-menu-item-height width: 30px
width: calc(#{$main-menu-width} - 1px) position: fixed
position: absolute top: 0px
bottom: 0px left: calc(#{$main-menu-width} - 1px)
z-index: 1
vertical-align: middle
@include varprop(background-color, main-menu-bg-color)
@include default-transition @include default-transition
&:hover &:hover
@include varprop(background, main-menu-bg-hover-background) border-left-width: 1px
border-left-style: solid
@include varprop(border-left-color, primary-color)
&.show &.show
width: calc(#{$main-menu-folded-width} - 1px) left: calc(#{$main-menu-folded-width} - 1px)
a.navigation-toggler a.navigation-toggler
height: 100%
padding: 0 10px 0 0
i:before i:before
@include icon-mixin-double-arrow-right @include icon-mixin-arrow-right2
a.navigation-toggler a.navigation-toggler
@include default-transition @include default-transition
position: relative position: absolute
height: $main-menu-item-height top: 0
height: 40px
text-align: right text-align: right
padding: 0 6px 0 0 padding: 50vh 6px 50vh 0
color: $gray-dark
// Center toggle icon vertically. The element is higher than it looks like. // Center toggle icon vertically. The element is higher than it looks like.
line-height: 38px line-height: 38px
font-size: 11px font-size: 11px

@ -128,7 +128,7 @@ See docs/COPYRIGHT.rdoc for more details.
title="<%= l(:show_hide_project_menu) %>" title="<%= l(:show_hide_project_menu) %>"
class="navigation-toggler" class="navigation-toggler"
ng-click="mainMenu.toggleNavigation()"> ng-click="mainMenu.toggleNavigation()">
<%= op_icon('icon4 icon-double-arrow-left') %> <%= op_icon('icon4 icon-arrow-left2') %>
</a> </a>
</div> </div>
<div id="menu-sidebar"> <div id="menu-sidebar">

Loading…
Cancel
Save