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

Commit 8d229ec

Browse files
committed
refactor(media-query): cheatsheet looks great
1 parent 5d6c883 commit 8d229ec

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

containers/CheatsheetThread/styles/cheatsheet.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ export const CardWrapper = styled.div`
1414
margin-right: 20px;
1515
overflow-y: scroll;
1616
17-
@media (max-width: 1600px) {
18-
width: 350px;
19-
}
20-
@media (max-width: 1450px) {
21-
width: 500px;
22-
}
23-
@media (max-width: 1300px) {
24-
width: 450px;
25-
}
17+
${cs.media.mobile`
18+
width: 95%;
19+
`};
2620
`
2721
export const ErrorWrapper = styled.div`
2822
${cs.flexColumn()};

containers/CheatsheetThread/styles/index.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@ export const CardWrapper = styled.div`
1616
margin-right: 20px;
1717
overflow-y: scroll;
1818
19-
@media (max-width: 1450px) {
20-
width: 500px;
21-
}
22-
@media (max-width: 1250px) {
23-
width: 450px;
24-
}
25-
@media (max-width: 1100px) {
26-
width: 350px;
27-
}
19+
${cs.media.mobile`
20+
width: 95%;
21+
`};
2822
`
2923

3024
export const EmptyOffset = styled.div`

0 commit comments

Comments
 (0)