sidepage adjustments

This commit is contained in:
Frédéric Péters 2018-03-25 19:08:07 +02:00
parent 09972fbaa5
commit 4beff5c3e3
1 changed files with 20 additions and 15 deletions

View File

@ -5,6 +5,8 @@ $mobile-limit: 760px;
$font-family: "Open Sans", sans-serif;
$sidepage-background: #23282d url(texture.png);
$sidepage-background: white;
$sidepage-left-space: 36px;
$sidepage-icon-width: 36px;
$sidepage-width: 16rem;
$header-height: 60px;
@ -173,7 +175,7 @@ div#header {
div#header h1 {
height: $header-height;
line-height: $header-height;
padding: 0 0 0 230px;
padding: 0 0 0 calc(#{$sidepage-width} + 5px + 1rem);
margin: 0;
font-weight: normal;
color: white;
@ -361,7 +363,7 @@ div#main-content {
flex: 1 1 auto;
width: 100%;
margin: 1rem;
margin-left: calc(36px + 1rem);
margin-left: 1rem;
padding: 1em 6px 0 6px;
min-height: 90vh;
background: white;
@ -375,12 +377,12 @@ div#main-content {
}
#sidebar {
-ms-flex: 0 1 auto;
flex: 0 1 auto;
margin-left: 2rem;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
margin-left: 1rem;
margin-right: 1rem;
width: 23rem;
max-width: 23rem;
width: 22rem;
max-width: 22rem;
@media screen and (max-width: $mobile-limit) {
width: auto;
max-width: 100%;
@ -762,7 +764,7 @@ input[type=submit]:hover {
position: absolute;
top: 0px;
z-index: 100;
width: 36px;
width: $sidepage-icon-width;
height: 2em;
text-align: left;
@include vendor-prefix('transition', 'width 0ms ease-in');
@ -773,13 +775,16 @@ input[type=submit]:hover {
}
}
body[data-has-sidepage] #header,
body[data-has-sidepage] #header {
margin-left: #{$sidepage-left-space};
}
body[data-has-sidepage] #main {
margin-left: 36px;
margin-left: calc(#{$sidepage-left-space} + #{$sidepage-icon-width});
}
body.sidepage-expanded #main {
margin-left: $sidepage-width;
margin-left: calc(#{$sidepage-left-space} + #{$sidepage-width});
}
body.enable-transitions {
@ -832,7 +837,7 @@ body.sidepage-expanded #sidepage {
border-bottom: 1px solid #7F8F9E;
background: white;
box-sizing: border-box;
width: calc(36px + #{$sidepage-width});
width: calc(#{$sidepage-icon-width} + #{$sidepage-width});
&:hover {
}
@ -870,7 +875,7 @@ body.sidepage-expanded #sidepage span#applabel {
#sidepage ul#sidepage-menu {
background: white;
position: relative;
left: 36px;
left: $sidepage-left-space;
list-style: none;
padding: 0;
padding-top: 1em;
@ -882,8 +887,8 @@ body.sidepage-expanded #sidepage span#applabel {
&::before {
content: "";
position: absolute;
left: -36px;
width: 36px;
left: -$sidepage-left-space;
width: $sidepage-left-space;
background: linear-gradient(to bottom, $primary-color 0%, $secondary-color 130vh);
background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 130vh);
height: 100%;