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

Commit 46a2c93

Browse files
committed
Merge branch 'media-query' into dev
2 parents 5ada01e + 82a9c5d commit 46a2c93

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

components/ThemeSelector/style/card_selector.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import styled from 'styled-components'
22

3-
import { theme, cs } from 'utils'
43
import Img from 'Img'
4+
import { theme, cs } from 'utils'
5+
56
import { Dot } from './index'
67

78
export const Wrapper = styled.div`
@@ -30,6 +31,8 @@ export const IntroBox = styled.div`
3031
border-color: ${theme('banner.desc')};
3132
}
3233
transition: border 0.3s;
34+
35+
${cs.media.mobile`width: 160px; margin-right: 10px;`};
3336
`
3437

3538
export const IntroDesc = styled.div`

containers/UserBanner/styles/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ export const BannerContentWrapper = styled.div`
2525
`
2626
export const UserBriefWrapper = styled.div`
2727
width: 60%;
28+
${cs.media.mobile`width: 100%`};
2829
`
2930
export const UserContributesWrapper = styled.div`
3031
width: 36%;
3132
max-width: 450px;
3233
margin-top: 10px;
34+
${cs.media.mobile`display: none`};
3335
`

containers/UserContent/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ import Tabber from 'components/Tabber'
2121

2222
import DigestBoard from './DigestBoard'
2323

24-
import { Container, MainWrapper, TabberWrapper, SidebarWrapper } from './styles'
24+
import {
25+
Container,
26+
MainWrapper,
27+
TabberWrapper,
28+
SidebarWrapper,
29+
MobileBottom,
30+
} from './styles'
2531

2632
import * as logic from './logic'
2733

@@ -108,6 +114,9 @@ class UserContentContainer extends React.Component {
108114
/>
109115
</TabberWrapper>
110116
<TabberContent active={activeThread} />
117+
<MobileBottom>
118+
<DigestBoard user={viewingUser} accountId={accountInfo.id} />
119+
</MobileBottom>
111120
</MainWrapper>
112121
<SidebarWrapper>
113122
<Affix offsetTop={30}>

containers/UserContent/styles/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ export const Container = styled.div`
77
margin-top: 30px;
88
margin-left: 6%;
99
margin-right: 5%;
10+
11+
${cs.media.mobile`
12+
margin-top: 10px;
13+
margin-left: 2%;
14+
margin-right: 2%;
15+
`};
1016
`
1117

1218
export const MainWrapper = styled.div`
@@ -18,6 +24,7 @@ export const MainWrapper = styled.div`
1824
margin-right: 35px;
1925
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
2026
width: 70%;
27+
${cs.media.mobile`width: 100%`};
2128
`
2229
export const TabberWrapper = styled.div`
2330
${cs.flex()};
@@ -26,4 +33,12 @@ export const TabberWrapper = styled.div`
2633
export const SidebarWrapper = styled.div`
2734
width: 24%;
2835
color: ${theme('banner.desc')};
36+
${cs.media.mobile`display: none`};
37+
`
38+
39+
export const MobileBottom = styled.div`
40+
border-top: 1px dashed;
41+
border-top-color: ${theme('thread.articleDigest')};
42+
display: none;
43+
${cs.media.mobile`display: block`};
2944
`

containers/UserContent/styles/numbers_card.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { theme, cs } from 'utils'
33

44
export const Wrapper = styled.div`
55
${cs.flex('justify-around')};
6+
color: ${theme('thread.articleDigest')};
67
`
78
export const Divider = styled.div`
89
border-left: 1px solid;

0 commit comments

Comments
 (0)