Skip to content

Commit

Permalink
chore(posts): Enhancement mobile css
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed May 13, 2024
1 parent a2e9b65 commit 12585ae
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/features/styles/ui/posts/posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
background-size: 400% 400%;
animation: water-rainbow 5s ease infinite;

@include mobile {
border-radius: 40px 80px / 80px 15px;
}

.post-description,
.date-format {
color: white;
Expand All @@ -86,6 +90,11 @@
.link {
display: flex;

@include mobile {
flex-direction: column;
align-items: center;
}

.cover {
animation: skeleton-gradient 1.8s infinite ease-in-out;
border-radius: 4px;
Expand All @@ -95,10 +104,16 @@
height: 112.5px;
object-fit: cover;
margin-right: 1.5rem;

@include mobile {
width: 250px;
height: 130px;
}
}

.content {
margin-top: 0.5rem;
width: 100%;

.title {
font-size: 1.5rem;
Expand All @@ -111,10 +126,6 @@
margin-bottom: 0.3rem;
}
}

@include mobile {
flex-direction: column;
}
}
}

Expand Down

0 comments on commit 12585ae

Please sign in to comment.