Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 009c679

Browse files
committed
style: fix align issues when content has few words
also footer bottom align
1 parent 29c6424 commit 009c679

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

containers/Footer/styles/bottom_info.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const Wrapper = styled.div`
1212
`
1313
export const InnerWrapper = styled.div`
1414
${cs.flex('justify-between')};
15+
align-items: center;
1516
width: 100%;
1617
max-width: ${cs.MAX_CONTENT_WIDTH};
1718
padding: 0 5vw;

containers/JobContent/styles/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components'
33
import { theme, cs } from '@utils'
44

55
export const Wrapper = styled.article`
6-
${cs.flex('justify-center')};
6+
${cs.flexGrow('justify-center')};
77
padding: 20px;
88
min-height: 300px;
99
${cs.media.tablet`
@@ -20,6 +20,7 @@ export const InnerWrapper = styled.div`
2020
`};
2121
`
2222
export const MainWrapper = styled.div`
23+
flex-grow: 1;
2324
${cs.media.tablet`
2425
width: 100%;
2526
`};
@@ -34,7 +35,7 @@ export const ArticleWrapper = styled.div`
3435
background: ${theme('preview.articleBg')};
3536
border-radius: 5px;
3637
padding: 35px 40px;
37-
min-height: 60vh;
38+
min-height: 200px;
3839
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
3940
4041
${cs.media.tablet`
@@ -60,7 +61,7 @@ export const MobileWrapper = styled.div`
6061
${cs.flexColumn('align-center')};
6162
display: none;
6263
${cs.media.tablet`
63-
${cs.flex()};
64+
${cs.flex()};
6465
`};
6566
`
6667
export const MobileContentCard = styled.div`

containers/PostContent/styles/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components'
33
import { theme, cs } from '@utils'
44

55
export const Wrapper = styled.article`
6-
${cs.flex('justify-center')};
6+
${cs.flexGrow('justify-center')};
77
padding-top: 20px;
88
min-height: 300px;
99
@@ -21,6 +21,8 @@ export const InnerWrapper = styled.div`
2121
`};
2222
`
2323
export const MainWrapper = styled.div`
24+
flex-grow: 1;
25+
2426
${cs.media.tablet`
2527
width: 100%;
2628
`};
@@ -36,6 +38,7 @@ export const ArticleWrapper = styled.div`
3638
border-radius: 5px;
3739
padding: 35px 40px;
3840
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
41+
min-height: 200px;
3942
${cs.media.mobile`
4043
padding: 30px 20px;
4144
min-height: 20vh;

containers/RepoContent/styles/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components'
33
import { theme, cs } from '@utils'
44

55
export const Wrapper = styled.article`
6-
${cs.flex('justify-center')};
6+
${cs.flexGrow('justify-center')};
77
padding: 20px;
88
min-height: 300px;
99
${cs.media.tablet`
@@ -20,6 +20,7 @@ export const InnerWrapper = styled.div`
2020
`};
2121
`
2222
export const MainWrapper = styled.div`
23+
flex-grow: 1;
2324
${cs.media.tablet`
2425
width: 100%;
2526
`};
@@ -34,7 +35,7 @@ export const ArticleWrapper = styled.div`
3435
background: ${theme('preview.articleBg')};
3536
border-radius: 5px;
3637
padding: 35px 40px;
37-
min-height: 60vh;
38+
min-height: 200px;
3839
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
3940
${cs.media.tablet`
4041
padding: 30px 20px;

containers/VideoContent/styles/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components'
33
import { theme, cs } from '@utils'
44

55
export const Wrapper = styled.article`
6-
${cs.flex('justify-center')};
6+
${cs.flexGrow('justify-center')};
77
padding: 20px;
88
min-height: 300px;
99
${cs.media.tablet`
@@ -20,6 +20,7 @@ export const InnerWrapper = styled.div`
2020
`};
2121
`
2222
export const MainWrapper = styled.div`
23+
flex-grow: 1;
2324
${cs.media.tablet`
2425
width: 100%;
2526
`};

0 commit comments

Comments
 (0)