Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit8d229ec

Browse files
committed
refactor(media-query): cheatsheet looks great
1 parent5d6c883 commit8d229ec

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
exportconstErrorWrapper=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
exportconstEmptyOffset=styled.div`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp