Skip to content

Commit

Permalink
chore #9: 반응형 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
som-syom committed Feb 8, 2022
1 parent 816e083 commit c40de5b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Components/Common/Card/scss/Card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
@import '/src/Utils/Styles/mixin';

.card-wrapper {
width: 32%;
width: calc((100% - 24px) / 3);
margin-bottom: 16px;
box-sizing: border-box;

&:nth-child(3n + 2) {
margin: 0 2%;
margin: 0 12px;
}

@include responsive(tablet) {
width: 49%;
width: calc((100% - 12px) / 2);
&:nth-child(3n + 2) {
margin: 0;
}

&:nth-child(2n-1) {
margin-right: 2%;
margin-right: 12px;
}
}

Expand Down
19 changes: 17 additions & 2 deletions src/Components/Dashboard/scss/Dashboard.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
@import '/src/Utils/Styles/mixin';

.body-container {
padding: 40px 120px;
padding: 40px 0;
margin: 0 auto;
box-sizing: border-box;
width: 100%;
width: 1130px;
height: 100%;

@include responsive(tablet__large) {
width: 90%;
}

@include responsive(tablet) {
width: 95%;
}

@include responsive(mobile) {
width: 100%;
margin: 0;
padding: 40px 20px;
}

&__header {
margin-bottom: 28px;
&__title {
Expand Down

0 comments on commit c40de5b

Please sign in to comment.