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

Commit acc5b35

Browse files
committed
refactor(media-query): rm unneed mobile syx, switch tablet order
1 parent 56f9b1c commit acc5b35

File tree

7 files changed

+11
-22
lines changed

7 files changed

+11
-22
lines changed

components/CommunityStatesPad/styles/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export const NumberItem = styled.div`
5050
cursor: ${({ readOnly }) => (readOnly ? '' : 'pointer')};
5151
}
5252
53-
${cs.media.mobile`font-size: 1.2rem;`};
5453
${cs.media.tablet`font-size: 1.2rem;`};
54+
${cs.media.mobile`font-size: 1.2rem;`};
5555
`
5656
export const NumberDivider = styled.div`
5757
border: 1px solid;
@@ -61,9 +61,9 @@ export const NumberDivider = styled.div`
6161
align-self: center;
6262
margin-left: 10px;
6363
margin-right: 10px;
64-
${cs.media.mobile`display: none`};
6564
${cs.media.tablet`
6665
margin-left: 5px;
6766
margin-right: 5px;
6867
`};
68+
${cs.media.mobile`display: none`};
6969
`

containers/ArticleAuthorCard/styles/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ export const Wrapper = styled.div`
1212
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
1313
margin-bottom: 15px;
1414
15-
${cs.media.mobile`
15+
${cs.media.tablet`
1616
width: 50%;
17-
padding: 10px;
1817
`};
1918
20-
${cs.media.tablet`
19+
${cs.media.mobile`
2120
width: 50%;
21+
padding: 10px;
2222
`};
2323
`
2424

containers/ArticleBanner/styles/reaction_numbers.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export const NumberTitle = styled.div`
3333
text-decoration: ${({ readOnly }) => (readOnly ? '' : 'underline')};
3434
animation: ${animate.pulseRule};
3535
}
36-
${cs.media.mobile`font-size: 0.9rem`};
3736
${cs.media.tablet`font-size: 0.9rem`};
37+
${cs.media.mobile`font-size: 0.9rem`};
3838
`
3939
export const NumberItem = styled.div`
4040
font-size: 1.5rem;
@@ -47,8 +47,8 @@ export const NumberItem = styled.div`
4747
animation: ${animate.pulseRule};
4848
}
4949
50-
${cs.media.mobile`font-size: 1rem`};
5150
${cs.media.tablet`font-size: 1rem`};
51+
${cs.media.mobile`font-size: 1rem`};
5252
`
5353

5454
export const NumberLoading = styled(Img)`
@@ -66,12 +66,6 @@ export const NumberDivider = styled.div`
6666
align-self: center;
6767
margin-left: 10px;
6868
margin-right: 10px;
69-
${cs.media.mobile`
70-
margin-left: 2px;
71-
margin-right: 2px;
72-
height: 50%;
73-
`};
74-
7569
${cs.media.tablet`
7670
margin-left: 2px;
7771
margin-right: 2px;

containers/CommunityBanner/styles/digest_view.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ export const Desc = styled.div`
101101
}
102102
${cs.truncate('500px')};
103103
104-
${cs.media.mobile`
105-
${cs.truncate('180px')};
106-
`};
107-
108104
${cs.media.tablet`
109105
${cs.truncate('220px')};
110106
`};
107+
108+
${cs.media.mobile`
109+
${cs.truncate('180px')};
110+
`};
111111
`
112112
export const LogoHolder = styled(Img)`
113113
fill: ${theme('banner.desc')};

containers/Footer/styles/brief_view.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export const MainInfos = styled.footer`
99
${cs.flexColumn()};
1010
margin-left: 8%;
1111
margin-bottom: 20px;
12-
${cs.media.mobile`display: none;`};
1312
${cs.media.tablet`display: none;`};
1413
`
1514

containers/PostContent/styles/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ export const Wrapper = styled.article`
66
${cs.flex()};
77
padding: 20px;
88
min-height: 300px;
9-
${cs.media.mobile`
10-
padding: 8px 0;
11-
`};
129
${cs.media.tablet`
1310
padding: 8px 0;
1411
`};

containers/PostContent/styles/side_cards.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { cs } from 'utils'
55
export const Wrapper = styled.div`
66
${cs.flexColumn()};
77
width: 90%;
8-
${cs.media.mobile`display: none`};
98
${cs.media.tablet`display: none`};
109
`
1110
export const ReportWrapper = styled.div`

0 commit comments

Comments
 (0)