Skip to content

Commit 3ebaecf

Browse files
authored
Merge pull request #260 from navikt/dynamic-footer
Dynamic footer
2 parents 611de28 + f24a459 commit 3ebaecf

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed
+14-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
import styled from 'styled-components/macro';
2+
import { desktopHeight } from './media-queries';
23

3-
export const InngangMainContainer = styled.main`
4+
const MainContainer = styled.main`
45
padding-bottom: 128px;
6+
min-height: 75vh;
7+
8+
@media ${desktopHeight.desktopL} {
9+
min-height: 80vh;
10+
}
11+
@media ${desktopHeight.desktop4K} {
12+
min-height: 85vh;
13+
}
14+
`;
15+
16+
export const InngangMainContainer = styled(MainContainer)`
517
padding-top: 64px;
618
background-color: #e7e9e9;
719
`;
820

9-
export const FormMainContainer = styled.main`
21+
export const FormMainContainer = styled(MainContainer)`
1022
padding-bottom: 128px;
1123
background-color: #fff;
1224
`;

src/styled-components/media-queries.ts

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ const size = {
88
desktop: '2560px'
99
};
1010

11+
export const desktopHeight = {
12+
desktopL: '(min-height: 1440px)',
13+
desktop4K: '(min-height: 2160px)'
14+
};
15+
1116
export const device = {
1217
mobileS: `(min-width: ${size.mobileS})`,
1318
mobileM: `(min-width: ${size.mobileM})`,

0 commit comments

Comments
 (0)