Fix slider when sidebar is hidden

This commit is contained in:
Piotr Sarnacki 2015-02-11 15:09:27 +01:00
parent 3dd7b18e26
commit 90fbf62987
4 changed files with 22 additions and 17 deletions

View File

@ -68,8 +68,7 @@
float: none float: none
& > div:first-child:nth-last-child(2) ~ div & > div:first-child:nth-last-child(2) ~ div
width: 0 display: none
@media #{$large-up} @media #{$large-up}
#left #left

View File

@ -1,22 +1,25 @@
#global-slider
display: none
.pro.maximized .pro.maximized
#right #right
width: 0 display: none
*:not(#slider):not(.icon):not(.ember-view)
display: none
#slider #global_slider
top: 45px position: absolute
left: -20px background-color: $color-bg-slider
cursor: pointer
background: transparent inline-image('ui/slider-open.svg') no-repeat 6px 5px
border-top-left-radius: 4px
top: 85px
right: 0
width: 20px width: 20px
height: 20px height: 20px
background-image: inline-image('ui/slider-open.svg')
background-position: 6px 5px
border-bottom-left-radius: 4px border-bottom-left-radius: 4px
display: block
// @media #{$medium-up} &:hover
// display: block background-color: $color-border-slider-hover
#top .profile #top .profile
margin-right: 15px margin-right: 15px

View File

@ -150,10 +150,6 @@
&:hover &:hover
background-color: $color-border-slider-hover background-color: $color-border-slider-hover
.maximized
#slider
top: 45px
#right .show-more-jobs #right .show-more-jobs
text-decoration: underline text-decoration: underline
cursor: pointer cursor: pointer

View File

@ -1 +1,8 @@
{{outlet}} {{outlet}}
{{#if config.pro}}
<div id="global_slider" {{action toggle target=slider}}>
<div class='icon'></div>&nbsp;
</div>
{{/if}}