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

Commit

Permalink
fix(containers): fix sticky footer on FF
Browse files Browse the repository at this point in the history
  • Loading branch information
Metnew committed Nov 30, 2017
1 parent 97a544f commit 77f37ca
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 98 deletions.
235 changes: 139 additions & 96 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions src/common/containers/App/style.jsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,37 @@
import styled, {css} from 'styled-components'
import {Dimmer, Sidebar, Container} from 'semantic-ui-react'

export const PageLayout = styled.div`height: 100%;`
export const PageLayout = styled.div`
height: 100%;
`

export const MainLayout = styled.div`
min-height: calc(100% - 72px);
display: flex;
flex-direction: column;
color: ${props => props.theme.primaryTextColor};
background-color: ${props => props.theme.primaryColorText};
`

export const MainContent = styled.main`
flex-grow: 1;
min-height: calc(100% - 72px);
display: flex;
flex-direction: column;
`

export const SidebarSemanticPusherStyled = styled(Sidebar.Pusher)`
height: 100%;
-webkit-overflow-scrolling: touch;
${({isloggedin, ismobile}) => {
// using `ismobile` attr instead of `media` util is much smoother
return isloggedin && !ismobile && css`max-width: calc(100% - 150px);`
return (
isloggedin &&
!ismobile &&
css`
max-width: calc(100% - 150px);
`
)
}};
`

Expand Down

0 comments on commit 77f37ca

Please sign in to comment.