I have two separate codepens I have been working with, one with the main layout of the site, which works fine, and second is a component that I would like to add inside the left sidebar of the main layout.
The component works perfectly when inside of a container with a set height, it will shrink and stretch just the way I want if inside this type of parent div.
When I add the component into the main layout however it expands the left sidebar, breaking the perfect layout, I want the main layout to be the size of the current browser window, and the page to never scroll. is there a way to tell these sidebars ".layout-left
" ".layout-stage
" and ".layout-right
" to not expand?
here are the codepens I was talking about:
Main Layout working: http://codepen.io/AlexBezuska/pen/KwOagy
Working sidebar: http://codepen.io/AlexBezuska/pen/ZYgWYp
Combined (not working): http://codepen.io/AlexBezuska/pen/LEwGJj
Layout CSS I am using:
body {
display: flex;
min-height: 100vh;
flex-direction: column;
width: 100%;
margin: 0 auto;
}
.layout-middle{
display: flex;
flex: 1;
}
.layout-stage{
flex: 1 0 320px;
background: #ffc94e;
}
.layout-left, .layout-right{
flex: 0 0 320px;
background: #c9ea5d;
}
.layout-left{
background: #85d6e4;
}
.layout-header{
height: 100px;
background: #92e4c9;
}
.layout-footer{
height: 150px;
background: #f7846a;
}