Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(App): add max-height: 100% - 72px for MainLayout
Browse files Browse the repository at this point in the history
feat(App): add `max-height: 100% - 72px` for MainLayout
  • Loading branch information
Metnew committed Nov 3, 2017
1 parent 7399f8e commit a0c03ab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/common/containers/App/style.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ export const PageLayout = styled.div`height: 100%;`
export const MainLayout = styled.div`
display: flex;
flex-direction: column;
min-height: calc(100% - 65px);
color: ${props => props.theme.primaryTextColor};
background-color: ${props => props.theme.primaryColorText};
${media.lg`
min-height: calc(100% - 72px);
`};
${'100% - Header height - Footer height'};
height: 100%;
max-height: calc(100% - 72px);
`

export const MainContent = styled.main`
height: 100%;
display: flex;
flex-grow: 1;
padding-left: 1rem;
Expand All @@ -25,6 +25,7 @@ export const MainContent = styled.main`
// ${'' /* height: 100%; */}
export const SidebarSemanticPusherStyled = styled(Sidebar.Pusher)`
-webkit-overflow-scrolling: touch;
${''}
::-webkit-scrollbar {
width: 0px!important;
Expand All @@ -40,6 +41,7 @@ export const SidebarSemanticPushableStyled = styled(Sidebar.Pushable)`

// Margin - just to fill empty space
export const MainContainer = styled(Container)`
height: 100%;
margin-top: 2em;
margin-bottom: 1em;
Expand Down

0 comments on commit a0c03ab

Please sign in to comment.